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