Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
meta-soletta: Load i2c-dev and iio-trig-sysfs at boot time
Browse files Browse the repository at this point in the history
These modules are required to be up at boot time.

(From meta-soletta rev: 54c5c3fff5d690101bcbb26a796246ffbf804898)

Signed-off-by: Bruno Bottazzini <[email protected]>
  • Loading branch information
Bruno Bottazzini authored and ostroproject-ci committed Apr 22, 2016
1 parent 568ec41 commit b2edb4f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meta-soletta/recipes-soletta/soletta/files/i2c-dev.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Load i2c-dev at boot
i2c-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Load iio-trig-sysfs at boot
iio-trig-sysfs
9 changes: 9 additions & 0 deletions meta-soletta/recipes-soletta/soletta/soletta_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ SRC_URI = "gitsm://github.com/solettaproject/soletta.git;protocol=git \
file://0048-oic-gen-ReadOnly-props-from-imported-json-objs-were-.patch \
file://0049-oic-gen-Don-t-add-client-to_repr_vec-when-all-props-.patch \
file://0050-oic-gen-Always-generate-code-using-same-order-of-res.patch \
file://i2c-dev.conf \
file://iio-trig-sysfs.conf \
"
SRCREV = "97091af414193c37278ba5ff88c70c596eecd7ea"

Expand Down Expand Up @@ -47,6 +49,7 @@ FILES_${PN}-dev = " \
${libdir}/soletta/modules/pin-mux/* \
${libdir}/soletta/modules/linux-micro/* \
${libdir}/soletta/modules/flow-metatype/* \
${sysconfdir}/modules-load.d/* \
"

FILES_${PN} = " \
Expand Down Expand Up @@ -96,6 +99,12 @@ do_install() {
echo "Soletta: $COMMIT_ID" > ${D}/usr/lib/soletta/soletta-image-hash
}

do_install_append() {
install -d ${D}${sysconfdir}/modules-load.d
install -m 0644 ${WORKDIR}/i2c-dev.conf ${D}${sysconfdir}/modules-load.d
install -m 0644 ${WORKDIR}/iio-trig-sysfs.conf ${D}${sysconfdir}/modules-load.d
}

inherit ptest

do_compile_ptest() {
Expand Down

0 comments on commit b2edb4f

Please sign in to comment.