summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-31 10:45:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-04 12:53:00 +0100
commit2a21c8330058752dd96900eaab266d4c75de3b57 (patch)
tree84fd4ad988c9fcc3f5d28cb640f9cd08b91fdb28 /meta/classes
parent86d4bb2c3ed24843a3e0bdacc91e49b57943c9fb (diff)
downloadpoky-2a21c8330058752dd96900eaab266d4c75de3b57.tar.gz
packagegroup-core-console: remove
This provides one package group, packagegroup-core-apps-console, which is usually brought in by adding "apps-console-core" to IMAGE_FEATURES. Aside from the naming inconsistencies, this is a group of mostly unrelated packages, none of which are actually "apps". Handling each one: * dbus: should mostly be brought in by package runtime dependencies * avahi-daemon: if you are using packagegroup-base (as all images that inherit from core-image do) this is brought in by having "zeroconf" in DISTRO_FEATURES. * portmap: not very useful by itself; should be brought in by selecting NFS server/client through other means. * psplash (or whatever SPLASH is set to): this has been changed to be an explicit item "splash" in IMAGE_FEATURES. Since this is a fairly fundamental feature, a piece of code has been added to automatically handle this for images still using apps-console-core (and show a warning). (From OE-Core rev: 592d6e602466628d10704835a7b07d3d713f58e1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/core-image.bbclass10
-rw-r--r--meta/classes/image.bbclass4
2 files changed, 12 insertions, 2 deletions
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass
index 6a391d5925..2bfadb4072 100644
--- a/meta/classes/core-image.bbclass
+++ b/meta/classes/core-image.bbclass
@@ -12,7 +12,6 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
12# 12#
13# Available IMAGE_FEATURES: 13# Available IMAGE_FEATURES:
14# 14#
15# - apps-console-core
16# - x11 - X server 15# - x11 - X server
17# - x11-base - X server with minimal environment 16# - x11-base - X server with minimal environment
18# - x11-sato - OpenedHand Sato environment 17# - x11-sato - OpenedHand Sato environment
@@ -25,7 +24,6 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
25# - ssh-server-openssh - SSH server (openssh) 24# - ssh-server-openssh - SSH server (openssh)
26# - debug-tweaks - makes an image suitable for development 25# - debug-tweaks - makes an image suitable for development
27# 26#
28PACKAGE_GROUP_apps-console-core = "packagegroup-core-apps-console"
29PACKAGE_GROUP_x11 = "packagegroup-core-x11" 27PACKAGE_GROUP_x11 = "packagegroup-core-x11"
30PACKAGE_GROUP_x11-base = "packagegroup-core-x11-base" 28PACKAGE_GROUP_x11-base = "packagegroup-core-x11-base"
31PACKAGE_GROUP_x11-sato = "packagegroup-core-x11-sato" 29PACKAGE_GROUP_x11-sato = "packagegroup-core-x11-sato"
@@ -47,6 +45,14 @@ IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear"
47# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2' 45# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2'
48# An error exception would be raised if both image features foo and bar1(or bar2) are included 46# An error exception would be raised if both image features foo and bar1(or bar2) are included
49 47
48python __anonymous() {
49 # Ensure we still have a splash screen for existing images
50 if base_contains("IMAGE_FEATURES", "apps-console-core", "1", "", d) == "1":
51 bb.warn("%s: apps-console-core in IMAGE_FEATURES is no longer supported; adding \"splash\" to enable splash screen" % d.getVar("PN", True))
52 d.appendVar("IMAGE_FEATURES", " splash")
53}
54
55
50CORE_IMAGE_BASE_INSTALL = '\ 56CORE_IMAGE_BASE_INSTALL = '\
51 packagegroup-core-boot \ 57 packagegroup-core-boot \
52 packagegroup-base-extended \ 58 packagegroup-base-extended \
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0f6ab381cd..2e95556011 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -39,6 +39,10 @@ def normal_groups(d):
39 features = set(oe.data.typed_value('IMAGE_FEATURES', d)) 39 features = set(oe.data.typed_value('IMAGE_FEATURES', d))
40 return features.difference(extras) 40 return features.difference(extras)
41 41
42# Define some very basic feature package groups
43SPLASH ?= "psplash"
44PACKAGE_GROUP_splash = "${SPLASH}"
45
42# Wildcards specifying complementary packages to install for every package that has been explicitly 46# Wildcards specifying complementary packages to install for every package that has been explicitly
43# installed into the rootfs 47# installed into the rootfs
44def complementary_globs(featurevar, d): 48def complementary_globs(featurevar, d):