* [OE-core] [PATCH V2 0/1] depmodwrapper-cross: add config directory option
@ 2022-02-24 9:43 liu.ming50
2022-02-24 9:43 ` [OE-core] [PATCH V2 1/1] " liu.ming50
0 siblings, 1 reply; 2+ messages in thread
From: liu.ming50 @ 2022-02-24 9:43 UTC (permalink / raw)
To: openembedded-core; +Cc: Ming Liu
From: Ming Liu <ming.liu@toradex.com>
Changes in V2:
- Replace hard-coded /etc to ${sysconfdir}
Oleksandr Suvorov (1):
depmodwrapper-cross: add config directory option
meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread* [OE-core] [PATCH V2 1/1] depmodwrapper-cross: add config directory option
2022-02-24 9:43 [OE-core] [PATCH V2 0/1] depmodwrapper-cross: add config directory option liu.ming50
@ 2022-02-24 9:43 ` liu.ming50
0 siblings, 0 replies; 2+ messages in thread
From: liu.ming50 @ 2022-02-24 9:43 UTC (permalink / raw)
To: openembedded-core; +Cc: Oleksandr Suvorov, Ming Liu
From: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
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.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
---
meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 4 ++--
1 file 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
if [ ! -r ${PKGDATA_DIR}/kernel-depmod/System.map-\$4 ] || [ "\$kernelabi" != "\$4" ]; then
echo "Unable to read: ${PKGDATA_DIR}/kernel-depmod/System.map-\$4" >&2
- exec env depmod "\$1" "\$2" "\$3" "\$4"
+ exec env depmod -C "\$3${sysconfdir}/depmod.d" "\$1" "\$2" "\$3" "\$4"
else
- exec env depmod "\$1" "\$2" "\$3" -F "${PKGDATA_DIR}/kernel-depmod/System.map-\$4" "\$4"
+ exec env depmod -C "\$3${sysconfdir}/depmod.d" "\$1" "\$2" "\$3" -F "${PKGDATA_DIR}/kernel-depmod/System.map-\$4" "\$4"
fi
EOF
chmod +x ${D}${bindir_crossscripts}/depmodwrapper
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-24 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-24 9:43 [OE-core] [PATCH V2 0/1] depmodwrapper-cross: add config directory option liu.ming50
2022-02-24 9:43 ` [OE-core] [PATCH V2 1/1] " liu.ming50
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox