diff options
author | Richard Purdie <richard@openedhand.com> | 2006-05-09 16:10:46 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-05-09 16:10:46 +0000 |
commit | 189b9a916b845c90db5e51f62496a13f60936d36 (patch) | |
tree | e9227d9f63eea070317afffd41cbcdfed018753f /openembedded/classes/kernel.bbclass | |
parent | 8d41bd1c8f4c36ed9c1c73e0586031af8a0f292c (diff) | |
download | poky-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.bbclass | 6 |
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 | ||
194 | pkg_postinst_modules () { | 195 | pkg_postinst_modules () { |
195 | if [ -n "$D" ]; then | 196 | if [ -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} |
197 | else | 198 | else |
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 = {} |