diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-04-07 11:41:50 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-04-07 11:41:50 +0200 |
commit | d390be3ddd215c9170fd6b6076396eb9201a6729 (patch) | |
tree | 65f389fbe6f366bf084b9a1e67549441674dd777 | |
parent | d3a0c7ab8700443d0096835e68fe11ab8194212e (diff) | |
download | meta-openembedded-d390be3ddd215c9170fd6b6076396eb9201a6729.tar.gz |
task-boot: move from meta-angstrom to meta-oe
10:15 <JaMa|Wrk> Hi, found your task-boot, this is good for everyone, would you mind pushing it to meta-oe?
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r-- | meta-oe/recipes-core/tasks/task-boot.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/tasks/task-boot.bb b/meta-oe/recipes-core/tasks/task-boot.bb new file mode 100644 index 0000000000..8f897a34b9 --- /dev/null +++ b/meta-oe/recipes-core/tasks/task-boot.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | DESCRIPTION = "Basic task to get a device booting" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | ||
4 | |||
5 | PR = "r53" | ||
6 | |||
7 | inherit task | ||
8 | |||
9 | # packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH | ||
10 | # | ||
11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
12 | |||
13 | # | ||
14 | # those ones can be set in machine config to supply packages needed to get machine booting | ||
15 | # | ||
16 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" | ||
17 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" | ||
18 | |||
19 | # update-alternatives script installed in rootfs needs to be the same as | ||
20 | # u-a script used for building image which is defined with | ||
21 | # PREFERRED_PROVIDER_virtual/update-alternatives-native | ||
22 | |||
23 | DISTRO_UPDATE_ALTERNATIVES ?= "${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${PREFERRED_PROVIDER_virtual/update-alternatives}", d)}" | ||
24 | |||
25 | # Make sure we build the kernel | ||
26 | DEPENDS = "virtual/kernel" | ||
27 | |||
28 | # | ||
29 | # minimal set of packages - needed to boot | ||
30 | # | ||
31 | RDEPENDS_task-boot = "\ | ||
32 | base-files \ | ||
33 | base-passwd \ | ||
34 | busybox \ | ||
35 | ${@base_contains("MACHINE_FEATURES", "keyboard", "keymaps", "", d)} \ | ||
36 | modutils-initscripts \ | ||
37 | netbase \ | ||
38 | ${DISTRO_UPDATE_ALTERNATIVES} \ | ||
39 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \ | ||
40 | " | ||
41 | |||
42 | RRECOMMENDS_task-boot = "\ | ||
43 | kernel \ | ||
44 | ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS} \ | ||
45 | " | ||