[oe-commits] org.oe.dev task-base: add task-base-extended which adds wifi/bt for pcmcia/pci/usbhost devices

hrw commit openembedded-commits at lists.openembedded.org
Mon May 28 13:45:21 UTC 2007


task-base: add task-base-extended which adds wifi/bt for pcmcia/pci/usbhost devices

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 0dc347aab4a2514a1b5f1ed29bce03deb240b75b
ViewMTN: http://monotone.openembedded.org/revision.psp?id=0dc347aab4a2514a1b5f1ed29bce03deb240b75b
Files:
1
packages/tasks/task-base.bb
Diffs:

#
# mt diff -re35c79c0e44e6a58add42e2dc50ecfaad4e02c0e -r0dc347aab4a2514a1b5f1ed29bce03deb240b75b
#
# 
# 
# patch "packages/tasks/task-base.bb"
#  from [c7d78b238314b3dc605d1eeefbc2b3190f62b112]
#    to [8a21e69564313c2f4953143a02be3d1484b81f3a]
# 
============================================================
--- packages/tasks/task-base.bb	c7d78b238314b3dc605d1eeefbc2b3190f62b112
+++ packages/tasks/task-base.bb	8a21e69564313c2f4953143a02be3d1484b81f3a
@@ -1,5 +1,5 @@ DESCRIPTION = "Merge machine and distro 
 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
 #






More information about the Openembedded-commits mailing list