diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-22 17:57:20 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-22 17:57:20 +1000 |
commit | 07c96950a30149b539e924c03d11cc235dec2962 (patch) | |
tree | 1ded2f3df2afa4ec5bca1ed20e34711986dcdd85 | |
parent | 965b8e54c45b60e9d346178c8285552c3d70c28d (diff) | |
download | meta-xilinx-07c96950a30149b539e924c03d11cc235dec2962.tar.gz |
arm-trusted-firmware: Add recipe for ATF
* Add recipe, currently used only for ZynqMP
* Use the Xilinx specific repo for ATF, tracking the current master
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r-- | recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb new file mode 100644 index 00000000..8a246b08 --- /dev/null +++ b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | DESCRIPTION = "ARM Trusted Firmware" | ||
2 | |||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://license.md;md5=829bdeb34c1d9044f393d5a16c068371" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | inherit deploy | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | BRANCH = "master" | ||
13 | SRC_URI = "git://github.com/Xilinx/arm-trusted-firmware.git;protocol=https;branch=${BRANCH}" | ||
14 | SRCREV = "1d58628d0684522df7f87464850163ab6551afe9" | ||
15 | |||
16 | PV = "1.1+xilinx+git${SRCPV}" | ||
17 | |||
18 | COMPATIBLE_MACHINE = "zynqmp" | ||
19 | PLATFORM_zynqmp = "zynqmp" | ||
20 | |||
21 | # requires CROSS_COMPILE set by hand as there is no configure script | ||
22 | export CROSS_COMPILE="${TARGET_PREFIX}" | ||
23 | |||
24 | # Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application | ||
25 | CFLAGS[unexport] = "1" | ||
26 | LDFLAGS[unexport] = "1" | ||
27 | AS[unexport] = "1" | ||
28 | LD[unexport] = "1" | ||
29 | |||
30 | do_configure() { | ||
31 | : | ||
32 | } | ||
33 | |||
34 | do_compile() { | ||
35 | oe_runmake PLAT=${PLATFORM} RESET_TO_BL31=1 bl31 | ||
36 | } | ||
37 | |||
38 | do_install() { | ||
39 | : | ||
40 | } | ||
41 | |||
42 | do_deploy() { | ||
43 | install -d ${DEPLOYDIR} | ||
44 | install -m 0644 ${S}/build/${PLATFORM}/release/bl31/bl31.elf ${DEPLOYDIR}/bl31-${MACHINE}.elf | ||
45 | install -m 0644 ${S}/build/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31-${MACHINE}.bin | ||
46 | } | ||
47 | addtask deploy before do_build after do_compile | ||