base-files: mark /etc/sysupgrade.conf as conffile
[openwrt/openwrt.git] / package / base-files / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=base-files
13 PKG_RELEASE:=59
14
15 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
16 PKG_BUILD_DEPENDS:=opkg/host
17
18 include $(INCLUDE_DIR)/package.mk
19
20 ifneq ($(DUMP),1)
21 TARGET:=-$(BOARD)
22 ifneq ($(wildcard $(PLATFORM_DIR)/base-files-$(PROFILE) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)),)
23 TARGET:=$(TARGET)-$(PROFILE)
24 endif
25 LIBGCC_VERSION:=$(GCC_VERSION)
26 ifneq ($(findstring $(ARCH) , mips64 x86_64 ),)
27 LIB_SUFFIX:=64
28 endif
29 else
30 LIBC_VERSION:=<LIBC_VERSION>
31 LIBGCC_VERSION:=<LIBGCC_VERSION>
32 endif
33
34 define Package/base-files
35 SECTION:=base
36 CATEGORY:=Base system
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)
45 endef
46
47 define Package/base-files/conffiles
48 /etc/banner
49 /etc/hosts
50 /etc/inittab
51 /etc/group
52 /etc/passwd
53 /etc/profile
54 /etc/shells
55 /etc/sysctl.conf
56 /etc/rc.local
57 /etc/sysupgrade.conf
58 /etc/config/
59 /etc/dropbear/
60 $(call $(TARGET)/conffiles)
61 endef
62
63 define Package/base-files/description
64 This package contains a base filesystem and system scripts for OpenWrt.
65 endef
66
67
68 define Package/gcc/Default
69 SECTION:=libs
70 CATEGORY:=Base system
71 URL:=http://gcc.gnu.org/
72 VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
73 endef
74
75
76 define Package/libgcc
77 $(call Package/gcc/Default)
78 TITLE:=GCC support library
79 DEPENDS+=@!(TARGET_avr32||TARGET_coldfire)
80 endef
81
82 define Package/libgcc/config
83 menu "Configuration"
84 depends EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
85
86 config LIBGCC_ROOT_DIR
87 string
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
92
93 config LIBGCC_FILE_SPEC
94 string
95 prompt "libgcc shared library files (use wildcards)"
96 depends EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
97 default "./lib/libgcc_s.so.*"
98
99 endmenu
100 endef
101
102
103 define Package/libssp
104 $(call Package/gcc/Default)
105 DEPENDS+=@SSP_SUPPORT
106 TITLE:=GCC support library
107 endef
108
109 define Package/libssp/config
110 menu "Configuration"
111 depends EXTERNAL_TOOLCHAIN && PACKAGE_libssp
112
113 config LIBSPP_ROOT_DIR
114 string
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
119
120 config LIBSSP_FILE_SPEC
121 string
122 prompt "libssp shared library files (use wildcards)"
123 depends EXTERNAL_TOOLCHAIN && PACKAGE_libssp
124 default "./lib/libssp.so.*"
125
126 endmenu
127 endef
128
129
130 define Package/libstdcpp
131 $(call Package/gcc/Default)
132 NAME:=libstdc++
133 TITLE:=GNU Standard C++ Library v3
134 DEPENDS+=@INSTALL_LIBSTDCPP
135 endef
136
137 define Package/libstdcpp/config
138 menu "Configuration"
139 depends EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
140
141 config LIBSTDCPP_ROOT_DIR
142 string
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
147
148 config LIBSTDCPP_FILE_SPEC
149 string
150 prompt "libstdc++ shared library files (use wildcards)"
151 depends EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
152 default "./lib/libstdc++.so.*"
153
154 endmenu
155 endef
156
157
158 define Package/libc/Default
159 SECTION:=libs
160 CATEGORY:=Base system
161 VERSION:=$(LIBC_VERSION)-$(PKG_RELEASE)
162 ifneq ($(TARGET_avr32)$(TARGET_coldfire),)
163 DEPENDS:=+libgcc
164 endif
165 URL:=$(LIBC_URL)
166 endef
167
168
169 define Package/libc
170 $(call Package/libc/Default)
171 TITLE:=C library
172 endef
173
174 define Package/libc/config
175 menu "Configuration"
176 depends EXTERNAL_TOOLCHAIN && PACKAGE_libc
177
178 config LIBC_ROOT_DIR
179 string
180 prompt "libc shared library base directory"
181 depends EXTERNAL_TOOLCHAIN && PACKAGE_libc
182 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
183 default "/" if NATIVE_TOOLCHAIN
184
185 config LIBC_FILE_SPEC
186 string
187 prompt "libc shared library files (use wildcards)"
188 depends EXTERNAL_TOOLCHAIN && PACKAGE_libc
189 default "./lib/ld{-*.so,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}"
190
191 endmenu
192 endef
193
194
195 define Package/libpthread
196 $(call Package/libc/Default)
197 TITLE:=POSIX thread library
198 DEPENDS:= +librt
199 endef
200
201 define Package/libpthread/config
202 menu "Configuration"
203 depends EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
204
205 config LIBPTHREAD_ROOT_DIR
206 string
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
211
212 config LIBPTHREAD_FILE_SPEC
213 string
214 prompt "libpthread shared library files (use wildcards)"
215 depends EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
216 default "./lib/libpthread{-*.so,.so.*}"
217
218 endmenu
219 endef
220
221
222 define Package/librt
223 $(call Package/libc/Default)
224 TITLE:=POSIX.1b RealTime extension library
225 endef
226
227 define Package/librt/config
228 menu "Configuration"
229 depends EXTERNAL_TOOLCHAIN && PACKAGE_librt
230
231 config LIBRT_ROOT_DIR
232 string
233 prompt "librt shared library base directory"
234 depends EXTERNAL_TOOLCHAIN && PACKAGE_librt
235 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
236 default "/" if NATIVE_TOOLCHAIN
237
238 config LIBRT_FILE_SPEC
239 string
240 prompt "librt shared library files (use wildcards)"
241 depends EXTERNAL_TOOLCHAIN && PACKAGE_librt
242 default "./lib/librt{-*.so,.so.*}"
243
244 endmenu
245 endef
246
247
248 define Package/ldd
249 $(call Package/libc/Default)
250 SECTION:=utils
251 CATEGORY:=Utilities
252 TITLE:=LDD trace utility
253 endef
254
255 define Package/ldd/config
256 menu "Configuration"
257 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldd
258
259 config LDD_ROOT_DIR
260 string
261 prompt "ldd trace utility base directory"
262 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldd
263 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
264 default "/" if NATIVE_TOOLCHAIN
265
266 config LDD_FILE_SPEC
267 string
268 prompt "ldd trace utility file"
269 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldd
270 default "./usr/bin/ldd"
271
272 endmenu
273 endef
274
275
276 define Package/ldconfig
277 $(call Package/libc/Default)
278 SECTION:=utils
279 CATEGORY:=Utilities
280 TITLE:=Shared library path configuration
281 endef
282
283 define Package/ldconfig/config
284 menu "Configuration"
285 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
286
287 config LDCONFIG_ROOT_DIR
288 string
289 prompt "ldconfig base directory"
290 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
291 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
292 default "/" if NATIVE_TOOLCHAIN
293
294 config LDCONFIG_FILE_SPEC
295 string
296 prompt "ldconfig file"
297 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
298 default "./sbin/ldconfig"
299
300 endmenu
301 endef
302
303
304 ifneq ($(CONFIG_PREINITOPT),)
305 define ImageConfigOptions
306 mkdir -p $(1)/lib/preinit
307 echo 'pi_suppress_stderr="$(CONFIG_TARGET_PREINIT_SUPPRESS_STDERR)"' >$(1)/lib/preinit/00_preinit.conf
308 echo 'fs_failsafe_wait_timeout=$(if $(CONFIG_TARGET_PREINIT_TIMEOUT),$(CONFIG_TARGET_PREINIT_TIMEOUT),2)' >>$(1)/lib/preinit/00_preinit.conf
309 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
310 echo 'pi_init_env=$(if $(CONFIG_TARGET_INIT_ENV),$(CONFIG_TARGET_INIT_ENV),"")' >>$(1)/lib/preinit/00_preinit.conf
311 echo 'pi_init_cmd=$(if $(CONFIG_TARGET_INIT_CMD),$(CONFIG_TARGET_INIT_CMD),"/sbin/init")' >>$(1)/lib/preinit/00_preinit.conf
312 echo 'pi_init_suppress_stderr="$(CONFIG_TARGET_INIT_SUPPRESS_STDERR)"' >>$(1)/lib/preinit/00_preinit.conf
313 echo 'pi_ifname=$(if $(CONFIG_TARGET_PREINIT_IFNAME),$(CONFIG_TARGET_PREINIT_IFNAME),"")' >>$(1)/lib/preinit/00_preinit.conf
314 echo 'pi_ip=$(if $(CONFIG_TARGET_PREINIT_IP),$(CONFIG_TARGET_PREINIT_IP),"192.168.1.1")' >>$(1)/lib/preinit/00_preinit.conf
315 echo 'pi_netmask=$(if $(CONFIG_TARGET_PREINIT_NETMASK),$(CONFIG_TARGET_PREINIT_NETMASK),"255.255.255.0")' >>$(1)/lib/preinit/00_preinit.conf
316 echo 'pi_broadcast=$(if $(CONFIG_TARGET_PREINIT_BROADCAST),$(CONFIG_TARGET_PREINIT_BROADCAST),"192.168.1.255")' >>$(1)/lib/preinit/00_preinit.conf
317 echo 'pi_preinit_net_messages="$(CONFIG_TARGET_PREINIT_SHOW_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf
318 echo 'pi_preinit_no_failsafe_netmsg="$(CONFIG_TARGET_SUPPRESS_FAILSAFE_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf
319 endef
320 endif
321
322 define Build/Prepare
323 mkdir -p $(PKG_BUILD_DIR)
324 endef
325
326 define Build/Compile/Default
327 endef
328
329 define Build/Compile
330 $(call Build/Compile/Default)
331 endef
332
333 define Package/base-files/install
334 $(CP) ./files/* $(1)/
335 if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \
336 $(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \
337 fi
338 if [ -d $(PLATFORM_DIR)/base-files/. ]; then \
339 $(CP) $(PLATFORM_DIR)/base-files/* $(1)/; \
340 fi
341 if [ -d $(PLATFORM_DIR)/base-files-$(PROFILE)/. ]; then \
342 $(CP) $(PLATFORM_DIR)/base-files-$(PROFILE)/* $(1)/; \
343 fi
344 if [ -d $(PLATFORM_DIR)/$(PROFILE)/base-files/. ]; then \
345 $(CP) $(PLATFORM_DIR)/$(PROFILE)/base-files/* $(1)/; \
346 fi
347 $(if $(filter-out $(PLATFORM_DIR),$(PLATFORM_SUBDIR)), \
348 if [ -d $(PLATFORM_SUBDIR)/base-files/. ]; then \
349 $(CP) $(PLATFORM_SUBDIR)/base-files/* $(1)/; \
350 fi; \
351 if [ -d $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/. ]; then \
352 $(CP) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/* $(1)/; \
353 fi; \
354 if [ -d $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/. ]; then \
355 $(CP) $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/* $(1)/; \
356 fi \
357 )
358 # Form valid /etc/shadow entries, by copying the user:pw pairs
359 # from /etc/passwd, and adding on pw change data
360 $(if $(CONFIG_BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS), \
361 cut -d ':' -f 1-2 $(1)/etc/passwd > $(1)/etc/shadow; \
362 $(SED) 's/$$$$/:13848:0:99999:7:::/' $(1)/etc/shadow \
363 )
364 $(SED) 's,$$$$R,$(REVISION),g' $(1)/etc/banner
365 mkdir -p $(1)/CONTROL
366 mkdir -p $(1)/dev
367 mkdir -p $(1)/etc/crontabs
368 mkdir -p $(1)/etc/rc.d
369 mkdir -p $(1)/overlay
370 mkdir -p $(1)/lib/firmware
371 $(if $(LIB_SUFFIX),-ln -s lib $(1)/lib$(LIB_SUFFIX))
372 mkdir -p $(1)/mnt
373 mkdir -p $(1)/proc
374 mkdir -p $(1)/tmp
375 mkdir -p $(1)/usr/lib
376 $(if $(LIB_SUFFIX),-ln -s lib $(1)/usr/lib$(LIB_SUFFIX))
377 mkdir -p $(1)/usr/bin
378 mkdir -p $(1)/sys
379 mkdir -p $(1)/www
380 mkdir -p $(1)/root
381 ln -sf /proc/mounts $(1)/etc/mtab
382 rm -f $(1)/var
383 ln -sf /tmp $(1)/var
384 mkdir -p $(1)/etc
385 ln -sf /tmp/resolv.conf /tmp/fstab /tmp/TZ $(1)/etc/
386 $(call ImageConfigOptions,$(1))
387 $(call Package/base-files/install-target,$(1))
388 for conffile in $(1)/etc/config/*; do \
389 if [ -f "$$$$conffile" ]; then \
390 grep "$$$${conffile##$(1)}" $(1)/CONTROL/conffiles || \
391 echo "$$$${conffile##$(1)}" >> $(1)/CONTROL/conffiles; \
392 fi \
393 done
394 endef
395
396 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
397
398 define Package/libgcc/install
399 $(INSTALL_DIR) $(1)/lib
400 $(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/
401 endef
402
403 define Package/libssp/install
404 $(INSTALL_DIR) $(1)/lib
405 $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/
406 endef
407
408 define Package/libstdcpp/install
409 $(INSTALL_DIR) $(1)/usr/lib
410 $(CP) $(TOOLCHAIN_DIR)/lib/libstdc++.so.* $(1)/usr/lib/
411 endef
412
413 use_libutil=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),libutil)
414 use_libnsl=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_NIS),libnsl)
415 use_nsswitch=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_NSSWITCH),libnss_dns libnss_files)
416
417 define Package/glibc/install
418 $(INSTALL_DIR) $(1)/lib
419 $(CP) \
420 $(TOOLCHAIN_DIR)/lib/ld*.so.* \
421 $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_SO_VERSION).so \
422 $(1)/lib/
423 for file in libanl libc libcidn libcrypt libdl libm $(use_libnsl) $(use_nsswitch) libresolv $(use_libutil); do \
424 $(CP) \
425 $(TOOLCHAIN_DIR)/lib/$$$$file.so.* \
426 $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so \
427 $(1)/lib/; \
428 done
429 endef
430
431 define Package/eglibc/install
432 $(call Package/glibc/install,$1)
433 endef
434
435 define Package/uClibc/install
436 $(INSTALL_DIR) $(1)/lib
437 $(CP) \
438 $(TOOLCHAIN_DIR)/lib/ld*-uClibc.so.* \
439 $(TOOLCHAIN_DIR)/lib/ld*-uClibc-$(LIBC_SO_VERSION).so \
440 $(1)/lib/
441 $(CP) \
442 $(TOOLCHAIN_DIR)/lib/libc.so.* \
443 $(TOOLCHAIN_DIR)/lib/libuClibc-$(LIBC_SO_VERSION).so \
444 $(1)/lib/
445 for file in libcrypt libdl libm libnsl libresolv libutil; do \
446 $(CP) \
447 $(TOOLCHAIN_DIR)/lib/$$$$file.so.* \
448 $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so \
449 $(1)/lib/; \
450 done
451 endef
452
453 define Package/libc/install
454 $(call Package/$(LIBC)/install,$1)
455 endef
456
457 define Package/libc/install_lib
458 $(CP) $(filter-out %/libdl_pic.a %/libpthread_pic.a %/libresolv_pic.a,$(wildcard $(TOOLCHAIN_DIR)/lib/lib*.a)) $(1)/lib/
459 $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libc_so.a $(1)/lib/libc_pic.a)
460 $(if $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map), \
461 $(CP) $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a $(1)/lib/libgcc_s_pic.a; \
462 $(CP) $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map $(1)/lib/libgcc_s_pic.map \
463 )
464 endef
465
466 define Package/libpthread/install
467 $(INSTALL_DIR) $(1)/lib
468 $(CP) \
469 $(TOOLCHAIN_DIR)/lib/libpthread.so.* \
470 $(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so \
471 $(1)/lib/
472 endef
473
474 define Package/libpthread/install_lib
475 $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libpthread_so.a $(1)/lib/libpthread_pic.a)
476 endef
477
478 define Package/librt/install
479 $(INSTALL_DIR) $(1)/lib
480 $(CP) \
481 $(TOOLCHAIN_DIR)/lib/librt.so.* \
482 $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \
483 $(1)/lib/
484 endef
485
486 define Package/ldd/install
487 $(INSTALL_DIR) $(1)/usr/bin/
488 $(CP) $(TOOLCHAIN_DIR)/bin/ldd $(1)/usr/bin/
489 endef
490
491 define Package/ldconfig/install
492 $(INSTALL_DIR) $(1)/sbin/
493 $(CP) $(TOOLCHAIN_DIR)/sbin/ldconfig $(1)/sbin/
494 endef
495
496 else
497
498 define Package/libgcc/install
499 for file in $(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)); do \
500 dir=`dirname $$$$file` ; \
501 $(INSTALL_DIR) $(1)/$$$$dir ; \
502 $(CP) $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
503 done
504 endef
505
506 define Package/libssp/install
507 for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
508 dir=`dirname $$$$file` ; \
509 $(INSTALL_DIR) $(1)/$$$$dir ; \
510 $(CP) $(call qstrip,$(CONFIG_LIBSSP_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
511 done
512 endef
513
514 define Package/libstdcpp/install
515 for file in $(call qstrip,$(CONFIG_LIBSTDCPP_FILE_SPEC)); do \
516 dir=`dirname $$$$file` ; \
517 $(INSTALL_DIR) $(1)/$$$$dir ; \
518 $(CP) $(call qstrip,$(CONFIG_LIBSTDCPP_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
519 done
520 endef
521
522 define Package/libc/install
523 for file in $(call qstrip,$(CONFIG_LIBC_FILE_SPEC)); do \
524 dir=`dirname $$$$file` ; \
525 $(INSTALL_DIR) $(1)/$$$$dir ; \
526 $(CP) $(call qstrip,$(CONFIG_LIBC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
527 done
528 endef
529
530 define Package/libpthread/install
531 for file in $(call qstrip,$(CONFIG_LIBPTHREAD_FILE_SPEC)); do \
532 dir=`dirname $$$$file` ; \
533 $(INSTALL_DIR) $(1)/$$$$dir ; \
534 $(CP) $(call qstrip,$(CONFIG_LIBPTHREAD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
535 done
536 endef
537
538 define Package/librt/install
539 for file in $(call qstrip,$(CONFIG_LIBRT_FILE_SPEC)); do \
540 dir=`dirname $$$$file` ; \
541 $(INSTALL_DIR) $(1)/$$$$dir ; \
542 $(CP) $(call qstrip,$(CONFIG_LIBRT_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
543 done
544 endef
545
546 define Package/ldd/install
547 for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \
548 dir=`dirname $$$$file` ; \
549 $(INSTALL_DIR) $(1)/$$$$dir ; \
550 $(CP) $(call qstrip,$(CONFIG_LDD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
551 done
552 endef
553
554 define Package/ldconfig/install
555 for file in $(call qstrip,$(CONFIG_LDCONFIG_FILE_SPEC)); do \
556 dir=`dirname $$$$file` ; \
557 $(INSTALL_DIR) $(1)/$$$$dir ; \
558 $(CP) $(call qstrip,$(CONFIG_LDCONFIG_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
559 done
560 endef
561
562 endif
563
564 ifneq ($(DUMP),1)
565 -include $(PLATFORM_DIR)/base-files.mk
566 endif
567
568 $(eval $(call BuildPackage,base-files))
569 $(eval $(call BuildPackage,libc))
570 $(eval $(call BuildPackage,libgcc))
571 $(eval $(call BuildPackage,libssp))
572 $(eval $(call BuildPackage,libstdcpp))
573 $(eval $(call BuildPackage,libpthread))
574 $(eval $(call BuildPackage,librt))
575 $(eval $(call BuildPackage,ldd))
576 $(eval $(call BuildPackage,ldconfig))