Date:2012-04-06 20:40:08 (8 years 1 month ago)
Author:kyak
Commit:cb9c2cf2ce1bd7f4d8ad0b0e600f78917b4b84b8
Message:gcc-mips: update to 4.6.2; fixed build

Files: gcc-mips/Makefile (6 diffs)

Change Details

gcc-mips/Makefile
77include $(TOPDIR)/rules.mk
88PKG_NAME:=gcc
99#PKG_VERSION:=$(strip $(subst ",, $(CONFIG_GCC_VERSION)))#"))
10PKG_VERSION:=4.5.2
10PKG_VERSION:=4.6.2
1111PKG_RELEASE:=1
1212PATCH_DIR=$(TOPDIR)/toolchain/gcc/patches/$(PKG_VERSION)
1313PKG_SOURCE_URL:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(PKG_VERSION) \
...... 
1515        ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(PKG_VERSION)
1616
1717PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18PKG_MD5SUM:=d6559145853fbaaa0fd7556ed93bce9a
18PKG_MD5SUM:=2b7887846f8e5ac1ca58fe4dfaabf5a6
1919PKG_INSTALL:=1
2020PKG_FIXUP:=libtool
2121
...... 
3636  SECTION:=devel
3737  CATEGORY:=Development
3838  TITLE:=gcc-mips
39  DEPENDS:=+mpfr +binutils +libmpc @BROKEN
39  DEPENDS:=+mpfr +binutils +libmpc
4040endef
4141
4242define Package/gcc-mips/description
...... 
7272            --with-gmp=$(STAGING_DIR)/usr \
7373            --with-mpc=$(STAGING_DIR)/usr \
7474            --with-mpfr=$(STAGING_DIR)/usr \
75            --disable-libstdcxx-pch \
7576            --prefix=/usr \
7677            $(EXTRA_TARGET) \
7778            $(SOFT_FLOAT_CONFIG_OPTION) \
...... 
8788define Package/gcc-mips/install
8889    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
8990    cp -ar $(PKG_INSTALL_DIR)/usr/{include,libexec} $(1)/usr
90    cp -a $(PKG_INSTALL_DIR)/usr/bin/{$(REAL_GNU_TARGET_NAME)-{g++,gcc},gccbug,cpp,gcov} $(1)/usr/bin
91    cp -a $(PKG_INSTALL_DIR)/usr/bin/{$(REAL_GNU_TARGET_NAME)-{g++,gcc},cpp,gcov} $(1)/usr/bin
9192    ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/c++
9293    ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/g++
9394    ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++
...... 
102103define Package/gcc-mips/postinst
103104#!/bin/sh
104105#we use some files from host's openwrt toolchain for gcc-mips package,
105#and the host's gcc version (linaro) is now 4.5.4.
106#this will be fixed when we catch up with openwrt upstream,
106#and the host's gcc version (linaro) is now 4.6.3.
107107#workaround for now
108for i in $$(find $${IPKG_INSTROOT}/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.5.4 -type f); do
109    ln -s ../4.5.4/$${i##*/} $${i/4.5.4/4.5.2}
108for i in $$(find $${IPKG_INSTROOT}/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.6.3 -type f); do
109    ln -s ../4.6.3/$${i##*/} $${i/4.6.3/4.6.2}
110110done
111111endef
112112

Archive Download the corresponding diff file



interactive