Merge bk://oe-devel@oe-devel.bkbits.net/packages
[vuplus_openembedded] / linux / gumstix_2.6.5-gnalm1-gum0.oe
1 SECTION = "kernel"
2 DESCRIPTION = "Linux kernel for OMAP processors"
3 LICENSE = "GPL"
4
5 # NOTE: pulled local linux-2.6.5-gnalm1, since it didn't apply cleanly
6 SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.bz2 \
7            file://linux-2.6.5-gnalm1.patch;patch=1 \
8            http://gumstix.superlucidity.net/downloads/kernel/patches/linux-2.6.5-gnalm1-gum0.patch;patch=1 \
9            file://defconfig"
10 S = "${WORKDIR}/linux-2.6.5"
11
12 inherit kernel
13
14 KERNEL_IMAGETYPE = "zImage"
15
16 do_configure_prepend() {
17         install -m 0644 ${WORKDIR}/defconfig ${S}/.config || die "no default configuration for ${MACHINE} available."
18         oe_runmake oldconfig
19 }
20
21 python __anonymous () {
22         import re
23         host = oe.data.getVar('HOST_SYS', d, 1)
24         if not re.match('arm.*-linux', host):
25                 raise oe.parse.SkipPackage("incompatible with host %s" % host)
26 }