[oe-commits] Michael Smith : kernel.bbclass: pass ${KERNEL_VERSION} to depmod -a

git version control git at git.openembedded.org
Sun Jan 24 10:39:20 UTC 2010


Module: openembedded.git
Branch: holger/staging-branch
Commit: 7d4696b36107bbd6865ee03333d6aabc59da60b3
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7d4696b36107bbd6865ee03333d6aabc59da60b3

Author: Michael Smith <msmith at cbnco.com>
Date:   Mon Nov  9 12:11:36 2009 +0000

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 at cbnco.com>

---

 classes/kernel.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 53ea252..b1c6cda 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
 }





More information about the Openembedded-commits mailing list