aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-01-23 13:46:42 -0600
committerTrevor Woerner <twoerner@gmail.com>2020-01-27 16:31:55 -0500
commit2b92cf7f8e81be1f2965fa3d7ea401cb8aaadc59 (patch)
tree011227a97aa5827cd6eda55b1ccf95382e2a6042
parentfdd07d09c2ba1e6c5fe1f3d867c7909a8c869df4 (diff)
downloadmeta-rockchip-2b92cf7f8e81be1f2965fa3d7ea401cb8aaadc59.tar.gz
meta-rockchip-2b92cf7f8e81be1f2965fa3d7ea401cb8aaadc59.tar.bz2
meta-rockchip-2b92cf7f8e81be1f2965fa3d7ea401cb8aaadc59.zip
arm-trusted-firmware: Add recipe
Adds a recipe to build Arm Trusted Firmware Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
-rw-r--r--recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb38
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb
new file mode 100644
index 0000000..737777b
--- /dev/null
+++ b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb
@@ -0,0 +1,38 @@
+# Copyright (C) 2019 Garmin Ltd. or its subsidaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Arm Trusted Firmware"
+HOMEPAGE = "https://developer.trustedfirmware.org/"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://docs/license.rst;md5=189505435dbcdcc8caa63c46fe93fa89"
+
+PROVIDES = "virtual/atf"
+
+BRANCH = "master"
+SRC_URI = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=http;branch=${BRANCH}"
+SRCREV = "a04808c16cfc126d9fe572ae7c4b5a3d39de5796"
+
+S = "${WORKDIR}/git"
+B = "${WORKDIR}/build"
+
+inherit deploy
+
+ATF_SUFFIX ??= "bin"
+
+do_compile() {
+ unset LDFLAGS
+ unset CFLAGS
+ unset CPPFLAGS
+
+ oe_runmake -C ${S} BUILD_BASE=${B} DEBUG=0 CROSS_COMPILE=${TARGET_PREFIX} \
+ PLAT=${ATF_PLATFORM} ${ATF_TARGET}
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_deploy() {
+ install -m 644 ${B}/${ATF_PLATFORM}/release/${ATF_TARGET}/${ATF_TARGET}.${ATF_SUFFIX} \
+ ${DEPLOYDIR}/${ATF_TARGET}.${ATF_SUFFIX}
+}
+addtask deploy after do_compile
+