source: freewrt/toolchain/binutils/Makefile@ e272810

freewrt_2_0
Last change on this file since e272810 was e272810, checked in by Waldemar Brodkorb <wbx@…>, 4 months ago

binutils: add mirror

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# This file is part of the FreeWRT project. FreeWRT is copyrighted
2# material, please see the LICENCE file in the top-level directory
3
4include $(TOPDIR)/rules.mk
5include ../rules.mk
6
7BINUTILS_VERSION:=2.45
8BINUTILS_SITE:= https://sourceware.org/pub/binutils/releases/ \
9 https://ftp.gnu.org/gnu/binutils/
10SOURCE:=binutils-$(BINUTILS_VERSION).tar.gz
11BINUTILS_MD5SUM:=1e548acef5d308fa1a002122126de22c
12BINUTILS_DIR:=$(TOOLCHAIN_BUILD_DIR)/binutils-$(BINUTILS_VERSION)
13
14$(DL_DIR)/$(SOURCE):
15 mkdir -p $(DL_DIR)
16 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SOURCE) $(BINUTILS_MD5SUM) $(BINUTILS_SITE)
17
18$(BINUTILS_DIR)/.unpacked: $(DL_DIR)/$(SOURCE)
19 ${EXTRACT_CMD}
20 touch $(BINUTILS_DIR)/.unpacked
21
22$(BINUTILS_DIR)/.configured: $(BINUTILS_DIR)/.unpacked
23 mkdir -p $(BINUTILS_DIR)
24 (cd $(BINUTILS_DIR); \
25 $(BINUTILS_DIR)/configure \
26 --prefix=$(STAGING_DIR)/usr \
27 --build=$(GNU_HOST_NAME) \
28 --host=$(GNU_HOST_NAME) \
29 --target=$(GNU_TARGET_NAME) \
30 --disable-werror \
31 --disable-nls \
32 );
33 touch $(BINUTILS_DIR)/.configured
34
35$(BINUTILS_DIR)/binutils/objdump: $(BINUTILS_DIR)/.configured
36 $(MAKE) -C $(BINUTILS_DIR) all
37
38$(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-ld: $(BINUTILS_DIR)/binutils/objdump
39 $(MAKE) -C $(BINUTILS_DIR) install
40
41source: $(DL_DIR)/$(SOURCE)
42prepare: $(BINUTILS_DIR)/.unpacked
43compile: $(BINUTILS_DIR)/binutils/objdump
44install: $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-ld
45clean:
46 rm -f $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)*
47 rm -rf $(BINUTILS_DIR)
Note: See TracBrowser for help on using the repository browser.