[oe-commits] [meta-openembedded] 27/48: efivar: fix build when host gcc version is < 4.9

git at git.openembedded.org git at git.openembedded.org
Wed Sep 13 09:11:44 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch master
in repository meta-openembedded.

commit 09a285db6125f923d6a7dcaf6a31c898c811238e
Author: Mikko Ylinen <mikko.ylinen at linux.intel.com>
AuthorDate: Fri Sep 8 14:10:39 2017 +0300

    efivar: fix build when host gcc version is < 4.9
    
    efivar v27 started using C11 _Generic keyword in macros but that
    is not implemented in gcc until 4.9. This makes efivar-native
    (which is a dependency to efivar) build to fail if the builder host
    gcc version is < 4.9.
    
    It turns out only 'makeguids' generator needs to be built for the
    build arch to generate GENERATED_SOURCES for efivar target build.
    'makeguids' sources/includes have no gcc version dependencies so
    to fix efivar build when host gcc < 4.9, we simply build 'makeguids'
    target for efivar-native.
    
    Signed-off-by: Mikko Ylinen <mikko.ylinen at linux.intel.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-oe/recipes-extended/efivar/efivar_0.31.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/efivar/efivar_0.31.bb b/meta-oe/recipes-extended/efivar/efivar_0.31.bb
index 6ad3b36..9d4cdc9 100644
--- a/meta-oe/recipes-extended/efivar/efivar_0.31.bb
+++ b/meta-oe/recipes-extended/efivar/efivar_0.31.bb
@@ -35,11 +35,15 @@ do_compile_prepend() {
     sed -i -e s:-Werror::g ${S}/gcc.specs
 }
 
+do_compile_class-native() {
+    oe_runmake -C src makeguids
+}
+
 do_install() {
     oe_runmake install DESTDIR=${D}
 }
 
-do_install_append_class-native() {
+do_install_class-native() {
     install -D -m 0755 ${B}/src/makeguids ${D}${bindir}/makeguids
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list