kernel.oeclass: substitute hardcoded zImage w/ KERNEL_IMAGEDEST as pointed out by...
authorMichael Lauer <mickey@vanille-media.de>
Wed, 1 Dec 2004 19:07:57 +0000 (19:07 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Wed, 1 Dec 2004 19:07:57 +0000 (19:07 +0000)
BKrev: 41ae168dtllrpBPM3P2-iK4bgeAuFA

classes/kernel.oeclass

index a97f058..cc1aa87 100644 (file)
@@ -113,11 +113,11 @@ kernel_do_configure() {
 }
 
 pkg_postinst_kernel () {
-       update-alternatives --install /${KERNEL_IMAGEDEST}/zImage zImage /${KERNEL_IMAGEDEST}/zImage-${PV} ${KERNEL_PRIORITY} || true
+       update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${PV} ${KERNEL_PRIORITY} || true
 }
 
 pkg_postrm_kernel () {
-       update-alternatives --remove zImage /${KERNEL_IMAGEDEST}/zImage-${PV} || true
+       update-alternatives --remove ${KERNEL_IMAGETYPE} /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${PV} || true
 }
 
 inherit cml1