summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2011-12-23 00:46:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-23 17:33:07 +0000
commite9cc42bd7c866380d956233bdf8e719b25fdf0a7 (patch)
tree30f911c46c07a05ac8a2ffeec1f3272b645224e4
parent0e6cd25a0003f23e582cb817b7d772e2b602cdb7 (diff)
downloadopenembedded-core-e9cc42bd7c866380d956233bdf8e719b25fdf0a7.tar.gz
openembedded-core-e9cc42bd7c866380d956233bdf8e719b25fdf0a7.tar.bz2
openembedded-core-e9cc42bd7c866380d956233bdf8e719b25fdf0a7.tar.xz
openembedded-core-e9cc42bd7c866380d956233bdf8e719b25fdf0a7.zip
kernel.bbclass: fix pkg_postinst and pkg_postrm
* Symptom: kernel symlink in /boot is not created. * Rename in order to create the expected files: * /var/lib/opkg/info/kernel-3.1.4.postinst * /var/lib/opkg/info/kernel-3.1.4.postrm Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 120a524bc..ec5d65e18 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -223,11 +223,11 @@ do_savedefconfig() {
do_savedefconfig[nostamp] = "1"
addtask savedefconfig after do_configure
-pkg_postinst_kernel () {
+pkg_postinst_kernel-base () {
cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
}
-pkg_postrm_kernel () {
+pkg_postrm_kernel-base () {
cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
}