tool_chain: versioned install location

Issue 
This commit is contained in:
Christian Prochaska 2019-05-24 17:29:05 +02:00 committed by Christian Helmuth
parent ca95621db5
commit ca39a9ea61
4 changed files with 12 additions and 8 deletions

View File

@ -19,19 +19,19 @@
# package build tool.
#
ifeq ($(filter-out $(SPECS),x86_32),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-x86-
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/19.05/bin/genode-x86-
endif
ifeq ($(filter-out $(SPECS),x86_64),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-x86-
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/19.05/bin/genode-x86-
endif
ifeq ($(filter-out $(SPECS),arm),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-arm-
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/19.05/bin/genode-arm-
endif
ifeq ($(filter-out $(SPECS),riscv),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-riscv-
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/19.05/bin/genode-riscv-
endif
ifeq ($(filter-out $(SPECS),arm_64),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-aarch64-
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/19.05/bin/genode-aarch64-
endif
#

View File

@ -46,7 +46,7 @@ sdk_usage:
SDK_DIR ?= $(DEFAULT_SDK_DIR_PREFIX)-$(PLATFORM)-$(VERSION)
DEPOT_USER ?= $(DEFAULT_DEPOT_USER)
TOOLCHAIN_DIR ?= /usr/local/genode-gcc
TOOLCHAIN_DIR ?= /usr/local/genode/tool/current
#
# Sanity checks

View File

@ -59,7 +59,7 @@ endif
UBOOT_MAKE := \
$(VERBOSE)make ARCH=$(ARCH) \
CROSS_COMPILE=/usr/local/genode-gcc/bin/genode-$(ARCH)- \
CROSS_COMPILE=/usr/local/genode/tool/current/bin/genode-$(ARCH)- \
O=$(UBOOT_BUILD_DIR) \
-j4

View File

@ -63,7 +63,7 @@ BINUTILS_VERSION = 2.32
#
DEFAULT_BUILD_LOCATION = $(GENODE_DIR)/build/tool_chain-$(TOOL_CHAIN_VERSION)
DEFAULT_INSTALL_LOCATION = /usr/local/genode-gcc
DEFAULT_INSTALL_LOCATION = /usr/local/genode/tool/$(TOOL_CHAIN_VERSION)
BUILD_LOCATION ?= $(DEFAULT_BUILD_LOCATION)
INSTALL_LOCATION ?= $(DEFAULT_INSTALL_LOCATION)
@ -546,5 +546,9 @@ cleanall: clean
install: build_all
$(ECHO) "$(BRIGHT_COL)installing tool chain to '$(INSTALL_LOCATION)'...$(DEFAULT_COL)"
$(VERBOSE)$(SUDO) mkdir -p $(INSTALL_LOCATION)
$(VERBOSE)$(SUDO) cp -a --remove-destination --no-target-directory $(LOCAL_INSTALL_LOCATION) $(INSTALL_LOCATION)
$(VERBOSE)$(LIB_GCC)
ifeq ($(INSTALL_LOCATION),$(DEFAULT_INSTALL_LOCATION))
$(VERBOSE)$(SUDO) ln -snf $(TOOL_CHAIN_VERSION) $(dir $(INSTALL_LOCATION))/current
endif