aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux_2.6.30.bb
blob: 87b7d2fb1e3e26fa4092fcca681f0fc73874a2bb (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
require linux.inc

PR = "r7"
AT91_EXPERIMENTAL = "4"
S = "${WORKDIR}/linux-${PV}"

# Mark archs/machines that this kernel supports
DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_mpc8315e-rdb = "1"
DEFAULT_PREFERENCE_calamari = "-1"
DEFAULT_PREFERENCE_mx27ads = "1"
DEFAULT_PREFERENCE_kixrp435 = "1"
DEFAULT_PREFERENCE_at91sam9g45ekes	= "2"
DEFAULT_PREFERENCE_at91sam9g45ek	= "2"
DEFAULT_PREFERENCE_at91sam9m10ekes	= "2"
DEFAULT_PREFERENCE_at91sam9m10g45ek	= "2"
DEFAULT_PREFERENCE_at91sam9g10ek	= "2"
DEFAULT_PREFERENCE_at91sam9g20ek	= "2"
DEFAULT_PREFERENCE_ronetix-pm9g45	= "2"
DEFAULT_PREFERENCE_vulcano-g20		= "2"

# machine boots with it, works but was not tested too much
DEFAULT_PREFERENCE_at91sam9263ek = "-1"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
           ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.10.bz2;apply=yes;name=stablepatch \
           file://aufs2-30.patch \
           file://defconfig"

AT91_EXPERIMENTAL_4 = " \
	   ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
	   http://maxim.org.za/AT91RM9200/2.6/${PV}-at91.patch.gz;apply=no;name=at91patch \
	   ftp://www.at91.com/pub/linux/${PV}-at91/${PV}-at91-exp.${AT91_EXPERIMENTAL}.tar.gz;apply=no;name=at91exp${AT91_EXPERIMENTAL} \
	   file://at91/exp.4/0001-Configurable-partition-size.patch;apply=yes \
	   file://at91/exp.4/0002-mach-at91-KConfig-cleanup.patch;apply=yes \
	   http://linux.hd-wireless.se/pub/Linux/BuildSAM9M10EKES/2.6.30-at91-sdio-irq-support-both-slots.patch;apply=yes;name=owlwifi \
	   file://defconfig"

AT91_EXPERIMENTAL_2 = " \
	   ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
	   http://maxim.org.za/AT91RM9200/2.6/2.6.30-at91.patch.gz;apply=yes;name=at91patch \
	   ftp://www.at91.com/pub/buildroot/2.6.30-exp.2.patch.bz2;apply=yes;name=at91exp2 \
	   file://at91/linux-2.6.30-001-configurable-partition-size.patch.patch \
	   file://at91/linux-2.6.30-002-mach-at91-Kconfig.patch \
	   file://at91/linux-2.6.30-003-sam9m10g45ek.patch \
	   file://defconfig"

at91sam_patch = " \
		"

SRC_URI_at91sam9m10ekes = "${AT91_EXPERIMENTAL_4}"
SRC_URI_at91cap9stk	= "${AT91_EXPERIMENTAL_4}"
SRC_URI_at91		= "${AT91_EXPERIMENTAL_2}"

SRC_URI_append_at91sam9260ek = ${at91sam_patch}
SRC_URI_append_at91sam9261ek = ${at91sam_patch}
SRC_URI_append_at91sam9263ek = ${at91sam_patch}
SRC_URI_append_at91sam9g10ek = ${at91sam_patch}
SRC_URI_append_at91sam9g20ek = ${at91sam_patch}
SRC_URI_append_at91sam9g20ek_2mmc = ${at91sam_patch}
SRC_URI_append_at91sam9g45ekes = ${at91sam_patch}
SRC_URI_append_at91sam9m10ekes = ${at91sam_patch}
SRC_URI_append_at91sam9m10g45ek = ${at91sam_patch}
SRC_URI_append_at91sam9rlek = ${at91sam_patch}
SRC_URI_append_at91sam9xeek = ${at91sam_patch}

#do_patch_prepend_at91sam9m10ekes() {
#	bb.build.exec_func('do_apply_at91_exp_patch', d)
#}

addtask do_apply_at91_exp_patch before do_patch after do_unpack

do_apply_at91_exp_patch () {
	cd	${WORKDIR}
	cd	${S}
	cat	../${PV}-at91.patch	| patch -p1
	for	f in `ls ../${PV}-at91-exp.${AT91_EXPERIMENTAL}/*.patch` ; do
		cat $f	| patch -p1
	done
}


SRC_URI_ronetix-pm9g45 = " \
	   ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
           ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.10.bz2;apply=yes;name=stablepatch \
	   http://download.ronetix.info/boards/linux/kernel/2.6.30/2.6.30-at91.patch.gz;apply=yes \
	   file://2.6.30-at91-exp.patch \
           file://0001-ads7846-.c-and-.h-add-swap_xy.patch \
           file://0002-add-pm9g45-number-in-mach-types.patch \
           file://0003-print-some-more-info-from-atmel_nand.c.patch \
           file://0004-add-newline-at-the-end-of-uncorrectable-error.patch \
           file://0005-Add-CompactFlash-to-at91sam9g45-architecture.patch \
           file://0006-pm9g45-system-ram-can-be-on-CS1-or-CS6.patch \
           file://0007-add-pm9g45-board.patch \
           file://0008-pm9g45-default-configuration-files.patch \
           file://0009-add-float-flags-in-Makefile.patch \
           file://0010-conditional-compile-if-DEDICATED_VRAM.patch \
           file://0011-add-pm9g45-board-version-1.2-and-adjust-memory-sele.patch \
	   file://defconfig"

#	   http://download.ronetix.info/boards/linux/kernel/2.6.30/

SRC_URI_vulcano-g20 = " \
	   ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
	   ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.10.bz2;apply=yes;name=stablepatch \
	    file://0001-linux-Add-VulcanoG20-in-mach-at91-Kconfig.patch \
	    file://0002-linux-Add-VulcanoG20-in-mach-at91-Makefile.patch \
	    file://0003-linux-Add-AT45DB0642-in-bin-page-mode-mtd_dataflash.patch \
	    file://0004-linux-Add-VulcanoG20-support.patch \
	    file://defconfig"


SRC_URI_append_mpc8315e-rdb = " file://mpc8315erdb-add-msi-to-dts.patch"

# SRC_URI_append_at91sam9263ek = " file://hrw-linux-2.6.30-exp.patch "

SRC_URI[kernel.md5sum] = "7a80058a6382e5108cdb5554d1609615"
SRC_URI[kernel.sha256sum] = "d7b9f19b92fd5c693c16cd62f441d051b699f28ec6a175d1b464e58bacd8c78f"

SRC_URI[stablepatch.md5sum] = "6485fe0cf0f0220493647505bfd2f7b0"
SRC_URI[stablepatch.sha256sum] = "a1ffb806d7d0083aa8d0525cbccede4172f4a44c8df1ddfeece629b6d8304201"
SRC_URI[at91patch.md5sum] = "f13ab353b11329ce3d605b6f40e77fa6"
SRC_URI[at91patch.sha256sum] = "41991e8aa2e5fe8e5dfd47b1e5c446fa03c3ee96a5eae54fd6ec15d1d9afef30"
SRC_URI[at91exp2.md5sum] = "770c7a2bfb925111a8c0e0d4c8c4764e"
SRC_URI[at91exp2.sha256sum] = "58894965b253eae0c4caacedc3463cf186c18431ca0d71b767a3b36aa40ec388"
SRC_URI[at91exp4.md5sum] = "9ca9901af101d9966a3acf80193bfd7d"
SRC_URI[at91exp4.sha256sum] = "b948199be87cf9ba280ea649aa1b477b36344a44aae52fdc3bb56344adf73f76"

SRC_URI[owlwifi.md5sum] = "5ead573ee187ebd723569ec54186e99a"
SRC_URI[owlwifi.sha256sum] = "8ee739bf171e878bbd9a02113f3a6a5287a3653dec71e4c11515c2c890f31c62"