task-boot: move from meta-angstrom to meta-oe
authorKoen Kooi <koen@dominion.thruhere.net>
Thu, 7 Apr 2011 09:41:50 +0000 (11:41 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:11:32 +0000 (08:11 -0800)
10:15 <JaMa|Wrk> Hi, found your task-boot, this is good for everyone, would you mind pushing it to meta-oe?

(From meta-openembedded rev: d390be3ddd215c9170fd6b6076396eb9201a6729)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-core/tasks/task-boot.bb [new file with mode: 0644]

diff --git a/meta-openembedded/meta-oe/recipes-core/tasks/task-boot.bb b/meta-openembedded/meta-oe/recipes-core/tasks/task-boot.bb
new file mode 100644 (file)
index 0000000..8f897a3
--- /dev/null
@@ -0,0 +1,45 @@
+DESCRIPTION = "Basic task to get a device booting"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+PR = "r53"
+
+inherit task
+
+# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
+#
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+#
+# those ones can be set in machine config to supply packages needed to get machine booting
+#
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
+
+# update-alternatives script installed in rootfs needs to be the same as
+# u-a script used for building image which is defined with
+# PREFERRED_PROVIDER_virtual/update-alternatives-native
+
+DISTRO_UPDATE_ALTERNATIVES ?= "${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${PREFERRED_PROVIDER_virtual/update-alternatives}", d)}"
+
+# Make sure we build the kernel
+DEPENDS = "virtual/kernel"
+
+#
+# minimal set of packages - needed to boot
+#
+RDEPENDS_task-boot = "\
+    base-files \
+    base-passwd \
+    busybox \
+    ${@base_contains("MACHINE_FEATURES", "keyboard", "keymaps", "", d)} \
+    modutils-initscripts \
+    netbase \
+    ${DISTRO_UPDATE_ALTERNATIVES} \
+    ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \
+    "
+
+RRECOMMENDS_task-boot = "\
+    kernel \
+    ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS} \
+    "