2009-01-13 21:53:14 +00:00
|
|
|
#
|
2007-10-07 00:49:11 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=binutils
|
|
|
|
PKG_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))
|
|
|
|
#"))
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/binutils/ \
|
|
|
|
ftp://gatekeeper.dec.com/pub/GNU/ \
|
2009-01-13 21:53:14 +00:00
|
|
|
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/
|
2007-10-07 00:49:11 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2
|
|
|
|
PATCH_DIR:=$(TOPDIR)/toolchain/binutils/patches/$(PKG_VERSION)
|
2009-01-13 21:53:14 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-10-07 00:49:11 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/binutils
|
2008-06-09 21:29:40 +00:00
|
|
|
SECTION:=devel
|
|
|
|
CATEGORY:=Development
|
2007-10-07 00:49:11 +00:00
|
|
|
TITLE:=binutils
|
2008-06-09 21:29:40 +00:00
|
|
|
DEPENDS:=@TARGET_x86
|
2007-10-07 00:49:11 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/binutils/description
|
|
|
|
The Binutils package contains a linker, an assembler, and other tools for handling object files
|
|
|
|
endef
|
|
|
|
|
2009-01-13 21:53:14 +00:00
|
|
|
define Package/libbfd
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=libbfd
|
|
|
|
endef
|
|
|
|
|
2007-10-07 00:49:11 +00:00
|
|
|
define Build/Configure
|
2009-01-13 21:53:14 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-werror \
|
|
|
|
--disable-nls \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/{lib,include}
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libbfd.a \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/{symcat,ansidecl,bfd,bfdlink}.h \
|
|
|
|
$(1)/usr/include/
|
2007-10-07 00:49:11 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
make -C $(PKG_BUILD_DIR)/bfd/doc/ CFLAGS="-I$(PKG_BUILD_DIR)/include" chew
|
2009-01-13 21:53:14 +00:00
|
|
|
$(call Build/Compile/Default)
|
2007-10-07 00:49:11 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/binutils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr
|
2007-12-10 14:09:11 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/
|
2007-10-07 00:49:11 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/*-linux $(1)/usr
|
|
|
|
endef
|
|
|
|
|
2009-01-13 21:53:14 +00:00
|
|
|
define Package/libbdf/install
|
|
|
|
true
|
|
|
|
endef
|
|
|
|
|
2007-10-07 00:49:11 +00:00
|
|
|
$(eval $(call BuildPackage,binutils))
|
2009-01-13 21:53:14 +00:00
|
|
|
$(eval $(call BuildPackage,libbfd))
|