diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-26 22:22:44 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-26 22:22:44 +0000 |
commit | 4952c7e0fede3efbaf5bb9b1e153daa5071ef6a5 (patch) | |
tree | f705b0e1e1ea9aa10e4786212eed4a7685362e43 /meta/packages/tasks/task-base.bb | |
parent | 36a7962e7428a79c5bde3f3b0fd36ce3ed19b439 (diff) | |
download | poky-4952c7e0fede3efbaf5bb9b1e153daa5071ef6a5.tar.gz |
Totally rework task handling for machine/distro specific features. Create task-base.bb to handle this and update machine/distro files accordingly. MACHINE_FEATURES and DISTRO_FEATURES together combine to configure the machine specific task-base and other specific tasks can easily be created (task-base-oh-minimal is an exmaple)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@562 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/tasks/task-base.bb')
-rw-r--r-- | meta/packages/tasks/task-base.bb | 246 |
1 files changed, 246 insertions, 0 deletions
diff --git a/meta/packages/tasks/task-base.bb b/meta/packages/tasks/task-base.bb new file mode 100644 index 0000000000..d2db0dd298 --- /dev/null +++ b/meta/packages/tasks/task-base.bb | |||
@@ -0,0 +1,246 @@ | |||
1 | DESCRIPTION = "Machine Tasks for OpenedHand Poky" | ||
2 | MAINTAINER = "Richard Purdie <richard@openedhand.com>" | ||
3 | PR = "r0" | ||
4 | |||
5 | PACKAGES = "task-base \ | ||
6 | task-base-oh-minimal" | ||
7 | |||
8 | ALLOW_EMPTY = "1" | ||
9 | |||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
11 | |||
12 | # Valid only in MACHINE_FEATURES: | ||
13 | # | ||
14 | # kernel24 | ||
15 | # kernel26 | ||
16 | # apm | ||
17 | |||
18 | # Valid COMBINED_FEATURES: | ||
19 | # (These features need to be supported by both the machine and the distro) | ||
20 | # | ||
21 | # alsa | ||
22 | # bluetooth | ||
23 | # ext2 | ||
24 | # irda | ||
25 | # pcmcia | ||
26 | # usbgadget | ||
27 | # usbhost | ||
28 | |||
29 | # Valid only in DISTO_FEATURES: | ||
30 | # | ||
31 | # nfs | ||
32 | # smbfs | ||
33 | # ipsec | ||
34 | # wifi | ||
35 | # ppp | ||
36 | |||
37 | MACHINE_FEATURES ?= "kernel26" | ||
38 | DISTRO_FEATURES ?= "" | ||
39 | |||
40 | DISTRO_EXTRA_RDEPENDS ?= "" | ||
41 | DISTRO_EXTRA_RRECOMMENDS ?= "" | ||
42 | MACHINE_EXTRA_RDEPENDS ?= "" | ||
43 | MACHINE_EXTRA_RRECOMMENDS ?= "" | ||
44 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" | ||
45 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" | ||
46 | |||
47 | |||
48 | COMBINED_FEATURES = "\ | ||
49 | ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "alsa", d)} \ | ||
50 | ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "bluetooth", d)} \ | ||
51 | ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "ext2", d)} \ | ||
52 | ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "irda", d)} \ | ||
53 | ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "pcmcia", d)} \ | ||
54 | ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "usbgadget", d)} \ | ||
55 | ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "usbhost", d)}" | ||
56 | |||
57 | |||
58 | # | ||
59 | # task-base | ||
60 | # | ||
61 | RDEPENDS_task-base = "\ | ||
62 | kernel \ | ||
63 | ${@base_contains("MACHINE_FEATURES", "kernel26", "${task-base-kernel26-rdepends}", "",d)} \ | ||
64 | # ${@base_contains("MACHINE_FEATURES", "kernel26", "${task-base-kernel26-extras-rdepends}", "",d)} \ | ||
65 | ${@base_contains("MACHINE_FEATURES", "apm", "${task-base-apm-rdepends}", "",d)} \ | ||
66 | ${@base_contains("COMBINED_FEATURES", "alsa", "${task-base-alsa-rdepends}", "",d)} \ | ||
67 | ${@base_contains("COMBINED_FEATURES", "ext2", "${task-base-ext2-rdepends}", "",d)} \ | ||
68 | ${@base_contains("COMBINED_FEATURES", "irda", "${task-base-irda-rdepends}", "",d)} \ | ||
69 | ${@base_contains("COMBINED_FEATURES", "pcmcia", "${task-base-pcmcia-rdepends}", "",d)} \ | ||
70 | ${@base_contains("DISTRO_FEATURES", "ipsec", "${task-distro-ipsec-rdepends}", "",d)} \ | ||
71 | ${@base_contains("DISTRO_FEATURES", "ppp", "${task-distro-ppp-rdepends}", "",d)} \ | ||
72 | ${@base_contains("DISTRO_FEATURES", "wifi", "${task-distro-wifi-rdepends}", "",d)} \ | ||
73 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \ | ||
74 | ${MACHINE_EXTRA_RDEPENDS} \ | ||
75 | ${DISTRO_EXTRA_RDEPENDS}" | ||
76 | |||
77 | RRECOMMENDS_task-base = "\ | ||
78 | ${@base_contains("MACHINE_FEATURES", "kernel26", "${task-base-kernel26-extras-rrecommends}", "",d)} \ | ||
79 | ${@base_contains("COMBINED_FEATURES", "alsa", "${task-base-alsa-rrecommends}", "",d)} \ | ||
80 | ${@base_contains("COMBINED_FEATURES", "pcmcia", "${task-base-pcmcia-rrecommends}", "",d)} \ | ||
81 | ${@base_contains("COMBINED_FEATURES", "bluetooth", "${task-base-bluetooth-rrecommends}", "",d)} \ | ||
82 | ${@base_contains("COMBINED_FEATURES", "irda", "${task-base-irda-rrecommends}", "",d)} \ | ||
83 | ${@base_contains("COMBINED_FEATURES", "usbgadget", "${task-base-usbgadget-rrecommends}", "",d)} \ | ||
84 | ${@base_contains("COMBINED_FEATURES", "usbhost", "${task-base-usbhost-rrecommends}", "",d)} \ | ||
85 | ${@base_contains("DISTRO_FEATURES", "ppp", "${task-distro-ppp-rrecommends}", "",d)} \ | ||
86 | ${@base_contains("DISTRO_FEATURES", "nfs", "${task-distro-nfs-rrecommends}", "",d)} \ | ||
87 | ${@base_contains("DISTRO_FEATURES", "ipsec", "${task-distro-ipsec-rrecommends}", "",d)} \ | ||
88 | ${@base_contains("DISTRO_FEATURES", "cramfs", "${task-distro-cramfs-rrecommends}", "",d)} \ | ||
89 | ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS} \ | ||
90 | ${MACHINE_EXTRA_RRECOMMENDS} \ | ||
91 | ${DISTRO_EXTRA_RRECOMMENDS}" | ||
92 | |||
93 | |||
94 | # | ||
95 | # task-base-oh-minimal | ||
96 | # | ||
97 | RDEPENDS_task-base-oh-minimal = "\ | ||
98 | kernel \ | ||
99 | ${@base_contains("MACHINE_FEATURES", "kernel26", "${task-base-kernel26-rdepends}", "",d)} \ | ||
100 | ${@base_contains("MACHINE_FEATURES", "apm", "${task-base-apm-rdepends}", "",d)} \ | ||
101 | ${@base_contains("COMBINED_FEATURES", "pcmcia", "${PCMCIA_MANAGER}", "",d)} \ | ||
102 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}" | ||
103 | |||
104 | RRECOMMENDS_task-base-minimal = "\ | ||
105 | ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}" | ||
106 | |||
107 | task-base-kernel26-rdepends = "\ | ||
108 | udev \ | ||
109 | keymaps \ | ||
110 | sysfsutils \ | ||
111 | module-init-tools" | ||
112 | |||
113 | #task-base-kernel26-extras-rdepends = "\ | ||
114 | # udev-utils" | ||
115 | |||
116 | task-base-kernel26-extras-rrecommends = "\ | ||
117 | kernel-module-input \ | ||
118 | kernel-module-uinput" | ||
119 | |||
120 | task-base-apm-rdepends = "\ | ||
121 | apm \ | ||
122 | apmd \ | ||
123 | ${@base_contains("MACHINE_FEATURES", "kernel24", "network-suspend-scripts", "",d)}" | ||
124 | |||
125 | task-base-ext2-rdepends = "\ | ||
126 | hdparm \ | ||
127 | e2fsprogs \ | ||
128 | e2fsprogs-e2fsck \ | ||
129 | e2fsprogs-mke2fs" | ||
130 | |||
131 | task-base-alsa-rdepends = "\ | ||
132 | alsa-utils-alsactl \ | ||
133 | alsa-utils-alsamixer \ | ||
134 | alsa-conf" | ||
135 | |||
136 | task-base-alsa-rrecommends = "\ | ||
137 | kernel-module-snd-mixer-oss \ | ||
138 | kernel-module-snd-pcm-oss" | ||
139 | |||
140 | task-base-pcmcia-rdepends = "\ | ||
141 | ${PCMCIA_MANAGER} \ | ||
142 | ${@base_contains("DISTRO_FEATURES", "wifi", "prism3-firmware", "",d)} \ | ||
143 | ${@base_contains("DISTRO_FEATURES", "wifi", "prism3-support", "",d)} \ | ||
144 | ${@base_contains("DISTRO_FEATURES", "wifi", "spectrum-fw", "",d)} \ | ||
145 | ${@base_contains("DISTRO_FEATURES", "wifi", "hostap-conf", "",d)} \ | ||
146 | ${@base_contains("DISTRO_FEATURES", "wifi", "orinoco-conf", "",d)}" | ||
147 | |||
148 | task-base-pcmcia-rrecommends = "\ | ||
149 | kernel-module-airo-cs \ | ||
150 | kernel-module-pcnet-cs \ | ||
151 | kernel-module-serial-cs \ | ||
152 | kernel-module-hostap-cs \ | ||
153 | kernel-module-ide-cs \ | ||
154 | ${@base_contains("DISTRO_FEATURES", "wifi", "kernel-module-orinoco-cs", "",d)} \ | ||
155 | ${@base_contains("DISTRO_FEATURES", "wifi", "kernel-module-spectrum-cs", "",d)}" | ||
156 | |||
157 | task-base-bluetooth-rrecommends = "\ | ||
158 | kernel-module-bluetooth \ | ||
159 | kernel-module-l2cap \ | ||
160 | kernel-module-rfcomm \ | ||
161 | kernel-module-hci-vhci \ | ||
162 | kernel-module-bnep \ | ||
163 | kernel-module-hidp \ | ||
164 | kernel-module-hci-uart \ | ||
165 | kernel-module-sco \ | ||
166 | ${@base_contains("COMBINED_FEATURES", "pcmcia", "kernel-module-bluetooth3c-cs", "",d)} \ | ||
167 | ${@base_contains("COMBINED_FEATURES", "pcmcia", "kernel-module-bluecard-cs", "",d)} \ | ||
168 | ${@base_contains("COMBINED_FEATURES", "pcmcia", "kernel-module-bluetoothuart-cs", "",d)} \ | ||
169 | ${@base_contains("COMBINED_FEATURES", "pcmcia", "kernel-module-dtl1-cs", "",d)}" | ||
170 | |||
171 | task-base-irda-rdepends = "\ | ||
172 | irda-utils" | ||
173 | |||
174 | task-base-irda-rrecommends = "\ | ||
175 | kernel-module-pxaficp-ir \ | ||
176 | kernel-module-irda \ | ||
177 | kernel-module-ircomm \ | ||
178 | kernel-module-ircomm-tty \ | ||
179 | kernel-module-irlan \ | ||
180 | kernel-module-irnet \ | ||
181 | kernel-module-irport \ | ||
182 | kernel-module-irtty \ | ||
183 | kernel-module-ir-usb" | ||
184 | |||
185 | task-base-usbgadget-rrecommends = "\ | ||
186 | kernel-module-gadgetfs \ | ||
187 | kernel-module-g-file-storage \ | ||
188 | kernel-module-g-serial \ | ||
189 | kernel-module-g-ether" | ||
190 | |||
191 | task-base-usbhost-rrecommends = "\ | ||
192 | " | ||
193 | |||
194 | task-distro-ppp-rdepends = "\ | ||
195 | ppp \ | ||
196 | ppp-dialin" | ||
197 | |||
198 | task-distro-ppp-rrecommends = "\ | ||
199 | kernel-module-ppp-async \ | ||
200 | kernel-module-ppp-deflate \ | ||
201 | kernel-module-ppp-mppe" | ||
202 | |||
203 | task-distro-ipsec-rdepends = "\ | ||
204 | openswan" | ||
205 | |||
206 | task-distro-ipsec-rrecommends = "\ | ||
207 | kernel-module-ipsec" | ||
208 | |||
209 | task-distro-wifi-rdepends = "\ | ||
210 | wireless-tools \ | ||
211 | hostap-utils \ | ||
212 | wpa-supplicant-nossl" | ||
213 | |||
214 | task-distro-smbfs-rrecommends = "\ | ||
215 | kernel-module-smbfs" | ||
216 | |||
217 | task-distro-cramfs-rrecommends = "\ | ||
218 | kernel-module-cramfs" | ||
219 | |||
220 | task-distro-nfs-rrecommends = "\ | ||
221 | kernel-module-nfs \ | ||
222 | kernel-module-lockd \ | ||
223 | kernel-module-sunrpc" | ||
224 | |||
225 | |||
226 | # Tosort | ||
227 | # kernel-module-ipv6 | ||
228 | # kernel-module-ipsec | ||
229 | # kernel-module-nvrd | ||
230 | # kernel-module-mip6-mn | ||
231 | # kernel-module-tun | ||
232 | # kernel-module-ide-disk | ||
233 | # kernel-module-ide-probe-mo | ||
234 | # kernel-module-loop | ||
235 | # kernel-module-vfat | ||
236 | # kernel-module-ext2 | ||
237 | # kernel-module-nfs | ||
238 | # kernel-module-sco | ||
239 | # kernel-module-af_packet | ||
240 | # kernel-module-ip-gre | ||
241 | # kernel-module-ip-tables | ||
242 | # kernel-module-ipip | ||
243 | # kernel-module-des | ||
244 | # kernel-module-md5 | ||
245 | # kernel-module-8250 | ||
246 | # Should be DISTRO_EXTRA_RRECOMMENDS: lrzsz | ||