diff options
| author | Jeff Ithier <ithijme@gmail.com> | 2020-07-25 08:56:56 +0200 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-08-06 11:00:29 +0100 |
| commit | f046b4128c9ca3420614887006101fa2b10fc6e7 (patch) | |
| tree | 21d8c714b7f9548b84a09b24d6520ac53ef4517a /conf/machine/include | |
| parent | 11318d2da103626761f0be0b03a166452416a09f (diff) | |
| download | meta-raspberrypi-f046b4128c9ca3420614887006101fa2b10fc6e7.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 | ||
