8000 Add STM specific CFLAGS, removed crt objs from Makefile · micropython/micropython@347280b · GitHub
[go: up one dir, main page]

Skip to content

Commit 347280b

Browse files
author
Hagen Kaye
committed
Add STM specific CFLAGS, removed crt objs from Makefile
1 parent 69b723e commit 347280b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

micromusl/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ CPPFLAGS =
2929
CFLAGS = -Os -pipe
3030
CFLAGS_C99FSE = -std=c99 -ffreestanding -nostdinc
3131

32-
CFLAGS_ALL = $(CFLAGS_C99FSE)
32+
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion -DSTM32F40XX -DHSE_VALUE=8000000
33+
CFLAGS_ALL = $(CFLAGS_C99FSE) $(CFLAGS_CORTEX_M4)
3334
CFLAGS_ALL += -D_XOPEN_SOURCE=700 -I./arch/$(ARCH) -I./src/internal -I./include
3435
CFLAGS_ALL += $(CPPFLAGS) $(CFLAGS)
3536
CFLAGS_ALL_STATIC = $(CFLAGS_ALL)
@@ -48,7 +49,7 @@ CRT_LIBS = lib/crt1.o lib/Scrt1.o lib/crti.o lib/crtn.o
4849
STATIC_LIBS = lib/libc.a
4950
SHARED_LIBS = lib/libc.so
5051
TOOL_LIBS = lib/musl-gcc.specs
51-
ALL_LIBS = $(CRT_LIBS) $(STATIC_LIBS) $(SHARED_LIBS) $(EMPTY_LIBS) $(TOOL_LIBS)
52+
ALL_LIBS = $(STATIC_LIBS) $(SHARED_LIBS) $(EMPTY_LIBS) $(TOOL_LIBS)
5253
ALL_TOOLS = tools/musl-gcc
5354

5455
LDSO_PATHNAME = $(syslibdir)/ld-musl-$(ARCH)$(SUBARCH).so.1

0 commit comments

Comments
 (0)
0