Dash:
[t2.git] / package / boot / opensbi / 0001-Makefile-Don-t-specify-mabi-or-march.patch
blobb8eca600bf8899bcbca30e185aaf0a6e29835e2f
1 From da4d70284f9172bccb703a833975aef5c5723b3a Mon Sep 17 00:00:00 2001
2 From: Alistair Francis <alistair.francis@wdc.com>
3 Date: Fri, 15 Feb 2019 14:57:41 -0800
4 Subject: [PATCH] Makefile: Don't specify mabi or march
6 To avoid
7 can't link double-float modules with soft-float modules
8 errors when building 32-bit openSBI don't specify mabi or march.
10 Upstream-Status: Inappropriate [Fixes a 32-bit Yocto flow bug]
11 Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
13 ---
14 Makefile | 2 --
15 1 file changed, 2 deletions(-)
17 diff --git a/Makefile b/Makefile
18 index 16d9dca..0f37772 100644
19 --- a/Makefile
20 +++ b/Makefile
21 @@ -254,7 +254,6 @@ GENFLAGS += $(firmware-genflags-y)
22 CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-stack-protector -fno-strict-aliasing -O2
23 CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
24 CFLAGS += -mno-save-restore -mstrict-align
25 -CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
26 CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
27 CFLAGS += $(RELAX_FLAG)
28 CFLAGS += $(GENFLAGS)
29 @@ -269,7 +268,6 @@ CPPFLAGS += $(firmware-cppflags-y)
30 ASFLAGS = -g -Wall -nostdlib
31 ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
32 ASFLAGS += -mno-save-restore -mstrict-align
33 -ASFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
34 ASFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
35 ASFLAGS += $(RELAX_FLAG)
36 ifneq ($(CC_IS_CLANG),y)