X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/344914c955b9df3b0ab453c2959260230544f7af..6202b4177488b4eb6f9de6a0ce0c6463421deb27:/toolchain/gcc/common.mk?ds=sidebyside diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 542072716..36142eb58 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -69,9 +69,15 @@ else ifeq ($(PKG_VERSION),4.4.4) PKG_MD5SUM:=7ff5ce9e5f0b088ab48720bbd7203530 endif + ifeq ($(PKG_VERSION),4.4.5) + PKG_MD5SUM:=44b3192c4c584b9be5243d9e8e7e0ed1 + endif ifeq ($(PKG_VERSION),4.5.0) PKG_MD5SUM:=ff27b7c4a5d5060c8a8543a44abca31f endif + ifeq ($(PKG_VERSION),4.5.1) + PKG_MD5SUM:=48231a8e33ed6e058a341c53b819de1a + endif endif PATCH_DIR=../patches/$(GCC_VERSION) @@ -101,7 +107,7 @@ export libgcc_cv_fixed_point=no GCC_CONFIGURE:= \ SHELL="$(BASH)" \ $(HOST_SOURCE_DIR)/configure \ - --prefix=$(TOOLCHAIN_DIR)/usr \ + --prefix=$(TOOLCHAIN_DIR) \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \ --target=$(REAL_GNU_TARGET_NAME) \ @@ -119,6 +125,12 @@ GCC_CONFIGURE:= \ $(if $(CONFIG_GCC_VERSION_LLVM),--enable-llvm=$(BUILD_DIR_BASE)/host/llvm) \ $(if $(CONFIG_GCC_VERSION_4_3_3_CS)$(CONFIG_GCC_VERSION_4_4_1_CS)$(CONFIG_GCC_VERSION_4_4_3_CS),--enable-poison-system-directories) +ifneq ($(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),) + ifneq ($(CONFIG_mips)$(CONFIG_mipsel),) + GCC_CONFIGURE += --with-mips-plt + endif +endif + ifneq ($(CONFIG_GCC_VERSION_4_3)$(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),) GCC_BUILD_TARGET_LIBGCC:=y GCC_CONFIGURE+= \ @@ -164,7 +176,7 @@ endif GCC_MAKE:= \ export SHELL="$(BASH)"; \ - $(MAKE) \ + $(MAKE) $(TOOLCHAIN_JOBS) \ CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \ CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" @@ -184,7 +196,7 @@ define Host/Clean $(STAGING_DIR_HOST)/stamp/.binutils_* \ $(GCC_BUILD_DIR) \ $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) \ - $(TOOLCHAIN_DIR)/usr/$(REAL_GNU_TARGET_NAME) \ - $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gc* \ - $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-c* + $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME) \ + $(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gc* \ + $(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-c* endef