2 # Copyright (C) 2007-2010 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_FILE_DEPENDS
:=$(PLATFORM_DIR
)/ $(GENERIC_PLATFORM_DIR
)/base-files
/
16 PKG_BUILD_DEPENDS
:=opkg
/host
18 include $(INCLUDE_DIR
)/package.mk
22 ifneq ($(wildcard $(PLATFORM_DIR
)/base-files-
$(PROFILE
) $(PLATFORM_SUBDIR
)/base-files-
$(PROFILE
)),)
23 TARGET
:=$(TARGET
)-$(PROFILE
)
25 LIBGCC_VERSION
:=$(GCC_VERSION
)
26 ifneq ($(findstring $(ARCH
) , mips64 x86_64
),)
30 LIBC_VERSION
:=<LIBC_VERSION
>
31 LIBGCC_VERSION
:=<LIBGCC_VERSION
>
34 define Package
/base-files
37 TITLE
:=Base filesystem for OpenWrt
38 URL
:=http
://openwrt.org
/
39 VERSION
:=$(PKG_RELEASE
)-$(REVISION
)
40 $(call Config
,network.lan.proto
,string
,static
,LAN Protocol
)
41 $(call Config
,network.lan.ipaddr
,ip
,192.168.1.1,LAN IP Address
)
42 $(call Config
,network.lan.netmask
,netmask
,255.255.255.0,LAN Network Mask
)
43 $(call Config
,network.lan.gateway
,ip
,,LAN Gateway
)
44 $(call Config
,network.lan.dns
,ip
,,LAN DNS server
)
47 define Package
/base-files
/conffiles
60 $(call
$(TARGET
)/conffiles
)
63 define Package
/base-files
/description
64 This package contains a base filesystem and system scripts for OpenWrt.
68 define Package
/gcc
/Default
71 URL
:=http
://gcc.gnu.org
/
72 VERSION
:=$(LIBGCC_VERSION
)-$(PKG_RELEASE
)
77 $(call Package
/gcc
/Default
)
78 TITLE
:=GCC support library
79 DEPENDS
+=@
!(TARGET_avr32||TARGET_coldfire
)
82 define Package
/libgcc
/config
84 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
86 config LIBGCC_ROOT_DIR
88 prompt
"libgcc shared library base directory"
89 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
90 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
91 default
"/" if NATIVE_TOOLCHAIN
93 config LIBGCC_FILE_SPEC
95 prompt
"libgcc shared library files (use wildcards)"
96 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libgcc
97 default
"./lib/libgcc_s.so.*"
103 define Package
/libssp
104 $(call Package
/gcc
/Default
)
105 DEPENDS
+=@SSP_SUPPORT
106 TITLE
:=GCC support library
109 define Package
/libssp
/config
111 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
113 config LIBSPP_ROOT_DIR
115 prompt
"libssp shared library base directory"
116 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
117 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
118 default
"/" if NATIVE_TOOLCHAIN
120 config LIBSSP_FILE_SPEC
122 prompt
"libssp shared library files (use wildcards)"
123 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libssp
124 default
"./lib/libssp.so.*"
130 define Package
/libstdcpp
131 $(call Package
/gcc
/Default
)
133 TITLE
:=GNU Standard C
++ Library v3
134 DEPENDS
+=@INSTALL_LIBSTDCPP
137 define Package
/libstdcpp
/config
139 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
141 config LIBSTDCPP_ROOT_DIR
143 prompt
"libstdcpp shared library base directory"
144 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
145 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
146 default
"/" if NATIVE_TOOLCHAIN
148 config LIBSTDCPP_FILE_SPEC
150 prompt
"libstdc++ shared library files (use wildcards)"
151 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libstdcpp
152 default
"./lib/libstdc++.so.*"
158 define Package
/libc
/Default
160 CATEGORY
:=Base system
161 VERSION
:=$(LIBC_VERSION
)-$(PKG_RELEASE
)
162 ifneq ($(TARGET_avr32
)$(TARGET_coldfire
),)
166 PKG_FLAGS
:=hold essential
171 $(call Package
/libc
/Default
)
175 define Package
/libc
/config
177 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
181 prompt
"libc shared library base directory"
182 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
183 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
184 default
"/" if NATIVE_TOOLCHAIN
186 config LIBC_FILE_SPEC
188 prompt
"libc shared library files (use wildcards)"
189 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libc
190 default
"./lib/ld{-*.so,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}"
196 define Package
/libpthread
197 $(call Package
/libc
/Default
)
198 TITLE
:=POSIX thread library
201 define Package
/libpthread
/config
203 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
205 config LIBPTHREAD_ROOT_DIR
207 prompt
"libpthread shared library base directory"
208 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
209 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
210 default
"/" if NATIVE_TOOLCHAIN
212 config LIBPTHREAD_FILE_SPEC
214 prompt
"libpthread shared library files (use wildcards)"
215 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_libpthread
216 default
"./lib/libpthread{-*.so,.so.*}"
223 $(call Package
/libc
/Default
)
224 TITLE
:=POSIX
.1b RealTime extension library
228 define Package
/librt
/config
230 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
232 config LIBRT_ROOT_DIR
234 prompt
"librt shared library base directory"
235 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
236 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
237 default
"/" if NATIVE_TOOLCHAIN
239 config LIBRT_FILE_SPEC
241 prompt
"librt shared library files (use wildcards)"
242 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_librt
243 default
"./lib/librt{-*.so,.so.*}"
250 $(call Package
/libc
/Default
)
253 TITLE
:=LDD trace utility
256 define Package
/ldd
/config
258 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
262 prompt
"ldd trace utility base directory"
263 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
264 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
265 default
"/" if NATIVE_TOOLCHAIN
269 prompt
"ldd trace utility file"
270 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_ldd
271 default
"./usr/bin/ldd"
277 define Package
/ldconfig
278 $(call Package
/libc
/Default
)
281 TITLE
:=Shared library path configuration
284 define Package
/ldconfig
/config
286 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
288 config LDCONFIG_ROOT_DIR
290 prompt
"ldconfig base directory"
291 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
292 default TOOLCHAIN_ROOT if
!NATIVE_TOOLCHAIN
293 default
"/" if NATIVE_TOOLCHAIN
295 config LDCONFIG_FILE_SPEC
297 prompt
"ldconfig file"
298 depends EXTERNAL_TOOLCHAIN
&& PACKAGE_ldconfig
299 default
"./sbin/ldconfig"
305 ifneq ($(CONFIG_PREINITOPT
),)
306 define ImageConfigOptions
307 mkdir
-p
$(1)/lib
/preinit
308 echo
'pi_suppress_stderr="$(CONFIG_TARGET_PREINIT_SUPPRESS_STDERR)"' >$(1)/lib
/preinit
/00_preinit.conf
309 echo
'fs_failsafe_wait_timeout=$(if $(CONFIG_TARGET_PREINIT_TIMEOUT),$(CONFIG_TARGET_PREINIT_TIMEOUT),2)' >>$(1)/lib
/preinit
/00_preinit.conf
310 echo
'pi_init_path=$(if $(CONFIG_TARGET_INIT_PATH),$(CONFIG_TARGET_INIT_PATH),"/bin:/sbin:/usr/bin:/usr/sbin")' >>$(1)/lib
/preinit
/00_preinit.conf
311 echo
'pi_init_env=$(if $(CONFIG_TARGET_INIT_ENV),$(CONFIG_TARGET_INIT_ENV),"")' >>$(1)/lib
/preinit
/00_preinit.conf
312 echo
'pi_init_cmd=$(if $(CONFIG_TARGET_INIT_CMD),$(CONFIG_TARGET_INIT_CMD),"/sbin/init")' >>$(1)/lib
/preinit
/00_preinit.conf
313 echo
'pi_init_suppress_stderr="$(CONFIG_TARGET_INIT_SUPPRESS_STDERR)"' >>$(1)/lib
/preinit
/00_preinit.conf
314 echo
'pi_ifname=$(if $(CONFIG_TARGET_PREINIT_IFNAME),$(CONFIG_TARGET_PREINIT_IFNAME),"")' >>$(1)/lib
/preinit
/00_preinit.conf
315 echo
'pi_ip=$(if $(CONFIG_TARGET_PREINIT_IP),$(CONFIG_TARGET_PREINIT_IP),"192.168.1.1")' >>$(1)/lib
/preinit
/00_preinit.conf
316 echo
'pi_netmask=$(if $(CONFIG_TARGET_PREINIT_NETMASK),$(CONFIG_TARGET_PREINIT_NETMASK),"255.255.255.0")' >>$(1)/lib
/preinit
/00_preinit.conf
317 echo
'pi_broadcast=$(if $(CONFIG_TARGET_PREINIT_BROADCAST),$(CONFIG_TARGET_PREINIT_BROADCAST),"192.168.1.255")' >>$(1)/lib
/preinit
/00_preinit.conf
318 echo
'pi_preinit_net_messages="$(CONFIG_TARGET_PREINIT_SHOW_NETMSG)"' >>$(1)/lib
/preinit
/00_preinit.conf
319 echo
'pi_preinit_no_failsafe_netmsg="$(CONFIG_TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG)"' >>$(1)/lib
/preinit
/00_preinit.conf
324 mkdir
-p
$(PKG_BUILD_DIR
)
327 LIBGCC_A
=$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc_pic.a
)
328 LIBGCC_MAP
=$(wildcard $(TOOLCHAIN_DIR
)/lib
/gcc
/*/*/libgcc.map
)
329 BUILD_LIBGCC
:=$(if
$(CONFIG_avr32
)$(CONFIG_m68k
),,$(PKG_BUILD_DIR
)/libgcc_s.so.
*)
331 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
332 define Build
/Compile
/uClibc
333 $(SCRIPT_DIR
)/relink-lib.sh \
335 "$(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a)" \
336 "$(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a)" \
337 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libuClibc-*.so))" \
338 -Wl
,-init
,__uClibc_init
-Wl
,-soname
=libc.so
.0 \
340 $(SCRIPT_DIR
)/relink-lib.sh \
342 "$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt-*.so)" \
343 "$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt_pic.a)" \
344 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libcrypt-*.so))" \
346 -Wl
,-soname
=libcrypt.so
.0
347 $(SCRIPT_DIR
)/relink-lib.sh \
349 "$(wildcard $(TOOLCHAIN_DIR)/lib/libm-*.so)" \
350 "$(wildcard $(TOOLCHAIN_DIR)/lib/libm_pic.a)" \
351 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libm-*.so))" \
353 -Wl
,-soname
=libm.so
.0
354 $(SCRIPT_DIR
)/relink-lib.sh \
356 "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so)" \
357 "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a)" \
358 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so))" \
359 -Wl
,-z
,nodelete
,-z
,initfirst
,-init
=__pthread_initialize_minimal_internal \
360 -ldl
$(BUILD_LIBGCC
) \
361 -Wl
,-soname
=libpthread.so
.0
363 ifneq ($(BUILD_LIBGCC
),)
364 define Build
/Compile
/libgcc
365 $(SCRIPT_DIR
)/relink-lib.sh \
367 "$(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*)" \
369 "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*))" \
370 -Wl
,--version-script
=$(LIBGCC_MAP
) -Wl
,-soname
=libgcc_s.so
.1
375 define Build
/Compile
/Default
376 $(call Build
/Compile
/libgcc
)
377 $(call Build
/Compile
/$(LIBC
))
379 Build
/Compile
= $(Build
/Compile
/Default
)
381 define Package
/base-files
/install
382 $(CP
) .
/files
/* $(1)/
383 if
[ -d
$(GENERIC_PLATFORM_DIR
)/base-files
/.
]; then \
384 $(CP
) $(GENERIC_PLATFORM_DIR
)/base-files
/* $(1)/; \
386 if
[ -d
$(PLATFORM_DIR
)/base-files
/.
]; then \
387 $(CP
) $(PLATFORM_DIR
)/base-files
/* $(1)/; \
389 if
[ -d
$(PLATFORM_DIR
)/base-files-
$(PROFILE
)/.
]; then \
390 $(CP
) $(PLATFORM_DIR
)/base-files-
$(PROFILE
)/* $(1)/; \
392 if
[ -d
$(PLATFORM_DIR
)/$(PROFILE
)/base-files
/.
]; then \
393 $(CP
) $(PLATFORM_DIR
)/$(PROFILE
)/base-files
/* $(1)/; \
395 $(if
$(filter-out $(PLATFORM_DIR
),$(PLATFORM_SUBDIR
)), \
396 if
[ -d
$(PLATFORM_SUBDIR
)/base-files
/.
]; then \
397 $(CP
) $(PLATFORM_SUBDIR
)/base-files
/* $(1)/; \
399 if
[ -d
$(PLATFORM_SUBDIR
)/base-files-
$(PROFILE
)/.
]; then \
400 $(CP
) $(PLATFORM_SUBDIR
)/base-files-
$(PROFILE
)/* $(1)/; \
402 if
[ -d
$(PLATFORM_SUBDIR
)/$(PROFILE
)/base-files
/.
]; then \
403 $(CP
) $(PLATFORM_SUBDIR
)/$(PROFILE
)/base-files
/* $(1)/; \
406 # Form valid /etc/shadow entries, by copying the user:pw pairs
407 # from /etc/passwd, and adding on pw change data
408 $(if
$(CONFIG_BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS
), \
409 cut
-d
':' -f
1-2 $(1)/etc
/passwd
> $(1)/etc
/shadow
; \
410 $(SED
) 's/$$$$/:13848:0:99999:7:::/' $(1)/etc
/shadow \
412 $(SED
) 's,$$$$R,$(REVISION),g' $(1)/etc
/banner
413 mkdir
-p
$(1)/CONTROL
415 mkdir
-p
$(1)/etc
/crontabs
416 mkdir
-p
$(1)/etc
/rc.d
417 mkdir
-p
$(1)/overlay
418 mkdir
-p
$(1)/lib
/firmware
419 $(if
$(LIB_SUFFIX
),-ln
-s lib
$(1)/lib
$(LIB_SUFFIX
))
423 mkdir
-p
$(1)/usr
/lib
424 $(if
$(LIB_SUFFIX
),-ln
-s lib
$(1)/usr
/lib
$(LIB_SUFFIX
))
425 mkdir
-p
$(1)/usr
/bin
429 ln
-sf
/proc
/mounts
$(1)/etc
/mtab
433 ln
-sf
/tmp
/resolv.conf
/tmp
/fstab
/tmp
/TZ
$(1)/etc
/
434 $(call ImageConfigOptions
,$(1))
435 $(call Package
/base-files
/install-target
,$(1))
436 for conffile in
$(1)/etc
/config
/*; do \
437 if
[ -f
"$$$$conffile" ]; then \
438 grep
"$$$${conffile##$(1)}" $(1)/CONTROL
/conffiles || \
439 echo
"$$$${conffile##$(1)}" >> $(1)/CONTROL
/conffiles
; \
444 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
446 define Package
/libgcc
/install
447 $(INSTALL_DIR
) $(1)/lib
448 $(CP
) $(PKG_BUILD_DIR
)/libgcc_s.so.
* $(1)/lib
/
451 define Package
/libssp
/install
452 $(INSTALL_DIR
) $(1)/lib
453 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libssp.so.
* $(1)/lib
/
456 define Package
/libstdcpp
/install
457 $(INSTALL_DIR
) $(1)/usr
/lib
458 $(CP
) $(TOOLCHAIN_DIR
)/lib
/libstdc
++.so.
* $(1)/usr
/lib
/
461 use_libutil
=$(if
$(CONFIG_USE_GLIBC
)$(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP
),libutil
)
462 use_libnsl
=$(if
$(CONFIG_USE_GLIBC
)$(CONFIG_EGLIBC_OPTION_EGLIBC_NIS
),libnsl
)
463 use_nsswitch
=$(if
$(CONFIG_USE_GLIBC
)$(CONFIG_EGLIBC_OPTION_EGLIBC_NSSWITCH
),libnss_dns libnss_files
)
465 define Package
/glibc
/install
466 $(CP
) .
/glibc-files
/* $(1)/
467 $(INSTALL_DIR
) $(1)/lib
469 $(TOOLCHAIN_DIR
)/lib
/ld*.so.
* \
470 $(TOOLCHAIN_DIR
)/lib
/ld-
$(LIBC_SO_VERSION
).so \
472 for file in libanl libc libcidn libcrypt libdl libm
$(use_libnsl
) $(use_nsswitch
) libresolv
$(use_libutil
); do \
474 $(TOOLCHAIN_DIR
)/lib
/$$$$file.so.
* \
475 $(TOOLCHAIN_DIR
)/lib
/$$$$file-$(LIBC_SO_VERSION
).so \
480 define Package
/eglibc
/install
481 $(call Package
/glibc
/install,$1)
484 define Package
/uClibc
/install
485 $(INSTALL_DIR
) $(1)/lib
487 $(TOOLCHAIN_DIR
)/lib
/ld*-uClibc.so.
* \
488 $(TOOLCHAIN_DIR
)/lib
/ld*-uClibc-
$(LIBC_SO_VERSION
).so \
491 $(TOOLCHAIN_DIR
)/lib
/libc.so.
* \
492 $(TOOLCHAIN_DIR
)/lib
/libuClibc-
$(LIBC_SO_VERSION
).so \
494 for file in libcrypt libdl libm libutil
; do \
496 $(TOOLCHAIN_DIR
)/lib
/$$$$file.so.
* \
497 $(TOOLCHAIN_DIR
)/lib
/$$$$file-$(LIBC_SO_VERSION
).so \
502 $(PKG_BUILD_DIR
)/libuClibc-
* \
503 $(PKG_BUILD_DIR
)/libm-
* \
504 $(PKG_BUILD_DIR
)/libcrypt-
* \
508 define Package
/libc
/install
509 $(call Package
/$(LIBC
)/install,$1)
512 define Package
/libc
/install_lib
513 $(CP
) $(filter-out %/libdl_pic.a
%/libpthread_pic.a
%/libresolv_pic.a
,$(wildcard $(TOOLCHAIN_DIR
)/lib
/lib
*.a
)) $(1)/lib
/
514 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libc_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libc_so.a
$(1)/lib
/libc_pic.a
)
515 $(if
$(LIBGCC_MAP
), \
516 $(CP
) $(LIBGCC_A
) $(1)/lib
/libgcc_s_pic.a
; \
517 $(CP
) $(LIBGCC_MAP
) $(1)/lib
/libgcc_s_pic.map \
521 define Package
/libpthread
/install
522 $(INSTALL_DIR
) $(1)/lib
524 $(TOOLCHAIN_DIR
)/lib
/libpthread.so.
* \
525 $(PKG_BUILD_DIR
)/libpthread-
$(LIBC_SO_VERSION
).so \
529 define Package
/libpthread
/install_lib
530 $(if
$(wildcard $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
),$(CP
) $(TOOLCHAIN_DIR
)/lib
/libpthread_so.a
$(1)/lib
/libpthread_pic.a
)
533 define Package
/librt
/install
534 $(INSTALL_DIR
) $(1)/lib
536 $(TOOLCHAIN_DIR
)/lib
/librt.so.
* \
537 $(TOOLCHAIN_DIR
)/lib
/librt-
$(LIBC_SO_VERSION
).so \
541 define Package
/ldd
/install
542 $(INSTALL_DIR
) $(1)/usr
/bin
/
543 $(CP
) $(TOOLCHAIN_DIR
)/bin
/ldd
$(1)/usr
/bin
/
546 define Package
/ldconfig
/install
547 $(INSTALL_DIR
) $(1)/sbin
/
548 $(CP
) $(TOOLCHAIN_DIR
)/sbin
/ldconfig
$(1)/sbin
/
553 define Package
/libgcc
/install
554 for file in
$(call qstrip
,$(CONFIG_LIBGCC_FILE_SPEC
)); do \
555 dir=`dirname $$$$file` ; \
556 $(INSTALL_DIR
) $(1)/$$$$dir ; \
557 $(CP
) $(call qstrip
,$(CONFIG_LIBGCC_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
561 define Package
/libssp
/install
562 for file in
$(call qstrip
,$(CONFIG_LIBSSP_FILE_SPEC
)); do \
563 dir=`dirname $$$$file` ; \
564 $(INSTALL_DIR
) $(1)/$$$$dir ; \
565 $(CP
) $(call qstrip
,$(CONFIG_LIBSSP_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
569 define Package
/libstdcpp
/install
570 for file in
$(call qstrip
,$(CONFIG_LIBSTDCPP_FILE_SPEC
)); do \
571 dir=`dirname $$$$file` ; \
572 $(INSTALL_DIR
) $(1)/$$$$dir ; \
573 $(CP
) $(call qstrip
,$(CONFIG_LIBSTDCPP_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
577 define Package
/libc
/install
578 for file in
$(call qstrip
,$(CONFIG_LIBC_FILE_SPEC
)); do \
579 dir=`dirname $$$$file` ; \
580 $(INSTALL_DIR
) $(1)/$$$$dir ; \
581 $(CP
) $(call qstrip
,$(CONFIG_LIBC_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
585 define Package
/libpthread
/install
586 for file in
$(call qstrip
,$(CONFIG_LIBPTHREAD_FILE_SPEC
)); do \
587 dir=`dirname $$$$file` ; \
588 $(INSTALL_DIR
) $(1)/$$$$dir ; \
589 $(CP
) $(call qstrip
,$(CONFIG_LIBPTHREAD_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
593 define Package
/librt
/install
594 for file in
$(call qstrip
,$(CONFIG_LIBRT_FILE_SPEC
)); do \
595 dir=`dirname $$$$file` ; \
596 $(INSTALL_DIR
) $(1)/$$$$dir ; \
597 $(CP
) $(call qstrip
,$(CONFIG_LIBRT_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
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/ ; \
609 define Package
/ldconfig
/install
610 for file in
$(call qstrip
,$(CONFIG_LDCONFIG_FILE_SPEC
)); do \
611 dir=`dirname $$$$file` ; \
612 $(INSTALL_DIR
) $(1)/$$$$dir ; \
613 $(CP
) $(call qstrip
,$(CONFIG_LDCONFIG_ROOT_DIR
))/$$$$file $(1)/$$$$dir/ ; \
620 -include $(PLATFORM_DIR
)/base-files.mk
623 $(eval
$(call BuildPackage
,base-files
))
624 $(eval
$(call BuildPackage
,libc
))
625 $(eval
$(call BuildPackage
,libgcc
))
626 $(eval
$(call BuildPackage
,libssp
))
627 $(eval
$(call BuildPackage
,libstdcpp
))
628 $(eval
$(call BuildPackage
,libpthread
))
629 $(eval
$(call BuildPackage
,librt
))
630 $(eval
$(call BuildPackage
,ldd
))
631 $(eval
$(call BuildPackage
,ldconfig
))