From 8ae3a6d02e1542c6dcaba5b09e569bdd7be483db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Sowi=C5=84ski?= Date: Tue, 3 Dec 2024 15:13:53 +0100 Subject: [PATCH] Fixed for eliminating picolibc in package writing --- litex/soc/software/libc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litex/soc/software/libc/Makefile b/litex/soc/software/libc/Makefile index d67de92e3..945b17a98 100644 --- a/litex/soc/software/libc/Makefile +++ b/litex/soc/software/libc/Makefile @@ -39,11 +39,13 @@ cross.txt: @echo "$$CROSSFILE" > $@ __libc.a: cross.txt + cp -a $(PICOLIBC_DIRECTORY) $(BUILDINC_DIRECTORY)/../picolibc_src + if [ -d "$(LIBC_DIRECTORY)/$(CPUFAMILY)" ]; then \ - cp $(LIBC_DIRECTORY)/$(CPUFAMILY)/* $(PICOLIBC_DIRECTORY)/newlib/libc/machine/$(CPUFAMILY)/ ;\ + cp $(LIBC_DIRECTORY)/$(CPUFAMILY)/* $(BUILDINC_DIRECTORY)/../picolibc_src/newlib/libc/machine/$(CPUFAMILY)/ ;\ fi - meson $(PICOLIBC_DIRECTORY) \ + meson $(BUILDINC_DIRECTORY)/../picolibc_src \ -Dmultilib=false \ -Dpicocrt=false \ -Datomic-ungetc=false \