From cf59481567100aa1e4e864ac64c8f347deaca80e Mon Sep 17 00:00:00 2001 From: Michal Sieron Date: Mon, 16 Aug 2021 16:46:34 +0200 Subject: [PATCH] Move machine specific code to their directories --- litex/soc/software/libc/Makefile | 6 ++---- .../software/libc/{lm32-meson.build => lm32/meson.build} | 0 .../software/libc/{or1k-meson.build => or1k/meson.build} | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) rename litex/soc/software/libc/{lm32-meson.build => lm32/meson.build} (100%) rename litex/soc/software/libc/{or1k-meson.build => or1k/meson.build} (99%) diff --git a/litex/soc/software/libc/Makefile b/litex/soc/software/libc/Makefile index a9f83520a..a68016f8e 100644 --- a/litex/soc/software/libc/Makefile +++ b/litex/soc/software/libc/Makefile @@ -43,10 +43,8 @@ export CROSSFILE cross.txt: @echo "$$CROSSFILE" > $@ -$(PICOLIBC_DIRECTORY)/newlib/libc/machine/$(CPUFAMILY)/meson.build: - cp $(LIBC_DIRECTORY)/$(CPUFAMILY)-meson.build $@ - -libc.a: cross.txt $(PICOLIBC_DIRECTORY)/newlib/libc/machine/$(CPUFAMILY)/meson.build +libc.a: cross.txt + cp $(LIBC_DIRECTORY)/$(CPUFAMILY)/* $(PICOLIBC_DIRECTORY)/newlib/libc/machine/$(CPUFAMILY)/ meson $(PICOLIBC_DIRECTORY) \ -Dmultilib=false \ -Dpicocrt=false \ diff --git a/litex/soc/software/libc/lm32-meson.build b/litex/soc/software/libc/lm32/meson.build similarity index 100% rename from litex/soc/software/libc/lm32-meson.build rename to litex/soc/software/libc/lm32/meson.build diff --git a/litex/soc/software/libc/or1k-meson.build b/litex/soc/software/libc/or1k/meson.build similarity index 99% rename from litex/soc/software/libc/or1k-meson.build rename to litex/soc/software/libc/or1k/meson.build index 09804d424..9cd7e39ff 100644 --- a/litex/soc/software/libc/or1k-meson.build +++ b/litex/soc/software/libc/or1k/meson.build @@ -34,6 +34,7 @@ # srcs_machine = [ 'setjmp.S', + 'exception.c', ] foreach target : targets