Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 1 | From f5871e1f3650d6c8a032928cb5d8ca00c275c377 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 |
| 5 | |
| 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. |
| 9 | |
| 10 | Upstream-Status: Inappropriate [Fixes a 32-bit Yocto flow bug] |
| 11 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
| 12 | --- |
| 13 | Makefile | 2 -- |
| 14 | 1 file changed, 2 deletions(-) |
| 15 | |
| 16 | diff --git a/Makefile b/Makefile |
| 17 | index 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 | -- |
| 37 | 2.20.1 |
| 38 | |