diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2017-06-29 10:50:23 +0800 |
---|---|---|
committer | Lans Zhang <jia.zhang@windriver.com> | 2017-06-29 10:52:06 +0800 |
commit | e664a331d51d7cebc4bf8bfdd39eb534632f90d1 (patch) | |
tree | 0efc342e48013d456e56896b4d945bc0b8d2a90a /meta-integrity | |
parent | ad2d9c8e226c95b36f6fa9bd8ae3efd8551372ac (diff) | |
download | meta-secure-core-e664a331d51d7cebc4bf8bfdd39eb534632f90d1.tar.gz |
code style fixup
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Diffstat (limited to 'meta-integrity')
-rw-r--r-- | meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc b/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc index 34259de..247ae55 100644 --- a/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc +++ b/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc | |||
@@ -6,13 +6,15 @@ DEPENDS += "${@'key-store openssl-native' if d.getVar('IMA_ENABLED', True) == '1 | |||
6 | # key-store-ima-cert is required in runtime but we hope it is available | 6 | # key-store-ima-cert is required in runtime but we hope it is available |
7 | # in initramfs only. So we don't add it to RDEPENDS_${PN} here. | 7 | # in initramfs only. So we don't add it to RDEPENDS_${PN} here. |
8 | 8 | ||
9 | SRC_URI += " \ | 9 | SRC_URI += "\ |
10 | ${@'file://ima.scc file://ima.cfg file://integrity.scc file://integrity.cfg' if d.getVar('IMA_ENABLED', True) == '1' else ''} \ | 10 | ${@'file://ima.scc file://ima.cfg file://integrity.scc file://integrity.cfg' if d.getVar('IMA_ENABLED', True) == '1' else ''} \ |
11 | " | 11 | " |
12 | 12 | ||
13 | do_configure_append() { | 13 | do_configure_append() { |
14 | [ -f "${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.pem" ] && | 14 | if [ -f "${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.pem" ]; then |
15 | openssl x509 -in "${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.pem" \ | 15 | openssl x509 -in "${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.pem" \ |
16 | -outform DER -out "${B}/system_trusted_cert.x509" || | 16 | -outform DER -out "${B}/system_trusted_cert.x509" |
17 | else | ||
17 | true | 18 | true |
19 | fi | ||
18 | } | 20 | } |