| # 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;branch=master" |
| LIC_FILES_CHKSUM = "file://docs/license.rst;md5=b2c740efedc159745b9b31f88ff03dde" |
| |
| # Use fiptool from TF-A v2.7 |
| SRCREV = "35f4c7295bafeb32c8bcbdfb6a3f2e74a57e732b" |
| |
| DEPENDS += "openssl-native" |
| |
| inherit native |
| |
| EXTRA_OEMAKE = "V=1 HOSTCC='${BUILD_CC}' OPENSSL_DIR=${STAGING_DIR_NATIVE}/${prefix_native}" |
| |
| do_compile () { |
| # This is still needed to have the native fiptool executing properly by |
| # setting the RPATH |
| 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 -p -m 0755 tools/fiptool/fiptool ${D}${bindir}/fiptool |
| } |