From 28c107f05ede76924449fb214c02a826d2f7d02f Mon Sep 17 00:00:00 2001 From: Rick Chen Date: Thu, 10 Jan 2019 11:22:43 +0800 Subject: nds32: Remove gcc unused option -G0 is an old option, not support now, So remove it. It can help to fix compile error when build with nds32 pre-build toolchain. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/nds32/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/nds32/config.mk') diff --git a/arch/nds32/config.mk b/arch/nds32/config.mk index 12cec368d3..a0f14ae589 100644 --- a/arch/nds32/config.mk +++ b/arch/nds32/config.mk @@ -17,6 +17,6 @@ LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/nds32.lds PLATFORM_RELFLAGS += -fno-common -mrelax PLATFORM_RELFLAGS += -gdwarf-2 -PLATFORM_CPPFLAGS += -D__nds32__ -G0 -ffixed-10 -fpie +PLATFORM_CPPFLAGS += -D__nds32__ -ffixed-10 -fpie LDFLAGS_u-boot = --gc-sections --relax -pie -- cgit From 9135858fb861d4aa0c8521442cc20932c1e2e097 Mon Sep 17 00:00:00 2001 From: Rick Chen Date: Tue, 15 Jan 2019 10:41:20 +0800 Subject: nds32: Generate SW fpu instruction. Force it to generate SW fup instruction. It help to avoid bugs when running on no-HW-fpu board, but compile with v3f which support HW fpu instruction. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/nds32/config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/nds32/config.mk') diff --git a/arch/nds32/config.mk b/arch/nds32/config.mk index a0f14ae589..4e10de072e 100644 --- a/arch/nds32/config.mk +++ b/arch/nds32/config.mk @@ -15,8 +15,8 @@ endif CONFIG_STANDALONE_LOAD_ADDR = 0x300000 LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/nds32.lds -PLATFORM_RELFLAGS += -fno-common -mrelax +PLATFORM_RELFLAGS += -fno-common -mrelax -mno-ext-fpu-dp -mfloat-abi=soft PLATFORM_RELFLAGS += -gdwarf-2 PLATFORM_CPPFLAGS += -D__nds32__ -ffixed-10 -fpie -LDFLAGS_u-boot = --gc-sections --relax -pie +LDFLAGS_u-boot = --gc-sections --relax -pie --mabi=AABI -- cgit From e690148223cb0828d601f43703e7fc238d85884d Mon Sep 17 00:00:00 2001 From: Rick Chen Date: Tue, 15 Jan 2019 11:07:54 +0800 Subject: nds32: Fix boot fail issue when build with elf-mculib. Add -mcmodel=large can let elf-mculib have the same default behavior just like linux-glibc. And it help to pass U-Boot booting sequence. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/nds32/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/nds32/config.mk') diff --git a/arch/nds32/config.mk b/arch/nds32/config.mk index 4e10de072e..a1c3371ddc 100644 --- a/arch/nds32/config.mk +++ b/arch/nds32/config.mk @@ -17,6 +17,6 @@ LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/nds32.lds PLATFORM_RELFLAGS += -fno-common -mrelax -mno-ext-fpu-dp -mfloat-abi=soft PLATFORM_RELFLAGS += -gdwarf-2 -PLATFORM_CPPFLAGS += -D__nds32__ -ffixed-10 -fpie +PLATFORM_CPPFLAGS += -D__nds32__ -ffixed-10 -fpie -mcmodel=large LDFLAGS_u-boot = --gc-sections --relax -pie --mabi=AABI -- cgit