toolchain: respect CONFIG_VERSION_FILENAMES and add host system suffix
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44311
This commit is contained in:
		| @@ -13,10 +13,7 @@ include $(INCLUDE_DIR)/host.mk | |||||||
|  |  | ||||||
| override MAKEFLAGS= | override MAKEFLAGS= | ||||||
|  |  | ||||||
| PKG_OS:=$(word 2,$(subst -, ,$(shell $(HOSTCC) -dumpmachine))) | TOOLCHAIN_NAME:=OpenWrt-Toolchain-$(if $(CONFIG_VERSION_FILENAMES),$(VERSION_NUMBER)-)$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))_gcc-$(GCCV)$(DIR_SUFFIX).$(HOST_OS)-$(HOST_ARCH) | ||||||
| PKG_CPU:=$(word 1,$(subst -, ,$(shell $(HOSTCC) -dumpmachine))) |  | ||||||
|  |  | ||||||
| TOOLCHAIN_NAME:=OpenWrt-Toolchain-$(BOARD)-for-$(ARCH)$(ARCH_SUFFIX)-gcc-$(GCCV)$(DIR_SUFFIX) |  | ||||||
| TOOLCHAIN_BUILD_DIR:=$(BUILD_DIR)/$(TOOLCHAIN_NAME) | TOOLCHAIN_BUILD_DIR:=$(BUILD_DIR)/$(TOOLCHAIN_NAME) | ||||||
| EXCLUDE_DIRS:=*/ccache \ | EXCLUDE_DIRS:=*/ccache \ | ||||||
| 	*/initial \ | 	*/initial \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jo-Philipp Wich
					Jo-Philipp Wich