1# Common code for generating core reference images 2# 3# Copyright (C) 2007-2011 Linux Foundation 4 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# - weston - Weston Wayland compositor 13# - x11 - X server 14# - x11-base - X server with minimal environment 15# - x11-sato - OpenedHand Sato environment 16# - tools-debug - debugging tools 17# - eclipse-debug - Eclipse remote debugging support 18# - tools-profile - profiling tools 19# - tools-testapps - tools usable to make some device tests 20# - tools-sdk - SDK (C/C++ compiler, autotools, etc.) 21# - nfs-server - NFS server 22# - nfs-client - NFS client 23# - ssh-server-dropbear - SSH server (dropbear) 24# - ssh-server-openssh - SSH server (openssh) 25# - hwcodecs - Install hardware acceleration codecs 26# - package-management - installs package management tools and preserves the package manager database 27# - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins 28# - empty-root-password 29# - allow-empty-password 30# - allow-root-login 31# - post-install-logging 32# - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs 33# - dbg-pkgs - debug symbol packages for all installed packages in the rootfs 34# - lic-pkgs - license packages for all installed pacakges in the rootfs, requires 35# LICENSE_CREATE_PACKAGE="1" to be set when building packages too 36# - doc-pkgs - documentation packages for all installed packages in the rootfs 37# - bash-completion-pkgs - bash-completion packages for recipes using bash-completion bbclass 38# - ptest-pkgs - ptest packages for all ptest-enabled recipes 39# - read-only-rootfs - tweaks an image to support read-only rootfs 40# - stateless-rootfs - systemctl-native not run, image populated by systemd at runtime 41# - splash - bootup splash screen 42# 43FEATURE_PACKAGES_weston = "packagegroup-core-weston" 44FEATURE_PACKAGES_x11 = "packagegroup-core-x11" 45FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base" 46FEATURE_PACKAGES_x11-sato = "packagegroup-core-x11-sato" 47FEATURE_PACKAGES_tools-debug = "packagegroup-core-tools-debug" 48FEATURE_PACKAGES_eclipse-debug = "packagegroup-core-eclipse-debug" 49FEATURE_PACKAGES_tools-profile = "packagegroup-core-tools-profile" 50FEATURE_PACKAGES_tools-testapps = "packagegroup-core-tools-testapps" 51FEATURE_PACKAGES_tools-sdk = "packagegroup-core-sdk packagegroup-core-standalone-sdk-target" 52FEATURE_PACKAGES_nfs-server = "packagegroup-core-nfs-server" 53FEATURE_PACKAGES_nfs-client = "packagegroup-core-nfs-client" 54FEATURE_PACKAGES_ssh-server-dropbear = "packagegroup-core-ssh-dropbear" 55FEATURE_PACKAGES_ssh-server-openssh = "packagegroup-core-ssh-openssh" 56FEATURE_PACKAGES_hwcodecs = "${MACHINE_HWCODECS}" 57 58 59# IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2' 60# Including image feature foo would replace the image features bar1 and bar2 61IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear" 62# Do not install openssh complementary packages if either packagegroup-core-ssh-dropbear or dropbear 63# is installed # to avoid openssh-dropbear conflict 64# see [Yocto #14858] for more information 65PACKAGE_EXCLUDE_COMPLEMENTARY:append = "${@bb.utils.contains_any('PACKAGE_INSTALL', 'packagegroup-core-ssh-dropbear dropbear', ' openssh', '' , d)}" 66 67# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2' 68# An error exception would be raised if both image features foo and bar1(or bar2) are included 69 70MACHINE_HWCODECS ??= "" 71 72CORE_IMAGE_BASE_INSTALL = '\ 73 packagegroup-core-boot \ 74 packagegroup-base-extended \ 75 \ 76 ${CORE_IMAGE_EXTRA_INSTALL} \ 77 ' 78 79CORE_IMAGE_EXTRA_INSTALL ?= "" 80 81IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" 82 83inherit image 84