meta-bsp/common: rename to meta-dreambox
[opendreambox.git] / meta-bsp / dm7080 / recipes-kernel / linux / linux-dreambox_3.4.bb
1 PATCHREV = "e96a955739a2f6a0da1efc7ffd3fc3dc7165511d"
2 PATCHLEVEL = "101"
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] = "bc5a50cfaea51528e0f78b5d19684a8d"
12 SRC_URI[stable-patch.sha256sum] = "4f208c4ac5d76580680d9fa8fd35d5d35c7699565a59280d5173d66538c0a219"
13 SRC_URI[dream-patch.md5sum] = "6301c34f5f0c36ed297e6c31cc326022"
14 SRC_URI[dream-patch.sha256sum] = "f8d33822468fd514132d6d2f394ba24ab364d546b6bc43bf08eb9098af60e29e"
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 = "^(dm7080)$"
31
32 DEFCONFIG = "dm7080"
33 KERNEL_VERSION = "3.4-3.0-dm7080"
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 }