blob: d2a8048e87ecade46ff88775515d29ad78bb2a29 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From fe9860fd85e49a75bef545e5d9914070491e8002 Mon Sep 17 00:00:00 2001
Brad Bishopf3fd2882019-06-21 08:06:37 -04002From: 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
Andrew Geissler82c905d2020-04-13 13:39:40 -050010Upstream-Status: Inappropriate [Fixes a 32-bit OE flow bug]
Brad Bishopf3fd2882019-06-21 08:06:37 -040011Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
Brad Bishopf3fd2882019-06-21 08:06:37 -040013---
14 Makefile | 2 --
15 1 file changed, 2 deletions(-)
16
17diff --git a/Makefile b/Makefile
Andrew Geissler82c905d2020-04-13 13:39:40 -050018index ccf8ea3..69e5b38 100644
Brad Bishopf3fd2882019-06-21 08:06:37 -040019--- a/Makefile
20+++ b/Makefile
Andrew Geissler82c905d2020-04-13 13:39:40 -050021@@ -169,7 +169,6 @@ GENFLAGS += $(firmware-genflags-y)
22 CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-strict-aliasing -O2
Brad Bishopf3fd2882019-06-21 08:06:37 -040023 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 += $(GENFLAGS)
28 CFLAGS += $(platform-cflags-y)
Andrew Geissler82c905d2020-04-13 13:39:40 -050029@@ -183,7 +182,6 @@ CPPFLAGS += $(firmware-cppflags-y)
Brad Bishopf3fd2882019-06-21 08:06:37 -040030 ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__
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 += $(GENFLAGS)
36 ASFLAGS += $(platform-asflags-y)