[oe-commits] Koen Kooi : task-basic: initial add

git version control git at git.openembedded.org
Sun Oct 9 17:36:21 UTC 2011


Module: meta-openembedded.git
Branch: master
Commit: f94e91dafcf3ebbbbdabbad1a89f7bf235b3aa81
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=f94e91dafcf3ebbbbdabbad1a89f7bf235b3aa81

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Sun Oct  9 13:13:32 2011 +0200

task-basic: initial add

This recipe is intended as a 'simpler' replacement for task-base.
Please communicate your use cases and suggestions to the mailinglist(s)

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 meta-oe/recipes-core/tasks/task-basic.bb |   49 ++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/meta-oe/recipes-core/tasks/task-basic.bb b/meta-oe/recipes-core/tasks/task-basic.bb
new file mode 100644
index 0000000..9e8ae97
--- /dev/null
+++ b/meta-oe/recipes-core/tasks/task-basic.bb
@@ -0,0 +1,49 @@
+# This recipe is intended as a 'simpler' replacement for task-base.
+# Please communicate your use cases and suggestions to the mailinglist(s)
+
+DESCRIPTION = "Basic task to get a device online"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+inherit task
+
+# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
+#
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+#
+# Select between dropbear and openssh
+# Set TASK_BASIC_SSHDAEMON = "openssh-sshd openssh-sftp" in your DISTRO config to get openssh(d)
+#
+TASK_BASIC_SSHDAEMON ?= "dropbear-systemd openssh-sftp"
+
+#
+# The section below is designed to match with task-boot, but doesn't depend on it to allow for more freedom 
+# when writing image recipes.
+# It also avoids the choice between connman/networkmanager/ifupdown since that is an image feature, not a
+# distro feature.
+#
+RDEPENDS_${PN} = "\
+    ${TASK_BASIC_SSHDAEMON} \
+    avahi-daemon avahi-utils avahi-systemd \
+    systemd-compat-units \
+    "
+
+#
+# The following section is split in 3:
+#   1) Machine features: kernel modules and userspace helpers for those
+#   2) Distro features: packages associated with those
+#   3) Nice to have: packages that are nice to have, but aren't strictly needed  
+#
+RRECOMMENDS_${PN} = "\
+	${@base_contains("MACHINE_FEATURES", "usbhost", "usbutils", "", d)} \
+	${@base_contains("MACHINE_FEATURES", "alsa", "alsa-utils-alsamixer", "", d)} \
+	${@base_contains("MACHINE_FEATURES", "usbgadget", "kernel-module-g-ether kernel-module-g-serial kernel-module-g-mass-storage", "", d)} \
+	\
+	${@base_contains("DISTRO_FEATURES", "bluetooth", "bluez4", "", d)} \
+	${@base_contains("DISTRO_FEATURES", "wifi", "iw wpa-supplicant", "", d)} \
+	\
+	rsyslog \
+	cpufrequtils \
+	htop \
+    "





More information about the Openembedded-commits mailing list