diff options
author | Anders Darander <anders@chargestorm.se> | 2011-07-01 13:07:58 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-07-02 10:24:22 +0200 |
commit | 003ab56b8f21823f72d5be056684b6f290f70018 (patch) | |
tree | 38239d326ab170445349b5df175df9350ba4855b /meta-oe/classes/kernel.bbclass | |
parent | 040e9e785ca71cf0f4786caa042971e104350662 (diff) | |
download | meta-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.bbclass | 10 |
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 @@ | |||
1 | inherit linux-kernel-base module_strip | 1 | inherit linux-kernel-base module_strip |
2 | 2 | ||
3 | PROVIDES += "virtual/kernel" | 3 | PROVIDES += "virtual/kernel" |
4 | DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules" | 4 | DEPENDS += "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 |
7 | INHIBIT_DEFAULT_DEPS = "1" | 7 | INHIBIT_DEFAULT_DEPS = "1" |
@@ -65,7 +65,6 @@ KERNEL_IMAGEDEST = "boot" | |||
65 | export CMDLINE_CONSOLE = "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "ttyS0"}" | 65 | export CMDLINE_CONSOLE = "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "ttyS0"}" |
66 | 66 | ||
67 | KERNEL_VERSION = "${@get_kernelversion('${B}')}" | 67 | KERNEL_VERSION = "${@get_kernelversion('${B}')}" |
68 | KERNEL_MAJOR_VERSION = "${@get_kernelmajorversion('${KERNEL_VERSION}')}" | ||
69 | 68 | ||
70 | KERNEL_LOCALVERSION ?= "" | 69 | KERNEL_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} |
263 | fi | 262 | fi |
264 | if [ -n "$D" ]; then | 263 | if [ -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} |
266 | else | 265 | else |
267 | depmod -a | 266 | depmod -a |
268 | fi | 267 | fi |
@@ -270,7 +269,7 @@ fi | |||
270 | 269 | ||
271 | pkg_postinst_modules () { | 270 | pkg_postinst_modules () { |
272 | if [ -n "$D" ]; then | 271 | if [ -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} |
274 | else | 273 | else |
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 = {} |