- Timestamp:
- Jun 16, 2006, 8:14:56 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 653a7b0
- Parents:
- 351e427
- Location:
- toolchain
- Files:
-
- 4 deleted
- 3 edited
-
Config.in (deleted)
-
binutils/Config.in (deleted)
-
binutils/Makefile (modified) (3 diffs)
-
gcc/Config.in (deleted)
-
gcc/Makefile (modified) (7 diffs)
-
uClibc/Config.in (deleted)
-
uClibc/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
toolchain/binutils/Makefile
r351e427 r2e24236 1 # $FreeWRT$ 2 1 3 include $(TOPDIR)/rules.mk 2 4 3 ############################################################# 4 # 5 # build binutils for use on the host system 6 # 7 ############################################################# 8 BINUTILS_VERSION:=$(strip $(subst ",, $(BR2_BINUTILS_VERSION))) 9 #" 10 11 BINUTILS_SITE:=http://www.fr.kernel.org/pub/linux/devel/binutils \ 12 http://www.fi.kernel.org/pub/linux/devel/binutils \ 13 http://ftp.kernel.org/pub/linux/devel/binutils \ 14 http://www.de.kernel.org/pub/linux/devel/binutils 15 16 BINUTILS_STABLE_SITE:=http://ftp.gnu.org/gnu/binutils/ \ 5 BINUTILS_VERSION:=2.16.1 6 BINUTILS_SITE:=http://ftp.gnu.org/gnu/binutils/ \ 17 7 ftp://gatekeeper.dec.com/pub/GNU/ \ 18 8 ftp://ftp.uu.net/archive/systems/gnu/ \ … … 20 10 ftp://ftp.funet.fi/pub/gnu/prep/ \ 21 11 ftp://ftp.leo.org/pub/comp/os/unix/gnu/ 22 23 ifeq ($(BINUTILS_VERSION),2.16.1)24 BINUTILS_SITE:=$(BINUTILS_STABLE_SITE)25 endif26 12 27 13 BINUTILS_SOURCE:=binutils-$(BINUTILS_VERSION).tar.bz2 … … 55 41 --target=$(REAL_GNU_TARGET_NAME) \ 56 42 --disable-werror \ 57 $(DISABLE_NLS) \ 58 $(MULTILIB) \ 59 $(SOFT_FLOAT_CONFIG_OPTION) ); 43 --disable-nls \ 44 ); 60 45 touch $(BINUTILS_DIR1)/.configured 61 46 -
toolchain/gcc/Makefile
r351e427 r2e24236 21 21 include $(TOPDIR)/rules.mk 22 22 23 GCC_VERSION:=$(strip $(GCC_VERSION)) 24 25 #GCC_SITE:=ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(GCC_VERSION) 23 GCC_VERSION:=3.4.4 26 24 GCC_SITE:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(GCC_VERSION) \ 27 25 http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-$(GCC_VERSION) … … 32 30 GCC_STRIP_HOST_BINARIES:=true 33 31 34 #############################################################35 #36 # Setup some initial stuff37 #38 #############################################################39 40 ifeq ($(BR2_INSTALL_LIBGCJ),y)41 TARGET_LANGUAGES:=c,c++,java42 else43 ifeq ($(BR2_INSTALL_LIBSTDCPP),y)44 32 TARGET_LANGUAGES:=c,c++ 45 else46 TARGET_LANGUAGES:=c47 endif48 endif49 33 50 34 ############################################################# … … 63 47 mkdir -p $(TOOL_BUILD_DIR) 64 48 $(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | (cd $(TOOL_BUILD_DIR); $(TAR_EXTRACT) ) 65 touch $ (GCC_DIR)/.unpacked49 touch $@ 66 50 67 51 $(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked 68 52 # Apply any files named gcc-*.patch from the source directory to gcc 69 53 $(SCRIPT_DIR)/patch-kernel.sh $(GCC_DIR) ./$(GCC_VERSION) \*.patch 70 # Note: The soft float situation has improved considerably with gcc 3.4.x.71 # We can dispense with the custom spec files, as well as libfloat for the arm case.72 # However, we still need a patch for arm. There's a similar patch for gcc 3.3.x73 # which needs to be integrated so we can kill of libfloat for good.74 ifeq ($(BR2_SOFT_FLOAT),y)75 ifeq ("$(strip $(ARCH))","arm")76 $(SCRIPT_DIR)/patch-kernel.sh $(GCC_DIR) ./$(GCC_VERSION) arm-softfloat.patch.conditional77 endif78 ifeq ("$(strip $(ARCH))","armeb")79 $(SCRIPT_DIR)/patch-kernel.sh $(GCC_DIR) ./$(GCC_VERSION) arm-softfloat.patch.conditional80 endif81 endif82 54 $(SED) 's,\(version_string.. = "[0-9\.]*\).*\(";\),\1 (FreeWrt)\2,' $(GCC_DIR)/gcc/version.c 83 55 $(SED) 's,\(bug_report_url.. = "\).*\(";\),\1<URL:http://www.freewrt.org/development>\2,' $(GCC_DIR)/gcc/version.c 84 touch $(GCC_DIR)/.patched 85 86 # The --without-headers option stopped working with gcc 3.0 and has never been 87 # # fixed, so we need to actually have working C library header files prior to 88 # # the step or libgcc will not build... 56 touch $@ 89 57 90 58 $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched … … 102 70 --enable-target-optspace \ 103 71 --with-gnu-ld \ 104 $(DISABLE_NLS) \ 105 $(MULTILIB) \ 106 $(SOFT_FLOAT_CONFIG_OPTION) \ 107 $(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \ 108 $(EXTRA_GCC_CONFIG_OPTIONS)); 109 touch $(GCC_BUILD_DIR1)/.configured 72 --disable-nls \ 73 --enable-largefile \ 74 ); 75 touch $@ 110 76 111 77 $(GCC_BUILD_DIR1)/.compiled: $(GCC_BUILD_DIR1)/.configured 112 78 PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) all-gcc 113 touch $ (GCC_BUILD_DIR1)/.compiled79 touch $@ 114 80 115 81 $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(GCC_BUILD_DIR1)/.compiled … … 122 88 # 123 89 ############################################################# 124 #125 # Sigh... I had to rework things because using --with-gxx-include-dir126 # causes issues with include dir search order for g++. This seems to127 # have something to do with "path translations" and possibly doesn't128 # affect gcc-target. However, I haven't tested gcc-target yet so no129 # guarantees. mjn3130 90 131 91 GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final … … 148 108 --enable-target-optspace \ 149 109 --with-gnu-ld \ 150 $(DISABLE_NLS) \ 151 $(MULTILIB) \ 152 $(SOFT_FLOAT_CONFIG_OPTION) \ 153 $(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \ 154 $(GCC_USE_SJLJ_EXCEPTIONS) \ 155 $(EXTRA_GCC_CONFIG_OPTIONS)); 156 touch $(GCC_BUILD_DIR2)/.configured 110 --disable-nls \ 111 --enable-largefile \ 112 ); 113 touch $@ 157 114 158 115 $(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured 159 116 PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) all 160 touch $ (GCC_BUILD_DIR2)/.compiled117 touch $@ 161 118 162 119 gcc-install: $(GCC_BUILD_DIR2)/.compiled … … 173 130 done; \ 174 131 ); 175 #176 # Now for the ugly 3.3.x soft float hack...177 #178 ifeq ($(BR2_SOFT_FLOAT),y)179 ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)180 # Make sure we have a soft float specs file for this arch181 if [ ! -f ./$(GCC_VERSION)/specs-$(ARCH)-soft-float ] ; then \182 echo soft float configured but no specs file for this arch ; \183 /bin/false ; \184 fi;185 # Replace specs file with one that defaults to soft float mode.186 if [ ! -f $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ] ; then \187 echo staging dir specs file is missing ; \188 /bin/false ; \189 fi;190 $(CP) ./$(GCC_VERSION)/specs-$(ARCH)-soft-float $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs191 endif192 endif193 132 # We do another ugly hack here because the standard behaviour is 194 133 # to include a reference to libgcc.so.1 in all binaries. For flash space -
toolchain/uClibc/Makefile
r351e427 r2e24236 1 # $FreeWRT$ 2 1 3 include $(TOPDIR)/rules.mk 2 4 3 #############################################################4 #5 # uClibc (the C library)6 #7 #############################################################8 9 ifeq ($(BR2_UCLIBC_VERSION_SNAPSHOT),y)10 # Be aware that this changes daily....11 UCLIBC_DIR:=$(TOOL_BUILD_DIR)/uClibc12 UCLIBC_SOURCE:=uClibc-$(strip $(subst ",, $(BR2_USE_UCLIBC_SNAPSHOT))).tar.bz213 #"14 UCLIBC_SITE:=http://www.uclibc.org/downloads/snapshots15 UCLIBC_VER:=PKG_VERSION:=0.${shell date +"%G%m%d"}16 else17 5 UCLIBC_VER:=0.9.28 18 6 UCLIBC_DIR:=$(TOOL_BUILD_DIR)/uClibc-$(UCLIBC_VER) 19 7 UCLIBC_SOURCE:=uClibc-$(UCLIBC_VER).tar.bz2 20 8 UCLIBC_SITE:=http://www.uclibc.org/downloads 21 endif22 9 23 10 UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ … … 51 38 $(SED) 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(LINUX_HEADERS_DIR)\",g' \ 52 39 $(UCLIBC_DIR)/.config 53 ifeq ($(BR2_LARGEFILE),y)54 40 $(SED) 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=y,g' $(UCLIBC_DIR)/.config 55 else56 $(SED) 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=n,g' $(UCLIBC_DIR)/.config57 endif58 41 $(SED) 's,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g' $(UCLIBC_DIR)/.config 59 ifeq ($(BR2_SOFT_FLOAT),y)60 $(SED) 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' $(UCLIBC_DIR)/.config61 endif62 42 mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/usr/include 63 43 mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/usr/lib
Note:
See TracChangeset
for help on using the changeset viewer.
