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