diff options
| author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-06 16:06:35 -0800 |
|---|---|---|
| committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-13 16:11:14 -0800 |
| commit | a18947c20dba2c0c38db8bde1ad4684995df4bbd (patch) | |
| tree | 917bf2abbe439a6f99ede8cfafb25812dca54a9a /meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware | |
| parent | 6ddc5873b0ede30e6542f0ab151a6236acc37944 (diff) | |
| download | meta-xilinx-a18947c20dba2c0c38db8bde1ad4684995df4bbd.tar.gz | |
meta-xilinx: Restructuring meta-xilinx to support multiple layers
As discussed previously on mailing list, we are proceeding with layer
restructuring. For rocko release we will have the following layers
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-xilinx-contrib
In the subsequent releases we will add other layers from Xilinx
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-petalinux
->meta-xilinx-tools
->meta-xilinx-contrib
This will provide one clone to get all the required meta layers from
Xilinx for a complete solution, and the users can blacklist any layer
which they don't want to use using bblayer.conf.
This will enables us to help our vendors/partners to add their reference
designs, board definitions etc.
Recipe changes :
* Move reference design zybo-linux-bd.bb to meta-xilinx-contrib
* Move kernel patches realted to zybo-linux-bd-zynq7 board to
meta-xilinx-contrib
* Update README
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware')
| -rw-r--r-- | meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc | 64 | ||||
| -rw-r--r-- | meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2017.3.bb | 6 |
2 files changed, 70 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc b/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc new file mode 100644 index 00000000..80d14f96 --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | DESCRIPTION = "ARM Trusted Firmware" | ||
| 2 | |||
| 3 | LICENSE = "BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://license.md;md5=829bdeb34c1d9044f393d5a16c068371" | ||
| 5 | |||
| 6 | PROVIDES = "virtual/arm-trusted-firmware" | ||
| 7 | |||
| 8 | inherit deploy | ||
| 9 | |||
| 10 | DEPENDS += "u-boot-mkimage-native" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | B = "${WORKDIR}/build" | ||
| 14 | |||
| 15 | BRANCH ?= "master" | ||
| 16 | REPO ?= "git://github.com/Xilinx/arm-trusted-firmware.git;protocol=https" | ||
| 17 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 18 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 19 | |||
| 20 | ATF_BASE_NAME ?= "${PN}-${PKGE}-${PKGV}-${PKGR}-${DATETIME}" | ||
| 21 | ATF_BASE_NAME[vardepsexclude] = "DATETIME" | ||
| 22 | |||
| 23 | COMPATIBLE_MACHINE = "zynqmp" | ||
| 24 | PLATFORM_zynqmp = "zynqmp" | ||
| 25 | |||
| 26 | # requires CROSS_COMPILE set by hand as there is no configure script | ||
| 27 | export CROSS_COMPILE="${TARGET_PREFIX}" | ||
| 28 | |||
| 29 | # Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application | ||
| 30 | CFLAGS[unexport] = "1" | ||
| 31 | LDFLAGS[unexport] = "1" | ||
| 32 | AS[unexport] = "1" | ||
| 33 | LD[unexport] = "1" | ||
| 34 | |||
| 35 | do_configure() { | ||
| 36 | : | ||
| 37 | } | ||
| 38 | |||
| 39 | do_compile() { | ||
| 40 | oe_runmake -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM} RESET_TO_BL31=1 bl31 | ||
| 41 | } | ||
| 42 | |||
| 43 | do_install() { | ||
| 44 | : | ||
| 45 | } | ||
| 46 | |||
| 47 | OUTPUT_DIR = "${B}/${PLATFORM}/release" | ||
| 48 | |||
| 49 | do_deploy() { | ||
| 50 | install -d ${DEPLOYDIR} | ||
| 51 | install -m 0644 ${OUTPUT_DIR}/bl31/bl31.elf ${DEPLOYDIR}/${ATF_BASE_NAME}.elf | ||
| 52 | ln -sf ${ATF_BASE_NAME}.elf ${DEPLOYDIR}/${PN}.elf | ||
| 53 | install -m 0644 ${OUTPUT_DIR}/bl31.bin ${DEPLOYDIR}/${ATF_BASE_NAME}.bin | ||
| 54 | ln -sf ${ATF_BASE_NAME}.bin ${DEPLOYDIR}/${PN}.bin | ||
| 55 | |||
| 56 | # Get the entry point address from the elf. | ||
| 57 | BL31_BASE_ADDR=$(${READELF} -h ${OUTPUT_DIR}/bl31/bl31.elf | egrep -m 1 -i "entry point.*?0x" | sed -r 's/.*?(0x.*?)/\1/g') | ||
| 58 | mkimage -A arm64 -O linux -T kernel -C none \ | ||
| 59 | -a $BL31_BASE_ADDR -e $BL31_BASE_ADDR \ | ||
| 60 | -d ${OUTPUT_DIR}/bl31.bin ${DEPLOYDIR}/${ATF_BASE_NAME}.ub | ||
| 61 | ln -sf ${ATF_BASE_NAME}.ub ${DEPLOYDIR}/${PN}.ub | ||
| 62 | ln -sf ${ATF_BASE_NAME}.ub ${DEPLOYDIR}/atf-uboot.ub | ||
| 63 | } | ||
| 64 | addtask deploy before do_build after do_compile | ||
diff --git a/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2017.3.bb b/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2017.3.bb new file mode 100644 index 00000000..9bf5cacf --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2017.3.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | include arm-trusted-firmware.inc | ||
| 2 | |||
| 3 | XILINX_RELEASE_VERSION = "v2017.3" | ||
| 4 | SRCREV ?= "f9b244beaa7ac6a670b192192b6e92e5fd6044dc" | ||
| 5 | |||
| 6 | PV = "1.3-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
