diff --git a/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb new file mode 100644 index 00000000..25ca111e --- /dev/null +++ b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb @@ -0,0 +1,29 @@ +# Firmware Image Package (FIP) +# It is a packaging format used by TF-A to package the +# firmware images in a single binary. + +DESCRIPTION = "fiptool - Trusted Firmware tool for packaging" +LICENSE = "BSD-3-Clause" + +SRC_URI = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;destsuffix=fiptool-${PV};protocol=https;" +LIC_FILES_CHKSUM = "file://docs/license.rst;md5=189505435dbcdcc8caa63c46fe93fa89" + +# Use fiptool from TF-A v2.3 +SRCREV = "ecd27ad85f1eba29f6bf92c39dc002c85b07dad5" + +DEPENDS += "openssl-native" + +inherit native + +do_compile () { + # These changes are needed to have the fiptool compiling and executing properly + sed -i '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' ${S}/tools/fiptool/Makefile + sed -i '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},' ${S}/tools/fiptool/Makefile + + oe_runmake fiptool +} + +do_install () { + install -d ${D}${bindir}/ + install -m 0755 tools/fiptool/fiptool ${D}${bindir} +}