From 60985416089f7db0eab527396b18c9e5480a2979 Mon Sep 17 00:00:00 2001 From: Mike Looijmans Date: Fri, 22 Jul 2016 16:05:04 +0200 Subject: arm-trusted-firmware: Create and deploy the "atf.ub" file 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 Signed-off-by: Nathan Rossi --- 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 08f696b0..f384f5bc 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 -- cgit v1.2.3-54-g00ecf