summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-06-27 13:19:32 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-06-27 13:19:32 +0000
commit3d36dc7dd031a2180d91ca5ae1d07e4e6948a79e (patch)
tree5c49c2e27dcdc8314c776b63628b54ae2d46ab62 /meta/classes
parent0b7225001fbce304341a2ae8b290f2b3ebc28565 (diff)
downloadopenembedded-core-3d36dc7dd031a2180d91ca5ae1d07e4e6948a79e.tar.gz
openembedded-core-3d36dc7dd031a2180d91ca5ae1d07e4e6948a79e.tar.bz2
openembedded-core-3d36dc7dd031a2180d91ca5ae1d07e4e6948a79e.zip
poky-image.bbclass: new class used for making Poky images
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2031 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/poky-image.bbclass43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/classes/poky-image.bbclass b/meta/classes/poky-image.bbclass
new file mode 100644
index 0000000000..872f3c8028
--- /dev/null
+++ b/meta/classes/poky-image.bbclass
@@ -0,0 +1,43 @@
+# Common for Poky images
+#
+# Copyright (C) 2007 OpenedHand LTD
+
+# IMAGE_FEATURES control content of images built with Poky.
+#
+# By default we install task-poky-boot and task-poky-boot-extras packages - this
+# gives us working (console only) rootfs.
+#
+# "apps-core", "apps-pda" and other tasks are defined in task-poky recipe and have
+# to add needed packages for selected task.
+#
+
+DISTRO_TASKS += '\
+ ${@base_contains("IMAGE_FEATURES", "dbg-pkgs", "task-poky-boot-dbg task-poky-boot-extras-dbg", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", "dev-pkgs", "task-poky-boot-dev task-poky-boot-extras-dev", "",d)} \
+ \
+ ${@base_contains("IMAGE_FEATURES", "apps-core", "task-poky-base", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["apps-core", "dbg-pkgs"], "task-poky-base-dbg", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["apps-core", "dev-pkgs"], "task-poky-base-dev", "",d)} \
+ \
+ ${@base_contains("IMAGE_FEATURES", "apps-pda", "task-poky-standard", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["apps-pda", "dbg-pkgs"], "task-poky-standard-dbg", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["apps-pda", "dev-pkgs"], "task-poky-standard-dev", "",d)} \
+ \
+ ${@base_contains("IMAGE_FEATURES", "dev-tools", "task-poky-sdk", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["dev-tools", "dbg-pkgs"], "task-poky-sdk-dbg", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["dev-tools", "dev-pkgs"], "task-poky-sdk-dev", "",d)} \
+ \
+ ${@base_contains("IMAGE_FEATURES", "dbg-tools", "task-poky-devtools", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["dbg-tools", "dbg-pkgs"], "task-poky-devtools-dbg", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["dbg-tools", "dev-pkgs"], "task-poky-devtools-dev", "",d)} \
+ \
+ ${@base_contains("IMAGE_FEATURES", "test-tools", "task-poky-testapps", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["test-tools", "dbg-pkgs"], "task-poky-testapps-dbg", "",d)} \
+ ${@base_contains("IMAGE_FEATURES", ["test-tools", "dev-pkgs"], "task-poky-testapps-dev", "",d)} \
+ \
+ ${@base_contains("IMAGE_FEATURES", "nfs-server", "task-poky-nfs-server", "",d)} \
+ '
+
+IMAGE_INSTALL ?= "${DISTRO_TASKS}"
+
+inherit image