[brcm63xx] remove useless hard reset in the SPI controller driver
[openwrt.git] / toolchain / binutils / Makefile
1 #
2 # Copyright (C) 2006-2009 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.18)
16 PKG_MD5SUM:=9d22ee4dafa3a194457caf4706f9cf01
17 endif
18 ifeq ($(PKG_VERSION),2.19.1)
19 PKG_MD5SUM:=09a8c5821a2dfdbb20665bc0bd680791
20 endif
21
22 PATCH_DIR:=./patches/$(PKG_VERSION)
23
24 REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST)
25
26 include $(INCLUDE_DIR)/toolchain-build.mk
27
28 BINUTILS_CONFIGURE:= \
29 ./configure \
30 --prefix=$(TOOLCHAIN_DIR)/usr \
31 --build=$(GNU_HOST_NAME) \
32 --host=$(GNU_HOST_NAME) \
33 --target=$(REAL_GNU_TARGET_NAME) \
34 --with-sysroot=$(TOOLCHAIN_DIR) \
35 --disable-multilib \
36 --disable-werror \
37 --disable-nls \
38 $(SOFT_FLOAT_CONFIG_OPTION) \
39 $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \
40
41 ifneq ($(CONFIG_SSP_SUPPORT),)
42 BINUTILS_CONFIGURE+= \
43 --enable-libssp
44 else
45 BINUTILS_CONFIGURE+= \
46 --disable-libssp
47 endif
48
49 ifneq ($(CONFIG_EXTRA_TARGET_ARCH),)
50 BINUTILS_CONFIGURE+= \
51 --enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX)
52 endif
53
54 define Host/Prepare
55 $(call Host/Prepare/Default)
56 ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
57 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/
58 endef
59
60 define Host/Configure
61 (cd $(HOST_BUILD_DIR); \
62 $(BINUTILS_CONFIGURE) \
63 );
64 endef
65
66 define Host/Compile
67 $(MAKE) -C $(HOST_BUILD_DIR) all
68 endef
69
70 define Host/Install
71 $(MAKE) -C $(HOST_BUILD_DIR) install
72 $(CP) $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-readelf $(REAL_STAGING_DIR_HOST)/bin/readelf
73 endef
74
75 define Host/Clean
76 rm -rf \
77 $(HOST_BUILD_DIR) \
78 $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
79 endef
80
81 $(eval $(call HostBuild))
This page took 0.045996 seconds and 5 git commands to generate.