OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | # |
1 | # |
|
2 | # Copyright (C) 2007-2014 OpenWrt.org |
2 | # Copyright (C) 2007-2014 OpenWrt.org |
|
3 | # |
3 | # |
|
4 | # This is free software, licensed under the GNU General Public License v2. |
4 | # This is free software, licensed under the GNU General Public License v2. |
|
5 | # See /LICENSE for more information. |
5 | # See /LICENSE for more information. |
|
6 | # |
6 | # |
|
7 | |
7 | |
|
8 | include $(TOPDIR)/rules.mk |
8 | include $(TOPDIR)/rules.mk |
|
9 | PKG_NAME:=toolchain |
9 | PKG_NAME:=toolchain |
|
10 | PKG_RELEASE:=1 |
10 | PKG_RELEASE:=1 |
|
11 | |
11 | |
|
12 | PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> |
12 | PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> |
|
13 | PKG_LICENSE:=GPL-3.0-with-GCC-exception |
13 | PKG_LICENSE:=GPL-3.0-with-GCC-exception |
|
14 | |
14 | |
|
15 | PKG_FLAGS:=hold essential nonshared |
15 | PKG_FLAGS:=hold essential nonshared |
|
16 | |
16 | |
|
17 | include $(INCLUDE_DIR)/package.mk |
17 | include $(INCLUDE_DIR)/package.mk |
|
18 | |
18 | |
|
19 | ifneq ($(DUMP),1) |
19 | ifneq ($(DUMP),1) |
|
20 | LIBGCC_VERSION:=$(GCC_VERSION) |
20 | LIBGCC_VERSION:=$(GCC_VERSION) |
|
21 | else |
21 | else |
|
22 | LIBC_VERSION:=<LIBC_VERSION> |
22 | LIBC_VERSION:=<LIBC_VERSION> |
|
23 | LIBGCC_VERSION:=<LIBGCC_VERSION> |
23 | LIBGCC_VERSION:=<LIBGCC_VERSION> |
|
24 | endif |
24 | endif |
|
25 | |
25 | |
|
26 | define Package/gcc/Default |
26 | define Package/gcc/Default |
|
27 | SECTION:=libs |
27 | SECTION:=libs |
|
28 | CATEGORY:=Base system |
28 | CATEGORY:=Base system |
|
29 | URL:=http://gcc.gnu.org/ |
29 | URL:=http://gcc.gnu.org/ |
|
30 | VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE) |
30 | VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE) |
|
31 | endef |
31 | endef |
|
32 | |
32 | |
|
33 | define Package/libgcc |
33 | define Package/libgcc |
|
34 | $(call Package/gcc/Default) |
34 | $(call Package/gcc/Default) |
|
35 | TITLE:=GCC support library |
35 | TITLE:=GCC support library |
|
36 | ABI_VERSION:=1 |
- | ||
37 | endef |
36 | endef |
|
38 | |
37 | |
|
39 | define Package/libgcc/config |
38 | define Package/libgcc/config |
|
40 | menu "Configuration" |
39 | menu "Configuration" |
|
41 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc |
40 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc |
|
42 | |
41 | |
|
43 | config LIBGCC_ROOT_DIR |
42 | config LIBGCC_ROOT_DIR |
|
44 | string |
43 | string |
|
45 | prompt "libgcc shared library base directory" |
44 | prompt "libgcc shared library base directory" |
|
46 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc |
45 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc |
|
47 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
46 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
48 | default "/" if NATIVE_TOOLCHAIN |
47 | default "/" if NATIVE_TOOLCHAIN |
|
49 | |
48 | |
|
50 | config LIBGCC_FILE_SPEC |
49 | config LIBGCC_FILE_SPEC |
|
51 | string |
50 | string |
|
52 | prompt "libgcc shared library files (use wildcards)" |
51 | prompt "libgcc shared library files (use wildcards)" |
|
53 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc |
52 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc |
|
54 | default "./lib/libgcc_s.so.*" |
53 | default "./lib/libgcc_s.so.*" |
|
55 | |
54 | |
|
56 | endmenu |
55 | endmenu |
|
57 | endef |
56 | endef |
|
58 | |
57 | |
|
59 | define Package/libatomic |
58 | define Package/libatomic |
|
60 | $(call Package/gcc/Default) |
59 | $(call Package/gcc/Default) |
|
61 | DEPENDS:=+libgcc |
60 | DEPENDS:=+libgcc |
|
62 | TITLE:=Atomic support library |
61 | TITLE:=Atomic support library |
|
63 | ABI_VERSION:=1 |
- | ||
64 | endef |
62 | endef |
|
65 | |
63 | |
|
66 | define Package/libatomic/config |
64 | define Package/libatomic/config |
|
67 | menu "Configuration" |
65 | menu "Configuration" |
|
68 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic |
66 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic |
|
69 | |
67 | |
|
70 | config LIBATOMIC_ROOT_DIR |
68 | config LIBATOMIC_ROOT_DIR |
|
71 | string |
69 | string |
|
72 | prompt "libatomic shared library base directory" |
70 | prompt "libatomic shared library base directory" |
|
73 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic |
71 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic |
|
74 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
72 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
75 | default "/" if NATIVE_TOOLCHAIN |
73 | default "/" if NATIVE_TOOLCHAIN |
|
76 | |
74 | |
|
77 | config LIBATOMIC_FILE_SPEC |
75 | config LIBATOMIC_FILE_SPEC |
|
78 | string |
76 | string |
|
79 | prompt "libatomic shared library files (use wildcards)" |
77 | prompt "libatomic shared library files (use wildcards)" |
|
80 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic |
78 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic |
|
81 | default "./lib/libatomic.so.*" |
79 | default "./lib/libatomic.so.*" |
|
82 | |
80 | |
|
83 | endmenu |
81 | endmenu |
|
84 | endef |
82 | endef |
|
85 | |
83 | |
|
86 | define Package/libssp |
84 | define Package/libssp |
|
87 | $(call Package/gcc/Default) |
85 | $(call Package/gcc/Default) |
|
88 | DEPENDS+=@GCC_LIBSSP |
86 | DEPENDS+=@GCC_LIBSSP |
|
89 | TITLE:=GCC support library |
87 | TITLE:=GCC support library |
|
90 | endef |
88 | endef |
|
91 | |
89 | |
|
92 | define Package/libssp/config |
90 | define Package/libssp/config |
|
93 | menu "Configuration" |
91 | menu "Configuration" |
|
94 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp |
92 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp |
|
95 | |
93 | |
|
96 | config LIBSSP_ROOT_DIR |
94 | config LIBSSP_ROOT_DIR |
|
97 | string |
95 | string |
|
98 | prompt "libssp shared library base directory" |
96 | prompt "libssp shared library base directory" |
|
99 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp |
97 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp |
|
100 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
98 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
101 | default "/" if NATIVE_TOOLCHAIN |
99 | default "/" if NATIVE_TOOLCHAIN |
|
102 | |
100 | |
|
103 | config LIBSSP_FILE_SPEC |
101 | config LIBSSP_FILE_SPEC |
|
104 | string |
102 | string |
|
105 | prompt "libssp shared library files (use wildcards)" |
103 | prompt "libssp shared library files (use wildcards)" |
|
106 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp |
104 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp |
|
107 | default "./lib/libssp.so.*" |
105 | default "./lib/libssp.so.*" |
|
108 | |
106 | |
|
109 | endmenu |
107 | endmenu |
|
110 | endef |
108 | endef |
|
111 | |
109 | |
|
112 | |
110 | |
|
113 | define Package/libstdcpp |
111 | define Package/libstdcpp |
|
114 | $(call Package/gcc/Default) |
112 | $(call Package/gcc/Default) |
|
115 | NAME:=libstdc++ |
113 | NAME:=libstdc++ |
|
116 | TITLE:=GNU Standard C++ Library v3 |
114 | TITLE:=GNU Standard C++ Library v3 |
|
117 | ABI_VERSION:=6 |
- | ||
118 | endef |
115 | endef |
|
119 | |
116 | |
|
120 | define Package/libstdcpp/config |
117 | define Package/libstdcpp/config |
|
121 | menu "Configuration" |
118 | menu "Configuration" |
|
122 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp |
119 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp |
|
123 | |
120 | |
|
124 | config LIBSTDCPP_ROOT_DIR |
121 | config LIBSTDCPP_ROOT_DIR |
|
125 | string |
122 | string |
|
126 | prompt "libstdcpp shared library base directory" |
123 | prompt "libstdcpp shared library base directory" |
|
127 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp |
124 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp |
|
128 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
125 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
129 | default "/" if NATIVE_TOOLCHAIN |
126 | default "/" if NATIVE_TOOLCHAIN |
|
130 | |
127 | |
|
131 | config LIBSTDCPP_FILE_SPEC |
128 | config LIBSTDCPP_FILE_SPEC |
|
132 | string |
129 | string |
|
133 | prompt "libstdc++ shared library files (use wildcards)" |
130 | prompt "libstdc++ shared library files (use wildcards)" |
|
134 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp |
131 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp |
|
135 | default "./lib/libstdc++.so.*" |
132 | default "./lib/libstdc++.so.*" |
|
136 | |
133 | |
|
137 | endmenu |
134 | endmenu |
|
138 | endef |
135 | endef |
|
139 | |
136 | |
|
140 | |
137 | |
|
141 | define Package/libc/Default |
138 | define Package/libc/Default |
|
142 | SECTION:=libs |
139 | SECTION:=libs |
|
143 | CATEGORY:=Base system |
140 | CATEGORY:=Base system |
|
144 | VERSION:=$(LIBC_VERSION)-$(PKG_RELEASE) |
141 | VERSION:=$(LIBC_VERSION)-$(PKG_RELEASE) |
|
145 | DEPENDS:=+libgcc |
142 | DEPENDS:=+libgcc |
|
146 | URL:=$(LIBC_URL) |
143 | URL:=$(LIBC_URL) |
|
147 | endef |
144 | endef |
|
148 | |
145 | |
|
149 | |
146 | |
|
150 | define Package/libc |
147 | define Package/libc |
|
151 | $(call Package/libc/Default) |
148 | $(call Package/libc/Default) |
|
152 | TITLE:=C library |
149 | TITLE:=C library |
|
153 | endef |
150 | endef |
|
154 | |
151 | |
|
155 | define Package/libc/config |
152 | define Package/libc/config |
|
156 | menu "Configuration" |
153 | menu "Configuration" |
|
157 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc |
154 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc |
|
158 | |
155 | |
|
159 | config LIBC_ROOT_DIR |
156 | config LIBC_ROOT_DIR |
|
160 | string |
157 | string |
|
161 | prompt "libc shared library base directory" |
158 | prompt "libc shared library base directory" |
|
162 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc |
159 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc |
|
163 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
160 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
164 | default "/" if NATIVE_TOOLCHAIN |
161 | default "/" if NATIVE_TOOLCHAIN |
|
165 | |
162 | |
|
166 | config LIBC_FILE_SPEC |
163 | config LIBC_FILE_SPEC |
|
167 | string |
164 | string |
|
168 | prompt "libc shared library files (use wildcards)" |
165 | prompt "libc shared library files (use wildcards)" |
|
169 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc |
166 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc |
|
170 | default "./lib/ld{*.so*,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*,.so}" |
167 | default "./lib/ld{*.so*,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*,.so}" |
|
171 | |
168 | |
|
172 | endmenu |
169 | endmenu |
|
173 | endef |
170 | endef |
|
174 | |
171 | |
|
175 | |
172 | |
|
176 | define Package/libpthread |
173 | define Package/libpthread |
|
177 | $(call Package/libc/Default) |
174 | $(call Package/libc/Default) |
|
178 | TITLE:=POSIX thread library |
175 | TITLE:=POSIX thread library |
|
179 | endef |
176 | endef |
|
180 | |
177 | |
|
181 | define Package/libpthread/config |
178 | define Package/libpthread/config |
|
182 | menu "Configuration" |
179 | menu "Configuration" |
|
183 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread |
180 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread |
|
184 | |
181 | |
|
185 | config LIBPTHREAD_ROOT_DIR |
182 | config LIBPTHREAD_ROOT_DIR |
|
186 | string |
183 | string |
|
187 | prompt "libpthread shared library base directory" |
184 | prompt "libpthread shared library base directory" |
|
188 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread |
185 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread |
|
189 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
186 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
190 | default "/" if NATIVE_TOOLCHAIN |
187 | default "/" if NATIVE_TOOLCHAIN |
|
191 | |
188 | |
|
192 | config LIBPTHREAD_FILE_SPEC |
189 | config LIBPTHREAD_FILE_SPEC |
|
193 | string |
190 | string |
|
194 | prompt "libpthread shared library files (use wildcards)" |
191 | prompt "libpthread shared library files (use wildcards)" |
|
195 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread |
192 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread |
|
196 | default "./lib/libpthread{-*.so,.so.*}" |
193 | default "./lib/libpthread{-*.so,.so.*}" |
|
197 | |
194 | |
|
198 | endmenu |
195 | endmenu |
|
199 | endef |
196 | endef |
|
200 | |
197 | |
|
201 | |
198 | |
|
202 | define Package/libthread-db |
199 | define Package/libthread-db |
|
203 | $(call Package/libc/Default) |
200 | $(call Package/libc/Default) |
|
204 | DEPENDS:=@!USE_MUSL |
201 | DEPENDS:=@!USE_MUSL |
|
205 | TITLE:=POSIX thread library debugging support |
202 | TITLE:=POSIX thread library debugging support |
|
206 | endef |
203 | endef |
|
207 | |
204 | |
|
208 | define Package/libthread-db/config |
205 | define Package/libthread-db/config |
|
209 | menu "Configuration" |
206 | menu "Configuration" |
|
210 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db |
207 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db |
|
211 | |
208 | |
|
212 | config LIBTHREAD_DB_ROOT_DIR |
209 | config LIBTHREAD_DB_ROOT_DIR |
|
213 | string |
210 | string |
|
214 | prompt "POSIX thread debugging shared library base directory" |
211 | prompt "POSIX thread debugging shared library base directory" |
|
215 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db |
212 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db |
|
216 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
213 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
217 | default "/" if NATIVE_TOOLCHAIN |
214 | default "/" if NATIVE_TOOLCHAIN |
|
218 | |
215 | |
|
219 | config LIBTHREAD_DB_FILE_SPEC |
216 | config LIBTHREAD_DB_FILE_SPEC |
|
220 | string |
217 | string |
|
221 | prompt "POSIX thread debugging shared library files (use wildcards)" |
218 | prompt "POSIX thread debugging shared library files (use wildcards)" |
|
222 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db |
219 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libthread-db |
|
223 | default "./lib/libthread_db{-*.so,.so.*}" |
220 | default "./lib/libthread_db{-*.so,.so.*}" |
|
224 | |
221 | |
|
225 | endmenu |
222 | endmenu |
|
226 | endef |
223 | endef |
|
227 | |
224 | |
|
228 | define Package/librt |
225 | define Package/librt |
|
229 | $(call Package/libc/Default) |
226 | $(call Package/libc/Default) |
|
230 | TITLE:=POSIX.1b RealTime extension library |
227 | TITLE:=POSIX.1b RealTime extension library |
|
231 | DEPENDS:=+libpthread |
228 | DEPENDS:=+libpthread |
|
232 | endef |
229 | endef |
|
233 | |
230 | |
|
234 | define Package/librt/config |
231 | define Package/librt/config |
|
235 | menu "Configuration" |
232 | menu "Configuration" |
|
236 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt |
233 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt |
|
237 | |
234 | |
|
238 | config LIBRT_ROOT_DIR |
235 | config LIBRT_ROOT_DIR |
|
239 | string |
236 | string |
|
240 | prompt "librt shared library base directory" |
237 | prompt "librt shared library base directory" |
|
241 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt |
238 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt |
|
242 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
239 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
243 | default "/" if NATIVE_TOOLCHAIN |
240 | default "/" if NATIVE_TOOLCHAIN |
|
244 | |
241 | |
|
245 | config LIBRT_FILE_SPEC |
242 | config LIBRT_FILE_SPEC |
|
246 | string |
243 | string |
|
247 | prompt "librt shared library files (use wildcards)" |
244 | prompt "librt shared library files (use wildcards)" |
|
248 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt |
245 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt |
|
249 | default "./lib/librt{-*.so,.so.*}" |
246 | default "./lib/librt{-*.so,.so.*}" |
|
250 | |
247 | |
|
251 | endmenu |
248 | endmenu |
|
252 | endef |
249 | endef |
|
253 | |
250 | |
|
254 | |
251 | |
|
255 | define Package/libgfortran |
252 | define Package/libgfortran |
|
256 | $(call Package/gcc/Default) |
253 | $(call Package/gcc/Default) |
|
257 | TITLE:=GFortran support library |
254 | TITLE:=GFortran support library |
|
258 | DEPENDS+=@INSTALL_GFORTRAN |
255 | DEPENDS+=@INSTALL_GFORTRAN |
|
259 | endef |
256 | endef |
|
260 | |
257 | |
|
261 | define Package/libgfortran/config |
258 | define Package/libgfortran/config |
|
262 | menu "Configuration" |
259 | menu "Configuration" |
|
263 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
260 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
|
264 | |
261 | |
|
265 | config LIBGFORTRAN_ROOT_DIR |
262 | config LIBGFORTRAN_ROOT_DIR |
|
266 | string |
263 | string |
|
267 | prompt "libgfortran shared library base directory" |
264 | prompt "libgfortran shared library base directory" |
|
268 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
265 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
|
269 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
266 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
270 | default "/" if NATIVE_TOOLCHAIN |
267 | default "/" if NATIVE_TOOLCHAIN |
|
271 | |
268 | |
|
272 | config LIBGFORTRAN_FILE_SPEC |
269 | config LIBGFORTRAN_FILE_SPEC |
|
273 | string |
270 | string |
|
274 | prompt "libgfortran shared library files (use wildcards)" |
271 | prompt "libgfortran shared library files (use wildcards)" |
|
275 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
272 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran |
|
276 | default "./usr/lib/libgfortran.so.*" |
273 | default "./usr/lib/libgfortran.so.*" |
|
277 | |
274 | |
|
278 | endmenu |
275 | endmenu |
|
279 | endef |
276 | endef |
|
280 | |
277 | |
|
281 | define Package/libgomp |
278 | define Package/libgomp |
|
282 | $(call Package/gcc/Default) |
279 | $(call Package/gcc/Default) |
|
283 | TITLE:=OpenMP support library |
280 | TITLE:=OpenMP support library |
|
284 | endef |
281 | endef |
|
285 | |
282 | |
|
286 | define Package/libgomp/config |
283 | define Package/libgomp/config |
|
287 | menu "Configuration" |
284 | menu "Configuration" |
|
288 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp |
285 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp |
|
289 | |
286 | |
|
290 | config LIBGOMP_ROOT_DIR |
287 | config LIBGOMP_ROOT_DIR |
|
291 | string |
288 | string |
|
292 | prompt "libgomp shared library base directory" |
289 | prompt "libgomp shared library base directory" |
|
293 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp |
290 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp |
|
294 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
291 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
295 | default "/" if NATIVE_TOOLCHAIN |
292 | default "/" if NATIVE_TOOLCHAIN |
|
296 | |
293 | |
|
297 | config LIBGOMP_FILE_SPEC |
294 | config LIBGOMP_FILE_SPEC |
|
298 | string |
295 | string |
|
299 | prompt "libgomp shared library files (use wildcards)" |
296 | prompt "libgomp shared library files (use wildcards)" |
|
300 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp |
297 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgomp |
|
301 | default "./lib/libgomp.so*" |
298 | default "./lib/libgomp.so*" |
|
302 | |
299 | |
|
303 | endmenu |
300 | endmenu |
|
304 | endef |
301 | endef |
|
305 | |
302 | |
|
306 | |
303 | |
|
307 | define Package/ldd |
304 | define Package/ldd |
|
308 | $(call Package/libc/Default) |
305 | $(call Package/libc/Default) |
|
309 | DEPENDS:=@!USE_MUSL |
306 | DEPENDS:=@!USE_MUSL |
|
310 | SECTION:=utils |
307 | SECTION:=utils |
|
311 | CATEGORY:=Utilities |
308 | CATEGORY:=Utilities |
|
312 | TITLE:=LDD trace utility |
309 | TITLE:=LDD trace utility |
|
313 | endef |
310 | endef |
|
314 | |
311 | |
|
315 | define Package/ldd/config |
312 | define Package/ldd/config |
|
316 | menu "Configuration" |
313 | menu "Configuration" |
|
317 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd |
314 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd |
|
318 | |
315 | |
|
319 | config LDD_ROOT_DIR |
316 | config LDD_ROOT_DIR |
|
320 | string |
317 | string |
|
321 | prompt "ldd trace utility base directory" |
318 | prompt "ldd trace utility base directory" |
|
322 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd |
319 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd |
|
323 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
320 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
324 | default "/" if NATIVE_TOOLCHAIN |
321 | default "/" if NATIVE_TOOLCHAIN |
|
325 | |
322 | |
|
326 | config LDD_FILE_SPEC |
323 | config LDD_FILE_SPEC |
|
327 | string |
324 | string |
|
328 | prompt "ldd trace utility file" |
325 | prompt "ldd trace utility file" |
|
329 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd |
326 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd |
|
330 | default "./usr/bin/ldd" |
327 | default "./usr/bin/ldd" |
|
331 | |
328 | |
|
332 | endmenu |
329 | endmenu |
|
333 | endef |
330 | endef |
|
334 | |
331 | |
|
335 | |
332 | |
|
336 | define Package/ldconfig |
333 | define Package/ldconfig |
|
337 | $(call Package/libc/Default) |
334 | $(call Package/libc/Default) |
|
338 | DEPENDS:=@!USE_MUSL |
335 | DEPENDS:=@!USE_MUSL |
|
339 | SECTION:=utils |
336 | SECTION:=utils |
|
340 | CATEGORY:=Utilities |
337 | CATEGORY:=Utilities |
|
341 | TITLE:=Shared library path configuration |
338 | TITLE:=Shared library path configuration |
|
342 | endef |
339 | endef |
|
343 | |
340 | |
|
344 | define Package/ldconfig/config |
341 | define Package/ldconfig/config |
|
345 | menu "Configuration" |
342 | menu "Configuration" |
|
346 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig |
343 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig |
|
347 | |
344 | |
|
348 | config LDCONFIG_ROOT_DIR |
345 | config LDCONFIG_ROOT_DIR |
|
349 | string |
346 | string |
|
350 | prompt "ldconfig base directory" |
347 | prompt "ldconfig base directory" |
|
351 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig |
348 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig |
|
352 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
349 | default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN |
|
353 | default "/" if NATIVE_TOOLCHAIN |
350 | default "/" if NATIVE_TOOLCHAIN |
|
354 | |
351 | |
|
355 | config LDCONFIG_FILE_SPEC |
352 | config LDCONFIG_FILE_SPEC |
|
356 | string |
353 | string |
|
357 | prompt "ldconfig file" |
354 | prompt "ldconfig file" |
|
358 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig |
355 | depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig |
|
359 | default "./sbin/ldconfig" |
356 | default "./sbin/ldconfig" |
|
360 | |
357 | |
|
361 | endmenu |
358 | endmenu |
|
362 | endef |
359 | endef |
|
363 | |
360 | |
|
364 | define Build/Prepare |
361 | define Build/Prepare |
|
365 | mkdir -p $(PKG_BUILD_DIR) |
362 | mkdir -p $(PKG_BUILD_DIR) |
|
366 | endef |
363 | endef |
|
367 | |
364 | |
|
368 | LIBGCC_A=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a)) |
365 | LIBGCC_A=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a)) |
|
369 | LIBGCC_MAP=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map)) |
366 | LIBGCC_MAP=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map)) |
|
370 | LIBGCC_SO=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*)) |
367 | LIBGCC_SO=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*)) |
|
371 | |
368 | |
|
372 | define Build/Compile/uClibc |
369 | define Build/Compile/uClibc |
|
373 | $(CP) \ |
370 | $(CP) \ |
|
374 | $(TOOLCHAIN_DIR)/lib/libuClibc-*.so \ |
371 | $(TOOLCHAIN_DIR)/lib/libuClibc-*.so \ |
|
375 | $(PKG_BUILD_DIR)/ |
372 | $(PKG_BUILD_DIR)/ |
|
376 | endef |
373 | endef |
|
377 | ifneq ($(LIBGCC_SO),) |
374 | ifneq ($(LIBGCC_SO),) |
|
378 | define Build/Compile/libgcc |
375 | define Build/Compile/libgcc |
|
379 | $(CP) $(LIBGCC_SO) $(PKG_BUILD_DIR)/ |
376 | $(CP) $(LIBGCC_SO) $(PKG_BUILD_DIR)/ |
|
380 | endef |
377 | endef |
|
381 | endif |
378 | endif |
|
382 | |
379 | |
|
383 | define Build/Compile/Default |
380 | define Build/Compile/Default |
|
384 | $(call Build/Compile/libgcc) |
381 | $(call Build/Compile/libgcc) |
|
385 | $(call Build/Compile/$(LIBC)) |
382 | $(call Build/Compile/$(LIBC)) |
|
386 | endef |
383 | endef |
|
387 | Build/Compile = $(Build/Compile/Default) |
384 | Build/Compile = $(Build/Compile/Default) |
|
388 | |
385 | |
|
389 | ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) |
386 | ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) |
|
390 | |
387 | |
|
391 | define Package/libgcc/install |
388 | define Package/libgcc/install |
|
392 | $(INSTALL_DIR) $(1)/lib |
389 | $(INSTALL_DIR) $(1)/lib |
|
393 | $(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/ |
390 | $(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/ |
|
394 | endef |
391 | endef |
|
395 | |
392 | |
|
396 | define Package/libatomic/install |
393 | define Package/libatomic/install |
|
397 | $(INSTALL_DIR) $(1)/lib |
394 | $(INSTALL_DIR) $(1)/lib |
|
398 | $(CP) $(TOOLCHAIN_DIR)/lib/libatomic.so.* $(1)/lib/ |
395 | $(CP) $(TOOLCHAIN_DIR)/lib/libatomic.so.* $(1)/lib/ |
|
399 | endef |
396 | endef |
|
400 | |
397 | |
|
401 | define Package/libgfortran/install |
398 | define Package/libgfortran/install |
|
402 | $(INSTALL_DIR) $(1)/usr/lib |
399 | $(INSTALL_DIR) $(1)/usr/lib |
|
403 | $(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/ |
400 | $(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/ |
|
404 | endef |
401 | endef |
|
405 | |
402 | |
|
406 | define Package/libssp/install |
403 | define Package/libssp/install |
|
407 | $(INSTALL_DIR) $(1)/lib |
404 | $(INSTALL_DIR) $(1)/lib |
|
408 | $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/ |
405 | $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/ |
|
409 | endef |
406 | endef |
|
410 | |
407 | |
|
411 | define Package/libstdcpp/install |
408 | define Package/libstdcpp/install |
|
412 | $(INSTALL_DIR) $(1)/usr/lib |
409 | $(INSTALL_DIR) $(1)/usr/lib |
|
413 | $(CP) $(TOOLCHAIN_DIR)/lib/libstdc++.so.* $(1)/usr/lib/ |
410 | $(CP) $(TOOLCHAIN_DIR)/lib/libstdc++.so.* $(1)/usr/lib/ |
|
414 | endef |
411 | endef |
|
415 | |
412 | |
|
416 | define Package/glibc/install |
413 | define Package/glibc/install |
|
417 | $(CP) ./glibc-files/* $(1)/ |
414 | $(CP) ./glibc-files/* $(1)/ |
|
418 | rm -f $(1)/etc/localtime |
415 | rm -f $(1)/etc/localtime |
|
419 | $(LN) /tmp/localtime $(1)/etc/localtime |
416 | $(LN) /tmp/localtime $(1)/etc/localtime |
|
420 | $(INSTALL_DIR) $(1)/lib |
417 | $(INSTALL_DIR) $(1)/lib |
|
421 | $(CP) \ |
418 | $(CP) \ |
|
422 | $(TOOLCHAIN_DIR)/lib/ld*.so.* \ |
419 | $(TOOLCHAIN_DIR)/lib/ld*.so.* \ |
|
423 | $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_SO_VERSION).so \ |
420 | $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_SO_VERSION).so \ |
|
424 | $(1)/lib/ |
421 | $(1)/lib/ |
|
425 | for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil; do \ |
422 | for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil; do \ |
|
426 | for file in $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so; do \ |
423 | for file in $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so; do \ |
|
427 | if [ -e "$$$$file" ]; then \ |
424 | if [ -e "$$$$file" ]; then \ |
|
428 | $(CP) $$$$file $(1)/lib/; \ |
425 | $(CP) $$$$file $(1)/lib/; \ |
|
429 | fi; \ |
426 | fi; \ |
|
430 | done; \ |
427 | done; \ |
|
431 | done |
428 | done |
|
432 | endef |
429 | endef |
|
433 | |
430 | |
|
434 | define Package/uClibc/install |
431 | define Package/uClibc/install |
|
435 | $(INSTALL_DIR) $(1)/lib |
432 | $(INSTALL_DIR) $(1)/lib |
|
436 | $(CP) \ |
433 | $(CP) \ |
|
437 | $(TOOLCHAIN_DIR)/lib/ld*-uClibc.so.* \ |
434 | $(TOOLCHAIN_DIR)/lib/ld*-uClibc.so.* \ |
|
438 | $(TOOLCHAIN_DIR)/lib/ld*-uClibc-$(LIBC_SO_VERSION).so \ |
435 | $(TOOLCHAIN_DIR)/lib/ld*-uClibc-$(LIBC_SO_VERSION).so \ |
|
439 | $(1)/lib/ |
436 | $(1)/lib/ |
|
440 | $(CP) \ |
437 | $(CP) \ |
|
441 | $(TOOLCHAIN_DIR)/lib/libc.so.* \ |
438 | $(TOOLCHAIN_DIR)/lib/libc.so.* \ |
|
442 | $(TOOLCHAIN_DIR)/lib/libuClibc-$(LIBC_SO_VERSION).so \ |
439 | $(TOOLCHAIN_DIR)/lib/libuClibc-$(LIBC_SO_VERSION).so \ |
|
443 | $(1)/lib/ |
440 | $(1)/lib/ |
|
444 | $(CP) \ |
441 | $(CP) \ |
|
445 | $(PKG_BUILD_DIR)/libuClibc-* \ |
442 | $(PKG_BUILD_DIR)/libuClibc-* \ |
|
446 | $(1)/lib/ |
443 | $(1)/lib/ |
|
447 | endef |
444 | endef |
|
448 | |
445 | |
|
449 | LD_MUSL_NAME = $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR)/lib/libc.so*))) |
446 | LD_MUSL_NAME = $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR)/lib/libc.so*))) |
|
450 | |
447 | |
|
451 | define Package/musl/install |
448 | define Package/musl/install |
|
452 | $(INSTALL_DIR) $(1)/lib $(1)/usr/bin |
449 | $(INSTALL_DIR) $(1)/lib $(1)/usr/bin |
|
453 | $(CP) \ |
450 | $(CP) \ |
|
454 | $(TOOLCHAIN_DIR)/lib/ld-musl-*.so* \ |
451 | $(TOOLCHAIN_DIR)/lib/ld-musl-*.so* \ |
|
455 | $(1)/lib/ |
452 | $(1)/lib/ |
|
456 | $(CP) \ |
453 | $(CP) \ |
|
457 | $(TOOLCHAIN_DIR)/lib/libc.so* \ |
454 | $(TOOLCHAIN_DIR)/lib/libc.so* \ |
|
458 | $(1)/lib/ |
455 | $(1)/lib/ |
|
459 | $(LN) ../../lib/$(LD_MUSL_NAME) $(1)/usr/bin/ldd |
456 | $(LN) ../../lib/$(LD_MUSL_NAME) $(1)/usr/bin/ldd |
|
460 | endef |
457 | endef |
|
461 | |
458 | |
|
462 | define Package/libc/install |
459 | define Package/libc/install |
|
463 | $(call Package/$(LIBC)/install,$1) |
460 | $(call Package/$(LIBC)/install,$1) |
|
464 | endef |
461 | endef |
|
465 | |
462 | |
|
466 | define Package/libc/install_lib |
463 | define Package/libc/install_lib |
|
467 | $(CP) $(filter-out %/libdl_pic.a %/libpthread_pic.a %/libresolv_pic.a,$(wildcard $(TOOLCHAIN_DIR)/lib/lib*.a)) $(1)/lib/ |
464 | $(CP) $(filter-out %/libdl_pic.a %/libpthread_pic.a %/libresolv_pic.a,$(wildcard $(TOOLCHAIN_DIR)/lib/lib*.a)) $(1)/lib/ |
|
468 | $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libc_so.a $(1)/lib/libc_pic.a) |
465 | $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libc_so.a $(1)/lib/libc_pic.a) |
|
469 | $(if $(LIBGCC_MAP), \ |
466 | $(if $(LIBGCC_MAP), \ |
|
470 | $(CP) $(LIBGCC_A) $(1)/lib/libgcc_s_pic.a; \ |
467 | $(CP) $(LIBGCC_A) $(1)/lib/libgcc_s_pic.a; \ |
|
471 | $(CP) $(LIBGCC_MAP) $(1)/lib/libgcc_s_pic.map \ |
468 | $(CP) $(LIBGCC_MAP) $(1)/lib/libgcc_s_pic.map \ |
|
472 | ) |
469 | ) |
|
473 | endef |
470 | endef |
|
474 | |
471 | |
|
475 | define Package/libpthread/install |
472 | define Package/libpthread/install |
|
476 | $(INSTALL_DIR) $(1)/lib |
473 | $(INSTALL_DIR) $(1)/lib |
|
477 | ifneq ($(CONFIG_USE_MUSL)$(CONFIG_USE_UCLIBC),y) |
474 | ifneq ($(CONFIG_USE_MUSL)$(CONFIG_USE_UCLIBC),y) |
|
478 | $(CP) \ |
475 | $(CP) \ |
|
479 | $(TOOLCHAIN_DIR)/lib/libpthread.so.* \ |
476 | $(TOOLCHAIN_DIR)/lib/libpthread.so.* \ |
|
480 | $(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so \ |
477 | $(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so \ |
|
481 | $(1)/lib/ |
478 | $(1)/lib/ |
|
482 | endif |
479 | endif |
|
483 | endef |
480 | endef |
|
484 | |
481 | |
|
485 | define Package/libthread-db/install |
482 | define Package/libthread-db/install |
|
486 | $(INSTALL_DIR) $(1)/lib |
483 | $(INSTALL_DIR) $(1)/lib |
|
487 | $(CP) \ |
484 | $(CP) \ |
|
488 | $(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib |
485 | $(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib |
|
489 | ifeq ($(CONFIG_USE_UCLIBC),y) |
486 | ifeq ($(CONFIG_USE_UCLIBC),y) |
|
490 | $(CP) \ |
487 | $(CP) \ |
|
491 | $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \ |
488 | $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \ |
|
492 | $(1)/lib/ |
489 | $(1)/lib/ |
|
493 | endif |
490 | endif |
|
494 | endef |
491 | endef |
|
495 | |
492 | |
|
496 | define Package/libpthread/install_lib |
493 | define Package/libpthread/install_lib |
|
497 | $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libpthread_so.a $(1)/lib/libpthread_pic.a) |
494 | $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libpthread_so.a $(1)/lib/libpthread_pic.a) |
|
498 | endef |
495 | endef |
|
499 | |
496 | |
|
500 | define Package/librt/install |
497 | define Package/librt/install |
|
501 | $(INSTALL_DIR) $(1)/lib |
498 | $(INSTALL_DIR) $(1)/lib |
|
502 | ifneq ($(CONFIG_USE_MUSL)$(CONFIG_USE_UCLIBC),y) |
499 | ifneq ($(CONFIG_USE_MUSL)$(CONFIG_USE_UCLIBC),y) |
|
503 | $(CP) \ |
500 | $(CP) \ |
|
504 | $(TOOLCHAIN_DIR)/lib/librt.so.* \ |
501 | $(TOOLCHAIN_DIR)/lib/librt.so.* \ |
|
505 | $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \ |
502 | $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \ |
|
506 | $(1)/lib/ |
503 | $(1)/lib/ |
|
507 | endif |
504 | endif |
|
508 | endef |
505 | endef |
|
509 | |
506 | |
|
510 | define Package/ldd/install |
507 | define Package/ldd/install |
|
511 | $(INSTALL_DIR) $(1)/usr/bin/ |
508 | $(INSTALL_DIR) $(1)/usr/bin/ |
|
512 | $(CP) $(TOOLCHAIN_DIR)/bin/ldd $(1)/usr/bin/ |
509 | $(CP) $(TOOLCHAIN_DIR)/bin/ldd $(1)/usr/bin/ |
|
513 | endef |
510 | endef |
|
514 | |
511 | |
|
515 | define Package/ldconfig/install |
512 | define Package/ldconfig/install |
|
516 | $(INSTALL_DIR) $(1)/sbin/ |
513 | $(INSTALL_DIR) $(1)/sbin/ |
|
517 | $(CP) $(TOOLCHAIN_DIR)/sbin/ldconfig $(1)/sbin/ |
514 | $(CP) $(TOOLCHAIN_DIR)/sbin/ldconfig $(1)/sbin/ |
|
518 | endef |
515 | endef |
|
519 | |
516 | |
|
520 | else |
517 | else |
|
521 | |
518 | |
|
522 | define Package/libgcc/install |
519 | define Package/libgcc/install |
|
523 | for file in $(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)); do \ |
520 | for file in $(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)); do \ |
|
524 | $(INSTALL_DIR) $(1)/lib ; \ |
521 | $(INSTALL_DIR) $(1)/lib ; \ |
|
525 | $(CP) $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
522 | $(CP) $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
526 | done ; \ |
523 | done ; \ |
|
527 | exit 0 |
524 | exit 0 |
|
528 | endef |
525 | endef |
|
529 | |
526 | |
|
530 | define Package/libgfortran/install |
527 | define Package/libgfortran/install |
|
531 | for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \ |
528 | for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \ |
|
532 | $(INSTALL_DIR) $(1)/lib ; \ |
529 | $(INSTALL_DIR) $(1)/lib ; \ |
|
533 | $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
530 | $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
534 | done |
531 | done |
|
535 | endef |
532 | endef |
|
536 | |
533 | |
|
537 | define Package/libssp/install |
534 | define Package/libssp/install |
|
538 | for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \ |
535 | for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \ |
|
539 | $(INSTALL_DIR) $(1)/lib ; \ |
536 | $(INSTALL_DIR) $(1)/lib ; \ |
|
540 | $(CP) $(call qstrip,$(CONFIG_LIBSSP_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
537 | $(CP) $(call qstrip,$(CONFIG_LIBSSP_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
541 | done ; \ |
538 | done ; \ |
|
542 | exit 0 |
539 | exit 0 |
|
543 | endef |
540 | endef |
|
544 | |
541 | |
|
545 | define Package/libstdcpp/install |
542 | define Package/libstdcpp/install |
|
546 | for file in $(call qstrip,$(CONFIG_LIBSTDCPP_FILE_SPEC)); do \ |
543 | for file in $(call qstrip,$(CONFIG_LIBSTDCPP_FILE_SPEC)); do \ |
|
547 | $(INSTALL_DIR) $(1)/lib ; \ |
544 | $(INSTALL_DIR) $(1)/lib ; \ |
|
548 | $(CP) $(call qstrip,$(CONFIG_LIBSTDCPP_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
545 | $(CP) $(call qstrip,$(CONFIG_LIBSTDCPP_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
549 | done ; \ |
546 | done ; \ |
|
550 | exit 0 |
547 | exit 0 |
|
551 | endef |
548 | endef |
|
552 | |
549 | |
|
553 | define Package/libc/install |
550 | define Package/libc/install |
|
554 | for file in $(call qstrip,$(CONFIG_LIBC_FILE_SPEC)); do \ |
551 | for file in $(call qstrip,$(CONFIG_LIBC_FILE_SPEC)); do \ |
|
555 | $(INSTALL_DIR) $(1)/lib ; \ |
552 | $(INSTALL_DIR) $(1)/lib ; \ |
|
556 | $(CP) $(call qstrip,$(CONFIG_LIBC_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
553 | $(CP) $(call qstrip,$(CONFIG_LIBC_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
557 | done ; \ |
554 | done ; \ |
|
558 | exit 0 |
555 | exit 0 |
|
559 | endef |
556 | endef |
|
560 | |
557 | |
|
561 | define Package/libpthread/install |
558 | define Package/libpthread/install |
|
562 | for file in $(call qstrip,$(CONFIG_LIBPTHREAD_FILE_SPEC)); do \ |
559 | for file in $(call qstrip,$(CONFIG_LIBPTHREAD_FILE_SPEC)); do \ |
|
563 | $(INSTALL_DIR) $(1)/lib ; \ |
560 | $(INSTALL_DIR) $(1)/lib ; \ |
|
564 | $(CP) $(call qstrip,$(CONFIG_LIBPTHREAD_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
561 | $(CP) $(call qstrip,$(CONFIG_LIBPTHREAD_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
565 | done ; \ |
562 | done ; \ |
|
566 | exit 0 |
563 | exit 0 |
|
567 | endef |
564 | endef |
|
568 | |
565 | |
|
569 | define Package/libthread-db/install |
566 | define Package/libthread-db/install |
|
570 | for file in $(call qstrip,$(CONFIG_LIBTHREAD_DB_FILE_SPEC)); do \ |
567 | for file in $(call qstrip,$(CONFIG_LIBTHREAD_DB_FILE_SPEC)); do \ |
|
571 | $(INSTALL_DIR) $(1)/lib ; \ |
568 | $(INSTALL_DIR) $(1)/lib ; \ |
|
572 | $(CP) $(call qstrip,$(CONFIG_LIBTHREAD_DB_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
569 | $(CP) $(call qstrip,$(CONFIG_LIBTHREAD_DB_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
573 | done ; \ |
570 | done ; \ |
|
574 | exit 0 |
571 | exit 0 |
|
575 | endef |
572 | endef |
|
576 | |
573 | |
|
577 | define Package/librt/install |
574 | define Package/librt/install |
|
578 | for file in $(call qstrip,$(CONFIG_LIBRT_FILE_SPEC)); do \ |
575 | for file in $(call qstrip,$(CONFIG_LIBRT_FILE_SPEC)); do \ |
|
579 | $(INSTALL_DIR) $(1)/lib ; \ |
576 | $(INSTALL_DIR) $(1)/lib ; \ |
|
580 | $(CP) $(call qstrip,$(CONFIG_LIBRT_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
577 | $(CP) $(call qstrip,$(CONFIG_LIBRT_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
581 | done ; \ |
578 | done ; \ |
|
582 | exit 0 |
579 | exit 0 |
|
583 | endef |
580 | endef |
|
584 | |
581 | |
|
585 | define Package/libatomic/install |
582 | define Package/libatomic/install |
|
586 | for file in $(call qstrip,$(CONFIG_LIBATOMIC_FILE_SPEC)); do \ |
583 | for file in $(call qstrip,$(CONFIG_LIBATOMIC_FILE_SPEC)); do \ |
|
587 | $(INSTALL_DIR) $(1)/lib ; \ |
584 | $(INSTALL_DIR) $(1)/lib ; \ |
|
588 | $(CP) $(call qstrip,$(CONFIG_LIBATOMIC_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
585 | $(CP) $(call qstrip,$(CONFIG_LIBATOMIC_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
589 | done ; \ |
586 | done ; \ |
|
590 | exit 0 |
587 | exit 0 |
|
591 | endef |
588 | endef |
|
592 | |
589 | |
|
593 | define Package/libgomp/install |
590 | define Package/libgomp/install |
|
594 | for file in $(call qstrip,$(CONFIG_LIBGOMP_FILE_SPEC)); do \ |
591 | for file in $(call qstrip,$(CONFIG_LIBGOMP_FILE_SPEC)); do \ |
|
595 | $(INSTALL_DIR) $(1)/lib ; \ |
592 | $(INSTALL_DIR) $(1)/lib ; \ |
|
596 | $(CP) $(call qstrip,$(CONFIG_LIBGOMP_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
593 | $(CP) $(call qstrip,$(CONFIG_LIBGOMP_ROOT_DIR))/$$$$file $(1)/lib/ ; \ |
|
597 | done ; \ |
594 | done ; \ |
|
598 | exit 0 |
595 | exit 0 |
|
599 | endef |
596 | endef |
|
600 | |
597 | |
|
601 | define Package/ldd/install |
598 | define Package/ldd/install |
|
602 | for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \ |
599 | for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \ |
|
603 | dir=`dirname $$$$file` ; \ |
600 | dir=`dirname $$$$file` ; \ |
|
604 | $(INSTALL_DIR) $(1)/$$$$dir ; \ |
601 | $(INSTALL_DIR) $(1)/$$$$dir ; \ |
|
605 | $(CP) $(call qstrip,$(CONFIG_LDD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \ |
602 | $(CP) $(call qstrip,$(CONFIG_LDD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \ |
|
606 | done ; \ |
603 | done ; \ |
|
607 | exit 0 |
604 | exit 0 |
|
608 | endef |
605 | endef |
|
609 | |
606 | |
|
610 | define Package/ldconfig/install |
607 | define Package/ldconfig/install |
|
611 | for file in $(call qstrip,$(CONFIG_LDCONFIG_FILE_SPEC)); do \ |
608 | for file in $(call qstrip,$(CONFIG_LDCONFIG_FILE_SPEC)); do \ |
|
612 | dir=`dirname $$$$file` ; \ |
609 | dir=`dirname $$$$file` ; \ |
|
613 | $(INSTALL_DIR) $(1)/$$$$dir ; \ |
610 | $(INSTALL_DIR) $(1)/$$$$dir ; \ |
|
614 | $(CP) $(call qstrip,$(CONFIG_LDCONFIG_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \ |
611 | $(CP) $(call qstrip,$(CONFIG_LDCONFIG_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \ |
|
615 | done ; \ |
612 | done ; \ |
|
616 | exit 0 |
613 | exit 0 |
|
617 | endef |
614 | endef |
|
618 | |
615 | |
|
619 | endif |
616 | endif |
|
620 | |
617 | |
|
621 | $(eval $(call BuildPackage,libc)) |
618 | $(eval $(call BuildPackage,libc)) |
|
622 | $(eval $(call BuildPackage,libgcc)) |
619 | $(eval $(call BuildPackage,libgcc)) |
|
623 | $(eval $(call BuildPackage,libatomic)) |
620 | $(eval $(call BuildPackage,libatomic)) |
|
624 | $(eval $(call BuildPackage,libssp)) |
621 | $(eval $(call BuildPackage,libssp)) |
|
625 | $(eval $(call BuildPackage,libstdcpp)) |
622 | $(eval $(call BuildPackage,libstdcpp)) |
|
626 | $(eval $(call BuildPackage,libpthread)) |
623 | $(eval $(call BuildPackage,libpthread)) |
|
627 | $(eval $(call BuildPackage,libthread-db)) |
624 | $(eval $(call BuildPackage,libthread-db)) |
|
628 | $(eval $(call BuildPackage,librt)) |
625 | $(eval $(call BuildPackage,librt)) |
|
629 | $(eval $(call BuildPackage,libgfortran)) |
626 | $(eval $(call BuildPackage,libgfortran)) |
|
630 | $(eval $(call BuildPackage,libgomp)) |
627 | $(eval $(call BuildPackage,libgomp)) |
|
631 | $(eval $(call BuildPackage,ldd)) |
628 | $(eval $(call BuildPackage,ldd)) |
|
632 | $(eval $(call BuildPackage,ldconfig)) |
629 | $(eval $(call BuildPackage,ldconfig)) |
|
633 | |
630 | |