Skip to content

Commit 271a48c

Browse files
committed
scripts: Check for arm v7m with FPU
clang sets the CPU_arch to v7 instead of v7E-M for targets with an FPU. Don't use a cortex-m3 model in that case. Signed-off-by: Keith Packard <[email protected]>
1 parent 1938737 commit 271a48c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

scripts/run-arm

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,24 @@ case "$cpu_arch"/"$cpu_profile" in
9494
esac
9595
;;
9696
v7/Microcontroller)
97-
cpu=cortex-m3
97+
case "$fp_arch" in
98+
FPv5/FP-D16)
99+
case "$fp_use" in
100+
SP)
101+
cpu=cortex-m4
102+
;;
103+
*)
104+
cpu=cortex-m7
105+
;;
106+
esac
107+
;;
108+
VFPv4-D16)
109+
cpu=cortex-m7
110+
;;
111+
*)
112+
cpu=cortex-m3
113+
;;
114+
esac
98115
;;
99116
v7/Realtime)
100117
cpu=cortex-r5f

0 commit comments

Comments
 (0)