[meta-xilinx] [PATCH] arm-trusted-firmware: Create and deploy the "atf.ub" file
Mike Looijmans
mike.looijmans at topic.nl
Fri Jul 22 07:05:04 PDT 2016
To boot with the firmware loaded, we need the binary packaged as a u-boot
image. Add the extra step to do so and output the file that u-boot SPL
expects to find on the SD card.
Signed-off-by: Mike Looijmans <mike.looijmans at topic.nl>
---
recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb
index 08f696b..f384f5b 100644
--- a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb
+++ b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb
@@ -7,6 +7,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit deploy
+DEPENDS += "u-boot-mkimage-native"
+
S = "${WORKDIR}/git"
BRANCH = "master"
@@ -45,5 +47,6 @@ do_deploy() {
install -d ${DEPLOYDIR}
install -m 0644 ${S}/build/${PLATFORM}/release/bl31/bl31.elf ${DEPLOYDIR}/bl31-${MACHINE}.elf
install -m 0644 ${S}/build/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31-${MACHINE}.bin
+ mkimage -A arm64 -O linux -T kernel -C none -a 0xfffe5000 -e 0xfffe5000 -d ${S}/build/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/atf.ub
}
addtask deploy before do_build after do_compile
--
1.9.1
More information about the meta-xilinx
mailing list