From 2ae84ac85ff72a861e8c276ba4e650e1e9ba7982 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 22 Jul 2010 15:42:27 +0200 Subject: binutils,gcc: use correct --prefix The cross binutils and cross gcc are actually going to be executed from $(STAGING_DIR)/usr, so the correct prefix is $(STAGING_DIR)/usr and not /usr. This also fixes what is known as the "AVR32 toolchain build failure", which was due to the fact that the prefix directory wasn't writable (since it was /usr). Signed-off-by: Thomas Petazzoni --- toolchain/gcc/gcc-uclibc-4.x.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolchain/gcc') diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk index 6e767ac77..0a538dec0 100644 --- a/toolchain/gcc/gcc-uclibc-4.x.mk +++ b/toolchain/gcc/gcc-uclibc-4.x.mk @@ -266,7 +266,7 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_SRC_DIR)/.patched $(GCC_STAGING_PREREQ) (cd $(GCC_BUILD_DIR2); rm -rf config.cache; \ $(HOST_CONFIGURE_OPTS) \ $(GCC_SRC_DIR)/configure $(QUIET) \ - --prefix=/usr \ + --prefix=$(STAGING_DIR)/usr \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \ --target=$(REAL_GNU_TARGET_NAME) \ @@ -299,7 +299,7 @@ $(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured touch $@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled - PATH=$(TARGET_PATH) $(MAKE) $(BR2_SYSROOT_STAGING_DESTDIR) \ + PATH=$(TARGET_PATH) $(MAKE) \ -C $(GCC_BUILD_DIR2) install if [ -d "$(STAGING_DIR)/lib64" ]; then \ if [ ! -e "$(STAGING_DIR)/lib" ]; then \ -- cgit v1.2.3 From 460ba963acb17df043f412e5c01fda250da6b410 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 22 Jul 2010 15:44:36 +0200 Subject: toolchain: remove redundant and incorrect --with-build-time-tools option This option is already part of the gcc configure options through the BR2_CONFIGURE_BUILD_TOOLS variable (in toolchain/Makefile.in). Additionnally, the value that was passed in the AVR32 specific case was incorrect: it was $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin instead of $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin. Signed-off-by: Thomas Petazzoni --- toolchain/gcc/Makefile.in | 2 -- 1 file changed, 2 deletions(-) (limited to 'toolchain/gcc') diff --git a/toolchain/gcc/Makefile.in b/toolchain/gcc/Makefile.in index 4278bdbcf..9537e9dc7 100644 --- a/toolchain/gcc/Makefile.in +++ b/toolchain/gcc/Makefile.in @@ -46,8 +46,6 @@ endif ifeq ($(BR2_avr32),y) EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap SOFT_FLOAT_CONFIG_OPTION:= -EXTRA_GCC_CONFIG_OPTIONS+=--with-build-time-tools=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin \ -#EXTRA_GCC_CONFIG_OPTIONS+=--with-as=$(TARGET_CROSS)as endif ifeq ($(BR2_PACKAGE_GCC_TARGET),y) -- cgit v1.2.3