diff options
Diffstat (limited to 'meta/recipes-core/packagegroups/packagegroup-base.bb')
-rw-r--r-- | meta/recipes-core/packagegroups/packagegroup-base.bb | 366 |
1 files changed, 366 insertions, 0 deletions
diff --git a/meta/recipes-core/packagegroups/packagegroup-base.bb b/meta/recipes-core/packagegroups/packagegroup-base.bb new file mode 100644 index 0000000000..f4b2cd574d --- /dev/null +++ b/meta/recipes-core/packagegroups/packagegroup-base.bb | |||
@@ -0,0 +1,366 @@ | |||
1 | SUMMARY = "Merge machine and distro options to create a basic machine task/package" | ||
2 | LICENSE = "MIT" | ||
3 | PR = "r83" | ||
4 | |||
5 | # | ||
6 | # packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH | ||
7 | # | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | inherit packagegroup | ||
11 | |||
12 | PROVIDES = "${PACKAGES}" | ||
13 | PACKAGES = ' \ | ||
14 | packagegroup-base \ | ||
15 | packagegroup-base-extended \ | ||
16 | packagegroup-distro-base \ | ||
17 | packagegroup-machine-base \ | ||
18 | \ | ||
19 | ${@bb.utils.contains("MACHINE_FEATURES", "acpi", "packagegroup-base-acpi", "",d)} \ | ||
20 | ${@bb.utils.contains("MACHINE_FEATURES", "alsa", "packagegroup-base-alsa", "", d)} \ | ||
21 | ${@bb.utils.contains("MACHINE_FEATURES", "apm", "packagegroup-base-apm", "", d)} \ | ||
22 | ${@bb.utils.contains("MACHINE_FEATURES", "ext2", "packagegroup-base-ext2", "", d)} \ | ||
23 | ${@bb.utils.contains("MACHINE_FEATURES", "vfat", "packagegroup-base-vfat", "", d)} \ | ||
24 | ${@bb.utils.contains("MACHINE_FEATURES", "irda", "packagegroup-base-irda", "",d)} \ | ||
25 | ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "packagegroup-base-keyboard", "", d)} \ | ||
26 | ${@bb.utils.contains("MACHINE_FEATURES", "pci", "packagegroup-base-pci", "",d)} \ | ||
27 | ${@bb.utils.contains("MACHINE_FEATURES", "pcmcia", "packagegroup-base-pcmcia", "", d)} \ | ||
28 | ${@bb.utils.contains("MACHINE_FEATURES", "phone", "packagegroup-base-phone", "", d)} \ | ||
29 | ${@bb.utils.contains("MACHINE_FEATURES", "serial", "packagegroup-base-serial", "", d)} \ | ||
30 | ${@bb.utils.contains("MACHINE_FEATURES", "usbgadget", "packagegroup-base-usbgadget", "", d)} \ | ||
31 | ${@bb.utils.contains("MACHINE_FEATURES", "usbhost", "packagegroup-base-usbhost", "", d)} \ | ||
32 | \ | ||
33 | ${@bb.utils.contains("DISTRO_FEATURES", "bluetooth", "packagegroup-base-bluetooth", "", d)} \ | ||
34 | ${@bb.utils.contains("DISTRO_FEATURES", "wifi", "packagegroup-base-wifi", "", d)} \ | ||
35 | ${@bb.utils.contains("DISTRO_FEATURES", "3g", "packagegroup-base-3g", "", d)} \ | ||
36 | ${@bb.utils.contains("DISTRO_FEATURES", "nfc", "packagegroup-base-nfc", "", d)} \ | ||
37 | ${@bb.utils.contains("DISTRO_FEATURES", "cramfs", "packagegroup-base-cramfs", "", d)} \ | ||
38 | ${@bb.utils.contains("DISTRO_FEATURES", "ipsec", "packagegroup-base-ipsec", "", d)} \ | ||
39 | ${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "packagegroup-base-ipv6", "", d)} \ | ||
40 | ${@bb.utils.contains("DISTRO_FEATURES", "nfs", "packagegroup-base-nfs", "", d)} \ | ||
41 | ${@bb.utils.contains("DISTRO_FEATURES", "ppp", "packagegroup-base-ppp", "", d)} \ | ||
42 | ${@bb.utils.contains("DISTRO_FEATURES", "smbfs", "packagegroup-base-smbfs", "", d)} \ | ||
43 | ${@bb.utils.contains("DISTRO_FEATURES", "zeroconf", "packagegroup-base-zeroconf", "", d)} \ | ||
44 | \ | ||
45 | ' | ||
46 | |||
47 | # Override by distro if needed | ||
48 | VIRTUAL-RUNTIME_keymaps ?= "keymaps" | ||
49 | |||
50 | # | ||
51 | # packagegroup-base contain stuff needed for base system (machine related) | ||
52 | # | ||
53 | RDEPENDS_packagegroup-base = "\ | ||
54 | packagegroup-distro-base \ | ||
55 | packagegroup-machine-base \ | ||
56 | \ | ||
57 | sysfsutils \ | ||
58 | module-init-tools \ | ||
59 | ${@bb.utils.contains('MACHINE_FEATURES', 'apm', 'packagegroup-base-apm', '',d)} \ | ||
60 | ${@bb.utils.contains('MACHINE_FEATURES', 'acpi', 'packagegroup-base-acpi', '',d)} \ | ||
61 | ${@bb.utils.contains('MACHINE_FEATURES', 'keyboard', 'packagegroup-base-keyboard', '',d)} \ | ||
62 | ${@bb.utils.contains('MACHINE_FEATURES', 'phone', 'packagegroup-base-phone', '',d)} \ | ||
63 | \ | ||
64 | ${@bb.utils.contains('COMBINED_FEATURES', 'alsa', 'packagegroup-base-alsa', '',d)} \ | ||
65 | ${@bb.utils.contains('COMBINED_FEATURES', 'ext2', 'packagegroup-base-ext2', '',d)} \ | ||
66 | ${@bb.utils.contains('COMBINED_FEATURES', 'vfat', 'packagegroup-base-vfat', '',d)} \ | ||
67 | ${@bb.utils.contains('COMBINED_FEATURES', 'irda', 'packagegroup-base-irda', '',d)} \ | ||
68 | ${@bb.utils.contains('COMBINED_FEATURES', 'pci', 'packagegroup-base-pci', '',d)} \ | ||
69 | ${@bb.utils.contains('COMBINED_FEATURES', 'pcmcia', 'packagegroup-base-pcmcia', '',d)} \ | ||
70 | ${@bb.utils.contains('COMBINED_FEATURES', 'usbgadget', 'packagegroup-base-usbgadget', '',d)} \ | ||
71 | ${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'packagegroup-base-usbhost', '',d)} \ | ||
72 | ${@bb.utils.contains('COMBINED_FEATURES', 'bluetooth', 'packagegroup-base-bluetooth', '',d)} \ | ||
73 | ${@bb.utils.contains('COMBINED_FEATURES', 'wifi', 'packagegroup-base-wifi', '',d)} \ | ||
74 | ${@bb.utils.contains('COMBINED_FEATURES', '3g', 'packagegroup-base-3g', '',d)} \ | ||
75 | ${@bb.utils.contains('COMBINED_FEATURES', 'nfc', 'packagegroup-base-nfc', '',d)} \ | ||
76 | \ | ||
77 | ${@bb.utils.contains('DISTRO_FEATURES', 'nfs', 'packagegroup-base-nfs', '',d)} \ | ||
78 | ${@bb.utils.contains('DISTRO_FEATURES', 'cramfs', 'packagegroup-base-cramfs', '',d)} \ | ||
79 | ${@bb.utils.contains('DISTRO_FEATURES', 'smbfs', 'packagegroup-base-smbfs', '',d)} \ | ||
80 | ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'packagegroup-base-ipv6', '',d)} \ | ||
81 | ${@bb.utils.contains('DISTRO_FEATURES', 'ipsec', 'packagegroup-base-ipsec', '',d)} \ | ||
82 | ${@bb.utils.contains('DISTRO_FEATURES', 'ppp', 'packagegroup-base-ppp', '',d)} \ | ||
83 | ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'packagegroup-base-zeroconf', '',d)} \ | ||
84 | " | ||
85 | |||
86 | |||
87 | RRECOMMENDS_packagegroup-base = "\ | ||
88 | kernel-module-nls-utf8 \ | ||
89 | kernel-module-input \ | ||
90 | kernel-module-uinput \ | ||
91 | kernel-module-rtc-dev \ | ||
92 | kernel-module-rtc-proc \ | ||
93 | kernel-module-rtc-sysfs \ | ||
94 | kernel-module-unix" | ||
95 | |||
96 | RDEPENDS_packagegroup-base-extended = "\ | ||
97 | packagegroup-base \ | ||
98 | ${ADD_WIFI} \ | ||
99 | ${ADD_BT} \ | ||
100 | ${ADD_3G} \ | ||
101 | ${ADD_NFC} \ | ||
102 | " | ||
103 | |||
104 | ADD_WIFI = "" | ||
105 | ADD_BT = "" | ||
106 | ADD_3G = "" | ||
107 | ADD_NFC = "" | ||
108 | |||
109 | python __anonymous () { | ||
110 | # If Distro want wifi and machine feature wifi/pci/pcmcia/usbhost (one of them) | ||
111 | # then include packagegroup-base-wifi in packagegroup-base | ||
112 | |||
113 | distro_features = set(d.getVar("DISTRO_FEATURES", True).split()) | ||
114 | machine_features= set(d.getVar("MACHINE_FEATURES", True).split()) | ||
115 | |||
116 | if "bluetooth" in distro_features and not "bluetooth" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features): | ||
117 | d.setVar("ADD_BT", "packagegroup-base-bluetooth") | ||
118 | |||
119 | if "wifi" in distro_features and not "wifi" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features): | ||
120 | d.setVar("ADD_WIFI", "packagegroup-base-wifi") | ||
121 | |||
122 | if "3g" in distro_features and not "3g" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features): | ||
123 | d.setVar("ADD_3G", "packagegroup-base-3g") | ||
124 | |||
125 | if "nfc" in distro_features and not "nfc" in machine_features and ("usbhost" in machine_features): | ||
126 | d.setVar("ADD_NFC", "packagegroup-base-nfc") | ||
127 | } | ||
128 | |||
129 | # | ||
130 | # packages added by distribution | ||
131 | # | ||
132 | SUMMARY_packagegroup-distro-base = "${DISTRO} extras" | ||
133 | DEPENDS_packagegroup-distro-base = "${DISTRO_EXTRA_DEPENDS}" | ||
134 | RDEPENDS_packagegroup-distro-base = "${DISTRO_EXTRA_RDEPENDS}" | ||
135 | RRECOMMENDS_packagegroup-distro-base = "${DISTRO_EXTRA_RRECOMMENDS}" | ||
136 | |||
137 | # | ||
138 | # packages added by machine config | ||
139 | # | ||
140 | SUMMARY_packagegroup-machine-base = "${MACHINE} extras" | ||
141 | SUMMARY_packagegroup-machine-base = "Extra packages required to fully support ${MACHINE} hardware" | ||
142 | RDEPENDS_packagegroup-machine-base = "${MACHINE_EXTRA_RDEPENDS}" | ||
143 | RRECOMMENDS_packagegroup-machine-base = "${MACHINE_EXTRA_RRECOMMENDS}" | ||
144 | |||
145 | SUMMARY_packagegroup-base-keyboard = "Keyboard support" | ||
146 | RDEPENDS_packagegroup-base-keyboard = "\ | ||
147 | ${VIRTUAL-RUNTIME_keymaps}" | ||
148 | |||
149 | SUMMARY_packagegroup-base-pci = "PCI bus support" | ||
150 | RDEPENDS_packagegroup-base-pci = "\ | ||
151 | pciutils" | ||
152 | |||
153 | SUMMARY_packagegroup-base-acpi = "ACPI support" | ||
154 | RDEPENDS_packagegroup-base-acpi = "\ | ||
155 | acpid \ | ||
156 | libacpi " | ||
157 | |||
158 | SUMMARY_packagegroup-base-apm = "APM support" | ||
159 | RDEPENDS_packagegroup-base-apm = "\ | ||
160 | ${VIRTUAL-RUNTIME_apm} \ | ||
161 | apmd" | ||
162 | |||
163 | SUMMARY_packagegroup-base-ext2 = "ext2 filesystem support" | ||
164 | RDEPENDS_packagegroup-base-ext2 = "\ | ||
165 | hdparm \ | ||
166 | e2fsprogs \ | ||
167 | e2fsprogs-e2fsck \ | ||
168 | e2fsprogs-mke2fs" | ||
169 | |||
170 | SUMMARY_packagegroup-base-vfat = "FAT filesystem support" | ||
171 | RRECOMMENDS_packagegroup-base-vfat = "\ | ||
172 | kernel-module-msdos \ | ||
173 | kernel-module-vfat \ | ||
174 | kernel-module-nls-iso8859-1 \ | ||
175 | kernel-module-nls-cp437 \ | ||
176 | dosfstools" | ||
177 | |||
178 | SUMMARY_packagegroup-base-alsa = "ALSA sound support" | ||
179 | RDEPENDS_packagegroup-base-alsa = "\ | ||
180 | alsa-utils-alsactl \ | ||
181 | alsa-utils-alsamixer \ | ||
182 | ${VIRTUAL-RUNTIME_alsa-state}" | ||
183 | |||
184 | RRECOMMENDS_packagegroup-base-alsa = "\ | ||
185 | kernel-module-snd-mixer-oss \ | ||
186 | kernel-module-snd-pcm-oss" | ||
187 | |||
188 | SUMMARY_packagegroup-base-pcmcia = "PC card slot support" | ||
189 | RDEPENDS_packagegroup-base-pcmcia = "\ | ||
190 | pcmciautils \ | ||
191 | " | ||
192 | |||
193 | RRECOMMENDS_packagegroup-base-pcmcia = "\ | ||
194 | kernel-module-pcmcia \ | ||
195 | kernel-module-airo-cs \ | ||
196 | kernel-module-pcnet-cs \ | ||
197 | kernel-module-serial-cs \ | ||
198 | kernel-module-ide-cs \ | ||
199 | kernel-module-ide-disk \ | ||
200 | ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'kernel-module-hostap-cs', '',d)} \ | ||
201 | ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'kernel-module-orinoco-cs', '',d)} \ | ||
202 | ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'kernel-module-spectrum-cs', '',d)}" | ||
203 | |||
204 | SUMMARY_packagegroup-base-bluetooth = "Bluetooth support" | ||
205 | RDEPENDS_packagegroup-base-bluetooth = "\ | ||
206 | bluez4 \ | ||
207 | ${@bb.utils.contains('COMBINED_FEATURES', 'alsa', 'libasound-module-bluez', '',d)} \ | ||
208 | " | ||
209 | |||
210 | RRECOMMENDS_packagegroup-base-bluetooth = "\ | ||
211 | kernel-module-bluetooth \ | ||
212 | kernel-module-l2cap \ | ||
213 | kernel-module-rfcomm \ | ||
214 | kernel-module-hci-vhci \ | ||
215 | kernel-module-bnep \ | ||
216 | kernel-module-hidp \ | ||
217 | kernel-module-hci-uart \ | ||
218 | kernel-module-sco \ | ||
219 | ${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'kernel-module-hci-usb', '',d)} \ | ||
220 | ${@bb.utils.contains('COMBINED_FEATURES', 'pcmcia', 'kernel-module-bluetooth3c-cs', '',d)} \ | ||
221 | ${@bb.utils.contains('COMBINED_FEATURES', 'pcmcia', 'kernel-module-bluecard-cs', '',d)} \ | ||
222 | ${@bb.utils.contains('COMBINED_FEATURES', 'pcmcia', 'kernel-module-bluetoothuart-cs', '',d)} \ | ||
223 | ${@bb.utils.contains('COMBINED_FEATURES', 'pcmcia', 'kernel-module-dtl1-cs', '',d)} \ | ||
224 | " | ||
225 | |||
226 | SUMMARY_packagegroup-base-irda = "IrDA support" | ||
227 | RDEPENDS_packagegroup-base-irda = "\ | ||
228 | irda-utils" | ||
229 | |||
230 | RRECOMMENDS_packagegroup-base-irda = "\ | ||
231 | kernel-module-pxaficp-ir \ | ||
232 | kernel-module-irda \ | ||
233 | kernel-module-ircomm \ | ||
234 | kernel-module-ircomm-tty \ | ||
235 | kernel-module-irlan \ | ||
236 | ${@bb.utils.contains('DISTRO_FEATURES', 'ppp', 'kernel-module-irnet', '',d)} \ | ||
237 | kernel-module-irport \ | ||
238 | kernel-module-irtty \ | ||
239 | kernel-module-irtty-sir \ | ||
240 | kernel-module-sir-dev \ | ||
241 | ${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'kernel-module-ir-usb', '',d)} " | ||
242 | |||
243 | SUMMARY_packagegroup-base-usbgadget = "USB gadget support" | ||
244 | RRECOMMENDS_packagegroup-base-usbgadget = "\ | ||
245 | kernel-module-pxa27x_udc \ | ||
246 | kernel-module-gadgetfs \ | ||
247 | kernel-module-g-file-storage \ | ||
248 | kernel-module-g-serial \ | ||
249 | kernel-module-g-ether" | ||
250 | |||
251 | SUMMARY_packagegroup-base-usbhost = "USB host support" | ||
252 | RDEPENDS_packagegroup-base-usbhost = "\ | ||
253 | usbutils " | ||
254 | |||
255 | RRECOMMENDS_packagegroup-base-usbhost = "\ | ||
256 | kernel-module-uhci-hcd \ | ||
257 | kernel-module-ohci-hcd \ | ||
258 | kernel-module-ehci-hcd \ | ||
259 | kernel-module-usbcore \ | ||
260 | kernel-module-usbhid \ | ||
261 | kernel-module-usbnet \ | ||
262 | kernel-module-sd-mod \ | ||
263 | kernel-module-scsi-mod \ | ||
264 | kernel-module-usbmouse \ | ||
265 | kernel-module-mousedev \ | ||
266 | kernel-module-usbserial \ | ||
267 | kernel-module-usb-storage " | ||
268 | |||
269 | SUMMARY_packagegroup-base-ppp = "PPP dial-up protocol support" | ||
270 | RDEPENDS_packagegroup-base-ppp = "\ | ||
271 | ppp \ | ||
272 | ppp-dialin" | ||
273 | |||
274 | RRECOMMENDS_packagegroup-base-ppp = "\ | ||
275 | kernel-module-ppp-async \ | ||
276 | kernel-module-ppp-deflate \ | ||
277 | kernel-module-ppp-generic \ | ||
278 | kernel-module-ppp-mppe \ | ||
279 | kernel-module-slhc" | ||
280 | |||
281 | SUMMARY_packagegroup-base-ipsec = "IPSEC support" | ||
282 | RDEPENDS_packagegroup-base-ipsec = "\ | ||
283 | " | ||
284 | |||
285 | RRECOMMENDS_packagegroup-base-ipsec = "\ | ||
286 | kernel-module-ipsec" | ||
287 | |||
288 | # | ||
289 | # packagegroup-base-wifi contain everything needed to get WiFi working | ||
290 | # WEP/WPA connection needs to be supported out-of-box | ||
291 | # | ||
292 | SUMMARY_packagegroup-base-wifi = "WiFi support" | ||
293 | RDEPENDS_packagegroup-base-wifi = "\ | ||
294 | wireless-tools \ | ||
295 | ${@bb.utils.contains('COMBINED_FEATURES', 'pcmcia', 'hostap-utils', '',d)} \ | ||
296 | ${@bb.utils.contains('COMBINED_FEATURES', 'pci', 'hostap-utils', '',d)} \ | ||
297 | wpa-supplicant" | ||
298 | |||
299 | RRECOMMENDS_packagegroup-base-wifi = "\ | ||
300 | ${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'kernel-module-zd1211rw', '',d)} \ | ||
301 | kernel-module-ieee80211-crypt \ | ||
302 | kernel-module-ieee80211-crypt-ccmp \ | ||
303 | kernel-module-ieee80211-crypt-tkip \ | ||
304 | kernel-module-ieee80211-crypt-wep \ | ||
305 | kernel-module-ecb \ | ||
306 | kernel-module-arc4 \ | ||
307 | kernel-module-crypto_algapi \ | ||
308 | kernel-module-cryptomgr \ | ||
309 | kernel-module-michael-mic \ | ||
310 | kernel-module-aes-generic \ | ||
311 | kernel-module-aes" | ||
312 | |||
313 | SUMMARY_packagegroup-base-nfc = "Near Field Communication support" | ||
314 | RDEPENDS_packagegroup-base-nfc = "\ | ||
315 | neard" | ||
316 | |||
317 | RRECOMMENDS_packagegroup-base-nfc = "\ | ||
318 | kernel-module-nfc" | ||
319 | |||
320 | SUMMARY_packagegroup-base-3g = "Cellular data support" | ||
321 | RDEPENDS_packagegroup-base-3g = "\ | ||
322 | ofono" | ||
323 | |||
324 | RRECOMMENDS_packagegroup-base-3g = "\ | ||
325 | kernel-module-cdc-acm \ | ||
326 | kernel-module-cdc-wdm" | ||
327 | |||
328 | SUMMARY_packagegroup-base-smbfs = "SMB network filesystem support" | ||
329 | RRECOMMENDS_packagegroup-base-smbfs = "\ | ||
330 | kernel-module-cifs \ | ||
331 | kernel-module-smbfs" | ||
332 | |||
333 | SUMMARY_packagegroup-base-cramfs = "cramfs filesystem support" | ||
334 | RRECOMMENDS_packagegroup-base-cramfs = "\ | ||
335 | kernel-module-cramfs" | ||
336 | |||
337 | # | ||
338 | # packagegroup-base-nfs provides ONLY client support - server is in nfs-utils package | ||
339 | # | ||
340 | SUMMARY_packagegroup-base-nfs = "NFS network filesystem support" | ||
341 | RDEPENDS_packagegroup-base-nfs = "\ | ||
342 | rpcbind" | ||
343 | |||
344 | RRECOMMENDS_packagegroup-base-nfs = "\ | ||
345 | kernel-module-nfs " | ||
346 | |||
347 | SUMMARY_packagegroup-base-zeroconf = "Zeroconf support" | ||
348 | RDEPENDS_packagegroup-base-zeroconf = "\ | ||
349 | libnss-mdns \ | ||
350 | avahi-daemon" | ||
351 | |||
352 | SUMMARY_packagegroup-base-ipv6 = "IPv6 support" | ||
353 | RDEPENDS_packagegroup-base-ipv6 = "\ | ||
354 | " | ||
355 | |||
356 | RRECOMMENDS_packagegroup-base-ipv6 = "\ | ||
357 | kernel-module-ipv6 " | ||
358 | |||
359 | SUMMARY_packagegroup-base-serial = "Serial port support" | ||
360 | RDEPENDS_packagegroup-base-serial = "\ | ||
361 | setserial \ | ||
362 | lrzsz " | ||
363 | |||
364 | SUMMARY_packagegroup-base-phone = "Cellular telephony (voice) support" | ||
365 | RDEPENDS_packagegroup-base-phone = "\ | ||
366 | ofono" | ||