diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-10 14:35:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 15:27:17 +0100 |
commit | fd1517e2b51a170f2427122c6b95396db251d827 (patch) | |
tree | dabfe3e631339c2fc99a9ee7febb0f9c128e325e /meta/classes-recipe/core-image.bbclass | |
parent | 10317912ee319ccf7f83605d438b5cbf9663f296 (diff) | |
download | poky-fd1517e2b51a170f2427122c6b95396db251d827.tar.gz |
classes: Update classes to match new bitbake class scope functionality
Move classes to classes-global or classes-recipe as appropriate to take
advantage of new bitbake functionality to check class scope/usage.
(From OE-Core rev: f5c128008365e141082c129417eb72d2751e8045)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/core-image.bbclass')
-rw-r--r-- | meta/classes-recipe/core-image.bbclass | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/meta/classes-recipe/core-image.bbclass b/meta/classes-recipe/core-image.bbclass new file mode 100644 index 0000000000..7ef7d07390 --- /dev/null +++ b/meta/classes-recipe/core-image.bbclass | |||
@@ -0,0 +1,81 @@ | |||
1 | # Common code for generating core reference images | ||
2 | # | ||
3 | # Copyright (C) 2007-2011 Linux Foundation | ||
4 | # | ||
5 | # SPDX-License-Identifier: MIT | ||
6 | |||
7 | # IMAGE_FEATURES control content of the core reference images | ||
8 | # | ||
9 | # By default we install packagegroup-core-boot and packagegroup-base-extended packages; | ||
10 | # this gives us working (console only) rootfs. | ||
11 | # | ||
12 | # Available IMAGE_FEATURES: | ||
13 | # | ||
14 | # - weston - Weston Wayland compositor | ||
15 | # - x11 - X server | ||
16 | # - x11-base - X server with minimal environment | ||
17 | # - x11-sato - OpenedHand Sato environment | ||
18 | # - tools-debug - debugging tools | ||
19 | # - eclipse-debug - Eclipse remote debugging support | ||
20 | # - tools-profile - profiling tools | ||
21 | # - tools-testapps - tools usable to make some device tests | ||
22 | # - tools-sdk - SDK (C/C++ compiler, autotools, etc.) | ||
23 | # - nfs-server - NFS server | ||
24 | # - nfs-client - NFS client | ||
25 | # - ssh-server-dropbear - SSH server (dropbear) | ||
26 | # - ssh-server-openssh - SSH server (openssh) | ||
27 | # - hwcodecs - Install hardware acceleration codecs | ||
28 | # - package-management - installs package management tools and preserves the package manager database | ||
29 | # - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins | ||
30 | # - empty-root-password | ||
31 | # - allow-empty-password | ||
32 | # - allow-root-login | ||
33 | # - post-install-logging | ||
34 | # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs | ||
35 | # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs | ||
36 | # - lic-pkgs - license packages for all installed pacakges in the rootfs, requires | ||
37 | # LICENSE_CREATE_PACKAGE="1" to be set when building packages too | ||
38 | # - doc-pkgs - documentation packages for all installed packages in the rootfs | ||
39 | # - bash-completion-pkgs - bash-completion packages for recipes using bash-completion bbclass | ||
40 | # - ptest-pkgs - ptest packages for all ptest-enabled recipes | ||
41 | # - read-only-rootfs - tweaks an image to support read-only rootfs | ||
42 | # - stateless-rootfs - systemctl-native not run, image populated by systemd at runtime | ||
43 | # - splash - bootup splash screen | ||
44 | # | ||
45 | FEATURE_PACKAGES_weston = "packagegroup-core-weston" | ||
46 | FEATURE_PACKAGES_x11 = "packagegroup-core-x11" | ||
47 | FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base" | ||
48 | FEATURE_PACKAGES_x11-sato = "packagegroup-core-x11-sato" | ||
49 | FEATURE_PACKAGES_tools-debug = "packagegroup-core-tools-debug" | ||
50 | FEATURE_PACKAGES_eclipse-debug = "packagegroup-core-eclipse-debug" | ||
51 | FEATURE_PACKAGES_tools-profile = "packagegroup-core-tools-profile" | ||
52 | FEATURE_PACKAGES_tools-testapps = "packagegroup-core-tools-testapps" | ||
53 | FEATURE_PACKAGES_tools-sdk = "packagegroup-core-sdk packagegroup-core-standalone-sdk-target" | ||
54 | FEATURE_PACKAGES_nfs-server = "packagegroup-core-nfs-server" | ||
55 | FEATURE_PACKAGES_nfs-client = "packagegroup-core-nfs-client" | ||
56 | FEATURE_PACKAGES_ssh-server-dropbear = "packagegroup-core-ssh-dropbear" | ||
57 | FEATURE_PACKAGES_ssh-server-openssh = "packagegroup-core-ssh-openssh" | ||
58 | FEATURE_PACKAGES_hwcodecs = "${MACHINE_HWCODECS}" | ||
59 | |||
60 | |||
61 | # IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2' | ||
62 | # Including image feature foo would replace the image features bar1 and bar2 | ||
63 | IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear" | ||
64 | |||
65 | # IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2' | ||
66 | # An error exception would be raised if both image features foo and bar1(or bar2) are included | ||
67 | |||
68 | MACHINE_HWCODECS ??= "" | ||
69 | |||
70 | CORE_IMAGE_BASE_INSTALL = '\ | ||
71 | packagegroup-core-boot \ | ||
72 | packagegroup-base-extended \ | ||
73 | \ | ||
74 | ${CORE_IMAGE_EXTRA_INSTALL} \ | ||
75 | ' | ||
76 | |||
77 | CORE_IMAGE_EXTRA_INSTALL ?= "" | ||
78 | |||
79 | IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" | ||
80 | |||
81 | inherit image | ||