summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2019-05-05 23:27:07 +0300
committerKhem Raj <raj.khem@gmail.com>2019-05-05 23:22:39 -0700
commit09ddcc536df7776c4180dfd523ed606a71f7526e (patch)
tree45661f1909486e99e917042b62be0f70254454d4 /meta-oe
parentb99b30f0348b6d113f70c117e577344b7c5eb4ee (diff)
downloadmeta-openembedded-09ddcc536df7776c4180dfd523ed606a71f7526e.tar.gz
efivars: Drop workaround patch for host gcc < 4.7
The -flto change already disappeared in an earlier update. -std=gnu11 and -Wmaybe-uninitialized are supported by gcc >= 4.7, which covers all host distributions that are still supported. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-bsp/efivar/efivar/fix-compile-failure-with-host-gcc-4.6.patch43
-rw-r--r--meta-oe/recipes-bsp/efivar/efivar_37.bb2
2 files changed, 0 insertions, 45 deletions
diff --git a/meta-oe/recipes-bsp/efivar/efivar/fix-compile-failure-with-host-gcc-4.6.patch b/meta-oe/recipes-bsp/efivar/efivar/fix-compile-failure-with-host-gcc-4.6.patch
deleted file mode 100644
index dbc9a5755..000000000
--- a/meta-oe/recipes-bsp/efivar/efivar/fix-compile-failure-with-host-gcc-4.6.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 3edce6a0019bcb90febc1f654b5b2e2bad5c59bd Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 26 May 2016 21:50:01 -0400
4Subject: [PATCH] fix compile failure with older host gcc (<=4.6)
5
6While host gcc version is 4.6.3 in ubuntu 1204, it
7did not recognize -std=gnu11 and -Wmaybe-uninitialized.
8
9While host gcc version is 4.4.7 in centos6, it
10did not recognize -std=gnu11, -Wmaybe-uninitialized,
11and -flto.
12
13For native build, use -std=gnu99 to replace -std=gnu11,
14and directly remove -Wmaybe-uninitialized and -flto.
15
16Upstream-Status: Pending
17
18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
19
20---
21 gcc.specs | 4 ++--
22 1 file changed, 2 insertions(+), 2 deletions(-)
23
24diff --git a/gcc.specs b/gcc.specs
25index 45d43d1..f1c6944 100644
26--- a/gcc.specs
27+++ b/gcc.specs
28@@ -2,13 +2,13 @@
29 + -D_GNU_SOURCE
30
31 *efivar_cpp_options:
32- -Werror -Wall -std=gnu11 -Wextra
33+ -Werror -Wall -std=gnu99 -Wextra
34
35 *cpp_options:
36 + %(efivar_cpp_options)
37
38 *cc1_options:
39-+ %(efivar_cpp_options) -Wmaybe-uninitialized -fno-merge-constants -fvisibility=hidden %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}
40++ %(efivar_cpp_options) -fno-merge-constants -fvisibility=hidden %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}
41
42 *self_spec:
43 + %{!shared:%{!static:%{!r:-pie}}} %{static:-Wl,-no-fatal-warnings -Wl,-static -static -Wl,-z,relro,-z,now}
diff --git a/meta-oe/recipes-bsp/efivar/efivar_37.bb b/meta-oe/recipes-bsp/efivar/efivar_37.bb
index 8a56e7adc..87f5df423 100644
--- a/meta-oe/recipes-bsp/efivar/efivar_37.bb
+++ b/meta-oe/recipes-bsp/efivar/efivar_37.bb
@@ -19,8 +19,6 @@ SRC_URI = "git://github.com/rhinstaller/efivar.git \
19SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch \ 19SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch \
20 ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'file://0004-fix-unknow-option-for-gold-linker.patch', '', d)} \ 20 ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'file://0004-fix-unknow-option-for-gold-linker.patch', '', d)} \
21 " 21 "
22SRC_URI_append_class-native = " file://fix-compile-failure-with-host-gcc-4.6.patch \
23 "
24 22
25S = "${WORKDIR}/git" 23S = "${WORKDIR}/git"
26 24