linux-dreambox-3.4: re-add native ext2/ext3 support to kernel because sometimes the...
[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     file://0001-re-enable-native-ext2-ext3-support-because-we-have-s.patch \
10 "
11
12 SRC_URI[kernel.md5sum] = "967f72983655e2479f951195953e8480"
13 SRC_URI[kernel.sha256sum] = "ff3dee6a855873d12487a6f4070ec2f7996d073019171361c955639664baa0c6"
14 SRC_URI[stable-patch.md5sum] = "fee956dfe6e1bb4bd0224ceb16338d9b"
15 SRC_URI[stable-patch.sha256sum] = "eeeeb599392391a8117b8c7d6fdc85153038d1d43e4b9582620b4c62e061e21d"
16 SRC_URI[dream-patch.md5sum] = "bdca5598db039833c4badf61db3a303f"
17 SRC_URI[dream-patch.sha256sum] = "1eae07fc11f027d6363abe0d88d0ef7ba5def5e548fc1ddb58d4908af9702a03"
18
19 S = "${WORKDIR}/linux-3.4"
20
21 do_configure_prepend() {
22         sed -e "/^SUBLEVEL = /d" -i ${S}/Makefile
23 }
24 do_compile_append() {
25         gzip < vmlinux > vmlinuz
26 }
27
28 require linux-dreambox.inc
29 require linux-extra-image.inc
30 require linux-rdepends.inc
31
32 CMDLINE = "bmem=512M@512M memc1=768M console=ttyS0,1000000 root=/dev/mmcblk0p1 rootwait rootfstype=ext4"
33 COMPATIBLE_MACHINE = "^(dm820|dm7080)$"
34
35 DEFCONFIG = "${MACHINE}"
36 KERNEL_VERSION = "3.4-3.5-${MACHINE}"
37 KERNEL_IMAGETYPE = "vmlinux.bin"
38 KERNEL_ALT_IMAGETYPE = "vmlinux"
39 KERNEL_EXTRA_IMAGETYPE = "vmlinuz"
40 KERNEL_EXTRA_OUTPUT = "vmlinuz"
41 KERNEL_ENABLE_CGROUPS = "1"
42
43 RDEPENDS_kernel-image = "flash-scripts"
44
45 pkg_postinst_kernel-image () {
46 if [ -z "$D" ]; then
47     flash-kernel /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION}
48 fi
49 }