vars.mk 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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. CP= cp -fpR
  4. INSTALL_DIR= install -d -m0755
  5. INSTALL_DATA= install -m0644
  6. INSTALL_BIN= install -m0755
  7. INSTALL_SCRIPT= install -m0755
  8. MAKEFLAGS= $(EXTRA_MAKEFLAGS)
  9. BUILD_USER= $(shell id -un)
  10. BUILD_GROUP= $(shell id -gn)
  11. ifeq ($(ADK_TARGET_ABI),)
  12. ADK_SUFFIX:= _${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}
  13. ifeq ($(ADK_TARGET_WITH_MMU),)
  14. ADK_SUFFIX:= _${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}_nommu
  15. endif
  16. else
  17. ifeq ($(ADK_TARGET_WITH_MMU),)
  18. ADK_SUFFIX:= _${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}_${ADK_TARGET_ABI}_nommu
  19. else
  20. ADK_SUFFIX:= _${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}_${ADK_TARGET_ABI}
  21. endif
  22. endif
  23. # some global dirs
  24. BASE_DIR:= $(ADK_TOPDIR)
  25. ifeq ($(ADK_DL_DIR),)
  26. DL_DIR?= $(BASE_DIR)/dl
  27. else
  28. DL_DIR?= $(ADK_DL_DIR)
  29. endif
  30. SCRIPT_DIR:= $(BASE_DIR)/scripts
  31. STAGING_HOST_DIR:= ${BASE_DIR}/host_${GNU_HOST_NAME}
  32. HOST_BUILD_DIR:= ${BASE_DIR}/host_build_${GNU_HOST_NAME}
  33. TOOLCHAIN_DIR:= ${BASE_DIR}/toolchain${ADK_SUFFIX}
  34. # dirs for cleandir
  35. FW_DIR_PFX:= $(BASE_DIR)/firmware
  36. BUILD_DIR_PFX:= $(BASE_DIR)/build_*
  37. STAGING_PKG_DIR_PFX:= ${BASE_DIR}/pkg_*
  38. STAGING_TARGET_DIR_PFX:=${BASE_DIR}/target_*
  39. TOOLCHAIN_DIR_PFX= $(BASE_DIR)/toolchain_*
  40. STAGING_HOST_DIR_PFX:= ${BASE_DIR}/host_*
  41. TARGET_DIR_PFX:= $(BASE_DIR)/root_*
  42. TARGET_DIR:= $(BASE_DIR)/root${ADK_SUFFIX}
  43. FW_DIR:= $(BASE_DIR)/firmware/${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}
  44. BUILD_DIR:= ${BASE_DIR}/build${ADK_SUFFIX}
  45. STAGING_TARGET_DIR:= ${BASE_DIR}/target${ADK_SUFFIX}
  46. STAGING_PKG_DIR:= ${BASE_DIR}/pkg${ADK_SUFFIX}
  47. STAGING_HOST2TARGET:= ../../target${ADK_SUFFIX}
  48. TOOLCHAIN_BUILD_DIR= $(BASE_DIR)/toolchain_build${ADK_SUFFIX}
  49. PACKAGE_DIR:= $(FW_DIR)/packages
  50. SCRIPT_TARGET_DIR:= ${STAGING_TARGET_DIR}/scripts
  51. # PATH variables
  52. TARGET_PATH= ${SCRIPT_DIR}:${STAGING_TARGET_DIR}/scripts:${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:${_PATH}
  53. HOST_PATH= ${SCRIPT_DIR}:${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:${_PATH}
  54. AUTOTOOL_PATH= ${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:${STAGING_TARGET_DIR}/scripts:${_PATH}
  55. ifeq ($(ADK_DISABLE_HONOUR_CFLAGS),)
  56. GCC_CHECK:= GCC_HONOUR_COPTS=2
  57. else
  58. GCC_CHECK:=
  59. endif
  60. ifeq ($(ADK_TARGET_UCLINUX),y)
  61. ADK_TARGET_LINUXTYPE:= uclinux
  62. else
  63. ADK_TARGET_LINUXTYPE:= linux
  64. endif
  65. GNU_TARGET_NAME:= $(ADK_TARGET_CPU_ARCH)-$(ADK_VENDOR)-$(ADK_TARGET_LINUXTYPE)-$(ADK_TARGET_SUFFIX)
  66. ifeq ($(ADK_TARGET_ARCH_C6X),y)
  67. GNU_TARGET_NAME:= $(ADK_TARGET_CPU_ARCH)-$(ADK_TARGET_LINUXTYPE)
  68. endif
  69. TARGET_CROSS:= $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-
  70. TARGET_COMPILER_PREFIX?=${TARGET_CROSS}
  71. CONFIGURE_TRIPLE:= --build=${GNU_HOST_NAME} \
  72. --host=${GNU_TARGET_NAME} \
  73. --target=${GNU_TARGET_NAME}
  74. ifneq ($(strip ${ADK_USE_CCACHE}),)
  75. TARGET_COMPILER_PREFIX=$(STAGING_HOST_DIR)/usr/bin/ccache ${TARGET_CROSS}
  76. endif
  77. # target tools
  78. TARGET_CC:= ${TARGET_COMPILER_PREFIX}gcc
  79. # use a gcc wrapper for coldfire/arm uclinux support
  80. ifeq ($(ADK_TARGET_UCLINUX),y)
  81. ifeq ($(ADK_TARGET_ARCH_M68K),y)
  82. TARGET_CC:= adk-uclinux-gcc
  83. endif
  84. ifeq ($(ADK_TARGET_ARCH_ARM),y)
  85. TARGET_CC:= adk-uclinux-gcc
  86. endif
  87. endif
  88. TARGET_CXX:= ${TARGET_COMPILER_PREFIX}g++
  89. TARGET_LD:= ${TARGET_COMPILER_PREFIX}ld
  90. TARGET_AR:= ${TARGET_COMPILER_PREFIX}ar
  91. TARGET_RANLIB:= ${TARGET_COMPILER_PREFIX}ranlib
  92. ifneq ($(ADK_TARGET_ABI_CFLAGS),)
  93. TARGET_CC+= $(ADK_TARGET_ABI_CFLAGS)
  94. TARGET_CXX+= $(ADK_TARGET_ABI_CFLAGS)
  95. endif
  96. TARGET_CPPFLAGS:=
  97. TARGET_CFLAGS:= -fwrapv -fno-ident -fhonour-copts
  98. TARGET_CXXFLAGS:= -fwrapv -fno-ident -fhonour-copts
  99. TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \
  100. -Wl,-O1 -Wl,-rpath -Wl,/usr/lib \
  101. -Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib
  102. # for archiectures where gcc --with-cpu matches -mcpu=
  103. ifneq ($(ADK_TARGET_GCC_CPU),)
  104. ifeq ($(ADK_CPU_ARC700),y)
  105. TARGET_CFLAGS+= -mcpu=ARC700
  106. TARGET_CXXFLAGS+= -mcpu=ARC700
  107. else
  108. TARGET_CFLAGS+= -mcpu=$(ADK_TARGET_GCC_CPU)
  109. TARGET_CXXFLAGS+= -mcpu=$(ADK_TARGET_GCC_CPU)
  110. endif
  111. endif
  112. # for archiectures where gcc --with-arch matches -march=
  113. ifneq ($(ADK_TARGET_GCC_ARCH),)
  114. TARGET_CFLAGS+= -march=$(ADK_TARGET_GCC_ARCH)
  115. TARGET_CXXFLAGS+= -march=$(ADK_TARGET_GCC_ARCH)
  116. endif
  117. ifneq ($(ADK_TARGET_CPU_FLAGS),)
  118. TARGET_CFLAGS+= $(ADK_TARGET_CPU_FLAGS)
  119. TARGET_CXXFLAGS+= $(ADK_TARGET_CPU_FLAGS)
  120. endif
  121. ifneq ($(ADK_TARGET_FPU),)
  122. TARGET_CFLAGS+= -mfpu=$(ADK_TARGET_FPU)
  123. TARGET_CXXFLAGS+= -mfpu=$(ADK_TARGET_FPU)
  124. endif
  125. ifneq ($(ADK_TARGET_FLOAT),)
  126. ifeq ($(ADK_TARGET_ARCH_ARM),y)
  127. TARGET_CFLAGS+= -mfloat-abi=$(ADK_TARGET_FLOAT)
  128. TARGET_CXXFLAGS+= -mfloat-abi=$(ADK_TARGET_FLOAT)
  129. endif
  130. ifeq ($(ADK_TARGET_ARCH_MIPS),y)
  131. TARGET_CFLAGS+= -m$(ADK_TARGET_FLOAT)-float
  132. TARGET_CXXFLAGS+= -m$(ADK_TARGET_FLOAT)-float
  133. endif
  134. endif
  135. ifeq ($(ADK_TARGET_ARCH_ARM),y)
  136. ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
  137. TARGET_CFLAGS+= -Wl,-elf2flt
  138. TARGET_CXXFLAGS+= -Wl,-elf2flt
  139. endif
  140. endif
  141. ifeq ($(ADK_TARGET_ARCH_M68K),y)
  142. ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
  143. TARGET_LDFLAGS+= -elf2flt
  144. endif
  145. ifeq ($(ADK_TARGET_BINFMT_FLAT_SEP_DATA),y)
  146. TARGET_CFLAGS+= -msep-data
  147. TARGET_CXXFLAGS+= -msep-data
  148. endif
  149. endif
  150. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  151. # use -static-libgcc by default only for musl
  152. TARGET_CFLAGS+= -static-libgcc
  153. TARGET_CXXFLAGS+= -static-libgcc
  154. TARGET_LDFLAGS+= -static-libgcc
  155. endif
  156. # security optimization, see http://www.akkadia.org/drepper/dsohowto.pdf
  157. ifneq ($(ADK_TARGET_USE_LD_RELRO),)
  158. TARGET_LDFLAGS+= -Wl,-z,relro
  159. endif
  160. ifneq ($(ADK_TARGET_USE_LD_BIND_NOW),)
  161. TARGET_LDFLAGS+= -Wl,-z,now
  162. endif
  163. # needed for musl ppc
  164. ifeq ($(ADK_TARGET_ARCH_PPC),y)
  165. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  166. TARGET_LDFLAGS+= -Wl,--secure-plt
  167. endif
  168. endif
  169. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  170. TARGET_CFLAGS+= -static
  171. TARGET_CXXFLAGS+= -static
  172. TARGET_LDFLAGS+= -static
  173. endif
  174. ifneq ($(ADK_TARGET_USE_SSP),)
  175. TARGET_CFLAGS+= -fstack-protector-all --param=ssp-buffer-size=4
  176. TARGET_CXXFLAGS+= -fstack-protector-all --param=ssp-buffer-size=4
  177. TARGET_LDFLAGS+= -fstack-protector-all
  178. endif
  179. ifneq ($(ADK_TARGET_USE_LD_GC),)
  180. TARGET_CFLAGS+= -fdata-sections -ffunction-sections
  181. TARGET_CXXFLAGS+= -fdata-sections -ffunction-sections
  182. TARGET_LDFLAGS+= -Wl,--gc-sections
  183. endif
  184. ifneq ($(ADK_TARGET_USE_LTO),)
  185. TARGET_CFLAGS+= -flto
  186. TARGET_CXXFLAGS+= -flto
  187. TARGET_LDFLAGS+= -flto
  188. endif
  189. # performance optimization, see http://www.akkadia.org/drepper/dsohowto.pdf
  190. ifneq ($(ADK_TARGET_USE_GNU_HASHSTYLE),)
  191. TARGET_LDFLAGS+= -Wl,--hash-style=gnu
  192. endif
  193. ifeq ($(ADK_TARGET_ARCH_MICROBLAZE),y)
  194. TARGET_CFLAGS+= -mxl-barrel-shift
  195. TARGET_CXXFLAGS+= -mxl-barrel-shift
  196. endif
  197. ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
  198. TARGET_CFLAGS+= -mlongcalls -mtext-section-literals
  199. TARGET_CXXFLAGS+= -mlongcalls -mtext-section-literals
  200. endif
  201. # add configured cflags for optimization
  202. TARGET_CFLAGS+= $(ADK_TARGET_CFLAGS_OPT)
  203. TARGET_CXXFLAGS+= $(ADK_TARGET_CFLAGS_OPT)
  204. # always add debug information
  205. TARGET_CFLAGS+= -g3
  206. TARGET_CXXFLAGS+= -g3
  207. ifneq ($(ADK_DEBUG),)
  208. TARGET_CFLAGS+= -fno-omit-frame-pointer
  209. TARGET_CXXFLAGS+= -fno-omit-frame-pointer
  210. TARGET_CFLAGS+= -funwind-tables -fasynchronous-unwind-tables
  211. TARGET_CXXFLAGS+= -funwind-tables -fasynchronous-unwind-tables
  212. else
  213. TARGET_CPPFLAGS+= -DNDEBUG
  214. TARGET_CFLAGS+= -fomit-frame-pointer
  215. TARGET_CXXFLAGS+= -fomit-frame-pointer
  216. # stop generating eh_frame stuff
  217. TARGET_CFLAGS+= -fno-unwind-tables -fno-asynchronous-unwind-tables
  218. TARGET_CXXFLAGS+= -fno-unwind-tables -fno-asynchronous-unwind-tables
  219. endif
  220. ifeq ($(ADK_TARGET_ARCH_ARM),y)
  221. ifeq ($(ADK_TARGET_CPU_WITH_NEON),y)
  222. TARGET_CFLAGS+= -funsafe-math-optimizations
  223. TARGET_CXXFLAGS+= -funsafe-math-optimizations
  224. endif
  225. ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)
  226. TARGET_CFLAGS+= -mthumb -Wa,-mimplicit-it=thumb
  227. TARGET_CXXFLAGS+= -mthumb -Wa,-mimplicit-it=thumb
  228. else
  229. TARGET_CFLAGS+= -marm
  230. TARGET_CXXFLAGS+= -marm
  231. endif
  232. endif
  233. # host compiler and linker flags
  234. HOST_CPPFLAGS:= -I$(STAGING_HOST_DIR)/usr/include
  235. HOST_CFLAGS:= -O0 -g0
  236. HOST_CXXFLAGS:= -O0 -g0
  237. HOST_LDFLAGS:= -L$(STAGING_HOST_DIR)/usr/lib -Wl,-rpath -Wl,${STAGING_HOST_DIR}/usr/lib
  238. PATCH= PATH='${HOST_PATH}' ${BASH} $(SCRIPT_DIR)/patch.sh
  239. PATCHP0= PATH='${HOST_PATH}' patch -p0
  240. ifeq ($(ADK_STATIC_TOOLCHAIN),y)
  241. HOST_STATIC_CFLAGS:= -static -Wl,-static
  242. HOST_STATIC_CXXFLAGS:= -static -Wl,-static
  243. HOST_STATIC_LDFLAGS:= -Wl,-static
  244. HOST_STATIC_LLDFLAGS:= -all-static
  245. endif
  246. SED:= PATH='${HOST_PATH}' sed -i -e
  247. XZ:= PATH='${HOST_PATH}' xz
  248. LINUX_DIR:= $(BUILD_DIR)/linux
  249. KERNEL_MODULE_FLAGS:= ARCH=${ADK_TARGET_ARCH} \
  250. PREFIX=/usr \
  251. KERNEL_PATH=${LINUX_DIR} \
  252. KERNELDIR=${LINUX_DIR} \
  253. KERNEL_DIR=${LINUX_DIR} \
  254. CROSS_COMPILE="${TARGET_CROSS}" \
  255. CFLAGS_MODULE="-fhonour-copts" \
  256. V=1
  257. COMMON_ENV= CONFIG_SHELL='$(strip ${SHELL})' \
  258. AUTOM4TE='${STAGING_HOST_DIR}/usr/bin/autom4te' \
  259. M4='${STAGING_HOST_DIR}/usr/bin/m4' \
  260. LIBTOOLIZE='${STAGING_HOST_DIR}/usr/bin/libtoolize -q' \
  261. VERBOSE=1
  262. TARGET_ENV= AR='$(TARGET_CROSS)ar' \
  263. AS='$(TARGET_CROSS)as' \
  264. LD='$(TARGET_CROSS)ld' \
  265. NM='$(TARGET_CROSS)nm' \
  266. RANLIB='$(TARGET_CROSS)ranlib' \
  267. STRIP='$(TARGET_CROSS)strip' \
  268. OBJCOPY='$(TARGET_CROSS)objcopy' \
  269. CC='$(TARGET_CC)' \
  270. GCC='$(TARGET_CC)' \
  271. CXX='$(TARGET_CXX)' \
  272. CROSS='$(TARGET_CROSS)' \
  273. CROSS_COMPILE='$(TARGET_CROSS)' \
  274. CFLAGS='$(TARGET_CFLAGS)' \
  275. CXXFLAGS='$(TARGET_CXXFLAGS)' \
  276. CPPFLAGS='$(TARGET_CPPFLAGS)' \
  277. LDFLAGS='$(TARGET_LDFLAGS)' \
  278. CC_FOR_BUILD='$(HOST_CC)' \
  279. CXX_FOR_BUILD='$(HOST_CXX)' \
  280. CPPFLAGS_FOR_BUILD='$(HOST_CPPFLAGS)' \
  281. CFLAGS_FOR_BUILD='$(HOST_CFLAGS)' \
  282. CXXFLAGS_FOR_BUILD='$(HOST_CXXFLAGS)' \
  283. LDFLAGS_FOR_BUILD='$(HOST_LDFLAGS)' \
  284. LIBS_FOR_BUILD='$(HOST_LIBS)'
  285. HOST_ENV= CC='$(HOST_CC)' \
  286. CXX='$(HOST_CXX)' \
  287. CPPFLAGS='$(HOST_CPPFLAGS)' \
  288. CFLAGS='$(HOST_CFLAGS)' \
  289. CXXFLAGS='$(HOST_CXXFLAGS)' \
  290. LDFLAGS='$(HOST_LDFLAGS)'
  291. PKG_SUFFIX:= $(strip $(subst ",, $(ADK_PACKAGE_SUFFIX)))
  292. ifeq ($(ADK_TARGET_PACKAGE_IPKG),y)
  293. PKG_BUILD:= PATH='${HOST_PATH}' \
  294. ${BASH} ${SCRIPT_DIR}/ipkg-build
  295. PKG_INSTALL:= PATH='${HOST_PATH}' \
  296. IPKG_TMP=$(BUILD_DIR)/tmp \
  297. IPKG_INSTROOT=$(TARGET_DIR) \
  298. IPKG_CONF_DIR=$(STAGING_TARGET_DIR)/etc \
  299. IPKG_OFFLINE_ROOT=$(TARGET_DIR) \
  300. BIN_DIR=$(STAGING_HOST_DIR)/usr/bin \
  301. ${BASH} ${SCRIPT_DIR}/ipkg \
  302. -force-defaults -force-depends install
  303. PKG_STATE_DIR:= $(TARGET_DIR)/usr/lib/ipkg
  304. endif
  305. ifeq ($(ADK_TARGET_PACKAGE_OPKG),y)
  306. PKG_BUILD:= PATH='${HOST_PATH}' \
  307. ${BASH} ${SCRIPT_DIR}/ipkg-build
  308. PKG_INSTALL:= PATH='${HOST_PATH}' \
  309. IPKG_TMP=$(BUILD_DIR)/tmp \
  310. IPKG_INSTROOT=$(TARGET_DIR) \
  311. IPKG_CONF_DIR=$(STAGING_TARGET_DIR)/etc \
  312. IPKG_OFFLINE_ROOT=$(TARGET_DIR) \
  313. BIN_DIR=$(STAGING_HOST_DIR)/usr/bin \
  314. ${BASH} ${SCRIPT_DIR}/ipkg \
  315. -force-defaults -force-depends install
  316. PKG_STATE_DIR:= $(TARGET_DIR)/usr/lib/opkg
  317. endif
  318. ifeq ($(ADK_TARGET_PACKAGE_TXZ),y)
  319. PKG_BUILD:= PATH='${HOST_PATH}' ${BASH} ${SCRIPT_DIR}/tarpkg build
  320. PKG_INSTALL:= PKG_INSTROOT='$(TARGET_DIR)' \
  321. PATH='${HOST_PATH}' ${BASH} ${SCRIPT_DIR}/tarpkg install
  322. PKG_STATE_DIR:= $(TARGET_DIR)/usr/lib/pkg
  323. endif
  324. RSTRIP:= PATH="$(TARGET_PATH)" prefix='${TARGET_CROSS}' ${BASH} ${SCRIPT_DIR}/rstrip.sh
  325. STATCMD:=$(shell if stat -qs .>/dev/null 2>&1; then echo 'stat -f %z';else echo 'stat -c %s';fi)
  326. EXTRACT_CMD= PATH='${HOST_PATH}'; mkdir -p ${WRKDIR}; \
  327. cd ${WRKDIR} && \
  328. for file in ${FULLDISTFILES}; do case $$file in \
  329. *.cpio) \
  330. cat $$file | cpio -i -d ;; \
  331. *.tar) \
  332. tar -xf $$file ;; \
  333. *.cpio.Z | *.cpio.gz | *.cgz | *.mcz) \
  334. gzip -dc $$file | cpio -i -d ;; \
  335. *.tar.xz | *.txz) \
  336. xz -dc $$file | tar -xf - ;; \
  337. *.tar.Z | *.tar.gz | *.taz | *.tgz) \
  338. gzip -dc $$file | tar -xf - ;; \
  339. *.cpio.bz2 | *.cbz) \
  340. bzip2 -dc $$file | cpio -i -d ;; \
  341. *.tar.bz2 | *.tbz | *.tbz2) \
  342. bzip2 -dc $$file | tar -xf - ;; \
  343. *.zip) \
  344. cat $$file | cpio -id -H zip ;; \
  345. *.arm|*.jar|*.ids.gz) \
  346. mkdir ${WRKBUILD}; cp $$file ${WRKBUILD} ;; \
  347. *.bin) \
  348. sh $$file --force --auto-accept ;; \
  349. *) \
  350. echo "Cannot extract '$$file'" >&2; \
  351. false ;; \
  352. esac; done
  353. ifeq ($(ADK_VERBOSE),1)
  354. QUIET:=
  355. else
  356. QUIET:= --quiet
  357. endif
  358. FETCH_CMD?= wget --timeout=$(ADK_WGET_TIMEOUT) -t 3 --no-check-certificate $(QUIET)
  359. ifeq ($(ADK_HOST_CYGWIN),y)
  360. EXEEXT:= .exe
  361. endif
  362. include $(ADK_TOPDIR)/mk/mirrors.mk