44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
FILESEXTRAPATHS:prepend := "${THISDIR}/tf-a-tools:"
|
|
|
|
SRC_URI:append = " \
|
|
file://0001-tools-allow-to-use-a-root-key-password-from-command-.patch \
|
|
file://0002-fix-fiptool-respect-OPENSSL_DIR.patch \
|
|
file://0003-FIX-openssl-for-nativesdk.patch \
|
|
"
|
|
|
|
DEPENDS += "dtc-native openssl"
|
|
|
|
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 += "PLAT=${TFA_PLATFORM}"
|
|
|
|
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() {
|
|
install -d ${D}${bindir}
|
|
install -m 0755 \
|
|
${B}/tools/fiptool/fiptool \
|
|
${B}/tools/cert_create/cert_create \
|
|
${D}${bindir}
|
|
}
|
|
|
|
BBCLASSEXTEND += "native nativesdk"
|