Patchworkβ [oe] kernel.bbclass: pass ${KERNEL_VERSION} to depmod -a

login
register
about
Submitter Michael Smith
Date 2009-11-09 22:11:36
Message ID <1257804696-7728-1-git-send-email-msmith@cbnco.com>
Download mbox | patch
Permalink /patch/1251/
State Applied, archived
Headers show

Comments

Michael Smith - 2009-11-09 22:11:36
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>
---

module.bbclass could probably use the same thing, but I don't have a
test for it atm.

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

Patch

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 9c1f637..f6f1180 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -266,7 +266,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
 }
 
@@ -274,7 +274,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
 }