You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
19 years ago
|
#
|
||
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
20 years ago
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
19 years ago
|
PKG_NAME:=binutils
|
||
|
PKG_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))#"))
|
||
20 years ago
|
|
||
19 years ago
|
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/binutils/ \
|
||
20 years ago
|
ftp://gatekeeper.dec.com/pub/GNU/ \
|
||
|
ftp://ftp.uu.net/archive/systems/gnu/ \
|
||
|
ftp://ftp.eu.uu.net/pub/gnu/ \
|
||
|
ftp://ftp.funet.fi/pub/gnu/prep/ \
|
||
|
ftp://ftp.leo.org/pub/comp/os/unix/gnu/
|
||
20 years ago
|
|
||
19 years ago
|
PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2
|
||
|
PKG_MD5SUM:=unknown
|
||
18 years ago
|
PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||
19 years ago
|
PKG_CAT:=bzcat
|
||
20 years ago
|
|
||
19 years ago
|
include $(INCLUDE_DIR)/host-build.mk
|
||
20 years ago
|
|
||
|
|
||
19 years ago
|
define Build/Prepare
|
||
|
$(call Build/Prepare/Default)
|
||
|
if [ -d ./patches/$(PKG_VERSION) ]; then \
|
||
|
$(SCRIPT_DIR)/patch-kernel.sh $(PKG_BUILD_DIR) ./patches/$(PKG_VERSION); \
|
||
|
fi
|
||
|
endef
|
||
20 years ago
|
|
||
19 years ago
|
define Build/Configure
|
||
|
(cd $(PKG_BUILD_DIR); \
|
||
|
./configure \
|
||
20 years ago
|
--prefix=$(STAGING_DIR) \
|
||
|
--build=$(GNU_HOST_NAME) \
|
||
|
--host=$(GNU_HOST_NAME) \
|
||
|
--target=$(REAL_GNU_TARGET_NAME) \
|
||
|
--disable-werror \
|
||
19 years ago
|
--disable-nls \
|
||
|
);
|
||
|
endef
|
||
20 years ago
|
|
||
19 years ago
|
define Build/Compile
|
||
|
$(MAKE) -C $(PKG_BUILD_DIR) -j $(CONFIG_JLEVEL) all
|
||
|
endef
|
||
20 years ago
|
|
||
19 years ago
|
define Build/Install
|
||
|
$(MAKE) -C $(PKG_BUILD_DIR) -j $(CONFIG_JLEVEL) install
|
||
|
endef
|
||
20 years ago
|
|
||
19 years ago
|
$(eval $(call HostBuild))
|