summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-gumstix_2.6.15.bb
blob: bd11cf464eec4a8416049535301d2545355b4017 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
DESCRIPTION = "Linux Kernel for the Gumstix"
SECTION = "kernel"
LICENSE = "GPLv2"
PR = "r2"

DEPENDS = "u-boot-utils-native"

COMPATIBLE_MACHINE = "gumstix"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
		   cvs://anoncvs:anoncvs@cvs.infradead.org/home/cvs;module=mtd;date=20060223 \
           file://defconfig-gumstix \
		   file://arch-config.patch;apply=yes \
		   file://board-init.patch;apply=yes \
		   file://compact-flash.patch;apply=yes \
		   file://defconfig.patch;apply=yes \
		   file://flash.patch;apply=yes \
		   file://header.patch;apply=yes \
		   file://kconfig-arch-cleanup.patch;apply=yes \
		   file://pxa255-gpio-count-bugfix.patch;apply=yes \
		   file://pxa2xx_udc.patch;apply=yes \
		   file://bkpxa-pxa-cpu.patch;apply=yes \
		   file://bkpxa-pxa-cpufreq.patch;apply=yes \
		   file://bkpxa-pxa-ac97.patch;apply=yes \
		   file://rmk-2022-2-rtctime-sa110-pxa255-driver.patch;apply=yes \
		   file://proc-gpio.patch;apply=yes \
		   file://serial-ether-addr.patch;apply=yes \
		   file://cpufreq-better-freqs.patch;apply=yes \
		   file://ethernet-config.patch;apply=yes \
		   file://smc-ether-addr.patch;apply=yes \
		   file://audio.patch;apply=yes \
		   file://cpufreq-ondemand-by-default.patch;apply=yes \
		   file://modular-init-bluetooth.patch;apply=yes \
		   file://modular-init-smc91x.patch;apply=yes \
		   file://modular-init-usb-gadget.patch;apply=yes \
		   file://bugfix-i2c-include.patch;apply=yes \
		   file://bugfix-mmc-clock.patch;apply=yes \
		   file://bugfix-mtd-onenand.patch;apply=yes \
		   file://bugfix-pxa-audio.patch;apply=yes \
		   file://bugfix-pxa-cpufreq.patch;apply=yes \
		   file://bugfix-pxa-serial-mctrl.patch;apply=yes \
		   file://bugfix-rndis.patch;apply=yes \
		   file://bugfix-serial-interrupt.patch;apply=yes \
		   file://bugfix-serial-register-status.patch;apply=yes \
		   file://mach-types-fix.patch;apply=yes \
		   file://mmc-version4.patch;apply=yes \
		   file://kernel-osx.patch;apply=yes \
		   file://ucb1400-touchscreen.patch;apply=yes \
		   file://add_input_randomness_export.patch;apply=yes \
		   file://kobject_get_path_export.patch;apply=yes \
		   file://ucb1400-ac97-audio.patch;apply=yes \
		   file://i2c-gpl-module-fix.patch;apply=yes  \
		   file://disable-uncompress-message.patch;apply=yes \
		   file://gumstix-mmc.patch;apply=yes \
		   file://rmk_pxa_mmc_timeout.patch;apply=yes"

S = "${WORKDIR}/linux-${PV}"

inherit kernel

COMPATIBLE_HOST = "arm.*-linux"
ARCH = "arm"
KERNEL_IMAGETYPE = "uImage"

do_unpack_extra() {
	cd ${WORKDIR}/mtd
	./patchkernel.sh -c -2 -y ${WORKDIR}/linux-${PV}
}
addtask unpack_extra after do_unpack before do_patch

do_configure_prepend() {
	install -m 0644 ${WORKDIR}/defconfig-gumstix ${S}/.config
}

