linux-dreambox_3.4: updated kernel patch
[opendreambox.git] / meta-dreambox / recipes-kernel / linux / linux-dreambox_3.4.bb
1 PATCHREV = "209710a594b4d5643a3bfbc01f45ede012bc7da7"
2 PATCHLEVEL = "105"
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 "
9 SRC_URI[kernel.md5sum] = "967f72983655e2479f951195953e8480"
10 SRC_URI[kernel.sha256sum] = "ff3dee6a855873d12487a6f4070ec2f7996d073019171361c955639664baa0c6"
11 SRC_URI[stable-patch.md5sum] = "0f43fcca926776fd6fe849dcf62e633e"
12 SRC_URI[stable-patch.sha256sum] = "e596f2b874a6a8f31a6f93cb40457694d30ff641d760b70a7419c983e67d1317"
13 SRC_URI[dream-patch.md5sum] = "3eb59164d4c97c22619b78782bc53cbf"
14 SRC_URI[dream-patch.sha256sum] = "20fa24a54c9d0c40454971585beb0cc27d45c3f48979d12760f1cf47a16420ba"
15
16 S = "${WORKDIR}/linux-3.4"
17
18 do_configure_prepend() {
19         sed -e "/^SUBLEVEL = /d" -i ${S}/Makefile
20 }
21 do_compile_append() {
22         gzip < vmlinux > vmlinuz
23 }
24
25 require linux-dreambox.inc
26 require linux-extra-image.inc
27 require linux-rdepends.inc
28
29 CMDLINE = "bmem=384M@640M memc1=768M console=ttyS0,1000000 root=/dev/mmcblk0p1 rootwait rootfstype=ext4"
30 COMPATIBLE_MACHINE = "^(dm820|dm7080)$"
31
32 DEFCONFIG = "${MACHINE}"
33 KERNEL_VERSION = "3.4-3.0-${MACHINE}"
34 KERNEL_IMAGETYPE = "vmlinux.bin"
35 KERNEL_ALT_IMAGETYPE = "vmlinux"
36 KERNEL_EXTRA_IMAGETYPE = "vmlinuz"
37 KERNEL_EXTRA_OUTPUT = "vmlinuz"
38 KERNEL_ENABLE_CGROUPS = "1"
39
40 RDEPENDS_kernel-image = "flash-scripts"
41
42 pkg_postinst_kernel-image () {
43 if [ -z "$D" ]; then
44     flash-kernel /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION}
45 fi
46 }