diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2019-09-13 12:25:49 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2019-09-16 14:51:27 +0100 |
commit | 31585ca640a9f6f939941ab923776f620277b02e (patch) | |
tree | 2aba13db231087e613b24999d6622c3721f87cfb | |
parent | 31fb767c7cf5212e4e98e776ef859d1cec11a716 (diff) | |
download | meta-raspberrypi-31585ca640a9f6f939941ab923776f620277b02e.tar.gz |
rpi-base.inc: Introduce DISABLE_VC4GRAPHICS
Since we enabled vc4graphics by default[1], there is no easy way to disable
it if needed. This patch introduces a variable (DISABLE_VC4GRAPHICS)
which when set to '1' will not add 'vc4graphics' to MACHINE_FEATURES
forcing the old behaviour.
One could use it in 'local.conf' for example.
[1] https://github.com/agherzan/meta-raspberrypi/pull/417
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | conf/machine/include/rpi-base.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index af1418d..36a8daf 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
@@ -70,7 +70,7 @@ KERNEL_IMAGETYPE_DIRECT ??= "zImage" | |||
70 | KERNEL_IMAGETYPE ?= "${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ | 70 | KERNEL_IMAGETYPE ?= "${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ |
71 | '${KERNEL_IMAGETYPE_UBOOT}', '${KERNEL_IMAGETYPE_DIRECT}', d)}" | 71 | '${KERNEL_IMAGETYPE_UBOOT}', '${KERNEL_IMAGETYPE_DIRECT}', d)}" |
72 | 72 | ||
73 | MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio vc4graphics" | 73 | MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio ${@bb.utils.contains('DISABLE_VC4GRAPHICS', '1', '', 'vc4graphics', d)}" |
74 | 74 | ||
75 | # Raspberry Pi has no hardware clock | 75 | # Raspberry Pi has no hardware clock |
76 | MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc" | 76 | MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc" |