summaryrefslogtreecommitdiffstats
path: root/meta-signing-key/recipes-devtools/libsign/libsign_git.bb
blob: 23813d081e6e1bad7db3020097d692a8919451ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
SUMMARY = "A generic signing tool framework"
DESCRIPTION = "\
This project targets to provide a generic signing framework. This framework \
separates the signing request and signing process and correspondingly forms \
the so-called signlet and signaturelet. \
Each signaturelet only concerns about the details about how to construct the \
layout of a signature format, and signlet only cares how to construct the \
signing request. \
"
AUTHOR = "Jia Zhang"
HOMEPAGE = "https://github.com/jiazhang0/libsign"
SECTION = "devel"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=d9bf404642f21afb4ad89f95d7bc91ee"

DEPENDS += "openssl"

PV = "0.3.2+git${SRCPV}"

SRC_URI = "\
    git://github.com/jiazhang0/libsign.git;branch=master;protocol=https \
    file://0001-selsign.c-remove-build-time-from-show_banner.patch \
    file://0001-env.mk-fix-LDFLAGS-expansion.patch \
"
SRCREV = "eb3a5927dd18e166014cf1e2eb6e9e461cf973fb"

PARALLEL_MAKE = ""

S = "${WORKDIR}/git"

EXTRA_OEMAKE = "\
    CC="${CC}" \
    CCLD="${CCLD}" \
    bindir="${STAGING_BINDIR}" \
    libdir="${STAGING_LIBDIR}" \
    includedir="${STAGING_INCDIR}" \
    EXTRA_CFLAGS="${CFLAGS}" \
    EXTRA_LDFLAGS="${LDFLAGS}" \
    SIGNATURELET_DIR="${libdir}/signaturelet" \
    BINDIR="${bindir}" \
    LIBDIR="${libdir}" \
"
SECURITY_LDFLAGS:remove:pn-${BPN} = "-fstack-protector-strong"

do_install() {
    oe_runmake install DESTDIR="${D}"
}

FILES:${PN} += "\
    ${libdir}/signaturelet \
"

RDEPENDS:${PN}:class-target += "libcrypto"
RDEPENDS:${PN}:class-native += "openssl-native"

BBCLASSEXTEND = "native nativesdk"