mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-26 03:06:15 +02:00
gcc-mips: update to 4.6.2; fixed build
This commit is contained in:
parent
2f7f9bf290
commit
cb9c2cf2ce
@ -7,7 +7,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=gcc
|
PKG_NAME:=gcc
|
||||||
#PKG_VERSION:=$(strip $(subst ",, $(CONFIG_GCC_VERSION)))#"))
|
#PKG_VERSION:=$(strip $(subst ",, $(CONFIG_GCC_VERSION)))#"))
|
||||||
PKG_VERSION:=4.5.2
|
PKG_VERSION:=4.6.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PATCH_DIR=$(TOPDIR)/toolchain/gcc/patches/$(PKG_VERSION)
|
PATCH_DIR=$(TOPDIR)/toolchain/gcc/patches/$(PKG_VERSION)
|
||||||
PKG_SOURCE_URL:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(PKG_VERSION) \
|
PKG_SOURCE_URL:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(PKG_VERSION) \
|
||||||
@ -15,7 +15,7 @@ PKG_SOURCE_URL:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(PKG_VER
|
|||||||
ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(PKG_VERSION)
|
ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_MD5SUM:=d6559145853fbaaa0fd7556ed93bce9a
|
PKG_MD5SUM:=2b7887846f8e5ac1ca58fe4dfaabf5a6
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_FIXUP:=libtool
|
PKG_FIXUP:=libtool
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ define Package/gcc-mips
|
|||||||
SECTION:=devel
|
SECTION:=devel
|
||||||
CATEGORY:=Development
|
CATEGORY:=Development
|
||||||
TITLE:=gcc-mips
|
TITLE:=gcc-mips
|
||||||
DEPENDS:=+mpfr +binutils +libmpc @BROKEN
|
DEPENDS:=+mpfr +binutils +libmpc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gcc-mips/description
|
define Package/gcc-mips/description
|
||||||
@ -72,6 +72,7 @@ define Build/Configure
|
|||||||
--with-gmp=$(STAGING_DIR)/usr \
|
--with-gmp=$(STAGING_DIR)/usr \
|
||||||
--with-mpc=$(STAGING_DIR)/usr \
|
--with-mpc=$(STAGING_DIR)/usr \
|
||||||
--with-mpfr=$(STAGING_DIR)/usr \
|
--with-mpfr=$(STAGING_DIR)/usr \
|
||||||
|
--disable-libstdcxx-pch \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
$(EXTRA_TARGET) \
|
$(EXTRA_TARGET) \
|
||||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||||
@ -87,7 +88,7 @@ endef
|
|||||||
define Package/gcc-mips/install
|
define Package/gcc-mips/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
|
||||||
cp -ar $(PKG_INSTALL_DIR)/usr/{include,libexec} $(1)/usr
|
cp -ar $(PKG_INSTALL_DIR)/usr/{include,libexec} $(1)/usr
|
||||||
cp -a $(PKG_INSTALL_DIR)/usr/bin/{$(REAL_GNU_TARGET_NAME)-{g++,gcc},gccbug,cpp,gcov} $(1)/usr/bin
|
cp -a $(PKG_INSTALL_DIR)/usr/bin/{$(REAL_GNU_TARGET_NAME)-{g++,gcc},cpp,gcov} $(1)/usr/bin
|
||||||
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/c++
|
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/c++
|
||||||
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/g++
|
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/g++
|
||||||
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++
|
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++
|
||||||
@ -102,11 +103,10 @@ endef
|
|||||||
define Package/gcc-mips/postinst
|
define Package/gcc-mips/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#we use some files from host's openwrt toolchain for gcc-mips package,
|
#we use some files from host's openwrt toolchain for gcc-mips package,
|
||||||
#and the host's gcc version (linaro) is now 4.5.4.
|
#and the host's gcc version (linaro) is now 4.6.3.
|
||||||
#this will be fixed when we catch up with openwrt upstream,
|
|
||||||
#workaround for now
|
#workaround for now
|
||||||
for i in $$(find $${IPKG_INSTROOT}/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.5.4 -type f); do
|
for i in $$(find $${IPKG_INSTROOT}/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.6.3 -type f); do
|
||||||
ln -s ../4.5.4/$${i##*/} $${i/4.5.4/4.5.2}
|
ln -s ../4.6.3/$${i##*/} $${i/4.6.3/4.6.2}
|
||||||
done
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user