diff options
author | Ross Burton <ross.burton@intel.com> | 2019-07-01 12:25:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-02 08:13:07 +0100 |
commit | 41e7ba16abae9aace26730e5113f57e52477087e (patch) | |
tree | e3401151f6f62b450a41172c4b2e2d2b7c633231 /meta/recipes-bsp/efivar/efivar_37.bb | |
parent | 2f2e8562a04b2a6bcecb7d3587e71e4c90ca897d (diff) | |
download | poky-41e7ba16abae9aace26730e5113f57e52477087e.tar.gz |
efivar: ensure that target security flags are not used to build native code
Also set LDFLAGS=BUILD_LDFLAGS when compiling makeguids to ensure that any
target compiler flags are not passed to the native compiler.
[ YOCTO #13423 ]
(From OE-Core rev: f61e0676aabba9e006c32f0e53c69426368cd4f0)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/efivar/efivar_37.bb')
-rw-r--r-- | meta/recipes-bsp/efivar/efivar_37.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-bsp/efivar/efivar_37.bb b/meta/recipes-bsp/efivar/efivar_37.bb index c4254c70d9..9b95721a4e 100644 --- a/meta/recipes-bsp/efivar/efivar_37.bb +++ b/meta/recipes-bsp/efivar/efivar_37.bb | |||
@@ -23,7 +23,10 @@ LDFLAGS += "-fuse-ld=bfd" | |||
23 | 23 | ||
24 | do_compile_prepend() { | 24 | do_compile_prepend() { |
25 | # Remove when https://github.com/rhboot/efivar/issues/130 is fixed | 25 | # Remove when https://github.com/rhboot/efivar/issues/130 is fixed |
26 | oe_runmake CFLAGS="${BUILD_CFLAGS}" -C src makeguids | 26 | oe_runmake \ |
27 | CFLAGS="${BUILD_CFLAGS}" \ | ||
28 | LDFLAGS="${BUILD_LDFLAGS}" \ | ||
29 | -C src makeguids | ||
27 | } | 30 | } |
28 | 31 | ||
29 | do_install() { | 32 | do_install() { |