1 DESCRIPTION = "Linux kernel for Dreambox DM7020"
7 # -rX is the patch revision - it's not related to this package's PR
8 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.12.tar.bz2 \
9 http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-dream-ppc-r5.patch.bz2;patch=1;pnum=1 \
10 file://linux-2.6-trailing-whitespaces-in-params.patch;patch=1"
12 S = "${WORKDIR}/linux-2.6.12"
16 FILES_kernel-image = "/boot/zImage.elf /boot/autoexec.bat"
20 KERNEL_IMAGETYPE = "zImage"
21 KERNEL_OUTPUT = "arch/ppc/boot/images/zImage.elf"
23 do_configure_prepend() {
24 oe_machinstall -m 0644 ${S}/arch/ppc/configs/dm600pvr_defconfig ${S}/.config || die "no default configuration for ${MACHINE} available."
28 do_install_append () {
30 install -m 0755 arch/ppc/boot/images/zImage.elf ${D}/boot/zImage.elf
31 echo "/flash/bootlogo.elf" > ${D}/boot/autoexec.bat
32 echo "/flash/zImage.elf" >> ${D}/boot/autoexec.bat
35 pkg_preinst_kernel-image () {
36 [ -z "$D" ] && mountpoint -q /boot && mount -o rw,remount /boot
40 pkg_postinst_kernel-image () {
41 [ -z "$D" ] && mountpoint -q /boot && mount -o ro,remount /boot
45 pkg_prerm_kernel-image () {
46 [ -z "$D" ] && mountpoint -q /boot && mount -o rw,remount /boot
50 pkg_postrm_kernel-image () {
51 [ -z "$D" ] && mountpoint -q /boot && mount -o ro,remount /boot