summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes/kernel.bbclass
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2011-07-01 13:07:58 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-07-02 10:24:22 +0200
commit003ab56b8f21823f72d5be056684b6f290f70018 (patch)
tree38239d326ab170445349b5df175df9350ba4855b /meta-oe/classes/kernel.bbclass
parent040e9e785ca71cf0f4786caa042971e104350662 (diff)
downloadmeta-openembedded-003ab56b8f21823f72d5be056684b6f290f70018.tar.gz
image|kernel.bblass|module-init-tools: do not use depmod-2.6
Change to only depend on virtual/*/depmod. Change all calls to only use depmod. Do not install depmod as depmod-2.6 Bump PR in module-init-tools-cross. Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-oe/classes/kernel.bbclass')
-rw-r--r--meta-oe/classes/kernel.bbclass10
1 files changed, 4 insertions, 6 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 1f8b928d3..9043b4e15 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -1,7 +1,7 @@
1inherit linux-kernel-base module_strip 1inherit linux-kernel-base module_strip
2 2
3PROVIDES += "virtual/kernel" 3PROVIDES += "virtual/kernel"
4DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules" 4DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
5 5
6# we include gcc above, we dont need virtual/libc 6# we include gcc above, we dont need virtual/libc
7INHIBIT_DEFAULT_DEPS = "1" 7INHIBIT_DEFAULT_DEPS = "1"
@@ -65,7 +65,6 @@ KERNEL_IMAGEDEST = "boot"
65export CMDLINE_CONSOLE = "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "ttyS0"}" 65export CMDLINE_CONSOLE = "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "ttyS0"}"
66 66
67KERNEL_VERSION = "${@get_kernelversion('${B}')}" 67KERNEL_VERSION = "${@get_kernelversion('${B}')}"
68KERNEL_MAJOR_VERSION = "${@get_kernelmajorversion('${KERNEL_VERSION}')}"
69 68
70KERNEL_LOCALVERSION ?= "" 69KERNEL_LOCALVERSION ?= ""
71 70
@@ -262,7 +261,7 @@ if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then
262 mkdir -p $D/lib/modules/${KERNEL_VERSION} 261 mkdir -p $D/lib/modules/${KERNEL_VERSION}
263fi 262fi
264if [ -n "$D" ]; then 263if [ -n "$D" ]; then
265 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} 264 ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
266else 265else
267 depmod -a 266 depmod -a
268fi 267fi
@@ -270,7 +269,7 @@ fi
270 269
271pkg_postinst_modules () { 270pkg_postinst_modules () {
272if [ -n "$D" ]; then 271if [ -n "$D" ]; then
273 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} 272 ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
274else 273else
275 depmod -a 274 depmod -a
276 update-modules || true 275 update-modules || true
@@ -343,9 +342,8 @@ python populate_packages_prepend () {
343 kernelver_stripped = m.group(1) 342 kernelver_stripped = m.group(1)
344 path = bb.data.getVar("PATH", d, 1) 343 path = bb.data.getVar("PATH", d, 1)
345 host_prefix = bb.data.getVar("HOST_PREFIX", d, 1) or "" 344 host_prefix = bb.data.getVar("HOST_PREFIX", d, 1) or ""
346 major_version = bb.data.getVar('KERNEL_MAJOR_VERSION', d, 1)
347 345
348 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) 346 cmd = "PATH=\"%s\" %sdepmod -n -a -r -b %s -F %s/boot/System.map-%s %s" % (path, host_prefix, dvar, dvar, kernelver, kernelver_stripped)
349 f = os.popen(cmd, 'r') 347 f = os.popen(cmd, 'r')
350 348
351 deps = {} 349 deps = {}