mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/libc/Makefile: Use proper CFLAGS to avoid picolibc warnings and cleanup a bit Makefile.
This commit is contained in:
parent
c0b54f0105
commit
ae1d43b965
1 changed files with 11 additions and 8 deletions
|
@ -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)
|
||||
|
@ -22,20 +25,20 @@ endif
|
|||
|
||||
define CROSSFILE
|
||||
[binaries]
|
||||
c = '$(TRIPLE)-gcc'
|
||||
ar = '$(TRIPLE)-gcc-ar'
|
||||
as = '$(TRIPLE)-as'
|
||||
nm = '$(TRIPLE)-gcc-nm'
|
||||
c = '$(TRIPLE)-gcc'
|
||||
ar = '$(TRIPLE)-gcc-ar'
|
||||
as = '$(TRIPLE)-as'
|
||||
nm = '$(TRIPLE)-gcc-nm'
|
||||
strip = '$(TRIPLE)-strip'
|
||||
|
||||
[host_machine]
|
||||
system = 'unknown'
|
||||
system = 'unknown'
|
||||
cpu_family = '$(CPUFAMILY)'
|
||||
cpu = '$(CPU)'
|
||||
endian = '$(CPUENDIANNESS)'
|
||||
cpu = '$(CPU)'
|
||||
endian = '$(CPUENDIANNESS)'
|
||||
|
||||
[built-in options]
|
||||
c_args = [ $(foreach flag,$(filter-out $(DEPFLAGS) -flto,$(CFLAGS)),'$(flag)',) ]
|
||||
c_args = [ $(foreach flag,$(filter-out $(DEPFLAGS) -flto,$(CFLAGS)),'$(flag)',) ]
|
||||
c_link_args = [ $(foreach flag,$(filter-out -flto,$(LDFLAGS)),'$(flag)',) ]
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in a new issue