do_deploy_append() {
        ${HOST_PREFIX}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux arch/arm/boot/compressed/linux.bin
        mkimage -A arm -O linux -T kernel -C none -a 0xa0008000 -e 0xa0008000 -n "gumstix" -d arch/arm/boot/compressed/linux.bin arch/arm/boot/uImage
		install -d ${DEPLOY_DIR_IMAGE}
		cp arch/arm/boot/uImage ${DEPLOY_DIR_IMAGE}/uImage-${PN}-${PV}
}

PACKAGES += "kernel-modules-sound kernel-modules-bluetooth kernel-modules-pcmcia kernel-modules-ide kernel-modules-ethernet kernel-modules-wireless kernel-modules-usb kernel-modules-mmc kernel-modules-fat kernel-modules-nfs"

ALLOW_EMPTY_kernel-modules-sound = "1"
ALLOW_EMPTY_kernel-modules-bluetooth = "1"
ALLOW_EMPTY_kernel-modules-pcmcia = "1"
ALLOW_EMPTY_kernel-modules-ide = "1"
ALLOW_EMPTY_kernel-modules-ethernet = "1"
ALLOW_EMPTY_kernel-modules-wireless = "1"
ALLOW_EMPTY_kernel-modules-usb = "1"
ALLOW_EMPTY_kernel-modules-mmc = "1"
ALLOW_EMPTY_kernel-modules-fat = "1"
ALLOW_EMPTY_kernel-modules-nfs = "1"

RDEPENDS_kernel-modules-sound = "kernel-module-soundcore kernel-module-snd kernel-module-snd-timer kernel-module-snd-pxa2xx-pcm kernel-module-snd-pxa2xx-ac97 kernel-module-snd-pcm kernel-module-snd-pcm-oss kernel-module-snd-page-alloc kernel-module-snd-mixer-oss kernel-module-snd-ac97-codec kernel-module-snd-ac97-bus"
RDEPENDS_kernel-modules-bluetooth = "kernel-module-bluetooth kernel-module-bnep kernel-module-gumstix-bluetooth kernel-module-hci-uart kernel-module-l2cap kernel-module-sco kernel-module-rfcomm"
RDEPENDS_kernel-modules-pcmcia = "kernel-module-pcmcia-core kernel-module-pcmcia kernel-module-pxa2xx-core kernel-module-pxa2xx-cs "
RDEPENDS_kernel-modules-ide = "kernel-modules-pcmcia kernel-module-ide-core kernel-module-ide-cs kernel-module-ide-disk kernel-module-ide-generic kernel-module-firmware-class"
RDEPENDS_kernel-modules-ethernet = "kernel-module-mii kernel-module-smc91x kernel-module-gumstix-smc91x"
RDEPENDS_kernel-modules-wireless = "kernel-module-ieee80211 kernel-module-ieee80211-crypt kernel-module-ieee80211-crypt-wep kernel-modules-pcmcia kernel-module-hermes kernel-module-hostap-cs kernel-module-hostap kernel-module-orinoco kernel-module-orinoco-cs kernel-module-spectrum-cs"
RDEPENDS_kernel-modules-usb = "kernel-module-gumstix-gadget kernel-module-g-ether kernel-module-pxa2xx-udc "
RDEPENDS_kernel-modules-mmc = "kernel-module-mmc-core kernel-module-mmc-block kernel-module-pxamci"
RDEPENDS_kernel-modules-fat = "kernel-module-vfat kernel-module-nls-base kernel-module-fat kernel-module-nls-cp437 kernel-module-nls-iso8859-1"
RDEPENDS_kernel-modules-nfs = "kernel-module-nfs kernel-module-sunrpc kernel-module-lockd"

module_autoload_pxamci = "pxamci"
module_autoload_mmc_block = "mmc_block"
module_autoload_gumstix_gadget = "gumstix_gadget"
module_autoload_g_ether = "g_ether"

SRC_URI[kernel.md5sum] = "cdf95e00f5111e31f78e1d97304d9522"
SRC_URI[kernel.sha256sum] = "066ec56ce5f57c79a526b6bb3541d32dbf796c11c26c32073fc64b93f09825db"