diff options
author | Anders Darander <anders@chargestorm.se> | 2011-07-01 15:07:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-01 23:34:17 +0100 |
commit | 586ccf2a3f80cafe7a55e58da4f5121935d9a23f (patch) | |
tree | 61ba97e6d1df7ac749c50a127eb34d90afa58e02 /meta/classes/kernel.bbclass | |
parent | 33ca841082c90aef3c28fa08f1b0d56719d178ac (diff) | |
download | poky-586ccf2a3f80cafe7a55e58da4f5121935d9a23f.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.
(From OE-Core rev: 351e352c2e44a3d8103594ca7e1d8404979a220c)
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index f23f0273eb..943252ab99 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/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" |
@@ -53,7 +53,6 @@ KERNEL_IMAGEDEST = "boot" | |||
53 | export CMDLINE_CONSOLE = "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "ttyS0"}" | 53 | export CMDLINE_CONSOLE = "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "ttyS0"}" |
54 | 54 | ||
55 | KERNEL_VERSION = "${@get_kernelversion('${B}')}" | 55 | KERNEL_VERSION = "${@get_kernelversion('${B}')}" |
56 | KERNEL_MAJOR_VERSION = "${@get_kernelmajorversion('${KERNEL_VERSION}')}" | ||
57 | 56 | ||
58 | KERNEL_LOCALVERSION ?= "" | 57 | KERNEL_LOCALVERSION ?= "" |
59 | 58 | ||
@@ -238,7 +237,7 @@ if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then | |||
238 | mkdir -p $D/lib/modules/${KERNEL_VERSION} | 237 | mkdir -p $D/lib/modules/${KERNEL_VERSION} |
239 | fi | 238 | fi |
240 | if [ -n "$D" ]; then | 239 | if [ -n "$D" ]; then |
241 | ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} | 240 | ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} |
242 | else | 241 | else |
243 | depmod -a | 242 | depmod -a |
244 | fi | 243 | fi |
@@ -246,7 +245,7 @@ fi | |||
246 | 245 | ||
247 | pkg_postinst_modules () { | 246 | pkg_postinst_modules () { |
248 | if [ -n "$D" ]; then | 247 | if [ -n "$D" ]; then |
249 | ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} | 248 | ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} |
250 | else | 249 | else |
251 | depmod -a | 250 | depmod -a |
252 | update-modules || true | 251 | update-modules || true |
@@ -319,9 +318,8 @@ python populate_packages_prepend () { | |||
319 | kernelver_stripped = m.group(1) | 318 | kernelver_stripped = m.group(1) |
320 | path = bb.data.getVar("PATH", d, 1) | 319 | path = bb.data.getVar("PATH", d, 1) |
321 | host_prefix = bb.data.getVar("HOST_PREFIX", d, 1) or "" | 320 | host_prefix = bb.data.getVar("HOST_PREFIX", d, 1) or "" |
322 | major_version = bb.data.getVar('KERNEL_MAJOR_VERSION', d, 1) | ||
323 | 321 | ||
324 | 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) | 322 | cmd = "PATH=\"%s\" %sdepmod -n -a -r -b %s -F %s/boot/System.map-%s %s" % (path, host_prefix, dvar, dvar, kernelver, kernelver_stripped) |
325 | f = os.popen(cmd, 'r') | 323 | f = os.popen(cmd, 'r') |
326 | 324 | ||
327 | deps = {} | 325 | deps = {} |