]> git.openpandora.org Git - openembedded.git/commitdiff
task-base: Introduce DISTRO_APM and convert recipes to use that
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 4 Dec 2009 08:07:33 +0000 (09:07 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 4 Dec 2009 10:59:02 +0000 (11:59 +0100)
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
conf/distro/shr.conf
recipes/ipaq-sleep/ipaq-sleep_0.9.bb
recipes/openmoko2/neod_svn.bb
recipes/suspend-desktop/suspend-desktop_1.0.bb
recipes/tasks/task-base.bb

index 80f89bd5fe154d758657a68692afd824801c0ff3..833eb09ab727abe9631d2a8b80d61179f45ce017 100644 (file)
@@ -30,6 +30,7 @@ DISTRO_TYPE = "debug"
 DISTRO = "shr"
 
 DISTRO_SSH_DAEMON = "openssh"
+DISTRO_APM = "fso-apm"
 
 #Generate locales on the buildsystem instead of on the target. Speeds up first boot, set to "1" to enable
 ENABLE_BINARY_LOCALE_GENERATION ?= "1"
@@ -183,7 +184,6 @@ PREFERRED_PROVIDER_virtual/db-native = "db3-native"
 PREFERRED_PROVIDER_virtual/libsdl = "libsdl-x11"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11"
 PREFERRED_PROVIDER_virtual/libusb0 ?= "libusb"
-DISTRO_apm = "fso-apm"
 
 #############################################################################
 # PREFERRED VERSIONS
index 24d881dd053073160df90ece451065116b72500b..158de80bf14a20f599829eb4fa2b810d016a6009 100644 (file)
@@ -2,8 +2,9 @@ DESCRIPTION = "Automatic sleep/suspend control daemon"
 SECTION = "x11/base"
 LICENSE = "GPL"
 DEPENDS = "apmd virtual/xserver libxext virtual/libx11 libxau xscrnsaverh libxss"
-RDEPENDS = "apm"
-PR = "r6"
+DISTRO_APM ?= "apm"
+RDEPENDS = "${DISTRO_APM}"
+PR = "r7"
 
 inherit gpe pkgconfig
 
index aeeee871b3c50d668126941a055e7b10fb3d5ad3..e57bf08068f08610ab21376629e17b34afb0c361 100644 (file)
@@ -1,9 +1,11 @@
 DESCRIPTION = "Simple Neo1973 Daemon for Button Handling and Power Management"
 SECTION = "openmoko/daemons"
+
+DISTRO_APM ?= "apm"
 DEPENDS = "gtk+ pulseaudio apmd"
-RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm dbus"
+RDEPENDS = "gpe-scap xrandr alsa-utils-amixer ${DISTRO_APM} dbus"
 PV = "0.1.0+svnr${SRCPV}"
-PR = "r6"
+PR = "r7"
 
 inherit openmoko2 gconf
 
index fa9efba84bc642d65bffbdda2f01268a811e2cb0..085d686aa1f09a3bb831503038e9aadcce318928 100644 (file)
@@ -3,10 +3,11 @@ PRIORITY    = "optional"
 DESCRIPTION = "Suspend feature for the application launcher menu."
 LICENSE     = "GPL"
 
-PR          = "r1"
+PR          = "r2"
 
+DISTRO_APM ?= "apm"
 RDEPENDS    = "gpe-conf"
-RRECOMMENDS = "apm"
+RRECOMMENDS = "${DISTRO_APM}"
 
 PACKAGES    = "${PN}"
 PACKAGE_ARCH = "all"
index ed561b802e99cdd494da7ba484dc4fdc6eb18b7d..b540c80bda244124209484b48f1810a084b75d5d 100644 (file)
@@ -1,5 +1,5 @@
 DESCRIPTION = "Merge machine and distro options to create a basic machine task/package"
-PR = "r86"
+PR = "r87"
 
 inherit task
 
@@ -60,6 +60,9 @@ HOTPLUG ?= "${@base_contains("MACHINE_FEATURES", "kernel24",  "linux-hotplug",""
 #
 DISTRO_SSH_DAEMON ?= "dropbear"
 
+# Distro can override apm provider
+DISTRO_APM ?= "apm"
+
 #
 # bluetooth manager
 #
@@ -190,7 +193,7 @@ RDEPENDS_task-base-acpi = "\
     acpid"
 
 RDEPENDS_task-base-apm = "\
-    apm \
+    "${DISTRO_APM}" \
     apmd \
     ${@base_contains('MACHINE_FEATURES', 'kernel24', 'network-suspend-scripts', '',d)}"