From ead3f8b2e0d3e7de6ec6d38d74edad1b62f42262 Mon Sep 17 00:00:00 2001 From: Michal Sieron Date: Thu, 29 Jul 2021 10:55:24 +0200 Subject: [PATCH] Compile iob.c with $(compile) --- litex/soc/software/libc/Makefile | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/litex/soc/software/libc/Makefile b/litex/soc/software/libc/Makefile index d730ad5f2..2f005a821 100644 --- a/litex/soc/software/libc/Makefile +++ b/litex/soc/software/libc/Makefile @@ -1,25 +1,8 @@ include ../include/generated/variables.mak include $(SOC_DIRECTORY)/software/common.mak -pINCLUDES = -I$(PICOLIBC_DIRECTORY)/newlib/libc/tinystdio \ - -I$(PICOLIBC_DIRECTORY)/newlib/libc/include \ - -I$(SOC_DIRECTORY)/software/include \ - -I$(BUILDINC_DIRECTORY)/../libc \ - -I$(BUILDINC_DIRECTORY) \ - -I$(CPU_DIRECTORY) - -pCOMMONFLAGS = -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdlib -fno-stack-protector $(pINCLUDES) -pCFLAGS = $(pCOMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes - all: libc.a iob.c.o -iob.c.o: - $(CC) \ - -c $(LIBC_DIRECTORY)/iob.c \ - -o $@ \ - $(pCFLAGS) - $(AR) csr libc.a iob.c.o - libc.a: meson $(PICOLIBC_DIRECTORY) \ -Dmultilib=false \ @@ -27,3 +10,7 @@ libc.a: meson compile cp newlib/libc.a libc.a +iob.c.o: $(LIBC_DIRECTORY)/iob.c + $(compile) + $(AR) csr libc.a iob.c.o +