blob: 5163a6afcf8df102e76a959c75ef03c36d949b53 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
DESCRIPTION = "Linux kernel for Dreambox DM800"
LICENSE = "GPL"
KV = "2.6.12"
PV = "2.6.12"
PR = "r13"
# note, the rX in the filename is *NOT* the packet revision - it's the patch revision.
SRC_URI += "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${KV}.tar.bz2 \
file://${MACHINE}_defconfig \
http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-brcm-5.1.patch.bz2;patch=1;pnum=1 \
http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-update_dvbapi-r1.patch.bz2;patch=1;pnum=1 \
http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-dvb-multipid-r4.patch.bz2;patch=1;pnum=1 \
http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-dvb-core-fix-several-locking-problems.patch.bz2;patch=1;pnum=1 \
http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-dvbapi-pilot-rolloff-extension-r0.patch.bz2;patch=1;pnum=1 \
http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-update-wireless.patch.bz2;patch=1;pnum=1 \
http://sources.dreamboxupdate.com/download/kernel-patches/linux-2.6.12-add-ioprio.patch.bz2;patch=1;pnum=1 \
file://linux-2.6.12-dream-misc.patch;patch=1;pnum=1 \
file://linux-2.6.12-fix-serial.patch;patch=1;pnum=1 \
file://linux-2.6.12-${MACHINE}-flash-layout.patch;patch=1;pnum=1 \
file://linux-2.6.12-dream-temp.patch;patch=1;pnum=1 \
file://linux-2.6.12-brcm-mtd-blkdevfs-fix.diff;patch=1;pnum=1 \
file://linux-2.6.12-set-custom-extraversion.patch;patch=1;pnum=1 \
file://linux-2.6.12-fixup-prom-args.patch;patch=1;pnum=1 \
file://linux-2.6.12-7401C0-enable-llsc.patch;patch=1;pnum=1 \
file://linuxmips-2.6.12-fix-fadvise.patch;patch=1;pnum=1 \
file://linuxmips-2.6.12-fix-futex.patch;patch=1;pnum=1 \
file://linuxmips-2.6.12-gcc4-compile-fix.patch;patch=1;pnum=1 \
file://linuxmips-2.6.12-gdb-fix.patch;patch=1;pnum=1 \
file://linux-2.6.12-bcmemac-ethtool.patch;patch=1;pnum=1 \
file://linux-2.6.12-fixup-memsize.patch;patch=1;pnum=1 \
http://trappist.elis.ugent.be/~mronsse/cdfs/download/cdfs-2.6.12.tar.bz2"
S = "${WORKDIR}/stblinux-2.6.12"
inherit kernel
FILES_kernel-image = "/boot/vmlinux.gz /boot/autoexec.bat"
export OS = "Linux"
KERNEL_IMAGETYPE = "vmlinux"
KERNEL_OUTPUT = "vmlinux"
KERNEL_OBJECT_SUFFIX = "ko"
do_munge() {
mv ${WORKDIR}/linux-2.6.12 ${WORKDIR}/stblinux-2.6.12
if [ -d ${S}/drivers/sound ]; then
rm -R ${S}/drivers/sound;
fi;
}
addtask munge before do_patch after do_unpack
do_configure_prepend() {
oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${S}/.config
if [ -d ${WORKDIR}/cdfs-${PV} ]; then
mv ${WORKDIR}/cdfs-${PV} ${S}/fs/cdfs
cd ${S} & patch -p0 < ${S}/fs/cdfs/patch.cdfs
fi;
oe_runmake oldconfig
}
do_install_append () {
install -d ${D}/boot
install -m 0755 vmlinux ${D}/boot/vmlinux
echo "/flash/bootlogo.elf" > ${D}/boot/autoexec.bat
gzip ${D}/boot/vmlinux
echo "/flash/vmlinux.gz" >> ${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
}
|