diff options
Diffstat (limited to 'meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch')
-rw-r--r-- | meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch b/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch index 74d93618b2..d2a8048e87 100644 --- a/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch +++ b/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f5871e1f3650d6c8a032928cb5d8ca00c275c377 Mon Sep 17 00:00:00 2001 | 1 | From fe9860fd85e49a75bef545e5d9914070491e8002 Mon Sep 17 00:00:00 2001 |
2 | From: Alistair Francis <alistair.francis@wdc.com> | 2 | From: Alistair Francis <alistair.francis@wdc.com> |
3 | Date: Fri, 15 Feb 2019 14:57:41 -0800 | 3 | Date: Fri, 15 Feb 2019 14:57:41 -0800 |
4 | Subject: [PATCH] Makefile: Don't specify mabi or march | 4 | Subject: [PATCH] Makefile: Don't specify mabi or march |
@@ -7,23 +7,26 @@ To avoid | |||
7 | can't link double-float modules with soft-float modules | 7 | can't link double-float modules with soft-float modules |
8 | errors when building 32-bit openSBI don't specify mabi or march. | 8 | errors when building 32-bit openSBI don't specify mabi or march. |
9 | 9 | ||
10 | Upstream-Status: Inappropriate [Fixes a 32-bit Yocto flow bug] | 10 | Upstream-Status: Inappropriate [Fixes a 32-bit OE flow bug] |
11 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | 11 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
12 | |||
12 | --- | 13 | --- |
13 | Makefile | 2 -- | 14 | Makefile | 2 -- |
14 | 1 file changed, 2 deletions(-) | 15 | 1 file changed, 2 deletions(-) |
15 | 16 | ||
17 | diff --git a/Makefile b/Makefile | ||
18 | index ccf8ea3..69e5b38 100644 | ||
16 | --- a/Makefile | 19 | --- a/Makefile |
17 | +++ b/Makefile | 20 | +++ b/Makefile |
18 | @@ -162,7 +162,6 @@ GENFLAGS += $(firmware-genflags-y) | 21 | @@ -169,7 +169,6 @@ GENFLAGS += $(firmware-genflags-y) |
19 | CFLAGS = -g -Wall -Werror -nostdlib -fno-strict-aliasing -O2 | 22 | CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-strict-aliasing -O2 |
20 | CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls | 23 | CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls |
21 | CFLAGS += -mno-save-restore -mstrict-align | 24 | CFLAGS += -mno-save-restore -mstrict-align |
22 | -CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA) | 25 | -CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA) |
23 | CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL) | 26 | CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL) |
24 | CFLAGS += $(GENFLAGS) | 27 | CFLAGS += $(GENFLAGS) |
25 | CFLAGS += $(platform-cflags-y) | 28 | CFLAGS += $(platform-cflags-y) |
26 | @@ -176,7 +175,6 @@ CPPFLAGS += $(firmware-cppflags-y) | 29 | @@ -183,7 +182,6 @@ CPPFLAGS += $(firmware-cppflags-y) |
27 | ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__ | 30 | ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__ |
28 | ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls | 31 | ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls |
29 | ASFLAGS += -mno-save-restore -mstrict-align | 32 | ASFLAGS += -mno-save-restore -mstrict-align |