This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 1a901d72c07e6f6b3972f34296ec1a458fa5627f
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Tue Jul 21 11:14:30 2020 +0800

    board/arm: Remove -march and -mcpu option
    
    Already add in arch/arm/src/armv7-m/Toolchain.defs
    
    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>
---
 boards/arm/stm32/stm32f4discovery/scripts/Make.defs   | 4 ++--
 boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/boards/arm/stm32/stm32f4discovery/scripts/Make.defs 
b/boards/arm/stm32/stm32f4discovery/scripts/Make.defs
index 21cbd96..59aa60b 100644
--- a/boards/arm/stm32/stm32f4discovery/scripts/Make.defs
+++ b/boards/arm/stm32/stm32f4discovery/scripts/Make.defs
@@ -45,8 +45,8 @@ ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
 
 ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
-  ARCHCFLAGS += -nostdlib -ffreestanding -target arm-none-eabi -march=armv7-m 
-mcpu=cortex-m4
-  ARCHCXXFLAGS += -nostdlib -ffreestanding -target arm-none-eabi 
-march=armv7-m -mcpu=cortex-m4 -DCONFIG_WCHAR_BUILTIN
+  ARCHCFLAGS += -nostdlib -ffreestanding
+  ARCHCXXFLAGS += -nostdlib -ffreestanding -DCONFIG_WCHAR_BUILTIN
 else
   ARCHCFLAGS += -funwind-tables
   ARCHCXXFLAGS += -fno-rtti -funwind-tables
diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs 
b/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs
index c687a90..2639e5b 100644
--- a/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs
+++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs
@@ -53,8 +53,8 @@ ARCHCFLAGS = -fno-builtin
 ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
 
 ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
-  ARCHCFLAGS += -nostdlib -ffreestanding -target arm-none-eabi -march=armv7-m 
-mcpu=cortex-m7
-  ARCHCXXFLAGS += -nostdlib -ffreestanding -target arm-none-eabi 
-march=armv7-m -mcpu=cortex-m7 -DCONFIG_WCHAR_BUILTIN
+  ARCHCFLAGS += -nostdlib -ffreestanding
+  ARCHCXXFLAGS += -nostdlib -ffreestanding -DCONFIG_WCHAR_BUILTIN
 else
   ARCHCXXFLAGS += -fno-rtti
   ifneq ($(CONFIG_DEBUG_NOOPT),y)

Reply via email to