Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Common code for generating core reference images |
| 2 | # |
| 3 | # Copyright (C) 2007-2011 Linux Foundation |
| 4 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | # IMAGE_FEATURES control content of the core reference images |
| 6 | # |
| 7 | # By default we install packagegroup-core-boot and packagegroup-base-extended packages; |
| 8 | # this gives us working (console only) rootfs. |
| 9 | # |
| 10 | # Available IMAGE_FEATURES: |
| 11 | # |
| 12 | # - x11 - X server |
| 13 | # - x11-base - X server with minimal environment |
| 14 | # - x11-sato - OpenedHand Sato environment |
| 15 | # - tools-debug - debugging tools |
| 16 | # - eclipse-debug - Eclipse remote debugging support |
| 17 | # - tools-profile - profiling tools |
| 18 | # - tools-testapps - tools usable to make some device tests |
| 19 | # - tools-sdk - SDK (C/C++ compiler, autotools, etc.) |
| 20 | # - nfs-server - NFS server |
| 21 | # - nfs-client - NFS client |
| 22 | # - ssh-server-dropbear - SSH server (dropbear) |
| 23 | # - ssh-server-openssh - SSH server (openssh) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | # - hwcodecs - Install hardware acceleration codecs |
| 25 | # - package-management - installs package management tools and preserves the package manager database |
| 26 | # - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | # - empty-root-password |
| 28 | # - allow-empty-password |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 29 | # - allow-root-login |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | # - post-install-logging |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs |
| 32 | # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs |
| 33 | # - doc-pkgs - documentation packages for all installed packages in the rootfs |
Brad Bishop | 00e122a | 2019-10-05 11:10:57 -0400 | [diff] [blame] | 34 | # - bash-completion-pkgs - bash-completion packages for recipes using bash-completion bbclass |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | # - ptest-pkgs - ptest packages for all ptest-enabled recipes |
| 36 | # - read-only-rootfs - tweaks an image to support read-only rootfs |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 37 | # - stateless-rootfs - systemctl-native not run, image populated by systemd at runtime |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 38 | # - splash - bootup splash screen |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | # |
| 40 | FEATURE_PACKAGES_x11 = "packagegroup-core-x11" |
| 41 | FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base" |
| 42 | FEATURE_PACKAGES_x11-sato = "packagegroup-core-x11-sato" |
| 43 | FEATURE_PACKAGES_tools-debug = "packagegroup-core-tools-debug" |
| 44 | FEATURE_PACKAGES_eclipse-debug = "packagegroup-core-eclipse-debug" |
| 45 | FEATURE_PACKAGES_tools-profile = "packagegroup-core-tools-profile" |
| 46 | FEATURE_PACKAGES_tools-testapps = "packagegroup-core-tools-testapps" |
| 47 | FEATURE_PACKAGES_tools-sdk = "packagegroup-core-sdk packagegroup-core-standalone-sdk-target" |
| 48 | FEATURE_PACKAGES_nfs-server = "packagegroup-core-nfs-server" |
| 49 | FEATURE_PACKAGES_nfs-client = "packagegroup-core-nfs-client" |
| 50 | FEATURE_PACKAGES_ssh-server-dropbear = "packagegroup-core-ssh-dropbear" |
| 51 | FEATURE_PACKAGES_ssh-server-openssh = "packagegroup-core-ssh-openssh" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 52 | FEATURE_PACKAGES_hwcodecs = "${MACHINE_HWCODECS}" |
| 53 | |
| 54 | |
| 55 | # IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2' |
| 56 | # Including image feature foo would replace the image features bar1 and bar2 |
| 57 | IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear" |
| 58 | |
| 59 | # IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2' |
| 60 | # An error exception would be raised if both image features foo and bar1(or bar2) are included |
| 61 | |
| 62 | MACHINE_HWCODECS ??= "" |
| 63 | |
| 64 | CORE_IMAGE_BASE_INSTALL = '\ |
| 65 | packagegroup-core-boot \ |
| 66 | packagegroup-base-extended \ |
| 67 | \ |
| 68 | ${CORE_IMAGE_EXTRA_INSTALL} \ |
| 69 | ' |
| 70 | |
| 71 | CORE_IMAGE_EXTRA_INSTALL ?= "" |
| 72 | |
| 73 | IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" |
| 74 | |
| 75 | inherit image |