summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBruno Randolf <br1@subnet.at>2004-10-04 10:19:20 +0000
committerBruno Randolf <br1@subnet.at>2004-10-04 10:19:20 +0000
commit1bfd6c1445d07750dd6937e8ff0daa86c64925eb (patch)
tree285f95675f4bbb3b61a89456317ef20dbfcc5230 /classes
parent505bb5fa47b7bde8768c55db37beea8fffc240ae (diff)
added KERNEL_IMAGEDEST for variable path of kernel image in package
updated mtx-1 kernel to use it and added postinst BKrev: 416123a8bRfzYsYbF-RzCOkTSs0GFw
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel.oeclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass
index f34299f6cf..8fa1db8fd3 100644
--- a/classes/kernel.oeclass
+++ b/classes/kernel.oeclass
@@ -15,6 +15,7 @@ KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}"
KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}"
KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
+KERNEL_IMAGEDEST = "boot"
#
# configuration
@@ -77,8 +78,10 @@ kernel_do_install() {
else
oenote "no modules to install"
fi
+
+ install -d ${D}/${KERNEL_IMAGEDEST}
install -d ${D}/boot
- install -m 0644 ${KERNEL_OUTPUT} ${D}/boot/${KERNEL_IMAGETYPE}-${PV}
+ install -m 0644 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${PV}
install -m 0644 System.map ${D}/boot/System.map-${PV}
install -m 0644 .config ${D}/boot/config-${PV}
install -d ${D}/etc/modutils
@@ -89,11 +92,11 @@ kernel_do_configure() {
}
pkg_postinst_kernel () {
- update-alternatives --install /boot/zImage zImage /boot/zImage-${PV} ${KERNEL_PRIORITY} || true
+ update-alternatives --install /${KERNEL_IMAGEDEST}/zImage zImage /${KERNEL_IMAGEDEST}/zImage-${PV} ${KERNEL_PRIORITY} || true
}
pkg_postrm_kernel () {
- update-alternatives --remove zImage /boot/zImage-${PV} || true
+ update-alternatives --remove zImage /${KERNEL_IMAGEDEST}/zImage-${PV} || true
}
inherit cml1