diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/poky-image.bbclass | 43 |
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 @@ | |||
1 | # Common for Poky images | ||
2 | # | ||
3 | # Copyright (C) 2007 OpenedHand LTD | ||
4 | |||
5 | # IMAGE_FEATURES control content of images built with Poky. | ||
6 | # | ||
7 | # By default we install task-poky-boot and task-poky-boot-extras packages - this | ||
8 | # gives us working (console only) rootfs. | ||
9 | # | ||
10 | # "apps-core", "apps-pda" and other tasks are defined in task-poky recipe and have | ||
11 | # to add needed packages for selected task. | ||
12 | # | ||
13 | |||
14 | DISTRO_TASKS += '\ | ||
15 | ${@base_contains("IMAGE_FEATURES", "dbg-pkgs", "task-poky-boot-dbg task-poky-boot-extras-dbg", "",d)} \ | ||
16 | ${@base_contains("IMAGE_FEATURES", "dev-pkgs", "task-poky-boot-dev task-poky-boot-extras-dev", "",d)} \ | ||
17 | \ | ||
18 | ${@base_contains("IMAGE_FEATURES", "apps-core", "task-poky-base", "",d)} \ | ||
19 | ${@base_contains("IMAGE_FEATURES", ["apps-core", "dbg-pkgs"], "task-poky-base-dbg", "",d)} \ | ||
20 | ${@base_contains("IMAGE_FEATURES", ["apps-core", "dev-pkgs"], "task-poky-base-dev", "",d)} \ | ||
21 | \ | ||
22 | ${@base_contains("IMAGE_FEATURES", "apps-pda", "task-poky-standard", "",d)} \ | ||
23 | ${@base_contains("IMAGE_FEATURES", ["apps-pda", "dbg-pkgs"], "task-poky-standard-dbg", "",d)} \ | ||
24 | ${@base_contains("IMAGE_FEATURES", ["apps-pda", "dev-pkgs"], "task-poky-standard-dev", "",d)} \ | ||
25 | \ | ||
26 | ${@base_contains("IMAGE_FEATURES", "dev-tools", "task-poky-sdk", "",d)} \ | ||
27 | ${@base_contains("IMAGE_FEATURES", ["dev-tools", "dbg-pkgs"], "task-poky-sdk-dbg", "",d)} \ | ||
28 | ${@base_contains("IMAGE_FEATURES", ["dev-tools", "dev-pkgs"], "task-poky-sdk-dev", "",d)} \ | ||
29 | \ | ||
30 | ${@base_contains("IMAGE_FEATURES", "dbg-tools", "task-poky-devtools", "",d)} \ | ||
31 | ${@base_contains("IMAGE_FEATURES", ["dbg-tools", "dbg-pkgs"], "task-poky-devtools-dbg", "",d)} \ | ||
32 | ${@base_contains("IMAGE_FEATURES", ["dbg-tools", "dev-pkgs"], "task-poky-devtools-dev", "",d)} \ | ||
33 | \ | ||
34 | ${@base_contains("IMAGE_FEATURES", "test-tools", "task-poky-testapps", "",d)} \ | ||
35 | ${@base_contains("IMAGE_FEATURES", ["test-tools", "dbg-pkgs"], "task-poky-testapps-dbg", "",d)} \ | ||
36 | ${@base_contains("IMAGE_FEATURES", ["test-tools", "dev-pkgs"], "task-poky-testapps-dev", "",d)} \ | ||
37 | \ | ||
38 | ${@base_contains("IMAGE_FEATURES", "nfs-server", "task-poky-nfs-server", "",d)} \ | ||
39 | ' | ||
40 | |||
41 | IMAGE_INSTALL ?= "${DISTRO_TASKS}" | ||
42 | |||
43 | inherit image | ||