diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/classes/core-image.bbclass | |
download | poky-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/classes/core-image.bbclass')
-rw-r--r-- | meta/classes/core-image.bbclass | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass new file mode 100644 index 0000000000..7475d7d8d5 --- /dev/null +++ b/meta/classes/core-image.bbclass | |||
@@ -0,0 +1,79 @@ | |||
1 | # Common code for generating core reference images | ||
2 | # | ||
3 | # Copyright (C) 2007-2011 Linux Foundation | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
6 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
7 | |||
8 | # IMAGE_FEATURES control content of the core reference images | ||
9 | # | ||
10 | # By default we install packagegroup-core-boot and packagegroup-base packages - this gives us | ||
11 | # working (console only) rootfs. | ||
12 | # | ||
13 | # Available IMAGE_FEATURES: | ||
14 | # | ||
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 | # - ssh-server-dropbear - SSH server (dropbear) | ||
25 | # - ssh-server-openssh - SSH server (openssh) | ||
26 | # - qt4-pkgs - Qt4/X11 and demo applications | ||
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 | # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs | ||
31 | # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs | ||
32 | # - doc-pkgs - documentation packages for all installed packages in the rootfs | ||
33 | # - read-only-rootfs - tweaks an image to support read-only rootfs | ||
34 | # | ||
35 | FEATURE_PACKAGES_x11 = "packagegroup-core-x11" | ||
36 | FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base" | ||
37 | FEATURE_PACKAGES_x11-sato = "packagegroup-core-x11-sato" | ||
38 | FEATURE_PACKAGES_tools-debug = "packagegroup-core-tools-debug" | ||
39 | FEATURE_PACKAGES_eclipse-debug = "packagegroup-core-eclipse-debug" | ||
40 | FEATURE_PACKAGES_tools-profile = "packagegroup-core-tools-profile" | ||
41 | FEATURE_PACKAGES_tools-testapps = "packagegroup-core-tools-testapps" | ||
42 | FEATURE_PACKAGES_tools-sdk = "packagegroup-core-sdk packagegroup-core-standalone-sdk-target" | ||
43 | FEATURE_PACKAGES_nfs-server = "packagegroup-core-nfs-server" | ||
44 | FEATURE_PACKAGES_ssh-server-dropbear = "packagegroup-core-ssh-dropbear" | ||
45 | FEATURE_PACKAGES_ssh-server-openssh = "packagegroup-core-ssh-openssh" | ||
46 | FEATURE_PACKAGES_qt4-pkgs = "packagegroup-core-qt-demoapps" | ||
47 | FEATURE_PACKAGES_hwcodecs = "${MACHINE_HWCODECS}" | ||
48 | |||
49 | |||
50 | # IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2' | ||
51 | # Including image feature foo would replace the image features bar1 and bar2 | ||
52 | IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear" | ||
53 | |||
54 | # IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2' | ||
55 | # An error exception would be raised if both image features foo and bar1(or bar2) are included | ||
56 | |||
57 | MACHINE_HWCODECS ??= "" | ||
58 | |||
59 | CORE_IMAGE_BASE_INSTALL = '\ | ||
60 | packagegroup-core-boot \ | ||
61 | packagegroup-base-extended \ | ||
62 | \ | ||
63 | ${CORE_IMAGE_EXTRA_INSTALL} \ | ||
64 | ' | ||
65 | |||
66 | CORE_IMAGE_EXTRA_INSTALL ?= "" | ||
67 | |||
68 | IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" | ||
69 | |||
70 | inherit image | ||
71 | |||
72 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting | ||
73 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; " | ||
74 | |||
75 | # Zap the root password if debug-tweaks feature is not enabled | ||
76 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "", "zap_empty_root_password ; ",d)}' | ||
77 | |||
78 | # Tweak the mount options for rootfs in /etc/fstab if read-only-rootfs is enabled | ||
79 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook; ", "",d)}' | ||