diff options
| -rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/gnu-efi-3.0.9-fix-clang-build.patch | 24 | ||||
| -rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi_3.0.9.bb | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi/gnu-efi-3.0.9-fix-clang-build.patch b/meta/recipes-bsp/gnu-efi/gnu-efi/gnu-efi-3.0.9-fix-clang-build.patch new file mode 100644 index 0000000000..c6d660095e --- /dev/null +++ b/meta/recipes-bsp/gnu-efi/gnu-efi/gnu-efi-3.0.9-fix-clang-build.patch | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Fix building with CLANG-9.0.0 | ||
| 2 | |||
| 3 | Fixes | ||
| 4 | clang-9: error: unknown argument: '-maccumulate-outgoing-args' | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://sourceforge.net/p/gnu-efi/patches/70/] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | |||
| 9 | --- a/Make.defaults | ||
| 10 | +++ b/Make.defaults | ||
| 11 | @@ -110,10 +110,10 @@ | ||
| 12 | || ( [ $(GCCVERSION) -eq "4" ] \ | ||
| 13 | && [ $(GCCMINOR) -ge "7" ] ) ) \ | ||
| 14 | && echo 1) | ||
| 15 | - ifeq ($(GCCNEWENOUGH),1) | ||
| 16 | - CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11 | ||
| 17 | - else ifeq ($(USING_CLANG),clang) | ||
| 18 | + ifeq ($(USING_CLANG),clang) | ||
| 19 | CPPFLAGS += -DGNU_EFI_USE_MS_ABI --std=c11 | ||
| 20 | + else ifeq ($(GCCNEWENOUGH),1) | ||
| 21 | + CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11 | ||
| 22 | endif | ||
| 23 | |||
| 24 | CFLAGS += -mno-red-zone | ||
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.9.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.9.bb index f844435472..6d4c303353 100644 --- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.9.bb +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.9.bb | |||
| @@ -15,6 +15,7 @@ LIC_FILES_CHKSUM = "file://gnuefi/crt0-efi-arm.S;beginline=4;endline=16;md5=e582 | |||
| 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \ | 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \ |
| 16 | file://parallel-make-archives.patch \ | 16 | file://parallel-make-archives.patch \ |
| 17 | file://lib-Makefile-fix-parallel-issue.patch \ | 17 | file://lib-Makefile-fix-parallel-issue.patch \ |
| 18 | file://gnu-efi-3.0.9-fix-clang-build.patch \ | ||
| 18 | " | 19 | " |
| 19 | 20 | ||
| 20 | SRC_URI[md5sum] = "32af17b917545a693e549af2439c4a99" | 21 | SRC_URI[md5sum] = "32af17b917545a693e549af2439c4a99" |
