summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-06-19 09:42:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-21 13:03:02 +0100
commit262e5ac4bc98b19b222d56a788832d268bc8b114 (patch)
treecaa470900a5e18e35a5b00e408e215802b59027e /meta
parent9ffec01bae82644ba64a8089cfb90249b9ef86b8 (diff)
downloadpoky-262e5ac4bc98b19b222d56a788832d268bc8b114.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: 4bd5c17f55bc96ce6bbaccf6559aa4ea123ff4cb) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 116e10b9de..a455164649 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -271,13 +271,13 @@ fi
271if [ -n "$D" ]; then 271if [ -n "$D" ]; then
272 depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} 272 depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
273else 273else
274 depmod -a 274 depmod -a ${KERNEL_VERSION}
275fi 275fi
276} 276}
277 277
278pkg_postinst_modules () { 278pkg_postinst_modules () {
279if [ -z "$D" ]; then 279if [ -z "$D" ]; then
280 depmod -a 280 depmod -a ${KERNEL_VERSION}
281 update-modules || true 281 update-modules || true
282fi 282fi
283} 283}