summaryrefslogtreecommitdiffstats
path: root/openembedded/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
committerRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
commit189b9a916b845c90db5e51f62496a13f60936d36 (patch)
treee9227d9f63eea070317afffd41cbcdfed018753f /openembedded/classes/kernel.bbclass
parent8d41bd1c8f4c36ed9c1c73e0586031af8a0f292c (diff)
downloadpoky-189b9a916b845c90db5e51f62496a13f60936d36.tar.gz
Sync bbclass files with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@374 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/kernel.bbclass')
-rw-r--r--openembedded/classes/kernel.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/openembedded/classes/kernel.bbclass b/openembedded/classes/kernel.bbclass
index 471acd4a61..ab8c03014f 100644
--- a/openembedded/classes/kernel.bbclass
+++ b/openembedded/classes/kernel.bbclass
@@ -163,6 +163,7 @@ kernel_do_install() {
163 oe_runmake SUBDIRS="scripts/genksyms" 163 oe_runmake SUBDIRS="scripts/genksyms"
164 fi 164 fi
165 165
166 install -d ${STAGING_KERNEL_DIR}
166 cp -fR scripts ${STAGING_KERNEL_DIR}/ 167 cp -fR scripts ${STAGING_KERNEL_DIR}/
167} 168}
168 169
@@ -193,7 +194,7 @@ ALLOW_EMPTY_kernel-image = "1"
193 194
194pkg_postinst_modules () { 195pkg_postinst_modules () {
195if [ -n "$D" ]; then 196if [ -n "$D" ]; then
196 ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_RELEASE} ${KERNEL_VERSION} 197 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_RELEASE} ${KERNEL_VERSION}
197else 198else
198 depmod -A 199 depmod -A
199 update-modules || true 200 update-modules || true
@@ -261,8 +262,9 @@ python populate_packages_prepend () {
261 kernelver_stripped = m.group(1) 262 kernelver_stripped = m.group(1)
262 path = bb.data.getVar("PATH", d, 1) 263 path = bb.data.getVar("PATH", d, 1)
263 host_prefix = bb.data.getVar("HOST_PREFIX", d, 1) or "" 264 host_prefix = bb.data.getVar("HOST_PREFIX", d, 1) or ""
265 major_version = bb.data.getVar('KERNEL_MAJOR_VERSION', d, 1)
264 266
265 cmd = "PATH=\"%s\" %sdepmod -n -a -r -b %s -F %s/boot/System.map-%s %s" % (path, host_prefix, dvar, dvar, kernelver, kernelver_stripped) 267 cmd = "PATH=\"%s\" %sdepmod-%s -n -a -r -b %s -F %s/boot/System.map-%s %s" % (path, host_prefix, major_version, dvar, dvar, kernelver, kernelver_stripped)
266 f = os.popen(cmd, 'r') 268 f = os.popen(cmd, 'r')
267 269
268 deps = {} 270 deps = {}