blob: 1e158e1c93c76aa79d81f7187c7fde397a64caab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
DESCRIPTION = "Linux kernel for Dreambox DM7020"
LICENSE = "GPL"
PV = "2.6.9"
PR = "r5"
# -r1 is the patch revision - it's not related to this package's PR
SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.9.tar.bz2 \
http://sources.dreamboxupdate.com/download/kernel-patches/linuxppc-2.6.9-r1.diff.bz2;patch=1;pnum=1 \
http://sources.dreamboxupdate.com/download/kernel-patches/linuxppc-2.6.9-dream-s8.diff.bz2;patch=1;pnum=1"
S = "${WORKDIR}/linux-2.6.9"
inherit kernel
FILES_kernel-image = "/boot/zImage.elf /boot/autoexec.bat"
export OS = "Linux"
ARCH = "ppc"
KERNEL_IMAGETYPE = "zImage"
KERNEL_OUTPUT = "arch/ppc/boot/images/zImage.elf"
do_configure_prepend() {
oe_machinstall -m 0644 ${S}/arch/ppc/configs/dm7020_defconfig ${S}/.config || die "no default configuration for ${MACHINE} available."
oe_runmake oldconfig
}
do_install_append () {
install -d ${D}/boot
install -m 0755 arch/ppc/boot/images/zImage.elf ${D}/boot/zImage.elf
echo "/flash/bootlogo.elf" > ${D}/boot/autoexec.bat
echo "/flash/zImage.elf" >> ${D}/boot/autoexec.bat
}
pkg_preinst_kernel-image () {
[ -d /proc/stb ] && mount -o rw,remount /boot
true
}
pkg_postinst_kernel-image () {
[ -d /proc/stb ] && mount -o ro,remount /boot
true
}
pkg_prerm_kernel-image () {
[ -d /proc/stb ] && mount -o rw,remount /boot
true
}
pkg_postrm_kernel-image () {
[ -d /proc/stb ] && mount -o ro,remount /boot
true
}
|