diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2020-04-27 21:37:47 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-04-28 15:13:45 +0100 |
commit | 45ee64377bcc511380edf59191abc90c1ddb210e (patch) | |
tree | fe671f7bc42601449741dcfb9d02156f8809cb41 | |
parent | 87a44aa75bb78c39b5f5f786d54aee2e21ef4795 (diff) | |
download | meta-raspberrypi-45ee64377bcc511380edf59191abc90c1ddb210e.tar.gz |
rpi-base.inc: Include modules if I2C is enaled
Add kernel modules i2c-dev and i2c-bcm2708 to variable
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS if ENABLE_I2C is set to 1.
This affects images based on packagegroup-core-boot, including
the core-image-minimal image.
For other images (based on packagegroup-base) kernel modules
are provide through variable MACHINE_EXTRA_RRECOMMENDS.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
-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 44a0d65..7a87bd1 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
@@ -76,7 +76,9 @@ MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa blue | |||
76 | # Raspberry Pi has no hardware clock | 76 | # Raspberry Pi has no hardware clock |
77 | MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc" | 77 | MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc" |
78 | 78 | ||
79 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " kernel-modules udev-rules-rpi" | 79 | MACHINE_EXTRA_RRECOMMENDS += "kernel-modules udev-rules-rpi" |
80 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_I2C', '1', 'kernel-module-i2c-dev kernel-module-i2c-bcm2708', '', d)}" | ||
81 | |||
80 | 82 | ||
81 | # Set Raspberrypi splash image | 83 | # Set Raspberrypi splash image |
82 | SPLASH = "psplash-raspberrypi" | 84 | SPLASH = "psplash-raspberrypi" |