blob: 9c2d0eb479f626d401fc51cb17f480ac8557a043 [file] [log] [blame]
Brad Bishopf3fd2882019-06-21 08:06:37 -04001From f5871e1f3650d6c8a032928cb5d8ca00c275c377 Mon Sep 17 00:00:00 2001
2From: Alistair Francis <alistair.francis@wdc.com>
3Date: Fri, 15 Feb 2019 14:57:41 -0800
4Subject: [PATCH] Makefile: Don't specify mabi or march
5
6To avoid
7 can't link double-float modules with soft-float modules
8errors when building 32-bit openSBI don't specify mabi or march.
9
10Upstream-Status: Inappropriate [Fixes a 32-bit Yocto flow bug]
11Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
12---
13 Makefile | 2 --
14 1 file changed, 2 deletions(-)
15
16diff --git a/Makefile b/Makefile
17index ae68f55..10851fc 100644
18--- a/Makefile
19+++ b/Makefile
20@@ -145,7 +145,6 @@ GENFLAGS += $(firmware-genflags-y)
21 CFLAGS = -g -Wall -Werror -nostdlib -fno-strict-aliasing -O2
22 CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
23 CFLAGS += -mno-save-restore -mstrict-align
24-CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
25 CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
26 CFLAGS += $(GENFLAGS)
27 CFLAGS += $(platform-cflags-y)
28@@ -158,7 +157,6 @@ CPPFLAGS += $(firmware-cppflags-y)
29 ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__
30 ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
31 ASFLAGS += -mno-save-restore -mstrict-align
32-ASFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
33 ASFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
34 ASFLAGS += $(GENFLAGS)
35 ASFLAGS += $(platform-asflags-y)
36--
372.20.1
38