source: branches/backfire/toolchain/binutils/Makefile @ 29310

Last change on this file since 29310 was 29310, checked in by nico, 5 years ago

[backfire] cleanup: toolchain/binutils: remove "broken" stuff

  • remove 2.19.1+cs version
  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=binutils
10PKG_VERSION:=$(call qstrip,$(CONFIG_BINUTILS_VERSION))
11BIN_VERSION:=$(PKG_VERSION)
12
13PKG_SOURCE_URL:=@GNU/binutils/
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15
16ifeq ($(PKG_VERSION),2.18)
17  PKG_MD5SUM:=9d22ee4dafa3a194457caf4706f9cf01
18endif
19ifeq ($(PKG_VERSION),2.19.1)
20  PKG_MD5SUM:=09a8c5821a2dfdbb20665bc0bd680791
21endif
22ifeq ($(PKG_VERSION),2.20)
23  PKG_MD5SUM:=ee2d3e996e9a2d669808713360fa96f8
24endif
25ifeq ($(PKG_VERSION),2.20.1)
26  PKG_MD5SUM:=9cdfb9d6ec0578c166d3beae5e15c4e5
27endif
28
29PATCH_DIR:=./patches/$(PKG_VERSION)
30
31REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST)
32
33include $(INCLUDE_DIR)/toolchain-build.mk
34
35BINUTILS_CONFIGURE:= \
36        ./configure \
37                --prefix=$(TOOLCHAIN_DIR)/usr \
38                --build=$(GNU_HOST_NAME) \
39                --host=$(GNU_HOST_NAME) \
40                --target=$(REAL_GNU_TARGET_NAME) \
41                --with-sysroot=$(TOOLCHAIN_DIR) \
42                --disable-multilib \
43                --disable-werror \
44                --disable-nls \
45                $(if $(CONFIG_GCC_VERSION_4_4), \
46                  --with-ppl=$(REAL_STAGING_DIR_HOST) \
47                  --with-cloog=$(REAL_STAGING_DIR_HOST) \
48                ) \
49                $(SOFT_FLOAT_CONFIG_OPTION) \
50                $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \
51
52ifneq ($(CONFIG_SSP_SUPPORT),)
53  BINUTILS_CONFIGURE+= \
54                --enable-libssp
55else
56  BINUTILS_CONFIGURE+= \
57                --disable-libssp
58endif
59
60ifneq ($(CONFIG_EXTRA_TARGET_ARCH),)
61  BINUTILS_CONFIGURE+= \
62                --enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX)
63endif
64
65define Host/Prepare
66        $(call Host/Prepare/Default)
67        ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
68        $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/
69endef
70
71define Host/Configure
72        (cd $(HOST_BUILD_DIR); \
73                $(BINUTILS_CONFIGURE) \
74        );
75endef
76
77define Host/Compile
78        $(MAKE) -C $(HOST_BUILD_DIR) all
79endef
80
81define Host/Install
82        $(MAKE) -C $(HOST_BUILD_DIR) install
83        $(CP) $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-readelf $(REAL_STAGING_DIR_HOST)/bin/readelf
84endef
85
86define Host/Clean
87        rm -rf \
88                $(HOST_BUILD_DIR) \
89                $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
90endef
91
92$(eval $(call HostBuild))
Note: See TracBrowser for help on using the repository browser.