summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2019-05-07 21:40:30 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2019-05-13 10:53:07 +0200
commit8c9c1fb3bbfc4d4de3a7079659b6efb340f28389 (patch)
treeda6f405dfe3e8383cd207f5323836baed29bb0dd
parent5e17177a0d5cb1bf758295a083d7bcb774919b24 (diff)
downloadmeta-el-nfv-access-8c9c1fb3bbfc4d4de3a7079659b6efb340f28389.tar.gz
Add Secure Boot support
Change-Id: I09c9b0bad8e85e75fb1510ff374540fad3c3b5d1 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
-rw-r--r--conf/template.atom-c3000/bblayers.conf.sample5
-rw-r--r--conf/template.atom-c3000/local.conf.sample2
-rw-r--r--conf/template.xeon-d/bblayers.conf.sample5
-rw-r--r--conf/template.xeon-d/local.conf.sample2
-rw-r--r--images/enea-nfv-access-host-common.inc1
-rw-r--r--images/secure-boot.inc18
6 files changed, 31 insertions, 2 deletions
diff --git a/conf/template.atom-c3000/bblayers.conf.sample b/conf/template.atom-c3000/bblayers.conf.sample
index a5e705d..d8b8fc3 100644
--- a/conf/template.atom-c3000/bblayers.conf.sample
+++ b/conf/template.atom-c3000/bblayers.conf.sample
@@ -23,4 +23,9 @@ BBLAYERS ?= " \
23 ##OEROOT##/meta-openembedded/meta-webserver \ 23 ##OEROOT##/meta-openembedded/meta-webserver \
24 ##OEROOT##/meta-java \ 24 ##OEROOT##/meta-java \
25 ##OEROOT##/meta-updater \ 25 ##OEROOT##/meta-updater \
26 ##OEROOT##/meta-openembedded/meta-perl \
27 ##OEROOT##/meta-secure-core/meta \
28 ##OEROOT##/meta-secure-core/meta-signing-key \
29 ##OEROOT##/meta-secure-core/meta-efi-secure-boot \
30 ##OEROOT##/meta-enea-user-keys \
26 " 31 "
diff --git a/conf/template.atom-c3000/local.conf.sample b/conf/template.atom-c3000/local.conf.sample
index 8c24e77..544d279 100644
--- a/conf/template.atom-c3000/local.conf.sample
+++ b/conf/template.atom-c3000/local.conf.sample
@@ -244,6 +244,6 @@ SKIP_META_VIRT_SANITY_CHECK = "1"
244 244
245SOTA_MACHINE ?= "${MACHINE}" 245SOTA_MACHINE ?= "${MACHINE}"
246 246
247DISTRO_FEATURES_append = " sota" 247DISTRO_FEATURES_append = " sota efi-secure-boot"
248DISTRO_FEATURES_NATIVE_append = " sota" 248DISTRO_FEATURES_NATIVE_append = " sota"
249INHERIT += " sota" 249INHERIT += " sota"
diff --git a/conf/template.xeon-d/bblayers.conf.sample b/conf/template.xeon-d/bblayers.conf.sample
index a5e705d..d8b8fc3 100644
--- a/conf/template.xeon-d/bblayers.conf.sample
+++ b/conf/template.xeon-d/bblayers.conf.sample
@@ -23,4 +23,9 @@ BBLAYERS ?= " \
23 ##OEROOT##/meta-openembedded/meta-webserver \ 23 ##OEROOT##/meta-openembedded/meta-webserver \
24 ##OEROOT##/meta-java \ 24 ##OEROOT##/meta-java \
25 ##OEROOT##/meta-updater \ 25 ##OEROOT##/meta-updater \
26 ##OEROOT##/meta-openembedded/meta-perl \
27 ##OEROOT##/meta-secure-core/meta \
28 ##OEROOT##/meta-secure-core/meta-signing-key \
29 ##OEROOT##/meta-secure-core/meta-efi-secure-boot \
30 ##OEROOT##/meta-enea-user-keys \
26 " 31 "
diff --git a/conf/template.xeon-d/local.conf.sample b/conf/template.xeon-d/local.conf.sample
index 3b1063e..34f5890 100644
--- a/conf/template.xeon-d/local.conf.sample
+++ b/conf/template.xeon-d/local.conf.sample
@@ -245,6 +245,6 @@ SKIP_META_VIRT_SANITY_CHECK = "1"
245 245
246SOTA_MACHINE ?= "${MACHINE}" 246SOTA_MACHINE ?= "${MACHINE}"
247 247
248DISTRO_FEATURES_append = " sota" 248DISTRO_FEATURES_append = " sota efi-secure-boot"
249DISTRO_FEATURES_NATIVE_append = " sota" 249DISTRO_FEATURES_NATIVE_append = " sota"
250INHERIT += " sota" 250INHERIT += " sota"
diff --git a/images/enea-nfv-access-host-common.inc b/images/enea-nfv-access-host-common.inc
index 6e3df91..352f734 100644
--- a/images/enea-nfv-access-host-common.inc
+++ b/images/enea-nfv-access-host-common.inc
@@ -1,5 +1,6 @@
1require images/enea-nfv-access-common.inc 1require images/enea-nfv-access-common.inc
2require classes/override_grub-efi.inc 2require classes/override_grub-efi.inc
3require images/secure-boot.inc
3 4
4IMAGE_INSTALL += " \ 5IMAGE_INSTALL += " \
5 packagegroup-enea-virtualization-host \ 6 packagegroup-enea-virtualization-host \
diff --git a/images/secure-boot.inc b/images/secure-boot.inc
new file mode 100644
index 0000000..d482ae1
--- /dev/null
+++ b/images/secure-boot.inc
@@ -0,0 +1,18 @@
1SECURE_CORE_IMAGE_EXTRA_INSTALL_append += "\
2 ${@bb.utils.contains("DISTRO_FEATURES", "efi-secure-boot", \
3 "packagegroup-efi-secure-boot", "", d)} \
4 ${@bb.utils.contains("DISTRO_FEATURES", "tpm", \
5 "packagegroup-tpm", "", d)} \
6 ${@bb.utils.contains("DISTRO_FEATURES", "tpm2", \
7 "packagegroup-tpm2", "", d)} \
8 ${@bb.utils.contains("DISTRO_FEATURES", "ima", \
9 "packagegroup-ima", "", d)} \
10 ${@bb.utils.contains("DISTRO_FEATURES", "luks", \
11 "packagegroup-luks", "", d)} \
12 ${@bb.utils.contains("DISTRO_FEATURES", "ids", \
13 "packagegroup-ids", "", d)} \
14"
15
16IMAGE_INSTALL += "\
17 ${SECURE_CORE_IMAGE_EXTRA_INSTALL} \
18"