diff options
author | Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com> | 2019-07-24 16:03:36 +0300 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-08-04 12:17:25 -0700 |
commit | 60fc73e4daa6a8d02e4340a40dbf319fbd955740 (patch) | |
tree | f9bd09cfecd87b84bc8695d0a790553d8810c61c | |
parent | e3352832a70a609538c0d6c549b6ad523c5bf0f4 (diff) | |
download | meta-security-60fc73e4daa6a8d02e4340a40dbf319fbd955740.tar.gz |
tpm2-tcti-uefi: stop inserting host directories into build path
Do not insert /usr/lib and /usr/lib64 into LDFLAGS.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi/0001-configure.ac-stop-inserting-host-directories-into-co.patch | 27 | ||||
-rw-r--r-- | meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi/0001-configure.ac-stop-inserting-host-directories-into-co.patch b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi/0001-configure.ac-stop-inserting-host-directories-into-co.patch new file mode 100644 index 0000000..3b54ddd --- /dev/null +++ b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi/0001-configure.ac-stop-inserting-host-directories-into-co.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From b74837184cfdefb45e48f3fdc974fc67691fc861 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com> | ||
3 | Date: Wed, 3 Jul 2019 19:16:35 +0300 | ||
4 | Subject: [PATCH] configure.ac: stop inserting host directories into compile | ||
5 | path | ||
6 | |||
7 | Do not insert /usr/lib and /usr/lib64 into library search path. | ||
8 | |||
9 | Upstream-Status: OE specific | ||
10 | Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com> | ||
11 | --- | ||
12 | configure.ac | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | Index: git/configure.ac | ||
16 | =================================================================== | ||
17 | --- git.orig/configure.ac | ||
18 | +++ git/configure.ac | ||
19 | @@ -81,7 +81,7 @@ AC_ARG_WITH([efi-lds], | ||
20 | AS_HELP_STRING([--with-efi-lds=LDS_PATH],[Path to gnu-efi lds file.]), | ||
21 | [], | ||
22 | [with_efi_lds="/usr/lib/elf_${ARCH}_efi.lds"]) | ||
23 | -EXTRA_LDFLAGS="-L /usr/lib -L /usr/lib64 -Wl,--script=${with_efi_lds}" | ||
24 | +EXTRA_LDFLAGS="-Wl,--script=${with_efi_lds}" | ||
25 | |||
26 | # path to object file from gnu-efi | ||
27 | AC_ARG_WITH([efi-crt0], | ||
diff --git a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb index 0314050..b2d0b85 100644 --- a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb +++ b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb | |||
@@ -6,6 +6,7 @@ DEPENDS = "libtss2-dev gnu-efi-native gnu-efi pkgconfig autoconf-archive-native" | |||
6 | 6 | ||
7 | SRC_URI = "git://github.com/tpm2-software/tpm2-tcti-uefi.git \ | 7 | SRC_URI = "git://github.com/tpm2-software/tpm2-tcti-uefi.git \ |
8 | file://configure_oe_fixup.patch \ | 8 | file://configure_oe_fixup.patch \ |
9 | file://0001-configure.ac-stop-inserting-host-directories-into-co.patch \ | ||
9 | " | 10 | " |
10 | SRCREV = "7baf1eebfeb56a896bdd5d677fb24377d619eb9d" | 11 | SRCREV = "7baf1eebfeb56a896bdd5d677fb24377d619eb9d" |
11 | 12 | ||