@samitouri / QOSamiQemu / commits / 2f33cfec63

tests/arm: add explicit CFLAGS for system build

The brew toolchain on macOS (arm-none-eabi-gcc) is a little different from the default on Debian (arm-linux-gnueabihf-gcc) as a result it defaults to an older architectural baseline (without isb's), assumes softfloat and will get confused by including stdint.h without being told it is compiling freestanding code. Make these all explicit so we can build arm-softmmu tests on macOS. The test-armv6m-undef is unaffected as it has it's very own build stanza. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Message-ID: <20260824-fixes-for-11-2-v2-2-352c6b890402@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

Alex Bennée committed Aug 24, 2026 at 16:24 UTC 2f33cfec63a3a2808da6a1f6b44f33a149591edd
1 file changed +1 -1
tests/tcg/arm/Makefile.softmmu-target
+1 -1
@@ -29,7 +29,7 @@ ARM_TESTS+=$(patsubst $(ARM_SRC)/%.c, %, $(ARM_TEST_SRCS))
29 CRT_PATH=$(ARM_SRC)
30 LINK_SCRIPT=$(ARM_SRC)/kernel.ld
31 LDFLAGS=-Wl,-T$(LINK_SCRIPT)
32 -CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC)
32 +CFLAGS+=-march=armv7-a+fp -ffreestanding -nostdlib -ggdb -O0 $(MINILIB_INC)
33 LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc
34
35 # building head blobs