linux-dreambox-3.4: add bcmgenet fix from stblinux-3.3-3.6
[opendreambox.git] / meta-dreambox / recipes-kernel / linux / linux-dreambox_3.4.bb
1 PATCHREV = "38c24319e8b82eeab5d102eba355718ae8f50c48"
2 PATCHLEVEL = "106"
3
4 SRC_URI = " \
5     ${KERNELORG_MIRROR}/linux/kernel/v3.x/linux-3.4.tar.xz;name=kernel \
6     ${KERNELORG_MIRROR}/linux/kernel/v3.x/patch-3.4.${PATCHLEVEL}.xz;apply=yes;name=stable-patch \
7     http://dreamboxupdate.com/download/kernel-patches/linux-dreambox-${PV}-${PATCHREV}.patch.xz;apply=yes;name=dream-patch \
8     file://backport_bcmgenet_fix_from_3.3-3.6.patch \
9 "
10
11 SRC_URI[kernel.md5sum] = "967f72983655e2479f951195953e8480"
12 SRC_URI[kernel.sha256sum] = "ff3dee6a855873d12487a6f4070ec2f7996d073019171361c955639664baa0c6"
13 SRC_URI[stable-patch.md5sum] = "fee956dfe6e1bb4bd0224ceb16338d9b"
14 SRC_URI[stable-patch.sha256sum] = "eeeeb599392391a8117b8c7d6fdc85153038d1d43e4b9582620b4c62e061e21d"
15 SRC_URI[dream-patch.md5sum] = "bdca5598db039833c4badf61db3a303f"
16 SRC_URI[dream-patch.sha256sum] = "1eae07fc11f027d6363abe0d88d0ef7ba5def5e548fc1ddb58d4908af9702a03"
17
18 S = "${WORKDIR}/linux-3.4"
19
20 do_configure_prepend() {
21         sed -e "/^SUBLEVEL = /d" -i ${S}/Makefile
22 }
23 do_compile_append() {
24         gzip < vmlinux > vmlinuz
25 }
26
27 require linux-dreambox.inc
28 require linux-extra-image.inc
29 require linux-rdepends.inc
30
31 CMDLINE = "bmem=512M@512M memc1=768M console=ttyS0,1000000 root=/dev/mmcblk0p1 rootwait rootfstype=ext4"
32 COMPATIBLE_MACHINE = "^(dm820|dm7080)$"
33
34 DEFCONFIG = "${MACHINE}"
35 KERNEL_VERSION = "3.4-3.5-${MACHINE}"
36 KERNEL_IMAGETYPE = "vmlinux.bin"
37 KERNEL_ALT_IMAGETYPE = "vmlinux"
38 KERNEL_EXTRA_IMAGETYPE = "vmlinuz"
39 KERNEL_EXTRA_OUTPUT = "vmlinuz"
40 KERNEL_ENABLE_CGROUPS = "1"
41
42 RDEPENDS_kernel-image = "flash-scripts"
43
44 pkg_postinst_kernel-image () {
45 if [ -z "$D" ]; then
46     flash-kernel /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION}
47 fi
48 }