1
0

vars.mk 12 KB

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