meta-somdevices: Created at24-modules-load to automatically load eeprom driver.
authorJosep Orga <jorga@somdevices.com>
Thu, 30 Dec 2021 16:00:11 +0000 (17:00 +0100)
committerJosep Orga <jorga@somdevices.com>
Thu, 30 Dec 2021 16:00:11 +0000 (17:00 +0100)
Signed-off-by: Josep Orga <jorga@somdevices.com>
recipes-kernel/at24-modules-load/at24-modules-load.bb [new file with mode: 0644]
recipes-somdevices/images/somdevices-minimal.bb

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 (file)
index 0000000..75715b3
--- /dev/null
@@ -0,0 +1,13 @@
+SUMMARY = "Load AT24 EEPROM module"
+DESCRIPTION = "Add necessary files to use AT24 EEPROM"
+PR = "somdevices.0"
+MAINTAINER = "SomDevices <somdevices@somdevices.com>"
+
+LICENSE = "MIT"
+
+DEBIAN_NOAUTONAME_${PN} = "1"
+
+do_install () {
+       mkdir -p ${D}/etc/modules-load.d/
+       echo "at24" > ${D}/etc/modules-load.d/eeprom.conf
+}
index 5dacba2..af50664 100644 (file)
@@ -34,6 +34,7 @@ CORE_IMAGE_EXTRA_INSTALL += " \
        hostapd \
        util-linux-wall \
        nano \
+       at24-modules-load \
 "
 
 IMAGE_FEATURES += " package-management"