TF-A-TOOLS: adapt opsnssl change for fiptools and certtool
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
This commit is contained in:
parent
766634e19c
commit
1becb4e422
|
|
@ -15,11 +15,28 @@ DEPENDS += "dtc-native openssl"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
EXTRA_OEMAKE += "HOSTCC='${CC}' OPENSSL_DIR='${STAGING_EXECPREFIXDIR}'"
|
COMPATIBLE_HOST:class-target = "null"
|
||||||
|
|
||||||
|
HOSTCC:class-native = "${BUILD_CC}"
|
||||||
|
HOSTCC:class-nativesdk = "${CC}"
|
||||||
|
EXTRA_OEMAKE += "HOSTCC='${HOSTCC}' OPENSSL_DIR='${STAGING_EXECPREFIXDIR}'"
|
||||||
EXTRA_OEMAKE += "certtool fiptool"
|
EXTRA_OEMAKE += "certtool fiptool"
|
||||||
|
|
||||||
do_configure[noexec] = "1"
|
do_configure[noexec] = "1"
|
||||||
|
|
||||||
|
do_compile:prepend:class-native () {
|
||||||
|
# This is still needed to have the native fiptool executing properly by
|
||||||
|
# setting the RPATH
|
||||||
|
sed -e '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' \
|
||||||
|
-e '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},' \
|
||||||
|
-i ${S}/tools/fiptool/Makefile
|
||||||
|
# This is still needed to have the native cert_create executing properly by
|
||||||
|
# setting the RPATH
|
||||||
|
sed -e '/^LIB_DIR/ s,$, \$\{BUILD_LDFLAGS},' \
|
||||||
|
-e '/^INC_DIR/ s,$, \$\{BUILD_CFLAGS},' \
|
||||||
|
-i ${S}/tools/cert_create/Makefile
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
install -m 0755 \
|
install -m 0755 \
|
||||||
|
|
@ -28,6 +45,4 @@ do_install() {
|
||||||
${D}${bindir}
|
${D}${bindir}
|
||||||
}
|
}
|
||||||
|
|
||||||
#RDEPENDS:${PN}:class-nativesdk += "nativesdk-libcrypto"
|
|
||||||
|
|
||||||
BBCLASSEXTEND += "native nativesdk"
|
BBCLASSEXTEND += "native nativesdk"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue