diff options
| author | Armin Kuster <akuster808@gmail.com> | 2020-07-09 01:21:34 +0000 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2020-07-18 18:26:44 -0700 |
| commit | f4dd53438a4c0f618ec2f2a32150ca268e0854c0 (patch) | |
| tree | 542f20e9570a06e5df4220c429d6e5b15a6dca12 | |
| parent | fcd4121f0b25e97df5b47320b03781b7fea67086 (diff) | |
| download | meta-security-f4dd53438a4c0f618ec2f2a32150ca268e0854c0.tar.gz | |
strongswan: add bbappends for tpm changes
Signed-off-by: Armin Kuster <akuster808@gmail.com>
3 files changed, 51 insertions, 0 deletions
diff --git a/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/files/0001-xfrmi-Only-build-if-libcharon-is-built.patch b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/files/0001-xfrmi-Only-build-if-libcharon-is-built.patch new file mode 100644 index 0000000..8250282 --- /dev/null +++ b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/files/0001-xfrmi-Only-build-if-libcharon-is-built.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From db772305c6baa01f6c6750be74733e4bfc1d6106 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tobias Brunner <tobias@strongswan.org> | ||
| 3 | Date: Tue, 14 Apr 2020 10:44:19 +0200 | ||
| 4 | Subject: [PATCH] xfrmi: Only build if libcharon is built | ||
| 5 | |||
| 6 | The kernel-netlink plugin is only built if libcharon is. | ||
| 7 | |||
| 8 | Closes strongswan/strongswan#167. | ||
| 9 | |||
| 10 | Upstream-Status: Backport | ||
| 11 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
| 12 | |||
| 13 | --- | ||
| 14 | src/Makefile.am | 7 +++---- | ||
| 15 | 1 file changed, 3 insertions(+), 4 deletions(-) | ||
| 16 | |||
| 17 | Index: strongswan-5.8.4/src/Makefile.am | ||
| 18 | =================================================================== | ||
| 19 | --- strongswan-5.8.4.orig/src/Makefile.am | ||
| 20 | +++ strongswan-5.8.4/src/Makefile.am | ||
| 21 | @@ -42,6 +42,9 @@ endif | ||
| 22 | |||
| 23 | if USE_LIBCHARON | ||
| 24 | SUBDIRS += libcharon | ||
| 25 | +if USE_KERNEL_NETLINK | ||
| 26 | + SUBDIRS += xfrmi | ||
| 27 | +endif | ||
| 28 | endif | ||
| 29 | |||
| 30 | if USE_FILE_CONFIG | ||
| 31 | @@ -143,7 +146,3 @@ endif | ||
| 32 | if USE_TPM | ||
| 33 | SUBDIRS += tpm_extendpcr | ||
| 34 | endif | ||
| 35 | - | ||
| 36 | -if USE_KERNEL_NETLINK | ||
| 37 | - SUBDIRS += xfrmi | ||
| 38 | -endif | ||
diff --git a/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc new file mode 100644 index 0000000..d8604e1 --- /dev/null +++ b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
| 2 | |||
| 3 | DEPENDS = "libtspi" | ||
| 4 | |||
| 5 | SRC_URI_append = " file://0001-xfrmi-Only-build-if-libcharon-is-built.patch" | ||
| 6 | |||
| 7 | PACKAGECONFIG += "aikgen tpm" | ||
| 8 | |||
| 9 | PACKAGECONFIG[tpm] = "--enable-tpm,--disable-tpm,," | ||
| 10 | PACKAGECONFIG[aikgen] = "--enable-aikgen,--disable-aikgen,," | ||
| 11 | |||
| 12 | EXTRA_OECONF += "--with-linux-headers=${STAGING_KERNEL_DIR}" | ||
diff --git a/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan_5.%.bbappend b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan_5.%.bbappend new file mode 100644 index 0000000..34757bb --- /dev/null +++ b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan_5.%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| require ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', 'strongswan-tpm.inc', '', d)} | |||
