summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2017-07-03 09:18:51 +0800
committerLans Zhang <jia.zhang@windriver.com>2017-07-03 09:18:51 +0800
commit0551bc8d84fb533d0e129c94bd7028414b34e531 (patch)
tree42af03c192496abddd2545bbac6607698f49eb8d
parent8c7accebabbf187ee7a273ce49c38ce46004ebde (diff)
downloadmeta-secure-core-0551bc8d84fb533d0e129c94bd7028414b34e531.tar.gz
secure-core-image-initramfs: define the initramfs image type
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
-rw-r--r--meta/recipes-core/images/secure-core-image-initramfs.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-core/images/secure-core-image-initramfs.bb b/meta/recipes-core/images/secure-core-image-initramfs.bb
new file mode 100644
index 0000000..e0f25b0
--- /dev/null
+++ b/meta/recipes-core/images/secure-core-image-initramfs.bb
@@ -0,0 +1,35 @@
1DESCRIPTION = "Small image capable of booting a device. The kernel includes \
2the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \
3first 'init' program more efficiently."
4LICENSE = "MIT"
5
6ROOTFS_BOOTSTRAP_INSTALL_append += "\
7 ${@bb.utils.contains("DISTRO_FEATURES", "tpm2", \
8 "packagegroup-tpm2-initramfs", "", d)} \
9 ${@bb.utils.contains("DISTRO_FEATURES", "ima", \
10 "packagegroup-ima-initramfs", "", d)} \
11 ${@bb.utils.contains("DISTRO_FEATURES", "encrypted-storage", \
12 "packagegroup-encrypted-storage-initramfs", "", d)} \
13"
14
15PACKAGE_INSTALL = "\
16 initramfs-secure-core \
17 ${VIRTUAL-RUNTIME_base-utils} \
18 base-passwd \
19 ${ROOTFS_BOOTSTRAP_INSTALL} \
20"
21
22# Do not pollute the initrd image with rootfs features
23IMAGE_FEATURES = ""
24
25export IMAGE_BASENAME = "secure-core-image-initramfs"
26IMAGE_LINGUAS = ""
27
28IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
29
30inherit core-image
31
32IMAGE_ROOTFS_SIZE = "8192"
33IMAGE_ROOTFS_EXTRA_SPACE = "0"
34
35BAD_RECOMMENDATIONS += "busybox-syslog"