summaryrefslogtreecommitdiffstats
path: root/meta
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-24 10:05:46 +0000
commitf9b683cb143b821833053355fdd2dbbd72783c11 (patch)
tree3c30ea9ba88086083f0beb2c51eebf6a18527dd4 /meta
parent9a3a4cf849ba55a151721622f731c5ae9117bcf2 (diff)
downloadpoky-f9b683cb143b821833053355fdd2dbbd72783c11.tar.gz
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 (From OE-Core rev: e9cc42bd7c866380d956233bdf8e719b25fdf0a7) Signed-off-by: Andrea Adami <andrea.adami@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 120a524bc3..ec5d65e186 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -223,11 +223,11 @@ do_savedefconfig() {
223do_savedefconfig[nostamp] = "1" 223do_savedefconfig[nostamp] = "1"
224addtask savedefconfig after do_configure 224addtask savedefconfig after do_configure
225 225
226pkg_postinst_kernel () { 226pkg_postinst_kernel-base () {
227 cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true 227 cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
228} 228}
229 229
230pkg_postrm_kernel () { 230pkg_postrm_kernel-base () {
231 cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true 231 cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
232} 232}
233 233