mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Fix machine specific directory copying
This commit is contained in:
parent
d3c23fb048
commit
c96c7f5c45
1 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,10 @@ cross.txt:
|
|||
@echo "$$CROSSFILE" > $@
|
||||
|
||||
libc.a: cross.txt
|
||||
cp $(LIBC_DIRECTORY)/$(CPUFAMILY)/* $(PICOLIBC_DIRECTORY)/newlib/libc/machine/$(CPUFAMILY)/
|
||||
if [ -d "$(LIBC_DIRECTORY)/$(CPUFAMILY)" ]; then \
|
||||
cp $(LIBC_DIRECTORY)/$(CPUFAMILY)/* $(PICOLIBC_DIRECTORY)/newlib/libc/machine/$(CPUFAMILY)/ ;\
|
||||
fi
|
||||
|
||||
meson $(PICOLIBC_DIRECTORY) \
|
||||
-Dmultilib=false \
|
||||
-Dpicocrt=false \
|
||||
|
@ -53,6 +56,7 @@ libc.a: cross.txt
|
|||
-Dincludedir=picolibc/$(TRIPLE)/include \
|
||||
-Dlibdir=picolibc/$(TRIPLE)/lib \
|
||||
--cross-file cross.txt
|
||||
|
||||
meson compile
|
||||
cp newlib/libc.a libc.a
|
||||
|
||||
|
|
Loading…
Reference in a new issue