diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2013-12-26 22:19:29 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2013-12-26 22:19:29 +0000 |
commit | dc7849b9c7a517c0793f79c77e94c8104a5478c1 (patch) | |
tree | 2b5fd3e519ab3081f45a8df2c1f573f5081323ec | |
parent | 4470e662e6cb52c62f5cf4f3ce63bd83a474b48b (diff) | |
download | upstream-dc7849b9c7a517c0793f79c77e94c8104a5478c1.tar.gz upstream-dc7849b9c7a517c0793f79c77e94c8104a5478c1.tar.bz2 upstream-dc7849b9c7a517c0793f79c77e94c8104a5478c1.zip |
[package/binutils]: handle the Linaro version as well
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39164 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/devel/binutils/Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/package/devel/binutils/Makefile b/package/devel/binutils/Makefile index 09710d4b9e..9c406d9666 100644 --- a/package/devel/binutils/Makefile +++ b/package/devel/binutils/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2011 OpenWrt.org +# Copyright (C) 2006-2013 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -10,10 +10,19 @@ include $(TOPDIR)/rules.mk PKG_NAME:=binutils PKG_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION))) #")) -PKG_RELEASE:=5 - -PKG_SOURCE_URL:=@GNU/binutils -PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2 +PKG_RELEASE:=6 + +ifeq ($(findstring linaro, $(CONFIG_BINUTILS_VERSION)),linaro) + PKG_SOURCE_URL:=https://releases.linaro.org/13.06/components/toolchain/binutils-linaro/ + PKG_REV:=2.23.2-2013.06 + PKG_SOURCE:=$(PKG_NAME)-linaro-$(PKG_REV).tar.bz2 + BINUTILS_DIR:=$(PKG_NAME)-2.23.2 + PKG_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(BINUTILS_DIR) + PKG_VERSION:=$(PKG_REV) +else + PKG_SOURCE_URL:=@GNU/binutils + PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2 +endif PKG_MD5SUM:= PATCH_DIR:=$(TOPDIR)/toolchain/binutils/patches/$(PKG_VERSION) |