summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Galbusera <gizero@gmail.com>2017-06-29 15:56:12 +0200
committerAndrei Gherzan <andrei@gherzan.com>2017-06-30 11:46:21 +0100
commit04a33eadfbc14d0d7bbcc38c5225395be9938fbe (patch)
tree489be80ce4d0725ed180630316aacd5314c0bb8e
parentfc17cd74191e248386d4874a5a7afc1de49e9922 (diff)
downloadmeta-raspberrypi-04a33eadfbc14d0d7bbcc38c5225395be9938fbe.tar.gz
rpi-base: wic: generate entries for u-boot
This commit allow wic generated images to work when we want u-boot to load the kernel image. Augment IMAGE_BOOT_FILES with the proper entries when KERNEL_IMAGETYPE is "uImage". More specifically add u-boot image and boot.scr to deployed files and give the proper name to the kernel image accordingly. Signed-off-by: Andrea Galbusera <gizero@gmail.com>
-rw-r--r--conf/machine/include/rpi-base.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index 4a0ea2a..71bb071 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -83,7 +83,9 @@ def make_dtb_boot_files(d):
83 83
84IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* \ 84IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* \
85 ${@make_dtb_boot_files(d)} \ 85 ${@make_dtb_boot_files(d)} \
86 ${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE} \ 86 ${@bb.utils.contains('KERNEL_IMAGETYPE', 'uImage', '${KERNEL_IMAGETYPE}', '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \
87 ${@bb.utils.contains('KERNEL_IMAGETYPE', 'uImage', 'u-boot.bin;${SDIMG_KERNELIMAGE}', '', d)} \
88 ${@bb.utils.contains('KERNEL_IMAGETYPE', 'uImage', 'boot.scr;boot.scr', '', d)} \
87 " 89 "
88 90
89# The kernel image is installed into the FAT32 boot partition and does not need 91# The kernel image is installed into the FAT32 boot partition and does not need