2
0

Makefile 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=toolchain
  9. PKG_RELEASE:=1
  10. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  11. PKG_LICENSE:=GPL-3.0-with-GCC-exception
  12. PKG_FLAGS:=hold essential nonshared
  13. include $(INCLUDE_DIR)/package.mk
  14. ifneq ($(DUMP),1)
  15. LIBGCC_VERSION:=$(GCC_VERSION)
  16. else
  17. LIBC_VERSION:=<LIBC_VERSION>
  18. LIBGCC_VERSION:=<LIBGCC_VERSION>
  19. endif
  20. define Package/gcc/Default
  21. SECTION:=libs
  22. CATEGORY:=Base system
  23. URL:=http://gcc.gnu.org/
  24. VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
  25. endef
  26. define Package/libgcc
  27. $(call Package/gcc/Default)
  28. TITLE:=GCC support library
  29. endef
  30. define Package/libgcc/config
  31. menu "Configuration"
  32. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
  33. config LIBGCC_ROOT_DIR
  34. string
  35. prompt "libgcc shared library base directory"
  36. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
  37. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  38. default "/" if NATIVE_TOOLCHAIN
  39. config LIBGCC_FILE_SPEC
  40. string
  41. prompt "libgcc shared library files (use wildcards)"
  42. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgcc
  43. default "./lib/libgcc_s.so.*"
  44. endmenu
  45. endef
  46. define Package/libatomic
  47. $(call Package/gcc/Default)
  48. DEPENDS:=+libgcc
  49. TITLE:=Atomic support library
  50. endef
  51. define Package/libatomic/config
  52. menu "Configuration"
  53. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
  54. config LIBATOMIC_ROOT_DIR
  55. string
  56. prompt "libatomic shared library base directory"
  57. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
  58. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  59. default "/" if NATIVE_TOOLCHAIN
  60. config LIBATOMIC_FILE_SPEC
  61. string
  62. prompt "libatomic shared library files (use wildcards)"
  63. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libatomic
  64. default "./lib/libatomic.so.*"
  65. endmenu
  66. endef
  67. define Package/libssp
  68. $(call Package/gcc/Default)
  69. DEPENDS+=@SSP_SUPPORT
  70. TITLE:=GCC support library
  71. endef
  72. define Package/libssp/config
  73. menu "Configuration"
  74. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
  75. config LIBSSP_ROOT_DIR
  76. string
  77. prompt "libssp shared library base directory"
  78. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
  79. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  80. default "/" if NATIVE_TOOLCHAIN
  81. config LIBSSP_FILE_SPEC
  82. string
  83. prompt "libssp shared library files (use wildcards)"
  84. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libssp
  85. default "./lib/libssp.so.*"
  86. endmenu
  87. endef
  88. define Package/libstdcpp
  89. $(call Package/gcc/Default)
  90. NAME:=libstdc++
  91. TITLE:=GNU Standard C++ Library v3
  92. endef
  93. define Package/libstdcpp/config
  94. menu "Configuration"
  95. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
  96. config LIBSTDCPP_ROOT_DIR
  97. string
  98. prompt "libstdcpp shared library base directory"
  99. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
  100. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  101. default "/" if NATIVE_TOOLCHAIN
  102. config LIBSTDCPP_FILE_SPEC
  103. string
  104. prompt "libstdc++ shared library files (use wildcards)"
  105. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libstdcpp
  106. default "./lib/libstdc++.so.*"
  107. endmenu
  108. endef
  109. define Package/libc/Default
  110. SECTION:=libs
  111. CATEGORY:=Base system
  112. VERSION:=$(LIBC_VERSION)-$(PKG_RELEASE)
  113. DEPENDS:=+libgcc
  114. URL:=$(LIBC_URL)
  115. endef
  116. define Package/libc
  117. $(call Package/libc/Default)
  118. TITLE:=C library
  119. endef
  120. define Package/libc/config
  121. menu "Configuration"
  122. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc
  123. config LIBC_ROOT_DIR
  124. string
  125. prompt "libc shared library base directory"
  126. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc
  127. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  128. default "/" if NATIVE_TOOLCHAIN
  129. config LIBC_FILE_SPEC
  130. string
  131. prompt "libc shared library files (use wildcards)"
  132. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libc
  133. default "./lib/ld{-*.so,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}"
  134. endmenu
  135. endef
  136. define Package/libpthread
  137. $(call Package/libc/Default)
  138. TITLE:=POSIX thread library
  139. endef
  140. define Package/libpthread/config
  141. menu "Configuration"
  142. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
  143. config LIBPTHREAD_ROOT_DIR
  144. string
  145. prompt "libpthread shared library base directory"
  146. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
  147. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  148. default "/" if NATIVE_TOOLCHAIN
  149. config LIBPTHREAD_FILE_SPEC
  150. string
  151. prompt "libpthread shared library files (use wildcards)"
  152. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libpthread
  153. default "./lib/libpthread{-*.so,.so.*}"
  154. endmenu
  155. endef
  156. define Package/libthread-db
  157. $(call Package/libc/Default)
  158. DEPENDS:=@!USE_MUSL
  159. TITLE:=POSIX thread library debugging support
  160. endef
  161. define Package/librt
  162. $(call Package/libc/Default)
  163. TITLE:=POSIX.1b RealTime extension library
  164. DEPENDS:=+libpthread
  165. endef
  166. define Package/librt/config
  167. menu "Configuration"
  168. depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
  169. config LIBRT_ROOT_DIR
  170. string
  171. prompt "librt shared library base directory"
  172. depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
  173. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  174. default "/" if NATIVE_TOOLCHAIN
  175. config LIBRT_FILE_SPEC
  176. string
  177. prompt "librt shared library files (use wildcards)"
  178. depends on EXTERNAL_TOOLCHAIN && PACKAGE_librt
  179. default "./lib/librt{-*.so,.so.*}"
  180. endmenu
  181. endef
  182. define Package/libgfortran
  183. $(call Package/gcc/Default)
  184. TITLE:=GFortran support library
  185. DEPENDS+=@INSTALL_GFORTRAN
  186. endef
  187. define Package/libgfortran/config
  188. menu "Configuration"
  189. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
  190. config LIBGFORTRAN_ROOT_DIR
  191. string
  192. prompt "libgfortran shared library base directory"
  193. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
  194. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  195. default "/" if NATIVE_TOOLCHAIN
  196. config LIBGFORTRAN_FILE_SPEC
  197. string
  198. prompt "libgfortran shared library files (use wildcards)"
  199. depends on EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
  200. default "./usr/lib/libgfortran.so.*"
  201. endmenu
  202. endef
  203. define Package/ldd
  204. $(call Package/libc/Default)
  205. DEPENDS:=@!USE_MUSL
  206. SECTION:=utils
  207. CATEGORY:=Utilities
  208. TITLE:=LDD trace utility
  209. endef
  210. define Package/ldd/config
  211. menu "Configuration"
  212. depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
  213. config LDD_ROOT_DIR
  214. string
  215. prompt "ldd trace utility base directory"
  216. depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
  217. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  218. default "/" if NATIVE_TOOLCHAIN
  219. config LDD_FILE_SPEC
  220. string
  221. prompt "ldd trace utility file"
  222. depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldd
  223. default "./usr/bin/ldd"
  224. endmenu
  225. endef
  226. define Package/ldconfig
  227. $(call Package/libc/Default)
  228. DEPENDS:=@!USE_MUSL
  229. SECTION:=utils
  230. CATEGORY:=Utilities
  231. TITLE:=Shared library path configuration
  232. endef
  233. define Package/ldconfig/config
  234. menu "Configuration"
  235. depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
  236. config LDCONFIG_ROOT_DIR
  237. string
  238. prompt "ldconfig base directory"
  239. depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
  240. default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
  241. default "/" if NATIVE_TOOLCHAIN
  242. config LDCONFIG_FILE_SPEC
  243. string
  244. prompt "ldconfig file"
  245. depends on EXTERNAL_TOOLCHAIN && PACKAGE_ldconfig
  246. default "./sbin/ldconfig"
  247. endmenu
  248. endef
  249. define Build/Prepare
  250. mkdir -p $(PKG_BUILD_DIR)
  251. endef
  252. LIBGCC_A=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a))
  253. LIBGCC_MAP=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map))
  254. LIBGCC_SO=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*))
  255. define Build/Compile/uClibc
  256. $(CP) \
  257. $(TOOLCHAIN_DIR)/lib/libuClibc-*.so \
  258. $(TOOLCHAIN_DIR)/lib/libcrypt-*.so \
  259. $(TOOLCHAIN_DIR)/lib/libm-*.so \
  260. $(TOOLCHAIN_DIR)/lib/libpthread-*.so \
  261. $(PKG_BUILD_DIR)/
  262. endef
  263. ifneq ($(LIBGCC_SO),)
  264. define Build/Compile/libgcc
  265. $(CP) $(LIBGCC_SO) $(PKG_BUILD_DIR)/
  266. endef
  267. endif
  268. define Build/Compile/Default
  269. $(call Build/Compile/libgcc)
  270. $(call Build/Compile/$(LIBC))
  271. endef
  272. Build/Compile = $(Build/Compile/Default)
  273. ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
  274. define Package/libgcc/install
  275. $(INSTALL_DIR) $(1)/lib
  276. $(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/
  277. endef
  278. define Package/libatomic/install
  279. $(INSTALL_DIR) $(1)/lib
  280. $(CP) $(TOOLCHAIN_DIR)/lib/libatomic.so.* $(1)/lib/
  281. endef
  282. define Package/libgfortran/install
  283. $(INSTALL_DIR) $(1)/usr/lib
  284. $(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/
  285. endef
  286. define Package/libssp/install
  287. $(INSTALL_DIR) $(1)/lib
  288. $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/
  289. endef
  290. define Package/libstdcpp/install
  291. $(INSTALL_DIR) $(1)/usr/lib
  292. $(CP) $(TOOLCHAIN_DIR)/lib/libstdc++.so.* $(1)/usr/lib/
  293. endef
  294. define Package/glibc/install
  295. $(CP) ./glibc-files/* $(1)/
  296. rm -f $(1)/etc/localtime
  297. $(LN) /tmp/localtime $(1)/etc/localtime
  298. $(INSTALL_DIR) $(1)/lib
  299. $(CP) \
  300. $(TOOLCHAIN_DIR)/lib/ld*.so.* \
  301. $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_SO_VERSION).so \
  302. $(1)/lib/
  303. for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil; do \
  304. for file in $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so; do \
  305. if [ -e "$$$$file" ]; then \
  306. $(CP) $$$$file $(1)/lib/; \
  307. fi; \
  308. done; \
  309. done
  310. endef
  311. define Package/uClibc/install
  312. $(INSTALL_DIR) $(1)/lib
  313. $(CP) \
  314. $(TOOLCHAIN_DIR)/lib/ld*-uClibc.so.* \
  315. $(TOOLCHAIN_DIR)/lib/ld*-uClibc-$(LIBC_SO_VERSION).so \
  316. $(1)/lib/
  317. $(CP) \
  318. $(TOOLCHAIN_DIR)/lib/libc.so.* \
  319. $(TOOLCHAIN_DIR)/lib/libuClibc-$(LIBC_SO_VERSION).so \
  320. $(1)/lib/
  321. for file in libcrypt libdl libm libutil; do \
  322. $(CP) \
  323. $(TOOLCHAIN_DIR)/lib/$$$$file.so.* \
  324. $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_SO_VERSION).so \
  325. $(1)/lib/; \
  326. done
  327. $(CP) \
  328. $(PKG_BUILD_DIR)/libuClibc-* \
  329. $(PKG_BUILD_DIR)/libm-* \
  330. $(PKG_BUILD_DIR)/libcrypt-* \
  331. $(1)/lib/
  332. endef
  333. LD_MUSL_NAME = $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR)/lib/libc.so*)))
  334. define Package/musl/install
  335. $(INSTALL_DIR) $(1)/lib $(1)/usr/bin
  336. $(CP) \
  337. $(TOOLCHAIN_DIR)/lib/ld-musl-*.so* \
  338. $(1)/lib/
  339. $(CP) \
  340. $(TOOLCHAIN_DIR)/lib/libc.so* \
  341. $(1)/lib/
  342. $(LN) ../../lib/$(LD_MUSL_NAME) $(1)/usr/bin/ldd
  343. endef
  344. define Package/libc/install
  345. $(call Package/$(LIBC)/install,$1)
  346. endef
  347. define Package/libc/install_lib
  348. $(CP) $(filter-out %/libdl_pic.a %/libpthread_pic.a %/libresolv_pic.a,$(wildcard $(TOOLCHAIN_DIR)/lib/lib*.a)) $(1)/lib/
  349. $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libc_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libc_so.a $(1)/lib/libc_pic.a)
  350. $(if $(LIBGCC_MAP), \
  351. $(CP) $(LIBGCC_A) $(1)/lib/libgcc_s_pic.a; \
  352. $(CP) $(LIBGCC_MAP) $(1)/lib/libgcc_s_pic.map \
  353. )
  354. endef
  355. define Package/libpthread/install
  356. $(INSTALL_DIR) $(1)/lib
  357. ifneq ($(CONFIG_USE_MUSL),y)
  358. $(CP) \
  359. $(TOOLCHAIN_DIR)/lib/libpthread.so.* \
  360. $(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so \
  361. $(1)/lib/
  362. endif
  363. endef
  364. define Package/libthread-db/install
  365. $(INSTALL_DIR) $(1)/lib
  366. $(CP) \
  367. $(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib
  368. ifeq ($(CONFIG_USE_UCLIBC),y)
  369. $(CP) \
  370. $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \
  371. $(1)/lib/
  372. endif
  373. endef
  374. define Package/libpthread/install_lib
  375. $(if $(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libpthread_so.a $(1)/lib/libpthread_pic.a)
  376. endef
  377. define Package/librt/install
  378. $(INSTALL_DIR) $(1)/lib
  379. ifneq ($(CONFIG_USE_MUSL),y)
  380. $(CP) \
  381. $(TOOLCHAIN_DIR)/lib/librt.so.* \
  382. $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \
  383. $(1)/lib/
  384. endif
  385. endef
  386. define Package/ldd/install
  387. $(INSTALL_DIR) $(1)/usr/bin/
  388. $(CP) $(TOOLCHAIN_DIR)/bin/ldd $(1)/usr/bin/
  389. endef
  390. define Package/ldconfig/install
  391. $(INSTALL_DIR) $(1)/sbin/
  392. $(CP) $(TOOLCHAIN_DIR)/sbin/ldconfig $(1)/sbin/
  393. endef
  394. else
  395. define Package/libgcc/install
  396. for file in $(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)); do \
  397. $(INSTALL_DIR) $(1)/lib ; \
  398. $(CP) $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  399. done ; \
  400. exit 0
  401. endef
  402. define Package/libgfortran/install
  403. for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \
  404. $(INSTALL_DIR) $(1)/lib ; \
  405. $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  406. done
  407. endef
  408. define Package/libssp/install
  409. for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
  410. $(INSTALL_DIR) $(1)/lib ; \
  411. $(CP) $(call qstrip,$(CONFIG_LIBSSP_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  412. done ; \
  413. exit 0
  414. endef
  415. define Package/libstdcpp/install
  416. for file in $(call qstrip,$(CONFIG_LIBSTDCPP_FILE_SPEC)); do \
  417. $(INSTALL_DIR) $(1)/lib ; \
  418. $(CP) $(call qstrip,$(CONFIG_LIBSTDCPP_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  419. done ; \
  420. exit 0
  421. endef
  422. define Package/libc/install
  423. for file in $(call qstrip,$(CONFIG_LIBC_FILE_SPEC)); do \
  424. $(INSTALL_DIR) $(1)/lib ; \
  425. $(CP) $(call qstrip,$(CONFIG_LIBC_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  426. done ; \
  427. exit 0
  428. endef
  429. define Package/libpthread/install
  430. for file in $(call qstrip,$(CONFIG_LIBPTHREAD_FILE_SPEC)); do \
  431. $(INSTALL_DIR) $(1)/lib ; \
  432. $(CP) $(call qstrip,$(CONFIG_LIBPTHREAD_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  433. done ; \
  434. exit 0
  435. endef
  436. define Package/librt/install
  437. for file in $(call qstrip,$(CONFIG_LIBRT_FILE_SPEC)); do \
  438. $(INSTALL_DIR) $(1)/lib ; \
  439. $(CP) $(call qstrip,$(CONFIG_LIBRT_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  440. done ; \
  441. exit 0
  442. endef
  443. define Package/libatomic/install
  444. for file in $(call qstrip,$(CONFIG_LIBATOMIC_FILE_SPEC)); do \
  445. $(INSTALL_DIR) $(1)/lib ; \
  446. $(CP) $(call qstrip,$(CONFIG_LIBATOMIC_ROOT_DIR))/$$$$file $(1)/lib/ ; \
  447. done ; \
  448. exit 0
  449. endef
  450. define Package/ldd/install
  451. for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \
  452. dir=`dirname $$$$file` ; \
  453. $(INSTALL_DIR) $(1)/$$$$dir ; \
  454. $(CP) $(call qstrip,$(CONFIG_LDD_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
  455. done ; \
  456. exit 0
  457. endef
  458. define Package/ldconfig/install
  459. for file in $(call qstrip,$(CONFIG_LDCONFIG_FILE_SPEC)); do \
  460. dir=`dirname $$$$file` ; \
  461. $(INSTALL_DIR) $(1)/$$$$dir ; \
  462. $(CP) $(call qstrip,$(CONFIG_LDCONFIG_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
  463. done ; \
  464. exit 0
  465. endef
  466. endif
  467. $(eval $(call BuildPackage,libc))
  468. $(eval $(call BuildPackage,libgcc))
  469. $(eval $(call BuildPackage,libatomic))
  470. $(eval $(call BuildPackage,libssp))
  471. $(eval $(call BuildPackage,libstdcpp))
  472. $(eval $(call BuildPackage,libpthread))
  473. $(eval $(call BuildPackage,libthread-db))
  474. $(eval $(call BuildPackage,librt))
  475. $(eval $(call BuildPackage,libgfortran))
  476. $(eval $(call BuildPackage,ldd))
  477. $(eval $(call BuildPackage,ldconfig))