Lines Matching +full:cortex +full:- +full:m
1 Enforce correct -march option
4 (which runs on a Cortex-M3 processor), but Buildroot will have a
5 default -march value that doesn't necessarily match the one needed for
6 Cortex-M3, leading to build failures (gcc complains that the
7 -mcpu=cortex-m3 option being passed is not compatible with the
8 selected -march).
10 Fix this by explicitly indicating -march=armv7-m.
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 Signed-off-by: Anders Darander <anders@chargestorm.se>
20 --- a/Makefile
22 @@ -13,7 +13,7 @@ SRCDIR = src
26 -CFLAGS =-mcpu=cortex-m3 -mthumb -nostdlib -Wall -Wundef \
27 +CFLAGS =-march=armv7-m -mcpu=cortex-m3 -mthumb -nostdlib -Wall -Wundef \
28 -Werror-implicit-function-declaration -Wstrict-prototypes \
29 -Wdeclaration-after-statement -fno-delete-null-pointer-checks \
30 -Wempty-body -fno-strict-overflow -g -I$(INCLUDES) -O2