Makefile 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. _IN_CVTC= 1
  4. include $(ADK_TOPDIR)/rules.mk
  5. include ../rules.mk
  6. include Makefile.inc
  7. include ${ADK_TOPDIR}/mk/buildhlp.mk
  8. # disable LTO
  9. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  10. # handled by uClibc-ng makefiles
  11. TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
  12. TARGET_LDFLAGS:=$(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
  13. # don't use fast-math for C library
  14. TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
  15. ifeq ($(ADK_TARGET_HARD_FLOAT),y)
  16. ifeq ($(ADK_TARGET_ARCH_ARM),y)
  17. TARGET_CFLAGS+= -Wa,-mfloat-abi=hard
  18. endif
  19. ifeq ($(ADK_TARGET_ARCH_MIPS),y)
  20. TARGET_CFLAGS+= -Wa,-mhard-float
  21. endif
  22. endif
  23. ifeq ($(ADK_TARGET_SOFT_FLOAT),y)
  24. ifeq ($(ADK_TARGET_ARCH_ARM),y)
  25. TARGET_CFLAGS+= -Wa,-mfloat-abi=soft
  26. endif
  27. ifeq ($(ADK_TARGET_ARCH_MIPS),y)
  28. TARGET_CFLAGS+= -Wa,-msoft-float
  29. endif
  30. endif
  31. ifeq (${ADK_MAKE_PARALLEL},y)
  32. UCLIBC_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  33. endif
  34. $(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
  35. $(SED) 's,^CROSS_COMPILE=.*,CROSS_COMPILE=$(TARGET_CROSS),g' $(WRKBUILD)/Rules.mak
  36. PATH='$(HOST_PATH)' sed -e 's^KERNEL_HEADERS.*$$KERNEL_HEADERS=\"${STAGING_TARGET_DIR}/usr/include\"' \
  37. $(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/uclibc-ng.config >${WRKBUILD}/.config
  38. ifeq ($(ADK_TARGET_ENDIAN),little)
  39. $(SED) 's/.*\(ARCH_LITTLE_ENDIAN\).*/\1=y/' ${WRKBUILD}/.config
  40. $(SED) 's/.*\(ARCH_WANTS_LITTLE_ENDIAN\).*/\1=y/' ${WRKBUILD}/.config
  41. $(SED) 's/.*\(ARCH_BIG_ENDIAN\).*/# \1 is not set/' ${WRKBUILD}/.config
  42. $(SED) 's/.*\(ARCH_WANTS_BIG_ENDIAN\).*/# \1 is not set/' ${WRKBUILD}/.config
  43. else
  44. $(SED) 's/.*\(ARCH_BIG_ENDIAN\).*/\1=y/' ${WRKBUILD}/.config
  45. $(SED) 's/.*\(ARCH_WANTS_BIG_ENDIAN\).*/\1=y/' ${WRKBUILD}/.config
  46. $(SED) 's/.*\(ARCH_LITTLE_ENDIAN\).*/# \1 is not set/' ${WRKBUILD}/.config
  47. $(SED) 's/.*\(ARCH_WANTS_LITTLE_ENDIAN\).*/# \1 is not set/' ${WRKBUILD}/.config
  48. endif
  49. ifeq ($(ADK_TARGET_SOFT_FLOAT),y)
  50. $(SED) 's/.*\(UCLIBC_HAS_FPU\).*/# \1 is not set/' ${WRKBUILD}/.config
  51. $(SED) 's/.*\(UCLIBC_HAS_SOFT_FLOAT\).*/#\1=y/' ${WRKBUILD}/.config
  52. endif
  53. ifeq ($(ADK_TARGET_HARD_FLOAT),y)
  54. $(SED) 's/.*\(UCLIBC_HAS_FPU\).*/\1=y/' ${WRKBUILD}/.config
  55. $(SED) 's/.*\(UCLIBC_HAS_SOFT_FLOAT\).*/# \1 is not set/' ${WRKBUILD}/.config
  56. endif
  57. ifeq ($(ADK_TARGET_BINFMT_FDPIC),y)
  58. $(SED) 's/.*\(UCLIBC_FORMAT_FDPIC_ELF\).*/\1=y/' ${WRKBUILD}/.config
  59. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT\).*/# \1 is not set/' ${WRKBUILD}/.config
  60. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT_SEP_DATA\).*/# \1 is not set/' ${WRKBUILD}/.config
  61. $(SED) 's/.*\(UCLIBC_FORMAT_SHARED_FLAT\).*/# \1 is not set/' ${WRKBUILD}/.config
  62. endif
  63. ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
  64. ifeq ($(ADK_TARGET_BINFMT_FLAT_ONE),y)
  65. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT\).*/\1=y/' ${WRKBUILD}/.config
  66. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT_SEP_DATA\).*/# \1 is not set/' ${WRKBUILD}/.config
  67. $(SED) 's/.*\(UCLIBC_FORMAT_SHARED_FLAT\).*/# \1 is not set/' ${WRKBUILD}/.config
  68. $(SED) 's/.*\(UCLIBC_FORMAT_FDPIC_ELF\).*/# \1 is not set/' ${WRKBUILD}/.config
  69. endif
  70. ifeq ($(ADK_TARGET_BINFMT_FLAT_SEP_DATA),y)
  71. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT_SEP_DATA\).*/\1=y/' ${WRKBUILD}/.config
  72. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT \).*/# \1 is not set/' ${WRKBUILD}/.config
  73. $(SED) 's/.*\(UCLIBC_FORMAT_SHARED_FLAT\).*/# \1 is not set/' ${WRKBUILD}/.config
  74. $(SED) 's/.*\(UCLIBC_FORMAT_FDPIC_ELF\).*/# \1 is not set/' ${WRKBUILD}/.config
  75. endif
  76. ifeq ($(ADK_TARGET_BINFMT_FLAT_SHARED),y)
  77. $(SED) 's/.*\(UCLIBC_FORMAT_SHARED_FLAT\).*/\1=y/' ${WRKBUILD}/.config
  78. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT \).*/# \1 is not set/' ${WRKBUILD}/.config
  79. $(SED) 's/.*\(UCLIBC_FORMAT_FLAT_SEP_DATA\).*/# \1 is not set/' ${WRKBUILD}/.config
  80. $(SED) 's/.*\(UCLIBC_FORMAT_FDPIC_ELF\).*/# \1 is not set/' ${WRKBUILD}/.config
  81. endif
  82. endif
  83. ifeq ($(ADK_TARGET_LIBC_ICONV),y)
  84. $(SED) 's/.*\(UCLIBC_HAS_LOCALE\).*/\1=y/' ${WRKBUILD}/.config
  85. endif
  86. ifeq ($(ADK_TARGET_UCLINUX),y)
  87. $(SED) 's/.*\(ARCH_USE_MMU\).*/# \1 is not set/' ${WRKBUILD}/.config
  88. endif
  89. ifeq ($(ADK_TARGET_WITHOUT_MMU),y)
  90. $(SED) 's/.*\(ARCH_USE_MMU\).*/# \1 is not set/' ${WRKBUILD}/.config
  91. endif
  92. ifeq ($(ADK_TARGET_WITH_NPTL),y)
  93. $(SED) 's/.*\(UCLIBC_HAS_THREADS_NATIVE\).*/\1=y/' ${WRKBUILD}/.config
  94. $(SED) 's/.*\(UCLIBC_HAS_TLS\).*/\1=y/' ${WRKBUILD}/.config
  95. $(SED) 's/.*\(PTHREADS_DEBUG_SUPPORT\).*/\1=y/' ${WRKBUILD}/.config
  96. $(SED) 's/.*\(LINUXTHREADS_OLD\).*/# \1 is not set/' ${WRKBUILD}/.config
  97. $(SED) 's/.*\(LINUXTHREADS_NEW\).*/# \1 is not set/' ${WRKBUILD}/.config
  98. $(SED) 's/.*\(HAS_NO_THREADS\).*/# \1 is not set/' ${WRKBUILD}/.config
  99. endif
  100. ifeq ($(ADK_TARGET_WITH_LT),y)
  101. $(SED) 's/.*\(UCLIBC_HAS_THREADS_NATIVE\).*/# \1 is not set/' ${WRKBUILD}/.config
  102. $(SED) 's/.*\(UCLIBC_HAS_TLS\).*/# \1 is not set/' ${WRKBUILD}/.config
  103. $(SED) 's/.*\(LINUXTHREADS_OLD\).*/\1=y/' ${WRKBUILD}/.config
  104. $(SED) 's/.*\(LINUXTHREADS_NEW\).*/# \1 is not set/' ${WRKBUILD}/.config
  105. $(SED) 's/.*\(HAS_NO_THREADS\).*/# \1 is not set/' ${WRKBUILD}/.config
  106. endif
  107. ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS)$(ADK_TARGET_WITHOUT_THREADS),y)
  108. $(SED) 's/.*\(LINUXTHREADS_OLD\).*/# \1 is not set/' ${WRKBUILD}/.config
  109. $(SED) 's/.*\(LINUXTHREADS_NEW\).*/# \1 is not set/' ${WRKBUILD}/.config
  110. $(SED) 's/.*\(UCLIBC_HAS_THREADS_NATIVE\).*/# \1 is not set/' ${WRKBUILD}/.config
  111. $(SED) 's/.*\(UCLIBC_HAS_TLS\).*/# \1 is not set/' ${WRKBUILD}/.config
  112. $(SED) 's/.*\(PTHREADS_DEBUG_SUPPORT\).*/# \1 is not set/' ${WRKBUILD}/.config
  113. $(SED) 's/.*\(HAS_NO_THREADS\).*/\1=y/' ${WRKBUILD}/.config
  114. endif
  115. ifeq ($(ADK_TARGET_USE_STATIC_LIBS)$(ADK_TARGET_BINFMT_FLAT),)
  116. $(SED) 's/.*\(HAVE_SHARED\).*/\1=y/' ${WRKBUILD}/.config
  117. else
  118. $(SED) 's/.*\(HAVE_SHARED\).*/# \1 is not set/' ${WRKBUILD}/.config
  119. endif
  120. ifeq ($(ADK_TARGET_USE_GNU_HASHSTYLE),y)
  121. $(SED) 's/.*\(LDSO_GNU_HASH_SUPPORT\).*/\1=y/' ${WRKBUILD}/.config
  122. else
  123. $(SED) 's/.*\(LDSO_GNU_HASH_SUPPORT\).*/# \1 is not set/' ${WRKBUILD}/.config
  124. endif
  125. ifeq ($(ADK_TARGET_USE_SSP),y)
  126. $(SED) 's,.*UCLIBC_HAS_SSP,UCLIBC_HAS_SSP=y,' ${WRKBUILD}/.config
  127. echo "UCLIBC_HAS_SSP_COMPAT=n" >> ${WRKBUILD}/.config
  128. echo "SSP_QUICK_CANARY=n" >> ${WRKBUILD}/.config
  129. echo "UCLIBC_BUILD_SSP=y" >> ${WRKBUILD}/.config
  130. endif
  131. ifeq ($(ADK_DEBUG),y)
  132. $(SED) 's/.*\(DODEBUG\).*/\1=y/' ${WRKBUILD}/.config
  133. endif
  134. #
  135. # architecture specific options
  136. #
  137. # arc
  138. ifeq ($(ADK_TARGET_ARCH_ARC),y)
  139. ifeq ($(ADK_TARGET_CPU_ARC_ARC700),y)
  140. $(SED) 's/.*\(CONFIG_ARC_CPU_HS\).*/# \1 is not set/' ${WRKBUILD}/.config
  141. $(SED) 's/.*\(CONFIG_ARC_CPU_700\).*/\1=y/' ${WRKBUILD}/.config
  142. endif
  143. ifeq ($(ADK_TARGET_CPU_ARC_ARC_HS),y)
  144. $(SED) 's/.*\(CONFIG_ARC_CPU_700\).*/# \1 is not set/' ${WRKBUILD}/.config
  145. $(SED) 's/.*\(CONFIG_ARC_CPU_HS\).*/\1=y/' ${WRKBUILD}/.config
  146. endif
  147. endif
  148. # arm
  149. ifeq ($(ADK_TARGET_ARCH_ARM),y)
  150. ifeq ($(ADK_TARGET_WITHOUT_MMU),y)
  151. $(SED) 's/.*\(DOPIC\).*/# \1 is not set/' ${WRKBUILD}/.config
  152. endif
  153. ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)
  154. $(SED) 's/.*\(COMPILE_IN_THUMB_MODE\).*/\1=y/' ${WRKBUILD}/.config
  155. $(SED) 's/.*\(UCLIBC_HAS_CONTEXT_FUNCS\).*/# \1 is not set/' ${WRKBUILD}/.config
  156. endif
  157. endif
  158. # cris
  159. ifeq ($(ADK_TARGET_ARCH_CRIS),y)
  160. ifeq ($(ADK_TARGET_CPU_CRIS_CRISV32),y)
  161. $(SED) 's/.*\(CONFIG_CRIS=\).*/# \1 is not set/' ${WRKBUILD}/.config
  162. $(SED) 's/.*\(CONFIG_CRISV32\).*/\1=y/' ${WRKBUILD}/.config
  163. endif
  164. ifeq ($(ADK_TARGET_CPU_CRIS_CRISV10),y)
  165. $(SED) 's/.*\(CONFIG_CRIS=\).*/\1=y/' ${WRKBUILD}/.config
  166. $(SED) 's/.*\(CONFIG_CRISV32\).*/# \1 is not set/' ${WRKBUILD}/.config
  167. endif
  168. endif
  169. # sh
  170. ifeq ($(ADK_TARGET_ARCH_SH),y)
  171. ifeq ($(ADK_TARGET_CPU_SH_SH4A),y)
  172. $(SED) 's/.*\(CONFIG_SH2A\).*/# \1 is not set/' ${WRKBUILD}/.config
  173. $(SED) 's/.*\(CONFIG_SH2\).*/# \1 is not set/' ${WRKBUILD}/.config
  174. $(SED) 's/.*\(CONFIG_SH3\).*/# \1 is not set/' ${WRKBUILD}/.config
  175. $(SED) 's/.*\(CONFIG_SH4=\).*/# \1 is not set/' ${WRKBUILD}/.config
  176. $(SED) 's/.*\(CONFIG_SH4A\).*/\1=y/' ${WRKBUILD}/.config
  177. endif
  178. ifeq ($(ADK_TARGET_CPU_SH_SH4),y)
  179. $(SED) 's/.*\(CONFIG_SH2A\).*/# \1 is not set/' ${WRKBUILD}/.config
  180. $(SED) 's/.*\(CONFIG_SH2\).*/# \1 is not set/' ${WRKBUILD}/.config
  181. $(SED) 's/.*\(CONFIG_SH3\).*/# \1 is not set/' ${WRKBUILD}/.config
  182. $(SED) 's/.*\(CONFIG_SH4A\).*/# \1 is not set/' ${WRKBUILD}/.config
  183. $(SED) 's/.*\(CONFIG_SH4\).*/\1=y/' ${WRKBUILD}/.config
  184. endif
  185. ifeq ($(ADK_TARGET_CPU_SH_SH3),y)
  186. $(SED) 's/.*\(UCLIBC_HAS_FPU\).*/# \1 is not set/' ${WRKBUILD}/.config
  187. $(SED) 's/.*\(CONFIG_SH2A\).*/# \1 is not set/' ${WRKBUILD}/.config
  188. $(SED) 's/.*\(CONFIG_SH2\).*/# \1 is not set/' ${WRKBUILD}/.config
  189. $(SED) 's/.*\(CONFIG_SH4\).*/# \1 is not set/' ${WRKBUILD}/.config
  190. $(SED) 's/.*\(CONFIG_SH4A\).*/# \1 is not set/' ${WRKBUILD}/.config
  191. $(SED) 's/.*\(CONFIG_SH3\).*/\1=y/' ${WRKBUILD}/.config
  192. endif
  193. ifeq ($(ADK_TARGET_CPU_SH_SH2),y)
  194. $(SED) 's/.*\(UCLIBC_HAS_FPU\).*/# \1 is not set/' ${WRKBUILD}/.config
  195. $(SED) 's/.*\(CONFIG_SH2A\).*/# \1 is not set/' ${WRKBUILD}/.config
  196. $(SED) 's/.*\(CONFIG_SH3\).*/# \1 is not set/' ${WRKBUILD}/.config
  197. $(SED) 's/.*\(CONFIG_SH4\).*/# \1 is not set/' ${WRKBUILD}/.config
  198. $(SED) 's/.*\(CONFIG_SH4A\).*/# \1 is not set/' ${WRKBUILD}/.config
  199. $(SED) 's/.*\(CONFIG_SH2\).*/\1=y/' ${WRKBUILD}/.config
  200. endif
  201. ifeq ($(ADK_TARGET_CPU_SH_SH2A),y)
  202. $(SED) 's/.*\(UCLIBC_HAS_FPU\).*/# \1 is not set/' ${WRKBUILD}/.config
  203. $(SED) 's/.*\(CONFIG_SH2A\).*/# \1 is not set/' ${WRKBUILD}/.config
  204. $(SED) 's/.*\(CONFIG_SH3\).*/# \1 is not set/' ${WRKBUILD}/.config
  205. $(SED) 's/.*\(CONFIG_SH4\).*/# \1 is not set/' ${WRKBUILD}/.config
  206. $(SED) 's/.*\(CONFIG_SH4A\).*/# \1 is not set/' ${WRKBUILD}/.config
  207. $(SED) 's/.*\(CONFIG_SH2A\).*/\1=y/' ${WRKBUILD}/.config
  208. endif
  209. endif
  210. # x86
  211. ifeq ($(ADK_TARGET_ARCH_X86),y)
  212. ifeq ($(ADK_TARGET_CPU_X86_I486),y)
  213. $(SED) 's/.*\(CONFIG_686\).*/# \1 is not set/' ${WRKBUILD}/.config
  214. $(SED) 's/.*\(CONFIG_586\).*/# \1 is not set/' ${WRKBUILD}/.config
  215. $(SED) 's/.*\(CONFIG_486\).*/\1=y/' ${WRKBUILD}/.config
  216. endif
  217. ifeq ($(ADK_TARGET_CPU_X86_I586),y)
  218. $(SED) 's/.*\(CONFIG_686\).*/# \1 is not set/' ${WRKBUILD}/.config
  219. $(SED) 's/.*\(CONFIG_586\).*/\1=y/' ${WRKBUILD}/.config
  220. $(SED) 's/.*\(CONFIG_486\).*/# \1 is not set/' ${WRKBUILD}/.config
  221. endif
  222. ifeq ($(ADK_TARGET_CPU_X86_I686),y)
  223. $(SED) 's/.*\(CONFIG_686\).*/\1=y/' ${WRKBUILD}/.config
  224. $(SED) 's/.*\(CONFIG_586\).*/# \1 is not set/' ${WRKBUILD}/.config
  225. $(SED) 's/.*\(CONFIG_486\).*/# \1 is not set/' ${WRKBUILD}/.config
  226. endif
  227. endif
  228. # mips64 abi
  229. ifeq ($(ADK_TARGET_ARCH_MIPS64),y)
  230. ifeq ($(ADK_TARGET_ABI_N64),y)
  231. $(SED) 's/.*\(CONFIG_MIPS_N64_ABI\).*/\1=y/' ${WRKBUILD}/.config
  232. $(SED) 's/.*\(CONFIG_MIPS_O32_ABI\).*/# \1 is not set/' ${WRKBUILD}/.config
  233. $(SED) 's/.*\(CONFIG_MIPS_N32_ABI\).*/# \1 is not set/' ${WRKBUILD}/.config
  234. endif
  235. ifeq ($(ADK_TARGET_ABI_N32),y)
  236. $(SED) 's/.*\(CONFIG_MIPS_N32_ABI\).*/\1=y/' ${WRKBUILD}/.config
  237. $(SED) 's/.*\(CONFIG_MIPS_O32_ABI\).*/# \1 is not set/' ${WRKBUILD}/.config
  238. $(SED) 's/.*\(CONFIG_MIPS_N64_ABI\).*/# \1 is not set/' ${WRKBUILD}/.config
  239. endif
  240. ifeq ($(ADK_TARGET_ABI_O32),y)
  241. $(SED) 's/.*\(CONFIG_MIPS_O32_ABI\).*/\1=y/' ${WRKBUILD}/.config
  242. $(SED) 's/.*\(CONFIG_MIPS_N32_ABI\).*/# \1 is not set/' ${WRKBUILD}/.config
  243. $(SED) 's/.*\(CONFIG_MIPS_N64_ABI\).*/# \1 is not set/' ${WRKBUILD}/.config
  244. endif
  245. endif
  246. echo N|PATH='$(HOST_PATH)' $(MAKE) $(UCLIBC_MAKEOPTS) -C $(WRKBUILD) \
  247. HOSTCC="$(HOST_CC)" \
  248. PREFIX=$(STAGING_TARGET_DIR) \
  249. DEVEL_PREFIX=/usr/ \
  250. RUNTIME_PREFIX=$(STAGING_TARGET_DIR) \
  251. UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
  252. UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
  253. oldconfig
  254. touch $@
  255. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  256. PATH='$(HOST_PATH)' $(MAKE) $(UCLIBC_MAKEOPTS) -C $(WRKBUILD) \
  257. HOSTCC="$(HOST_CC)" \
  258. CC='$(TARGET_CC)' \
  259. PREFIX= \
  260. DEVEL_PREFIX=/usr/ \
  261. RUNTIME_PREFIX=/ \
  262. UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
  263. UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
  264. VERBOSE=1 \
  265. all
  266. touch $@
  267. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  268. PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
  269. HOSTCC="$(HOST_CC)" \
  270. CC='$(TARGET_CC)' \
  271. PREFIX=$(STAGING_TARGET_DIR) \
  272. DEVEL_PREFIX=/usr/ \
  273. DEVEL_PREFIX_LIB=/ \
  274. RUNTIME_PREFIX=/ \
  275. UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
  276. UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
  277. VERBOSE=1 \
  278. install_runtime install_dev
  279. PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
  280. HOSTCC="$(HOST_CC)" \
  281. CC='$(TARGET_CC)' \
  282. PREFIX= \
  283. DEVEL_PREFIX=/usr/ \
  284. RUNTIME_PREFIX=/ \
  285. UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
  286. UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
  287. TEST_INSTALLED_UCLIBC=1 \
  288. UCLIBC_ONLY=1 \
  289. VERBOSE=1 \
  290. test_compile test_gen
  291. touch $@
  292. include ${ADK_TOPDIR}/mk/toolchain.mk