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