add preinit modularization work by Daniel Dickinson (cshore)
[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:=36
14
15 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
16
17 include $(INCLUDE_DIR)/package.mk
18
19 ifneq ($(DUMP),1)
20 TARGET:=-$(BOARD)
21 ifneq ($(wildcard $(PLATFORM_DIR)/base-files-$(PROFILE) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)),)
22 TARGET:=$(TARGET)-$(PROFILE)
23 endif
24 LIBGCC_VERSION:=$(GCC_VERSION)
25 ifeq ($(ARCH),x86_64)
26 LIB_SUFFIX:=64
27 endif
28 ifneq ($(findstring mips64,$(ARCH)),)
29 LIB_SUFFIX:=64
30 endif
31 else
32 LIBC_VERSION:=<LIBC_VERSION>
33 LIBGCC_VERSION:=<LIBGCC_VERSION>
34 endif
35
36 define Package/base-files
37 SECTION:=base
38 CATEGORY:=Base system
39 TITLE:=Base filesystem for OpenWrt
40 URL:=http://openwrt.org/
41 VERSION:=$(PKG_RELEASE)-$(REVISION)
42 $(call Config,network.lan.proto,string,static,LAN Protocol)
43 $(call Config,network.lan.ipaddr,ip,192.168.1.1,LAN IP Address)
44 $(call Config,network.lan.netmask,netmask,255.255.255.0,LAN Network Mask)
45 $(call Config,network.lan.gateway,ip,,LAN Gateway)
46 $(call Config,network.lan.dns,ip,,LAN DNS server)
47 endef
48
49 define Package/base-files/conffiles
50 /etc/banner
51 /etc/hosts
52 /etc/inittab
53 /etc/group
54 /etc/passwd
55 /etc/profile
56 /etc/shells
57 /etc/sysctl.conf
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||TARGET_coldfire)
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)$(TARGET_coldfire),)
161 DEPENDS:=+libgcc
162 endif
163 URL:=$(LIBC_URL)
164 endef
165
166
167 define Package/libc
168 $(call Package/libc/Default)
169 TITLE:=C library
170 endef
171
172 define Package/libc/config
173 menu "Configuration"
174 depends EXTERNAL_TOOLCHAIN && PACKAGE_libc
175
176 config LIBC_ROOT_DIR
177 string
178 prompt "libc shared library base directory"
179 depends EXTERNAL_TOOLCHAIN && PACKAGE_libc
180 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
181 default "/" if NATIVE_TOOLCHAIN
182
183 config LIBC_FILE_SPEC
184 string
185 prompt "libc shared library files (use wildcards)"
186 depends EXTERNAL_TOOLCHAIN && PACKAGE_libc
187 default "./lib/ld{-*.so,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}"
188
189 endmenu
190 endef
191
192
193 define Package/libpthread
194 $(call Package/libc/Default)
195 TITLE:=POSIX thread library
196 DEPENDS:= +librt
197 endef
198
199 define Package/libpthread/config
200 menu "Configuration"
201 depends EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
202
203 config LIBPTHREAD_ROOT_DIR
204 string
205 prompt "libpthread shared library base directory"
206 depends EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
207 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
208 default "/" if NATIVE_TOOLCHAIN
209
210 config LIBPTHREAD_FILE_SPEC
211 string
212 prompt "libpthread shared library files (use wildcards)"
213 depends EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
214 default "./lib/libpthread{-*.so,.so.*}"
215
216 endmenu
217 endef
218
219
220 define Package/librt
221 $(call Package/libc/Default)
222 TITLE:=POSIX.1b RealTime extension library
223 endef
224
225 define Package/librt/config
226 menu "Configuration"
227 depends EXTERNAL_TOOLCHAIN && PACKAGE_librt
228
229 config LIBRT_ROOT_DIR
230 string
231 prompt "librt shared library base directory"
232 depends EXTERNAL_TOOLCHAIN && PACKAGE_librt
233 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
234 default "/" if NATIVE_TOOLCHAIN
235
236 config LIBRT_FILE_SPEC
237 string
238 prompt "librt shared library files (use wildcards)"
239 depends EXTERNAL_TOOLCHAIN && PACKAGE_librt
240 default "./lib/librt{-*.so,.so.*}"
241
242 endmenu
243 endef
244
245
246 define Package/ldd
247 $(call Package/libc/Default)
248 SECTION:=utils
249 CATEGORY:=Utilities
250 TITLE:=LDD trace utility
251 endef
252
253 define Package/ldd/config
254 menu "Configuration"
255 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldd
256
257 config LDD_ROOT_DIR
258 string
259 prompt "ldd trace utility base directory"
260 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldd
261 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
262 default "/" if NATIVE_TOOLCHAIN
263
264 config LDD_FILE_SPEC
265 string
266 prompt "ldd trace utility file"
267 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldd
268 default "./usr/bin/ldd"
269
270 endmenu
271 endef
272
273
274 define Package/ldconfig
275 $(call Package/libc/Default)
276 SECTION:=utils
277 CATEGORY:=Utilities
278 TITLE:=Shared library path configuration
279 endef
280
281 define Package/ldconfig/config
282 menu "Configuration"
283 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
284
285 config LDCONFIG_ROOT_DIR
286 string
287 prompt "ldconfig base directory"
288 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
289 default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
290 default "/" if NATIVE_TOOLCHAIN
291
292 config LDCONFIG_FILE_SPEC
293 string
294 prompt "ldconfig file"
295 depends EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
296 default "./sbin/ldconfig"
297
298 endmenu
299 endef
300
301
302 define ImageConfigOptions
303 mkdir -p $(1)/lib/preinit
304 echo 'pi_suppress_stderr="$(CONFIG_TARGET_PREINIT_SUPPRESS_STDERR)"' >$(1)/lib/preinit/00_preinit.conf
305 echo 'fs_failsafe_wait_timeout=$(if $(CONFIG_TARGET_PREINIT_TIMEOUT),$(CONFIG_TARGET_PREINIT_TIMEOUT),2)' >>$(1)/lib/preinit/00_preinit.conf
306 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
307 echo 'pi_init_env=$(if $(CONFIG_TARGET_INIT_ENV),$(CONFIG_TARGET_INIT_ENV),"")' >>$(1)/lib/preinit/00_preinit.conf
308 echo 'pi_init_cmd=$(if $(CONFIG_TARGET_INIT_CMD),$(CONFIG_TARGET_INIT_CMD),"/sbin/init")' >>$(1)/lib/preinit/00_preinit.conf
309 echo 'pi_init_suppress_stderr="$(CONFIG_TARGET_INIT_SUPPRESS_STDERR)"' >>$(1)/lib/preinit/00_preinit.conf
310 echo 'pi_ifname=$(if $(CONFIG_TARGET_PREINIT_IFNAME),$(CONFIG_TARGET_PREINIT_IFNAME),"")' >>$(1)/lib/preinit/00_preinit.conf
311 echo 'pi_ip=$(if $(CONFIG_TARGET_PREINIT_IP),$(CONFIG_TARGET_PREINIT_IP),"192.168.1.1")' >>$(1)/lib/preinit/00_preinit.conf
312 echo 'pi_netmask=$(if $(CONFIG_TARGET_PREINIT_NETMASK),$(CONFIG_TARGET_PREINIT_NETMASK),"255.255.255.0")' >>$(1)/lib/preinit/00_preinit.conf
313 echo 'pi_broadcast=$(if $(CONFIG_TARGET_PREINIT_BROADCAST),$(CONFIG_TARGET_PREINIT_BROADCAST),"")' >>$(1)/lib/preinit/00_preinit.conf
314 echo 'pi_preinit_net_messages="$(CONFIG_TARGET_PREINIT_SHOW_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf
315 echo 'pi_preinit_no_failsafe_netmsg="$(CONFIG_TARGET_SUPPRESS_FAILSAFE_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf
316 endef
317
318 define Build/Prepare
319 mkdir -p $(PKG_BUILD_DIR)
320 endef
321
322 define Build/Compile/Default
323 endef
324
325 define Build/Compile
326 $(call Build/Compile/Default)
327 endef
328
329 define Package/base-files/install
330 $(CP) ./files/* $(1)/
331 if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \
332 $(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \
333 fi
334 if [ -d $(PLATFORM_DIR)/base-files/. ]; then \
335 $(CP) $(PLATFORM_DIR)/base-files/* $(1)/; \
336 fi
337 if [ -d $(PLATFORM_DIR)/base-files-$(PROFILE)/. ]; then \
338 $(CP) $(PLATFORM_DIR)/base-files-$(PROFILE)/* $(1)/; \
339 fi
340 if [ -d $(PLATFORM_DIR)/$(PROFILE)/base-files/. ]; then \
341 $(CP) $(PLATFORM_DIR)/$(PROFILE)/base-files/* $(1)/; \
342 fi
343 $(if $(filter-out $(PLATFORM_DIR),$(PLATFORM_SUBDIR)), \
344 if [ -d $(PLATFORM_SUBDIR)/base-files/. ]; then \
345 $(CP) $(PLATFORM_SUBDIR)/base-files/* $(1)/; \
346 fi; \
347 if [ -d $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/. ]; then \
348 $(CP) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/* $(1)/; \
349 fi; \
350 if [ -d $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/. ]; then \
351 $(CP) $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/* $(1)/; \
352 fi \
353 )
354 # Form valid /etc/shadow entries, by copying the user:pw pairs
355 # from /etc/passwd, and adding on pw change data
356 $(if $(CONFIG_BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS), \
357 cut -d ':' -f 1-2 $(1)/etc/passwd > $(1)/etc/shadow; \
358 $(SED) 's/$$$$/:13848:0:99999:7:::/' $(1)/etc/shadow \
359 )
360 $(SED) 's,$$$$R,$(REVISION),g' $(1)/etc/banner
361 mkdir -p $(1)/CONTROL
362 mkdir -p $(1)/dev
363 mkdir -p $(1)/etc/crontabs
364 mkdir -p $(1)/etc/rc.d
365 mkdir -p $(1)/jffs
366 mkdir -p $(1)/lib/firmware
367 $(if $(LIB_SUFFIX),-ln -s lib $(1)/lib$(LIB_SUFFIX))
368 mkdir -p $(1)/mnt
369 mkdir -p $(1)/proc
370 mkdir -p $(1)/tmp
371 mkdir -p $(1)/usr/lib
372 $(if $(LIB_SUFFIX),-ln -s lib $(1)/usr/lib$(LIB_SUFFIX))
373 mkdir -p $(1)/usr/bin
374 mkdir -p $(1)/sys
375 mkdir -p $(1)/www
376 mkdir -p $(1)/root
377 ln -sf /proc/mounts $(1)/etc/mtab
378 rm -f $(1)/var
379 ln -sf /tmp $(1)/var
380 mkdir -p $(1)/etc
381 ln -sf /tmp/resolv.conf /tmp/fstab /tmp/TZ $(1)/etc/
382 $(call ImageConfigOptions,$(1))
383 $(call Package/base-files/install-target,$(1))
384 for conffile in $(1)/etc/config/*; do \
385 if [ -f "$$$$conffile" ]; then \
386 grep "$$$${conffile##$(1)}" $(1)/CONTROL/conffiles || \
387 echo "$$$${conffile##$(1)}" >> $(1)/CONTROL/conffiles; \
388 fi \
389 done
390 endef
391
392 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
393
394 define Package/libgcc/install
395 $(INSTALL_DIR) $(1)/lib
396 $(CP) $(TOOLCHAIN_DIR)/lib$(LIB_SUFFIX)/libgcc_s.so.* $(1)/lib/
397 endef
398
399 define Package/libssp/install
400 $(INSTALL_DIR) $(1)/lib
401 $(CP) $(TOOLCHAIN_DIR)/lib$(LIB_SUFFIX)/libssp.so.* $(1)/lib/
402 endef
403
404 define Package/libstdcpp/install
405 $(INSTALL_DIR) $(1)/usr/lib
406 $(CP) $(TOOLCHAIN_DIR)/usr/lib$(LIB_SUFFIX)/libstdc++.so.* $(1)/usr/lib/
407 endef
408
409 use_libutil=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),libutil)
410 use_libnsl=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_NIS),libnsl)
411 use_nsswitch=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_NSSWITCH),libnss_dns libnss_files)
412
413 define Package/glibc/install
414 $(INSTALL_DIR) $(1)/lib
415 $(CP) $(TOOLCHAIN_DIR)/lib/ld*.so.* $(1)/lib/
416 $(CP) $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_SO_VERSION).so $(1)/lib/
417 for file in libanl libc libcidn libcrypt libdl libm $(use_libnsl) $(use_nsswitch) libresolv $(use_libutil); do \
418 $(CP) $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(1)/lib/; \
419 $(CP) $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so $(1)/lib/; \
420 done
421 endef
422
423 define Package/eglibc/install
424 $(call Package/glibc/install,$1)
425 endef
426
427 define Package/uClibc/install
428 $(INSTALL_DIR) $(1)/lib
429 for file in ld$(LIB_SUFFIX)-uClibc libc libcrypt libdl libm libnsl libresolv libuClibc libutil; do \
430 $(CP) $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(1)/lib/; \
431 $(CP) $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so $(1)/lib/; \
432 done
433 endef
434
435 define Package/libc/install
436 $(call Package/$(LIBC)/install,$1)
437 endef
438
439 define Package/libc/install_lib
440 $(CP) $(filter-out %/libdl_pic.a %/libpthread_pic.a %/libresolv_pic.a,$(wildcard $(TOOLCHAIN_DIR)/usr/lib/lib*.a)) $(1)/lib/
441 $(if $(wildcard $(TOOLCHAIN_DIR)/usr/lib/libc_so.a),$(CP) $(TOOLCHAIN_DIR)/usr/lib/libc_so.a $(1)/lib/libc_pic.a)
442 $(if $(wildcard $(TOOLCHAIN_DIR)/usr/lib/gcc/*/*/libgcc.map), \
443 $(CP) $(TOOLCHAIN_DIR)/usr/lib/gcc/*/*/libgcc_pic.a $(1)/lib/libgcc_s_pic.a; \
444 $(CP) $(TOOLCHAIN_DIR)/usr/lib/gcc/*/*/libgcc.map $(1)/lib/libgcc_s_pic.map \
445 )
446 endef
447
448 define Package/libpthread/install
449 $(INSTALL_DIR) $(1)/lib
450 $(CP) $(TOOLCHAIN_DIR)/lib/libpthread.so.* $(1)/lib/
451 $(CP) $(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so $(1)/lib/
452 endef
453
454 define Package/libpthread/install_lib
455 $(if $(wildcard $(TOOLCHAIN_DIR)/usr/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/usr/lib/libpthread_so.a $(1)/lib/libpthread_pic.a)
456 endef
457
458 define Package/librt/install
459 $(INSTALL_DIR) $(1)/lib
460 $(CP) $(TOOLCHAIN_DIR)/lib/librt.so.* $(1)/lib/
461 $(CP) $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so $(1)/lib/
462 endef
463
464 define Package/ldd/install
465 $(INSTALL_DIR) $(1)/usr/bin/
466 $(CP) $(TOOLCHAIN_DIR)/usr/bin/ldd $(1)/usr/bin/
467 endef
468
469 define Package/ldconfig/install
470 $(INSTALL_DIR) $(1)/sbin/
471 $(CP) $(TOOLCHAIN_DIR)/sbin/ldconfig $(1)/sbin/
472 endef
473
474 else
475
476 define Package/libgcc/install
477 for file in $(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)); do \
478 dir=`dirname $$$$file` ; \
479 $(INSTALL_DIR) $(1)/$$$$dir ; \
480 $(CP) $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
481 done
482 endef
483
484 define Package/libssp/install
485 for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
486 dir=`dirname $$$$file` ; \
487 $(INSTALL_DIR) $(1)/$$$$dir ; \
488 $(CP) $(call qstrip,$(CONFIG_LIBSSP_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
489 done
490 endef
491
492 define Package/libstdcpp/install
493 for file in $(call qstrip,$(CONFIG_LIBSTDCPP_FILE_SPEC)); do \
494 dir=`dirname $$$$file` ; \
495 $(INSTALL_DIR) $(1)/$$$$dir ; \
496 $(CP) $(call qstrip,$(CONFIG_LIBSTDCPP_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
497 done
498 endef
499
500 define Package/libc/install
501 for file in $(call qstrip,$(CONFIG_LIBC_FILE_SPEC)); do \
502 dir=`dirname $$$$file` ; \
503 $(INSTALL_DIR) $(1)/$$$$dir ; \
504 $(CP) $(call qstrip,$(CONFIG_LIBC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
505 done
506 endef
507
508 define Package/libpthread/install
509 for file in $(call qstrip,$(CONFIG_LIBPTHREAD_FILE_SPEC)); do \
510 dir=`dirname $$$$file` ; \
511 $(INSTALL_DIR) $(1)/$$$$dir ; \
512 $(CP) $(call qstrip,$(CONFIG_LIBPTHREAD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
513 done
514 endef
515
516 define Package/librt/install
517 for file in $(call qstrip,$(CONFIG_LIBRT_FILE_SPEC)); do \
518 dir=`dirname $$$$file` ; \
519 $(INSTALL_DIR) $(1)/$$$$dir ; \
520 $(CP) $(call qstrip,$(CONFIG_LIBRT_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
521 done
522 endef
523
524 define Package/ldd/install
525 for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \
526 dir=`dirname $$$$file` ; \
527 $(INSTALL_DIR) $(1)/$$$$dir ; \
528 $(CP) $(call qstrip,$(CONFIG_LDD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
529 done
530 endef
531
532 define Package/ldconfig/install
533 for file in $(call qstrip,$(CONFIG_LDCONFIG_FILE_SPEC)); do \
534 dir=`dirname $$$$file` ; \
535 $(INSTALL_DIR) $(1)/$$$$dir ; \
536 $(CP) $(call qstrip,$(CONFIG_LDCONFIG_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
537 done
538 endef
539
540 endif
541
542 ifneq ($(DUMP),1)
543 -include $(PLATFORM_DIR)/base-files.mk
544 endif
545
546 $(eval $(call BuildPackage,base-files))
547 $(eval $(call BuildPackage,libc))
548 $(eval $(call BuildPackage,libgcc))
549 $(eval $(call BuildPackage,libssp))
550 $(eval $(call BuildPackage,libstdcpp))
551 $(eval $(call BuildPackage,libpthread))
552 $(eval $(call BuildPackage,librt))
553 $(eval $(call BuildPackage,ldd))
554 $(eval $(call BuildPackage,ldconfig))
This page took 0.068822 seconds and 5 git commands to generate.