diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2022-02-24 10:43:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-25 12:41:23 +0000 |
commit | 889788bffcd19371863a0f032c5f1fd95c5105bd (patch) | |
tree | e4393eb896533be752f50e04cc327d6dde9208e1 /meta/recipes-kernel | |
parent | 9954ff5056a0f4789f303a8d8cf9834cfd7d688c (diff) | |
download | poky-889788bffcd19371863a0f032c5f1fd95c5105bd.tar.gz |
depmodwrapper-cross: add config directory option
Native depmod by default try to find config files from the following
directories:
```
${STAGING_ETCDIR_NATIVE}/depmod.d
/run/depmod.d
/usr/local/lib/depmod.d
/lib/depmod.d
```
but none of them is correct, change to load config files from
${sysconfdir}/depmod.d of basedir.
(From OE-Core rev: aa03d77f009af2b03246554566de2a1eea3f5e2f)
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb index 9a172675af..04fc14a6d2 100644 --- a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb +++ b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | |||
@@ -32,9 +32,9 @@ fi | |||
32 | 32 | ||
33 | if [ ! -r ${PKGDATA_DIR}/kernel-depmod/System.map-\$4 ] || [ "\$kernelabi" != "\$4" ]; then | 33 | if [ ! -r ${PKGDATA_DIR}/kernel-depmod/System.map-\$4 ] || [ "\$kernelabi" != "\$4" ]; then |
34 | echo "Unable to read: ${PKGDATA_DIR}/kernel-depmod/System.map-\$4" >&2 | 34 | echo "Unable to read: ${PKGDATA_DIR}/kernel-depmod/System.map-\$4" >&2 |
35 | exec env depmod "\$1" "\$2" "\$3" "\$4" | 35 | exec env depmod -C "\$3${sysconfdir}/depmod.d" "\$1" "\$2" "\$3" "\$4" |
36 | else | 36 | else |
37 | exec env depmod "\$1" "\$2" "\$3" -F "${PKGDATA_DIR}/kernel-depmod/System.map-\$4" "\$4" | 37 | exec env depmod -C "\$3${sysconfdir}/depmod.d" "\$1" "\$2" "\$3" -F "${PKGDATA_DIR}/kernel-depmod/System.map-\$4" "\$4" |
38 | fi | 38 | fi |
39 | EOF | 39 | EOF |
40 | chmod +x ${D}${bindir_crossscripts}/depmodwrapper | 40 | chmod +x ${D}${bindir_crossscripts}/depmodwrapper |