Skip to content

Commit

Permalink
Fixed for eliminating picolibc in package writing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Sowiński committed Dec 3, 2024
1 parent ec06bf5 commit 8ae3a6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions litex/soc/software/libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 8ae3a6d

Please sign in to comment.