Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=binutils
  9. PKG_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))
  10. #"))
  11. PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/binutils/ \
  12. ftp://gatekeeper.dec.com/pub/GNU/ \
  13. ftp://ftp.uu.net/archive/systems/gnu/ \
  14. ftp://ftp.eu.uu.net/pub/gnu/ \
  15. ftp://ftp.funet.fi/pub/gnu/prep/ \
  16. ftp://ftp.leo.org/pub/comp/os/unix/gnu/
  17. PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2
  18. PATCH_DIR:=./patches/$(PKG_VERSION)
  19. STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
  20. BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
  21. include $(INCLUDE_DIR)/host-build.mk
  22. define Build/Configure
  23. $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/
  24. (cd $(PKG_BUILD_DIR); \
  25. ./configure \
  26. --prefix=$(STAGING_DIR_HOST) \
  27. --build=$(GNU_HOST_NAME) \
  28. --host=$(GNU_HOST_NAME) \
  29. --target=$(REAL_GNU_TARGET_NAME) \
  30. --disable-werror \
  31. --disable-nls \
  32. $(SOFT_FLOAT_CONFIG_OPTION) \
  33. $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \
  34. );
  35. endef
  36. define Build/Compile
  37. $(MAKE) -C $(PKG_BUILD_DIR) all
  38. endef
  39. define Build/Install
  40. $(MAKE) -C $(PKG_BUILD_DIR) install
  41. endef
  42. $(eval $(call HostBuild))