meta-secure-core: initial commit

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
Lans Zhang
2017-06-22 15:22:01 +08:00
commit 1b3e594449
204 changed files with 14086 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "secure-core"
BBFILE_PATTERN_secure-core = "^${LAYERDIR}/"
BBFILE_PRIORITY_secure-core = "10"
LAYERDEPENDS_secure-core = "\
core \
"
@@ -0,0 +1,23 @@
SUMMARY = "The root image of SecureCore."
SECURE_CORE_IMAGE_EXTRA_INSTALL_append += "\
${@bb.utils.contains("DISTRO_FEATURES", "efi-secure-boot", \
"packagegroup-efi-secure-boot", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "tpm", \
"packagegroup-tpm", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "tpm2", \
"packagegroup-tpm2", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "encrypted-storage", \
"packagegroup-encrypted-storage", "", d)} \
"
IMAGE_INSTALL = "packagegroup-core-boot ${SECURE_CORE_IMAGE_EXTRA_INSTALL}"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
IMAGE_ROOTFS_SIZE ?= "8192"
IMAGE_ROOTFS_EXTRA_SPACE_append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "" ,d)}"