aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-efikamx_2.6.31.bb
blob: 0484a5b172cac0e7bf6f3a58b261021f3920e015 (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
require linux.inc

DESCRIPTION = "Linux kernel for EfikaMX platform"
KERNEL_IMAGETYPE = "uImage"

COMPATIBLE_MACHINE = "efikamx"
DEFAULT_PREFERENCE = "1"
python do_unpack () {
       bb.build.exec_func('efikamx_kernel_do_unpack', d)
}

efikamx_kernel_do_unpack () {
       mkdir -p ${S}
       tar xf ${DL_DIR}/${PN}-${PV}.tar.lzma --strip-components=1 -C ${S}
       tar xf ${DL_DIR}/patch-${PV}.tar.lzma -C ${S}
       (cd ${S}/patches; ln -s ${FILESPATHBASE}/${PN}-${PV}/remove-localversion.patch .)
}

python do_patch () {
       bb.build.exec_func('efikamx_kernel_do_patch', d)
}

efikamx_kernel_do_patch (){
       ( cd ${S}/patches; ls *.patch >series;cp *.config ${S}/../defconfig)
       ( cd ${S}; quilt push -a)
}


SRC_URI += "http://sources.openembedded.org/${P}.tar.lzma;name=kernel \
            http://sources.openembedded.org/patch-${PV}.tar.lzma;name=patch \
	    file://remove-localversion.patch;apply=no \
           "

SRC_URI[kernel.md5sum] = "c70ce0549cf85de79d5b28db7b552868"
SRC_URI[kernel.sha256sum] = "658395072352cd38477d80c105f00d824c73bf437f0843579d1e0bf41066617f"
SRC_URI[patch.md5sum] = "6c04416bce74dd413f3e82cd17378419"
SRC_URI[patch.sha256sum] = "5c15cffa02089d286fc07ba734b1f33a81d1f7ceaf70e596bd8b82ddd5e73ec2"