diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-10-24 17:57:33 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2008-10-24 17:57:33 +0200 |
commit | d5417e5a42d37f1df81699fae6d9ec965f21f887 (patch) | |
tree | d750ee5396efb9e910aef529f3dc6b36153fd2f0 /meta-moblin/classes/moblin-image.bbclass | |
parent | 0f9a47af1e6adaac5126026c4ce0eb6aa0f4da80 (diff) | |
download | poky-d5417e5a42d37f1df81699fae6d9ec965f21f887.tar.gz |
meta-moblin: rename images and tasks from poky-* to moblin-*
Diffstat (limited to 'meta-moblin/classes/moblin-image.bbclass')
-rw-r--r-- | meta-moblin/classes/moblin-image.bbclass | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/meta-moblin/classes/moblin-image.bbclass b/meta-moblin/classes/moblin-image.bbclass new file mode 100644 index 0000000000..aff89bcefc --- /dev/null +++ b/meta-moblin/classes/moblin-image.bbclass | |||
@@ -0,0 +1,98 @@ | |||
1 | # Common for Moblin 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-moblin-boot and task-base packages - this gives us | ||
8 | # working (console only) rootfs. | ||
9 | # | ||
10 | # Available IMAGE_FEATURES: | ||
11 | # | ||
12 | # - apps-console-core | ||
13 | # - x11-base - X11 server + minimal desktop | ||
14 | # - x11-sato - OpenedHand Sato environment | ||
15 | # - x11-netbook - Metacity based environment for netbooks | ||
16 | # - apps-x11-core - X Terminal, file manager, file editor | ||
17 | # - apps-x11-games | ||
18 | # - apps-x11-pimlico - OpenedHand Pimlico apps | ||
19 | # - tools-sdk - SDK | ||
20 | # - tools-debug - debugging tools | ||
21 | # - tools-profile - profiling tools | ||
22 | # - tools-testapps - tools usable to make some device tests | ||
23 | # - nfs-server - NFS server (exports / over NFS to everybody) | ||
24 | # - dev-pkgs - development packages | ||
25 | # - dbg-pkgs - debug packages | ||
26 | # | ||
27 | |||
28 | MOBLIN_BASE_INSTALL = '\ | ||
29 | task-moblin-boot \ | ||
30 | task-base-extended \ | ||
31 | ${@base_contains("IMAGE_FEATURES", "dbg-pkgs", "task-moblin-boot-dbg task-base-dbg", "",d)} \ | ||
32 | ${@base_contains("IMAGE_FEATURES", "dev-pkgs", "task-moblin-boot-dev task-base-dev", "",d)} \ | ||
33 | \ | ||
34 | ${@base_contains("IMAGE_FEATURES", "apps-console-core", "task-moblin-apps-console", "",d)} \ | ||
35 | ${@base_contains("IMAGE_FEATURES", ["apps-console-core", "dbg-pkgs"], "task-moblin-apps-console-dbg", "",d)} \ | ||
36 | ${@base_contains("IMAGE_FEATURES", ["apps-console-core", "dev-pkgs"], "task-moblin-apps-console-dev", "",d)} \ | ||
37 | \ | ||
38 | ${@base_contains("IMAGE_FEATURES", "x11-base", "task-moblin-x11-base", "",d)} \ | ||
39 | ${@base_contains("IMAGE_FEATURES", ["x11-base", "dbg-pkgs"], "task-moblin-x11-base-dbg", "",d)} \ | ||
40 | ${@base_contains("IMAGE_FEATURES", ["x11-base", "dev-pkgs"], "task-moblin-x11-base-dev", "",d)} \ | ||
41 | \ | ||
42 | ${@base_contains("IMAGE_FEATURES", "x11-sato", "task-moblin-x11-sato", "",d)} \ | ||
43 | ${@base_contains("IMAGE_FEATURES", ["x11-sato", "dbg-pkgs"], "task-moblin-x11-sato-dbg", "",d)} \ | ||
44 | ${@base_contains("IMAGE_FEATURES", ["x11-sato", "dev-pkgs"], "task-moblin-x11-sato-dev", "",d)} \ | ||
45 | \ | ||
46 | ${@base_contains("IMAGE_FEATURES", "x11-netbook", "task-moblin-x11-netbook", "", d)} \ | ||
47 | ${@base_contains("IMAGE_FEATURES", ["x11-netbook", "dbg-pkgs"], "task-moblin-x11-netbook-dbg", "", d)} \ | ||
48 | ${@base_contains("IMAGE_FEATURES", ["x11-netbook", "dev-pkgs"], "task-moblin-x11-netbook-dev", "", d)} \ | ||
49 | ${@base_contains("IMAGE_FEATURES", "apps-x11-core", "task-moblin-apps-x11-core", "",d)} \ | ||
50 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-core", "dbg-pkgs"], "task-moblin-apps-x11-core-dbg", "",d)} \ | ||
51 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-core", "dev-pkgs"], "task-moblin-apps-x11-core-dev", "",d)} \ | ||
52 | \ | ||
53 | ${@base_contains("IMAGE_FEATURES", "apps-x11-games", "task-moblin-apps-x11-games", "",d)} \ | ||
54 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-games", "dbg-pkgs"], "task-moblin-apps-x11-games-dbg", "",d)} \ | ||
55 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-games", "dev-pkgs"], "task-moblin-apps-x11-games-dev", "",d)} \ | ||
56 | \ | ||
57 | ${@base_contains("IMAGE_FEATURES", "apps-x11-pimlico", "task-moblin-apps-x11-pimlico", "",d)} \ | ||
58 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-pimlico", "dbg-pkgs"], "task-moblin-apps-x11-pimlico-dbg", "",d)} \ | ||
59 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-pimlico", "dev-pkgs"], "task-moblin-apps-x11-pimlico-dev", "",d)} \ | ||
60 | \ | ||
61 | ${@base_contains("IMAGE_FEATURES", "tools-debug", "task-moblin-tools-debug", "",d)} \ | ||
62 | ${@base_contains("IMAGE_FEATURES", ["tools-debug", "dbg-pkgs"], "task-moblin-tools-debug-dbg", "",d)} \ | ||
63 | ${@base_contains("IMAGE_FEATURES", ["tools-debug", "dev-pkgs"], "task-moblin-tools-debug-dev", "",d)} \ | ||
64 | \ | ||
65 | ${@base_contains("IMAGE_FEATURES", "tools-profile", "task-moblin-tools-profile", "",d)} \ | ||
66 | ${@base_contains("IMAGE_FEATURES", ["tools-profile", "dbg-pkgs"], "task-moblin-tools-profile-dbg", "",d)} \ | ||
67 | ${@base_contains("IMAGE_FEATURES", ["tools-profile", "dev-pkgs"], "task-moblin-tools-profile-dev", "",d)} \ | ||
68 | \ | ||
69 | ${@base_contains("IMAGE_FEATURES", "tools-testapps", "task-moblin-tools-testapps", "",d)} \ | ||
70 | ${@base_contains("IMAGE_FEATURES", ["tools-testapps", "dbg-pkgs"], "task-moblin-tools-testapps-dbg", "",d)} \ | ||
71 | ${@base_contains("IMAGE_FEATURES", ["tools-testapps", "dev-pkgs"], "task-moblin-tools-testapps-dev", "",d)} \ | ||
72 | \ | ||
73 | ${@base_contains("IMAGE_FEATURES", "tools-sdk", "task-moblin-sdk task-moblin-standalone-sdk-target", "",d)} \ | ||
74 | ${@base_contains("IMAGE_FEATURES", ["tools-sdk", "dbg-pkgs"], "task-moblin-sdk-dbg", "",d)} \ | ||
75 | ${@base_contains("IMAGE_FEATURES", ["tools-sdk", "dev-pkgs"], "task-moblin-sdk-dev", "",d)} \ | ||
76 | \ | ||
77 | ${@base_contains("IMAGE_FEATURES", "nfs-server", "task-moblin-nfs-server", "",d)} \ | ||
78 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dbg-pkgs"], "task-moblin-nfs-server-dbg", "",d)} \ | ||
79 | |||
80 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dev-pkgs"], "task-moblin-nfs-server-dev", "",d)} \ | ||
81 | \ | ||
82 | ${@base_contains("IMAGE_FEATURES", "package-management", "${ROOTFS_PKGMANAGE}", "",d)} \ | ||
83 | ${MOBLIN_EXTRA_INSTALL} \ | ||
84 | ' | ||
85 | |||
86 | MOBLIN_EXTRA_INSTALL ?= "" | ||
87 | |||
88 | IMAGE_INSTALL ?= "${MOBLIN_BASE_INSTALL}" | ||
89 | |||
90 | X11_IMAGE_FEATURES = "x11-base apps-x11-core package-management" | ||
91 | ENHANCED_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-games apps-x11-pimlico package-management" | ||
92 | SATO_IMAGE_FEATURES = "${ENHANCED_IMAGE_FEATURES} apps-x11-sato" | ||
93 | NETBOOK_IMAGE_FEATURES = "${ENHANCED_IMAGE_FEATURES} apps-x11-netbook" | ||
94 | |||
95 | inherit image | ||
96 | |||
97 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting | ||
98 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp" | ||