From: Josep Orga Date: Thu, 30 Dec 2021 16:00:11 +0000 (+0100) Subject: meta-somdevices: Created at24-modules-load to automatically load eeprom driver. X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=99b585eb6addf1195c7367e4598b506da7350095;p=meta-somdevices.git meta-somdevices: Created at24-modules-load to automatically load eeprom driver. Signed-off-by: Josep Orga --- diff --git a/recipes-kernel/at24-modules-load/at24-modules-load.bb b/recipes-kernel/at24-modules-load/at24-modules-load.bb new file mode 100644 index 0000000..75715b3 --- /dev/null +++ b/recipes-kernel/at24-modules-load/at24-modules-load.bb @@ -0,0 +1,13 @@ +SUMMARY = "Load AT24 EEPROM module" +DESCRIPTION = "Add necessary files to use AT24 EEPROM" +PR = "somdevices.0" +MAINTAINER = "SomDevices " + +LICENSE = "MIT" + +DEBIAN_NOAUTONAME_${PN} = "1" + +do_install () { + mkdir -p ${D}/etc/modules-load.d/ + echo "at24" > ${D}/etc/modules-load.d/eeprom.conf +} diff --git a/recipes-somdevices/images/somdevices-minimal.bb b/recipes-somdevices/images/somdevices-minimal.bb index 5dacba2..af50664 100644 --- a/recipes-somdevices/images/somdevices-minimal.bb +++ b/recipes-somdevices/images/somdevices-minimal.bb @@ -34,6 +34,7 @@ CORE_IMAGE_EXTRA_INSTALL += " \ hostapd \ util-linux-wall \ nano \ + at24-modules-load \ " IMAGE_FEATURES += " package-management"