diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-05-28 09:39:43 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-05-28 09:39:43 +0000 |
commit | 3a422344b250c8f7d4fd14f8361cfb7f2d8b4a29 (patch) | |
tree | a74d1874b526e94479336a1147810272b71a627b /packages/tasks/task-base.bb | |
parent | 607585307faff650f3cbcc2d9cc3d9930e6562f0 (diff) |
task-base: add task-base-extended which adds wifi/bt for pcmcia/pci/usbhost devices
Diffstat (limited to 'packages/tasks/task-base.bb')
-rw-r--r-- | packages/tasks/task-base.bb | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/packages/tasks/task-base.bb b/packages/tasks/task-base.bb index cc86b9365f..804521e340 100644 --- a/packages/tasks/task-base.bb +++ b/packages/tasks/task-base.bb @@ -1,5 +1,5 @@ DESCRIPTION = "Merge machine and distro options to create a basic machine task/package" -PR = "r31" +PR = "r32" PACKAGES = 'task-boot \ task-base \ @@ -116,6 +116,30 @@ RDEPENDS_task-base = "\ ${@base_contains('DISTRO_FEATURES', 'raid', 'task-base-raid', '',d)} \ " +RDEPENDS_task-base-extended = "\ + task-base \ + ${ADD_WIFI} \ + ${ADD_BT} \ + " + +ADD_WIFI = "" +ADD_BT = "" + +python __anonymous () { + import bb + # If Distro want wifi and machine feature wifi/pci/pcmcia/usbhost (one of them) + # then include task-base-wifi in task-base + + distro_features = bb.data.getVar("DISTRO_FEATURES", d, 1) + machine_features= bb.data.getVar("MACHINE_FEATURES", d, 1) + + if distro_features.find("bluetooth") and not machine_features.find("bluetooth") and (machine_features.find("pcmcia") or machine_features.find("pci") or machine_features.find("usbhost")): + bb.data.setVar("ADD_BT", "task-base-bluetooth", d) + + if distro_features.find("wifi") and not machine_features.find("wifi") and (machine_features.find("pcmcia") or machine_features.find("pci") or machine_features.find("usbhost")): + bb.data.setVar("ADD_WIFI", "task-base-wifi", d) +} + # # packages added by distribution # |