nuke binutils 2.16.1 - old, unused, buggy
[openwrt.git] / toolchain / binutils / Makefile
1 #
2 # Copyright (C) 2006-2008 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
9 PKG_NAME:=binutils
10 PKG_VERSION:=$(call qstrip,$(CONFIG_BINUTILS_VERSION))
11
12 PKG_SOURCE_URL:=@GNU/binutils/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14
15 ifeq ($(PKG_VERSION),2.17)
16 PKG_MD5SUM:=e26e2e06b6e4bf3acf1dc8688a94c0d1
17 endif
18 ifeq ($(PKG_VERSION),2.18)
19 PKG_MD5SUM:=9d22ee4dafa3a194457caf4706f9cf01
20 endif
21
22 PATCH_DIR:=./patches/$(PKG_VERSION)
23
24 STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
25 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
26 override CONFIG_AUTOREBUILD=
27
28 include $(INCLUDE_DIR)/host-build.mk
29
30 EXTRA_TARGET=$(if $(CONFIG_EXTRA_TARGET_ARCH),--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-uclibc)
31
32 define Build/Configure
33 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/
34 (cd $(PKG_BUILD_DIR); \
35 ./configure \
36 --prefix=$(STAGING_DIR_HOST) \
37 --build=$(GNU_HOST_NAME) \
38 --host=$(GNU_HOST_NAME) \
39 --target=$(REAL_GNU_TARGET_NAME) \
40 --disable-werror \
41 --disable-nls \
42 $(EXTRA_TARGET) \
43 $(SOFT_FLOAT_CONFIG_OPTION) \
44 $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \
45 );
46 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) all
50 endef
51
52 define Build/Install
53 $(MAKE) -C $(PKG_BUILD_DIR) install
54 endef
55
56 $(eval $(call HostBuild))
This page took 0.051018 seconds and 5 git commands to generate.