From eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 Mon Sep 17 00:00:00 2001 From: Dave Cobbley Date: Tue, 14 Aug 2018 10:05:37 -0700 Subject: [Subtree] Removing import-layers directory As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley Signed-off-by: Brad Bishop --- poky/meta/classes/core-image.bbclass | 72 ++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 poky/meta/classes/core-image.bbclass (limited to 'poky/meta/classes/core-image.bbclass') diff --git a/poky/meta/classes/core-image.bbclass b/poky/meta/classes/core-image.bbclass new file mode 100644 index 000000000..a9a2cec68 --- /dev/null +++ b/poky/meta/classes/core-image.bbclass @@ -0,0 +1,72 @@ +# Common code for generating core reference images +# +# Copyright (C) 2007-2011 Linux Foundation + +# IMAGE_FEATURES control content of the core reference images +# +# By default we install packagegroup-core-boot and packagegroup-base-extended packages; +# this gives us working (console only) rootfs. +# +# Available IMAGE_FEATURES: +# +# - x11 - X server +# - x11-base - X server with minimal environment +# - x11-sato - OpenedHand Sato environment +# - tools-debug - debugging tools +# - eclipse-debug - Eclipse remote debugging support +# - tools-profile - profiling tools +# - tools-testapps - tools usable to make some device tests +# - tools-sdk - SDK (C/C++ compiler, autotools, etc.) +# - nfs-server - NFS server +# - nfs-client - NFS client +# - ssh-server-dropbear - SSH server (dropbear) +# - ssh-server-openssh - SSH server (openssh) +# - hwcodecs - Install hardware acceleration codecs +# - package-management - installs package management tools and preserves the package manager database +# - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins +# - empty-root-password +# - allow-empty-password +# - post-install-logging +# - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs +# - dbg-pkgs - debug symbol packages for all installed packages in the rootfs +# - doc-pkgs - documentation packages for all installed packages in the rootfs +# - ptest-pkgs - ptest packages for all ptest-enabled recipes +# - read-only-rootfs - tweaks an image to support read-only rootfs +# - splash - bootup splash screen +# +FEATURE_PACKAGES_x11 = "packagegroup-core-x11" +FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base" +FEATURE_PACKAGES_x11-sato = "packagegroup-core-x11-sato" +FEATURE_PACKAGES_tools-debug = "packagegroup-core-tools-debug" +FEATURE_PACKAGES_eclipse-debug = "packagegroup-core-eclipse-debug" +FEATURE_PACKAGES_tools-profile = "packagegroup-core-tools-profile" +FEATURE_PACKAGES_tools-testapps = "packagegroup-core-tools-testapps" +FEATURE_PACKAGES_tools-sdk = "packagegroup-core-sdk packagegroup-core-standalone-sdk-target" +FEATURE_PACKAGES_nfs-server = "packagegroup-core-nfs-server" +FEATURE_PACKAGES_nfs-client = "packagegroup-core-nfs-client" +FEATURE_PACKAGES_ssh-server-dropbear = "packagegroup-core-ssh-dropbear" +FEATURE_PACKAGES_ssh-server-openssh = "packagegroup-core-ssh-openssh" +FEATURE_PACKAGES_hwcodecs = "${MACHINE_HWCODECS}" + + +# IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2' +# Including image feature foo would replace the image features bar1 and bar2 +IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear" + +# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2' +# An error exception would be raised if both image features foo and bar1(or bar2) are included + +MACHINE_HWCODECS ??= "" + +CORE_IMAGE_BASE_INSTALL = '\ + packagegroup-core-boot \ + packagegroup-base-extended \ + \ + ${CORE_IMAGE_EXTRA_INSTALL} \ + ' + +CORE_IMAGE_EXTRA_INSTALL ?= "" + +IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" + +inherit image -- cgit v1.2.3