diff options
author | Jeff Ithier <ithijme@gmail.com> | 2020-07-25 08:56:56 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-07-27 18:02:17 +0100 |
commit | a907c3261ef583f898803706cd596d372c6644cb (patch) | |
tree | 1681c4c24d0d15cae6097d6326fa527e761240be /conf/machine/include | |
parent | eb2f6d460cac81cdf46da1deb5c6227d2f34e9af (diff) | |
download | meta-raspberrypi-a907c3261ef583f898803706cd596d372c6644cb.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 c398705..47a482f 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
@@ -84,6 +84,10 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_IR', '1' | |||
84 | 84 | ||
85 | SERIAL_CONSOLES_CHECK ??= "${SERIAL_CONSOLES}" | 85 | SERIAL_CONSOLES_CHECK ??= "${SERIAL_CONSOLES}" |
86 | 86 | ||
87 | # The name of the deploy directory for raspberry pi boot files. | ||
88 | # This variable is referred to by recipes fetching / generating the files. | ||
89 | BOOTFILES_DIR_NAME ?= "bootfiles" | ||
90 | |||
87 | # Set Raspberrypi splash image | 91 | # Set Raspberrypi splash image |
88 | SPLASH = "psplash-raspberrypi" | 92 | SPLASH = "psplash-raspberrypi" |
89 | 93 | ||
@@ -110,14 +114,14 @@ def make_dtb_boot_files(d): | |||
110 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) | 114 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) |
111 | 115 | ||
112 | 116 | ||
113 | IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* \ | 117 | IMAGE_BOOT_FILES ?= "${BOOTFILES_DIR_NAME}/* \ |
114 | ${@make_dtb_boot_files(d)} \ | 118 | ${@make_dtb_boot_files(d)} \ |
115 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ | 119 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ |
116 | '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ | 120 | '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ |
117 | '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ | 121 | '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ |
118 | " | 122 | " |
119 | do_image_wic[depends] += " \ | 123 | do_image_wic[depends] += " \ |
120 | bcm2835-bootfiles:do_deploy \ | 124 | bootfiles:do_deploy \ |
121 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \ | 125 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \ |
122 | " | 126 | " |
123 | 127 | ||