OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | # |
2 | # Copyright (C) 2006-2013 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=binutils |
||
11 | PKG_VERSION:=2.27 |
||
12 | PKG_RELEASE:=1 |
||
13 | |||
14 | PKG_SOURCE_URL:=@GNU/binutils |
||
15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
||
16 | PKG_VERSION:=$(PKG_VERSION) |
||
17 | PKG_HASH:=369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88 |
||
18 | |||
19 | PKG_FIXUP:=autoreconf |
||
20 | PKG_LIBTOOL_PATHS:=. gas bfd opcodes gprof binutils ld libiberty gold intl |
||
21 | PKG_REMOVE_FILES:=libtool.m4 |
||
22 | PKG_INSTALL:=1 |
||
23 | |||
24 | PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> |
||
25 | PKG_LICENSE:=GPL-3.0+ |
||
26 | PKG_CPE_ID:=cpe:/a:gnu:binutils |
||
27 | PKG_BUILD_PARALLEL:=1 |
||
28 | PKG_USE_MIPS16:=0 |
||
29 | |||
30 | include $(INCLUDE_DIR)/nls.mk |
||
31 | include $(INCLUDE_DIR)/package.mk |
||
32 | |||
33 | define Package/libbfd |
||
34 | SECTION:=libs |
||
35 | CATEGORY:=Libraries |
||
36 | TITLE:=libbfd |
||
37 | DEPENDS:=+zlib $(ICONV_DEPENDS) $(INTL_DEPENDS) |
||
38 | endef |
||
39 | |||
40 | define Package/libopcodes |
||
41 | SECTION:=libs |
||
42 | CATEGORY:=Libraries |
||
43 | TITLE:=libbfd |
||
44 | DEPENDS:=+libbfd |
||
45 | endef |
||
46 | |||
47 | define Package/binutils |
||
48 | SECTION:=devel |
||
49 | CATEGORY:=Development |
||
50 | TITLE:=binutils |
||
51 | DEPENDS:=+objdump +ar |
||
52 | endef |
||
53 | |||
54 | define Package/objdump |
||
55 | SECTION:=devel |
||
56 | CATEGORY:=Development |
||
57 | TITLE:=objdump |
||
58 | DEPENDS:=+libopcodes |
||
59 | endef |
||
60 | |||
61 | define Package/ar |
||
62 | SECTION:=devel |
||
63 | CATEGORY:=Development |
||
64 | TITLE:=ar |
||
65 | DEPENDS:=+zlib +libbfd |
||
66 | endef |
||
67 | |||
68 | define Package/binutils/description |
||
69 | The Binutils package contains a linker, an assembler, and other tools for handling object files |
||
70 | endef |
||
71 | |||
72 | TARGET_CFLAGS += $(FPIC) -Wno-unused-value |
||
73 | |||
74 | CONFIGURE_ARGS += \ |
||
75 | --host=$(REAL_GNU_TARGET_NAME) \ |
||
76 | --target=$(REAL_GNU_TARGET_NAME) \ |
||
77 | --enable-shared \ |
||
78 | --enable-install-libiberty \ |
||
79 | --enable-install-libbfd |
||
80 | |||
81 | define Build/Install |
||
82 | $(call Build/Install/Default) |
||
83 | $(MAKE) -C $(PKG_BUILD_DIR)/libiberty \ |
||
84 | target_header_dir=libiberty \ |
||
85 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
||
86 | MULTIOSDIR="" \ |
||
87 | install |
||
88 | endef |
||
89 | |||
90 | define Build/InstallDev |
||
91 | $(CP) $(PKG_INSTALL_DIR)/* $(1)/ |
||
92 | endef |
||
93 | |||
94 | define Package/libbfd/install |
||
95 | $(INSTALL_DIR) $(1)/usr/lib |
||
96 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbfd*.so $(1)/usr/lib/ |
||
97 | endef |
||
98 | |||
99 | define Package/libopcodes/install |
||
100 | $(INSTALL_DIR) $(1)/usr/lib |
||
101 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopcodes*.so $(1)/usr/lib/ |
||
102 | endef |
||
103 | |||
104 | define Package/objdump/install |
||
105 | $(INSTALL_DIR) $(1)/usr/bin |
||
106 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/objdump $(1)/usr/bin/ |
||
107 | endef |
||
108 | |||
109 | define Package/ar/install |
||
110 | $(INSTALL_DIR) $(1)/usr/bin |
||
111 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/ar $(1)/usr/bin/ |
||
112 | endef |
||
113 | |||
114 | define Package/binutils/install |
||
115 | $(INSTALL_DIR) $(1)/usr $(1)/bin |
||
116 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/ |
||
117 | mv $(1)/usr/bin/strings $(1)/bin/strings |
||
118 | rm -f $(1)/usr/bin/objdump |
||
119 | rm -f $(1)/usr/bin/ar |
||
120 | endef |
||
121 | |||
122 | $(eval $(call BuildPackage,libbfd)) |
||
123 | $(eval $(call BuildPackage,libopcodes)) |
||
124 | $(eval $(call BuildPackage,binutils)) |
||
125 | $(eval $(call BuildPackage,objdump)) |
||
126 | $(eval $(call BuildPackage,ar)) |