mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Move toolchain from /tools to /tools_${arch}
This will allow us to run multiple builds on the same system at the same time (or at least have them on disk). Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
28
lfs/ccache
28
lfs/ccache
@@ -79,28 +79,28 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && ./configure --prefix=/tools
|
||||
cd $(DIR_APP) && ./configure --prefix=$(TOOLS_DIR)
|
||||
cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
|
||||
cd $(DIR_APP) && make install
|
||||
|
||||
ifeq "$(TOOLCHAIN)" "1"
|
||||
ifeq "$(PASS)" "1"
|
||||
mkdir -pv /tools/ccache/bin
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/gcc
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/g++
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/cc
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/c++
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(CROSSTARGET)-gcc
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(CROSSTARGET)-g++
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(CROSSTARGET)-cc
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(CROSSTARGET)-c++
|
||||
mkdir -pv $(TOOLS_DIR)/ccache/bin
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/gcc
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/g++
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/cc
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/c++
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-gcc
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-g++
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-cc
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-c++
|
||||
endif
|
||||
|
||||
ifeq "$(PASS)" "2"
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(BUILDTARGET)-gcc
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(BUILDTARGET)-g++
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(BUILDTARGET)-cc
|
||||
ln -svf ../../bin/ccache /tools/ccache/bin/$(BUILDTARGET)-c++
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-gcc
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-g++
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-cc
|
||||
ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-c++
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user