diff options
| author | Paul Barker <pbarker@toganlabs.com> | 2017-11-20 14:34:16 +0000 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.com> | 2017-11-27 14:03:46 +0100 |
| commit | e0fe58909209e7a08280fff9b22b6512c8e9a030 (patch) | |
| tree | dc7f7cd7ca17f3d302f6f7be28077c89c68da1b6 /conf/machine/include | |
| parent | 9b1a796cb737873f9b39243258927160948be287 (diff) | |
| download | meta-raspberrypi-e0fe58909209e7a08280fff9b22b6512c8e9a030.tar.gz | |
rpi-base.inc: Fix KERNEL_IMAGETYPE assignment
We can't just override KERNEL_IMAGETYPE in machine-specific conf files without
breaking the implementation of RPI_USE_U_BOOT. Instead we need to define a new
KERNEL_IMAGETYPE_DIRECT variable which will control the value when u-boot is not
in use. This new variable may then be overridden as needed without breaking our
u-boot support.
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Diffstat (limited to 'conf/machine/include')
| -rw-r--r-- | conf/machine/include/rpi-base.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index 529c80d..4f89989 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
| @@ -51,7 +51,9 @@ KERNEL_DEVICETREE ?= " \ | |||
| 51 | # within u-boot to load the kernel. | 51 | # within u-boot to load the kernel. |
| 52 | KERNEL_BOOTCMD ??= "bootm" | 52 | KERNEL_BOOTCMD ??= "bootm" |
| 53 | KERNEL_IMAGETYPE_UBOOT ??= "uImage" | 53 | KERNEL_IMAGETYPE_UBOOT ??= "uImage" |
| 54 | KERNEL_IMAGETYPE ??= "${@bb.utils.contains('RPI_USE_U_BOOT', '1', '${KERNEL_IMAGETYPE_UBOOT}', 'zImage', d)}" | 54 | KERNEL_IMAGETYPE_DIRECT ??= "zImage" |
| 55 | KERNEL_IMAGETYPE ?= "${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ | ||
| 56 | '${KERNEL_IMAGETYPE_UBOOT}', '${KERNEL_IMAGETYPE_DIRECT}', d)}" | ||
| 55 | 57 | ||
| 56 | MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio" | 58 | MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio" |
| 57 | 59 | ||
