summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2020-04-27 21:37:47 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2020-04-28 15:13:45 +0100
commit45ee64377bcc511380edf59191abc90c1ddb210e (patch)
treefe671f7bc42601449741dcfb9d02156f8809cb41 /conf
parent87a44aa75bb78c39b5f5f786d54aee2e21ef4795 (diff)
downloadmeta-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>
Diffstat (limited to 'conf')
-rw-r--r--conf/machine/include/rpi-base.inc4
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
77MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc" 77MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
78 78
79MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " kernel-modules udev-rules-rpi" 79MACHINE_EXTRA_RRECOMMENDS += "kernel-modules udev-rules-rpi"
80MACHINE_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
82SPLASH = "psplash-raspberrypi" 84SPLASH = "psplash-raspberrypi"