diff options
author | Michael Smith <msmith@cbnco.com> | 2009-11-09 12:11:36 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-28 14:21:09 +0100 |
commit | b6432162d49e4cb58cb2777c2179a88f5a2ee80b (patch) | |
tree | f1ec1379a4a16095a156ca609e969f72a1a2cc22 | |
parent | 945878c8e4eae9df4cc3e63387debe8d5898205c (diff) | |
download | openembedded-b6432162d49e4cb58cb2777c2179a88f5a2ee80b.tar.gz |
kernel.bbclass: pass ${KERNEL_VERSION} to depmod -a
The postinsts for kernel-image and modules run "depmod -a" on the
target, but this only updates the old kernel's modules.dep.
"depmod -a ${KERNEL_VERSION}" updates the files in
/lib/modules/${KERNEL_VERSION}.
Signed-off-by: Michael Smith <msmith@cbnco.com>
-rw-r--r-- | classes/kernel.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 53ea252b0e..b1c6cdab80 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -276,7 +276,7 @@ fi if [ -n "$D" ]; then ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} else - depmod -a + depmod -a ${KERNEL_VERSION} fi } @@ -284,7 +284,7 @@ pkg_postinst_modules () { if [ -n "$D" ]; then ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} else - depmod -a + depmod -a ${KERNEL_VERSION} update-modules || true fi } |