summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-08-28 08:41:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 16:53:08 +0100
commit7b7f3cff44bec1cf0dcc920fcc5f04095ab86030 (patch)
treea7b5d615d5104c59fdd1dd3f8ee63ef49a0427fc /meta/classes/kernel.bbclass
parenta512e682026e3a9731df4d3147f9beff369f81e1 (diff)
downloadpoky-7b7f3cff44bec1cf0dcc920fcc5f04095ab86030.tar.gz
kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst
* without this, kernel upgrades where KERNEL_VERSION is changed e.g. 3.4.2 -> 3.4.3 generate .dep for running 3.4.2 and after reboot user ends up without any module loaded to make it worse after reboot nothing is upgraded to trigger another kernel(-module) postinst to generate .dep for now running 3.4.3 (From OE-Core rev: 2a7cdf088e484bb123a72826a02c3169a418ed0a) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5f6ff6672b..7512ee0cdb 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -276,13 +276,13 @@ fi
276if [ -n "$D" ]; then 276if [ -n "$D" ]; then
277 ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} 277 ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
278else 278else
279 depmod -a 279 depmod -a ${KERNEL_VERSION}
280fi 280fi
281} 281}
282 282
283pkg_postinst_modules () { 283pkg_postinst_modules () {
284if [ -z "$D" ]; then 284if [ -z "$D" ]; then
285 depmod -a 285 depmod -a ${KERNEL_VERSION}
286 update-modules || true 286 update-modules || true
287fi 287fi
288} 288}