From 48f7b08d1679365ea462675dd3bfb9d83c9bf11a Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Wed, 23 Dec 2020 08:44:13 -0800 Subject: [PATCH] Remove some unneeded install steps Newlib doesn't need to be built and installed to another directory (it won't be used, even if there). Remove copy of libgcc.a as well, since it's already in the GCC tools dir. Leave the stdc/stdc++exc since we manually choose amongst them in the link stage for C++ exceptions enabled/disabled. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8ed4e43..89e58cf 100644 --- a/Makefile +++ b/Makefile @@ -568,15 +568,15 @@ install: .stage.LINUX.install rm -rf $(ARDUINO) git clone https://github.com/$(GHUSER)/Arduino $(ARDUINO) (cd $(ARDUINO) && git checkout $(INSTALLBRANCH) && git submodule init && git submodule update) - echo "-------- Building installable newlib" - rm -rf arena/newlib-install; mkdir -p arena/newlib-install - cd arena/newlib-install; $(call setenv,$@); $(REPODIR)/newlib/configure $(CONFIGURENEWLIBINSTALL); $(MAKE); $(MAKE) install + #echo "-------- Building installable newlib" + #rm -rf arena/newlib-install; mkdir -p arena/newlib-install + #cd arena/newlib-install; $(call setenv,$@); $(REPODIR)/newlib/configure $(CONFIGURENEWLIBINSTALL); $(MAKE); $(MAKE) install echo "-------- Building installable hal" rm -rf arena/hal-install; mkdir -p arena/hal-install cd arena/hal-install; $(call setenv,$@); $(REPODIR)/lx106-hal/configure --prefix=$(ARDUINO)/tools/sdk/libc --libdir=$(ARDUINO)/tools/sdk/lib --host=xtensa-lx106-elf $$(echo $(call configure,$@) | sed 's/--host=[a-zA-Z0-9_-]*//' | sed 's/--prefix=[a-zA-Z0-9_-\\]*//') cd arena/hal-install; $(call setenv,$@); $(MAKE) ; $(MAKE) install echo "-------- Copying GCC libs" - cp $(call install,$@)/lib/gcc/xtensa-lx106-elf/*/libgcc.a $(ARDUINO)/tools/sdk/lib/. + #cp $(call install,$@)/lib/gcc/xtensa-lx106-elf/*/libgcc.a $(ARDUINO)/tools/sdk/lib/. cp $(call install,$@)/xtensa-lx106-elf/lib/libstdc++-exc.a $(ARDUINO)/tools/sdk/lib/. cp $(call install,$@)/xtensa-lx106-elf/lib/libstdc++.a $(ARDUINO)/tools/sdk/lib/. echo "-------- Copying toolchain directory"