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
|
require linux.inc
S = "${WORKDIR}/linux-${PV}"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
file://defconfig \
file://tsc2003.c \
file://tsc2003-config.diff;patch=1 \
file://pxa-regs-additions.patch;patch=1 \
file://header.patch;patch=1 \
file://arch-config.patch;patch=1 \
file://board-init.patch;patch=1 \
file://compact-flash.patch;patch=1 \
file://flash.patch;patch=1 \
file://pxa2xx_udc.patch;patch=1 \
file://bkpxa-pxa-cpu.patch;patch=1 \
file://bkpxa-pxa-cpufreq.patch;patch=1 \
file://proc-gpio.patch;patch=1 \
file://serial-ether-addr.patch;patch=1 \
file://cpufreq-better-freqs.patch;patch=1 \
file://ethernet-config.patch;patch=1 \
file://smc-ether-addr.patch;patch=1 \
file://cpufreq-ondemand-by-default.patch;patch=1 \
file://modular-init-bluetooth.patch;patch=1 \
file://modular-init-smc91x.patch;patch=1 \
file://modular-init-usb-gadget.patch;patch=1 \
file://bugfix-i2c-include.patch;patch=1 \
file://bugfix-mmc-clock.patch;patch=1 \
file://bugfix-pxa-cpufreq.patch;patch=1 \
file://bugfix-serial-interrupt.patch;patch=1 \
file://bugfix-serial-register-status.patch;patch=1 \
file://mach-types-fix.patch;patch=1 \
file://pcm-gcc-411-bugfix.patch;patch=1 \
file://ucb1400-ac97-audio.patch;patch=1 \
file://gumstix-asoc.patch;patch=1 \
file://disable-uncompress-message.patch;patch=1 \
file://serial-divisor.patch;patch=1 \
file://mmc-card-detect.patch;patch=1 \
file://misalignment-handling.patch;patch=1 \
file://compile-fix-pxa_cpufreq.patch;patch=1 \
file://pxafb-definition.patch;patch=1 \
file://270-usb-gadget-udc.patch;patch=1 \
file://gumstix-pxa270-usb-host.patch;patch=1 \
file://cpufreq-fixup.patch;patch=1 \
file://uImage-in-own-partition.patch;patch=1 \
file://pxa-regs-fixup.patch;patch=1 \
file://gumstix-fb-logo.patch;patch=1 \
file://gumstix-pxa270-mmc.patch;patch=1 \
file://pxafb-18bpp-mode.patch;patch=1 \
file://smc911x-fixup.patch;patch=1 \
file://smc91x-fail-if-no-chip.patch;patch=1 \
file://one-wire.patch;patch=1 \
${@base_contains('MACHINE_FEATURES', 'rgb16','file://pxafb-backto16.patch;patch=1', '',d)} \
"
do_configure_prepend() {
cp ${WORKDIR}/tsc2003.c ${S}/drivers/i2c/chips/
# turn off frame buffer support in kernel if lcd MACHINE_FEATURES not defined
${@base_contains('MACHINE_FEATURES', 'lcd','','sed -i "s/CONFIG_FB=y/# CONFIG_FB is not set/" ${WORKDIR}/defconfig',d)}
${@base_contains('MACHINE_FEATURES', 'lcd','','sed -i "s/CONFIG_FB_PXA=y/# CONFIG_FB_PXA is not set/" ${WORKDIR}/defconfig',d)}
${@base_contains('MACHINE_FEATURES', 'lcd','','sed -i "s/CONFIG_FRAMEBUFFER_CONSOLE=y/# CONFIG_FRAMEBUFFER_CONSOLE is not set/" ${WORKDIR}/defconfig',d)}
${@base_contains('MACHINE_FEATURES', 'lcd','','sed -i "s/CONFIG_LOGO=y/# CONFIG_LOGO is not set/" ${WORKDIR}/defconfig',d)}
# if mmcroot MACHINE_FEATURES requested disable jffs2 and enable mmc and ext2 support in kernel
${@base_contains('MACHINE_FEATURES', 'mmcroot','sed -i "s/CONFIG_JFFS2_FS=y/CONFIG_JFFS2_FS=m/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'mmcroot','sed -i "s/CONFIG_EXT2_FS=m/CONFIG_EXT2_FS=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'mmcroot','sed -i "s/CONFIG_MMC=m/CONFIG_MMC=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'mmcroot','sed -i "s/CONFIG_MMC_PXA=m/CONFIG_MMC_PXA=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'mmcroot','sed -i "s/CONFIG_MMC_BLOCK=m/CONFIG_MMC_BLOCK=y/" ${WORKDIR}/defconfig','',d)}
# if cfroot MACHINE_FEATURES requested disable jffs2 and enable pcmcia and ext2 support in kernel
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_JFFS2_FS=y/CONFIG_JFFS2_FS=m/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_EXT2_FS=m/CONFIG_EXT2_FS=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_PCCARD=m/CONFIG_PCCARD=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_PCMCIA=m/CONFIG_PCMCIA=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_PCMCIA_PXA2XX=m/CONFIG_PCMCIA_PXA2XX=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_IDE=m/CONFIG_IDE=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_BLK_DEV_IDE=m/CONFIG_BLK_DEV_IDE=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_BLK_DEV_IDEDISK=m/CONFIG_BLK_DEV_IDEDISK=y/" ${WORKDIR}/defconfig','',d)}
${@base_contains('MACHINE_FEATURES', 'cfroot','sed -i "s/CONFIG_BLK_DEV_IDECS=m/CONFIG_BLK_DEV_IDECS=y/" ${WORKDIR}/defconfig','',d)}
}
SRC_URI[md5sum] = "1b515f588078dfa7f4bab2634bd17e80"
SRC_URI[sha256sum] = "f187b12d70e0a48ce81f0472dfe9504fb5f0f966be339ac9d57dd2b991a74942"
|