From 3a422344b250c8f7d4fd14f8361cfb7f2d8b4a29 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 28 May 2007 09:39:43 +0000 Subject: task-base: add task-base-extended which adds wifi/bt for pcmcia/pci/usbhost devices --- packages/tasks/task-base.bb | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'packages/tasks/task-base.bb') 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 # -- cgit v1.2.3