From 99b585eb6addf1195c7367e4598b506da7350095 Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Thu, 30 Dec 2021 17:00:11 +0100 Subject: [PATCH] meta-somdevices: Created at24-modules-load to automatically load eeprom driver. Signed-off-by: Josep Orga --- .../at24-modules-load/at24-modules-load.bb | 13 +++++++++++++ recipes-somdevices/images/somdevices-minimal.bb | 1 + 2 files changed, 14 insertions(+) create mode 100644 recipes-kernel/at24-modules-load/at24-modules-load.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 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" -- 2.17.1