aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2020-06-24 14:37:58 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2020-06-24 17:01:17 +0100
commitcdee89b0a0b16da5187656f837f047f43b2503b7 (patch)
treeb8a95247b5cf6cfa0246a478092025e4a022bd18
parentc482e2cc7c80de7c61075c9e9b3ab073190ece40 (diff)
downloadmeta-raspberrypi-cdee89b0a0b16da5187656f837f047f43b2503b7.tar.gz
meta-raspberrypi-cdee89b0a0b16da5187656f837f047f43b2503b7.tar.bz2
meta-raspberrypi-cdee89b0a0b16da5187656f837f047f43b2503b7.zip
rpi-base.inc: Include modules if IR is enabled
Add kernel modules gpio-ir and gpio-ir-tx to variable MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS if ENABLE_IR is set to 1. Variable ENABLE_IR enables infrared support (for LIRC). This change 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.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index a8ede4c..044f09d 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -80,6 +80,7 @@ MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules udev-rules-rpi"
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_I2C', '1', 'kernel-module-i2c-dev kernel-module-i2c-bcm2708', '', d)}"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "${@oe.utils.conditional('ENABLE_IR', '1', 'kernel-module-gpio-ir kernel-module-gpio-ir-tx', '', d)}"
# Set Raspberrypi splash image