Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. (cd $(PKG_BUILD_DIR); \
  24. ./configure \
  25. --prefix=$(STAGING_DIR_HOST) \
  26. --build=$(GNU_HOST_NAME) \
  27. --host=$(GNU_HOST_NAME) \
  28. --target=$(REAL_GNU_TARGET_NAME) \
  29. --disable-werror \
  30. --disable-nls \
  31. $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \
  32. );
  33. endef
  34. define Build/Compile
  35. $(MAKE) -C $(PKG_BUILD_DIR) all
  36. endef
  37. define Build/Install
  38. $(MAKE) -C $(PKG_BUILD_DIR) install
  39. endef
  40. $(eval $(call HostBuild))