You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/26 16:18:04 UTC
(nuttx) branch master updated (8ae35754e5 -> dbe09c1505)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 8ae35754e5 arm64: add arm64_current_el to obtain current EL
new 8c651d3d05 greenhills: add support for cortex-m4 platform
new dbe09c1505 greenhills: add -Osize build option to reduce the size
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
arch/arm/src/armv7-m/Toolchain.defs | 21 ++++++++++++++++-----
arch/arm/src/common/Toolchain.defs | 2 ++
2 files changed, 18 insertions(+), 5 deletions(-)
(nuttx) 01/02: greenhills: add support for cortex-m4 platform
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 8c651d3d054815f68bfab8c4067d2962ddf278b1
Author: guoshichao <gu...@xiaomi.com>
AuthorDate: Thu Aug 15 20:50:29 2024 +0800
greenhills: add support for cortex-m4 platform
Signed-off-by: guoshichao <gu...@xiaomi.com>
---
arch/arm/src/armv7-m/Toolchain.defs | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/arch/arm/src/armv7-m/Toolchain.defs b/arch/arm/src/armv7-m/Toolchain.defs
index a2378f7c1d..288bca8e2b 100644
--- a/arch/arm/src/armv7-m/Toolchain.defs
+++ b/arch/arm/src/armv7-m/Toolchain.defs
@@ -22,11 +22,22 @@
ifeq ($(CONFIG_ARCH_CORTEXM4),y)
TOOLCHAIN_ARM7EM := y
- TOOLCHAIN_MTUNE := -mtune=cortex-m4
- TOOLCHAIN_MARCH := -march=armv7e-m
- LLVM_CPUTYPE := cortex-m4
- ifeq ($(CONFIG_ARCH_FPU),y)
- TOOLCHAIN_MFLOAT := -mfpu=fpv4-sp-d16
+ ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
+ TOOLCHAIN_MTUNE := -cpu=cortexm4
+ ifeq ($(CONFIG_ARCH_FPU),y)
+ ifeq ($(CONFIG_ARCH_DPFPU),y)
+ TOOLCHAIN_MFLOAT := -fpu=vfpv3
+ else
+ TOOLCHAIN_MFLOAT := -fpu=vfpv3_d16
+ endif
+ endif
+ else
+ TOOLCHAIN_MTUNE := -mtune=cortex-m4
+ TOOLCHAIN_MARCH := -march=armv7e-m
+ LLVM_CPUTYPE := cortex-m4
+ ifeq ($(CONFIG_ARCH_FPU),y)
+ TOOLCHAIN_MFLOAT := -mfpu=fpv4-sp-d16
+ endif
endif
else ifeq ($(CONFIG_ARCH_CORTEXM7),y)
TOOLCHAIN_ARM7EM := y
(nuttx) 02/02: greenhills: add -Osize build option to reduce the size
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit dbe09c1505bcd350c2286ebbf7c150a25954a698
Author: guoshichao <gu...@xiaomi.com>
AuthorDate: Fri Aug 16 19:07:43 2024 +0800
greenhills: add -Osize build option to reduce the size
Signed-off-by: guoshichao <gu...@xiaomi.com>
---
arch/arm/src/common/Toolchain.defs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/src/common/Toolchain.defs b/arch/arm/src/common/Toolchain.defs
index 35d90f2c73..2f5e7fddbd 100644
--- a/arch/arm/src/common/Toolchain.defs
+++ b/arch/arm/src/common/Toolchain.defs
@@ -35,6 +35,8 @@ ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)
ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
ARCHOPTIMIZATION += -Oz
+ else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
+ ARCHOPTIMIZATION += -Osize
else
ARCHOPTIMIZATION += -Os
endif