diff options
author | John Klug <john.klug@multitech.com> | 2021-04-21 10:21:57 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-04-23 04:25:26 -0500 |
commit | d1b76660d96c90faf33594a9de45c641c2c1c90f (patch) | |
tree | f929abe7bea51e27a7c818ff0b844515b88817e2 /recipes-devtools/opkg | |
parent | 0994845f8794f30fb70b52311b42c0a437f72c0a (diff) | |
download | meta-mlinux-d1b76660d96c90faf33594a9de45c641c2c1c90f.tar.gz meta-mlinux-d1b76660d96c90faf33594a9de45c641c2c1c90f.tar.bz2 meta-mlinux-d1b76660d96c90faf33594a9de45c641c2c1c90f.zip |
opkg fix for modprobe failures -- eventually this should be rolled into the main opkg package
Diffstat (limited to 'recipes-devtools/opkg')
-rwxr-xr-x | recipes-devtools/opkg/files/modprobe | 8 | ||||
-rw-r--r-- | recipes-devtools/opkg/opkg_%.bbappend | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/recipes-devtools/opkg/files/modprobe b/recipes-devtools/opkg/files/modprobe new file mode 100755 index 0000000..7e32c58 --- /dev/null +++ b/recipes-devtools/opkg/files/modprobe @@ -0,0 +1,8 @@ +#!/bin/sh + + echo "modprobe $@" >> $OPKG_INTERCEPT_DIR/depmod + sort -u $OPKG_INTERCEPT_DIR/depmod > $OPKG_INTERCEPT_DIR/depmod.tmp + mv $OPKG_INTERCEPT_DIR/depmod.tmp $OPKG_INTERCEPT_DIR/depmod + chmod +x $OPKG_INTERCEPT_DIR/depmod + cp $OPKG_INTERCEPT_DIR/depmod /tmp/modprobestuff.txt + diff --git a/recipes-devtools/opkg/opkg_%.bbappend b/recipes-devtools/opkg/opkg_%.bbappend index 7db3ade..99a3f3c 100644 --- a/recipes-devtools/opkg/opkg_%.bbappend +++ b/recipes-devtools/opkg/opkg_%.bbappend @@ -2,7 +2,14 @@ PR .= ".mlinux2" SRC_URI += " file://0003-opkg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch \ file://0004-opkg-symlink.patch \ + file://modprobe \ " FILESEXTRAPATHS_prepend := "${THISDIR}/files:" - +# Modprobe fix +PACKAGES =+ "${PN}-modprobe" +FILES_${PN}-modprobe = "${datadir}/${PN}/intercept/modprobe" +do_install_append() { + install -d ${D}${datadir}/${PN}/intercept + install -m 0755 ${WORKDIR}/modprobe ${D}${datadir}/${PN}/intercept +} |