xiaoxiang781216 commented on a change in pull request #5662:
URL: https://github.com/apache/incubator-nuttx/pull/5662#discussion_r818031449



##########
File path: arch/arm/src/armv7-a/Toolchain.defs
##########
@@ -69,21 +69,29 @@ else ifeq ($(CONFIG_ARCH_CORTEXA9),y)
   ARCHCPUFLAGS += -mcpu=cortex-a9
 endif
 
+ifeq ($(CONFIG_ARM_HAVE_FPU_D32),)
+  ARCHFPUD32FLAGS = -d16
+endif
+
 ifeq ($(CONFIG_ARCH_FPU),y)
   ifeq ($(CONFIG_ARM_FP_ABI_SOFT),y)
     ARCHCPUFLAGS += -mfloat-abi=softfp
   else
     ARCHCPUFLAGS += -mfloat-abi=hard
   endif
+
   ifeq ($(CONFIG_ARCH_CORTEXA8),y)
-    ARCHCPUFLAGS += -mfpu=vfpv3-d16
+    ARCHFPUVERSION = vfpv3
   else ifeq ($(CONFIG_ARCH_CORTEXA9),y)
-    ARCHCPUFLAGS += -mfpu=vfpv3-d16
+    ARCHFPUVERSION = vfpv3
   else
-    ARCHCPUFLAGS += -mfpu=vfpv4-d16
+    ARCHFPUVERSION = vfpv4
   endif
+
+  ARCHCPUFLAGS += -mfpu=$(ARCHFPUVERSION)$(ARCHFPUD32FLAGS)
 endif
 
+

Review comment:
       remove the blank line




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to