From e94413d2c83bf1a6652494d78631d4f34a8cbef9 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Mon, 18 Jun 2018 01:37:21 +0000 Subject: arm-trusted-firmware: add version 1.5 of ATF with K3 support Signed-off-by: Denys Dmytriyenko --- .../arm-trusted-firmware_1.5.bb | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_1.5.bb diff --git a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_1.5.bb b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_1.5.bb new file mode 100644 index 00000000..5a7fd213 --- /dev/null +++ b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_1.5.bb @@ -0,0 +1,61 @@ +SUMMARY = "ARM Trusted Firmware" +DESCRIPTION = "ARM Trusted Firmware provides a reference implementation of \ +Secure World software for ARMv8-A, including Exception Level 3 (EL3) software. \ +It provides implementations of various ARM interface standards such as the \ +Power State Coordination Interface (PSCI), Trusted Board Boot Requirements \ +(TBBR) and Secure monitor code." +HOMEPAGE = "http://infocenter.arm.com/help/topic/com.arm.doc.dui0928e/CJHIDGJF.html" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://license.rst;md5=e927e02bca647e14efd87e9e914b2443" + +inherit deploy + +DEPENDS += "dtc-native" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +S = "${WORKDIR}/git" + +PV_append = "+git${SRCPV}" + +BRANCH = "ti-atf" +SRC_URI = "git://git.ti.com/atf/arm-trusted-firmware.git;branch=${BRANCH}" + +SRCREV ?= "5a0daebab6bf72b27cc74151d4e596247f804e44" + +# Make ATF "aware" of OPTEE, no build dependency +PACKAGECONFIG[optee] = "SPD=opteed" + +COMPATIBLE_MACHINE = "k3" +ATFPLATFORM_k3 = "k3" +ATFBOARD_k3 = "generic" + +PACKAGECONFIG_k3 = "optee" + +CFLAGS[unexport] = "1" +LDFLAGS[unexport] = "1" +AS[unexport] = "1" +LD[unexport] = "1" + +do_configure[noexec] = "1" + +EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" PLAT="${ATFPLATFORM}" TARGET_BOARD="${ATFBOARD}" ${PACKAGECONFIG_CONFARGS}' + +do_compile() { + oe_runmake all +} + +do_install() { + install -d ${D}/boot + install -m 0644 ${S}/build/${ATFPLATFORM}/${ATFBOARD}/release/bl31.bin ${D}/boot/ +} + +do_deploy() { + install -d ${DEPLOYDIR} + install -m 0644 ${S}/build/${ATFPLATFORM}/${ATFBOARD}/release/bl31.bin ${DEPLOYDIR}/ +} +addtask deploy before do_build after do_compile + +FILES_${PN} = "/boot" +SYSROOT_DIRS += "/boot" -- cgit v1.2.3-54-g00ecf