software/libc/Makefile: Use proper CFLAGS to avoid picolibc warnings and cleanup a bit Makefile.

This commit is contained in:
Florent Kermarrec 2021-09-27 13:57:44 +02:00
parent c0b54f0105
commit ae1d43b965

View file

@ -5,6 +5,9 @@ all: libc.a stdio.c.o missing.c.o
CPUFAMILY=
CFLAGS = $(COMMONFLAGS) -fexceptions -Wpragmas
# FIXME: Generate from Python.
ifneq ($(findstring $(CPU), serv femtorv picorv32 minerva vexriscv vexriscv_smp ibex cv32e40p rocket blackparrot),)
CPUFAMILY = riscv
else ifeq ($(CPU), lm32)