summaryrefslogtreecommitdiffstats
path: root/meta/classes/core-image.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-07-03 12:43:32 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-03 14:55:01 +0100
commit286b2666dc109ef467ea040be8abc0039d53ace6 (patch)
tree631b0b49e04f555a8069fbfd901f0769f4a50e5f /meta/classes/core-image.bbclass
parent6121186ff9b1577b304bc237caa80e4207d04470 (diff)
downloadpoky-286b2666dc109ef467ea040be8abc0039d53ace6.tar.gz
image/core-image: Handle conflicting IMAGE_FEATURES.
IMAGE_FEATURES such as 'ssh-server-dropbear' and 'ssh-server-openssh' can't be both enabled. User can use the following variables to define the relationship of image features: IMAGE_FEATURES_REPLACES_foo = "bar" means including image feature "foo" would replace the image feature "bar". IMAGE_FEATURES_CONFLICTS_foo = "bar" means including both image features "foo" and "bar" would cause an parsing error. (From OE-Core rev: e36d12a9c1cf69540079e48a1dfadbc343758e48) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/core-image.bbclass')
-rw-r--r--meta/classes/core-image.bbclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass
index 25f5c5a8dc..6b207d7cfa 100644
--- a/meta/classes/core-image.bbclass
+++ b/meta/classes/core-image.bbclass
@@ -47,6 +47,14 @@ PACKAGE_GROUP_ssh-server-openssh = "task-core-ssh-openssh"
47PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}" 47PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"
48PACKAGE_GROUP_qt4-pkgs = "task-core-qt-demos" 48PACKAGE_GROUP_qt4-pkgs = "task-core-qt-demos"
49 49
50
51# IMAGE_FEAETURES_REPLACES_foo = 'bar1 bar2'
52# Including image feature foo would replace the image features bar1 and bar2
53IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear"
54
55# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2'
56# An error exception would be raised if both image features foo and bar1(or bar2) are included
57
50CORE_IMAGE_BASE_INSTALL = '\ 58CORE_IMAGE_BASE_INSTALL = '\
51 task-core-boot \ 59 task-core-boot \
52 task-base-extended \ 60 task-base-extended \
@@ -60,7 +68,8 @@ IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
60 68
61X11_IMAGE_FEATURES = "x11-base apps-x11-core package-management" 69X11_IMAGE_FEATURES = "x11-base apps-x11-core package-management"
62ENHANCED_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-games apps-x11-pimlico package-management" 70ENHANCED_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-games apps-x11-pimlico package-management"
63SATO_IMAGE_FEATURES = "${ENHANCED_IMAGE_FEATURES} x11-sato ssh-server-dropbear" 71SSHSERVER_IMAGE_FEATURES ??= "ssh-server-dropbear"
72SATO_IMAGE_FEATURES = "${ENHANCED_IMAGE_FEATURES} x11-sato ${SSHSERVER_IMAGE_FEATURES}"
64 73
65inherit image 74inherit image
66 75