diff options
author | Jeff Ithier <ithijme@gmail.com> | 2020-07-25 08:56:56 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-08-10 11:10:11 +0100 |
commit | 4869bb1b9565d10a12e46fd0c306c15e2e0bafeb (patch) | |
tree | 74e24dbea855b35b58f1e3a8439319086a85271e /conf/machine/include | |
parent | 66ca1d81ec873c04283d09765c14aba4498f1178 (diff) | |
download | meta-raspberrypi-4869bb1b9565d10a12e46fd0c306c15e2e0bafeb.tar.gz |
Generalize the naming of the bootfiles deploy directory
The raspberry pi 4 variant has a BCM2711 chip, however it still
uses the same boot files as the BCM2835 used in previous generations.
This change generalizes the naming of the directory generated in the
$DEPLOY_DIR to avoid the implication that the files are only
meant for the BCM2835.
Signed-off-by: Jeff Ithier <ithijme@gmail.com>
Diffstat (limited to 'conf/machine/include')
-rw-r--r-- | conf/machine/include/rpi-base.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index 5f9a1e3..cd6d0b0 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
@@ -85,6 +85,10 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_IR', '1' | |||
85 | 85 | ||
86 | SERIAL_CONSOLES_CHECK ??= "${SERIAL_CONSOLES}" | 86 | SERIAL_CONSOLES_CHECK ??= "${SERIAL_CONSOLES}" |
87 | 87 | ||
88 | # The name of the deploy directory for raspberry pi boot files. | ||
89 | # This variable is referred to by recipes fetching / generating the files. | ||
90 | BOOTFILES_DIR_NAME ?= "bootfiles" | ||
91 | |||
88 | # Set Raspberrypi splash image | 92 | # Set Raspberrypi splash image |
89 | SPLASH = "psplash-raspberrypi" | 93 | SPLASH = "psplash-raspberrypi" |
90 | 94 | ||
@@ -111,14 +115,14 @@ def make_dtb_boot_files(d): | |||
111 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) | 115 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) |
112 | 116 | ||
113 | 117 | ||
114 | IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* \ | 118 | IMAGE_BOOT_FILES ?= "${BOOTFILES_DIR_NAME}/* \ |
115 | ${@make_dtb_boot_files(d)} \ | 119 | ${@make_dtb_boot_files(d)} \ |
116 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ | 120 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ |
117 | '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ | 121 | '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ |
118 | '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ | 122 | '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ |
119 | " | 123 | " |
120 | do_image_wic[depends] += " \ | 124 | do_image_wic[depends] += " \ |
121 | bcm2835-bootfiles:do_deploy \ | 125 | bootfiles:do_deploy \ |
122 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \ | 126 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \ |
123 | " | 127 | " |
124 | 128 | ||