Makefile 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168
  1. #
  2. # (C) Copyright 2000-2004
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # See file CREDITS for list of people who contributed to this
  6. # project.
  7. #
  8. # This program is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as
  10. # published by the Free Software Foundation; either version 2 of
  11. # the License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. # MA 02111-1307 USA
  22. #
  23. HOSTARCH := $(shell uname -m | \
  24. sed -e s/i.86/i386/ \
  25. -e s/sun4u/sparc64/ \
  26. -e s/arm.*/arm/ \
  27. -e s/sa110/arm/ \
  28. -e s/powerpc/ppc/ \
  29. -e s/macppc/ppc/)
  30. HOSTOS := $(shell uname -s | tr A-Z a-z | \
  31. sed -e 's/\(cygwin\).*/cygwin/')
  32. export HOSTARCH
  33. # Deal with colliding definitions from tcsh etc.
  34. VENDOR=
  35. #########################################################################
  36. TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
  37. export TOPDIR
  38. ifeq (include/config.mk,$(wildcard include/config.mk))
  39. # load ARCH, BOARD, and CPU configuration
  40. include include/config.mk
  41. export ARCH CPU BOARD VENDOR
  42. # load other configuration
  43. include $(TOPDIR)/config.mk
  44. ifndef CROSS_COMPILE
  45. ifeq ($(HOSTARCH),ppc)
  46. CROSS_COMPILE =
  47. else
  48. ifeq ($(ARCH),ppc)
  49. CROSS_COMPILE = ppc_8xx-
  50. endif
  51. ifeq ($(ARCH),arm)
  52. CROSS_COMPILE = arm-linux-
  53. endif
  54. ifeq ($(ARCH),i386)
  55. ifeq ($(HOSTARCH),i386)
  56. CROSS_COMPILE =
  57. else
  58. CROSS_COMPILE = i386-linux-
  59. endif
  60. endif
  61. ifeq ($(ARCH),mips)
  62. CROSS_COMPILE = mips_4KC-
  63. endif
  64. ifeq ($(ARCH),nios)
  65. CROSS_COMPILE = nios-elf-
  66. endif
  67. ifeq ($(ARCH),m68k)
  68. CROSS_COMPILE = m68k-elf-
  69. endif
  70. endif
  71. endif
  72. export CROSS_COMPILE
  73. #########################################################################
  74. # U-Boot objects....order is important (i.e. start must be first)
  75. OBJS = cpu/$(CPU)/start.o
  76. ifeq ($(CPU),i386)
  77. OBJS += cpu/$(CPU)/start16.o
  78. OBJS += cpu/$(CPU)/reset.o
  79. endif
  80. ifeq ($(CPU),ppc4xx)
  81. OBJS += cpu/$(CPU)/resetvec.o
  82. endif
  83. ifeq ($(CPU),mpc85xx)
  84. OBJS += cpu/$(CPU)/resetvec.o
  85. endif
  86. LIBS = lib_generic/libgeneric.a
  87. LIBS += board/$(BOARDDIR)/lib$(BOARD).a
  88. LIBS += cpu/$(CPU)/lib$(CPU).a
  89. LIBS += lib_$(ARCH)/lib$(ARCH).a
  90. LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a
  91. LIBS += net/libnet.a
  92. LIBS += disk/libdisk.a
  93. LIBS += rtc/librtc.a
  94. LIBS += dtt/libdtt.a
  95. LIBS += drivers/libdrivers.a
  96. LIBS += drivers/sk98lin/libsk98lin.a
  97. LIBS += post/libpost.a post/cpu/libcpu.a
  98. LIBS += common/libcommon.a
  99. .PHONY : $(LIBS)
  100. # Add GCC lib
  101. PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
  102. # The "tools" are needed early, so put this first
  103. # Don't include stuff already done in $(LIBS)
  104. SUBDIRS = tools \
  105. examples \
  106. post \
  107. post/cpu
  108. .PHONY : $(SUBDIRS)
  109. #########################################################################
  110. #########################################################################
  111. ALL = u-boot.srec u-boot.bin System.map
  112. all: $(ALL)
  113. u-boot.srec: u-boot
  114. $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
  115. u-boot.bin: u-boot
  116. $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
  117. u-boot.img: u-boot.bin
  118. ./tools/mkimage -A $(ARCH) -T firmware -C none \
  119. -a $(TEXT_BASE) -e 0 \
  120. -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
  121. sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
  122. -d $< $@
  123. u-boot.dis: u-boot
  124. $(OBJDUMP) -d $< > $@
  125. u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
  126. UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
  127. $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
  128. --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
  129. -Map u-boot.map -o u-boot
  130. $(LIBS):
  131. $(MAKE) -C `dirname $@`
  132. $(SUBDIRS):
  133. $(MAKE) -C $@ all
  134. gdbtools:
  135. $(MAKE) -C tools/gdb || exit 1
  136. depend dep:
  137. @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
  138. tags:
  139. ctags -w `find $(SUBDIRS) include \
  140. \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
  141. etags:
  142. etags -a `find $(SUBDIRS) include \
  143. \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
  144. System.map: u-boot
  145. @$(NM) $< | \
  146. grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
  147. sort > System.map
  148. #########################################################################
  149. else
  150. all install u-boot u-boot.srec depend dep:
  151. @echo "System not configured - see README" >&2
  152. @ exit 1
  153. endif
  154. #########################################################################
  155. unconfig:
  156. rm -f include/config.h include/config.mk
  157. #========================================================================
  158. # PowerPC
  159. #========================================================================
  160. #########################################################################
  161. ## MPC5xx Systems
  162. #########################################################################
  163. cmi_mpc5xx_config: unconfig
  164. @./mkconfig $(@:_config=) ppc mpc5xx cmi
  165. PATI_config:unconfig
  166. @./mkconfig $(@:_config=) ppc mpc5xx pati mpl
  167. #########################################################################
  168. ## MPC5xxx Systems
  169. #########################################################################
  170. MPC5200LITE_config \
  171. MPC5200LITE_LOWBOOT_config \
  172. MPC5200LITE_LOWBOOT08_config \
  173. icecube_5200_DDR_LOWBOOT_config \
  174. icecube_5200_DDR_config \
  175. IceCube_5200_DDR_config \
  176. icecube_5200_config \
  177. IceCube_5200_config \
  178. IceCube_5100_config: unconfig
  179. @ >include/config.h
  180. @[ -z "$(findstring LOWBOOT,$@)" ] || \
  181. { echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
  182. echo "... with LOWBOOT configuration" ; \
  183. }
  184. @[ -z "$(findstring LOWBOOT08,$@)" ] || \
  185. { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
  186. echo "... with 8 MB flash only" ; \
  187. }
  188. @[ -z "$(findstring DDR,$@)" ] || \
  189. { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
  190. echo "... DDR memory revision" ; \
  191. }
  192. @[ -z "$(findstring 5200,$@)" ] || \
  193. { echo "#define CONFIG_MPC5200" >>include/config.h ; \
  194. echo "... with MPC5200 processor" ; \
  195. }
  196. @[ -z "$(findstring 5100,$@)" ] || \
  197. { echo "#define CONFIG_MGT5100" >>include/config.h ; \
  198. echo "... with MGT5100 processor" ; \
  199. }
  200. @./mkconfig -a IceCube ppc mpc5xxx icecube
  201. MINI5200_config \
  202. EVAL5200_config \
  203. TOP5200_config: unconfig
  204. @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
  205. @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
  206. #########################################################################
  207. ## MPC8xx Systems
  208. #########################################################################
  209. AdderII_config: unconfig
  210. @./mkconfig $(@:_config=) ppc mpc8xx adderII
  211. ADS860_config \
  212. DUET_ADS_config \
  213. FADS823_config \
  214. FADS850SAR_config \
  215. MPC86xADS_config \
  216. FADS860T_config: unconfig
  217. @./mkconfig $(@:_config=) ppc mpc8xx fads
  218. AMX860_config : unconfig
  219. @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
  220. bms2003_config : unconfig
  221. @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
  222. c2mon_config: unconfig
  223. @./mkconfig $(@:_config=) ppc mpc8xx c2mon
  224. CCM_config: unconfig
  225. @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
  226. cogent_mpc8xx_config: unconfig
  227. @./mkconfig $(@:_config=) ppc mpc8xx cogent
  228. ELPT860_config: unconfig
  229. @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
  230. ESTEEM192E_config: unconfig
  231. @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
  232. ETX094_config : unconfig
  233. @./mkconfig $(@:_config=) ppc mpc8xx etx094
  234. FLAGADM_config: unconfig
  235. @./mkconfig $(@:_config=) ppc mpc8xx flagadm
  236. xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
  237. GEN860T_SC_config \
  238. GEN860T_config: unconfig
  239. @ >include/config.h
  240. @[ -z "$(findstring _SC,$@)" ] || \
  241. { echo "#define CONFIG_SC" >>include/config.h ; \
  242. echo "With reduced H/W feature set (SC)..." ; \
  243. }
  244. @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
  245. GENIETV_config: unconfig
  246. @./mkconfig $(@:_config=) ppc mpc8xx genietv
  247. GTH_config: unconfig
  248. @./mkconfig $(@:_config=) ppc mpc8xx gth
  249. hermes_config : unconfig
  250. @./mkconfig $(@:_config=) ppc mpc8xx hermes
  251. IAD210_config: unconfig
  252. @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
  253. xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
  254. ICU862_100MHz_config \
  255. ICU862_config: unconfig
  256. @ >include/config.h
  257. @[ -z "$(findstring _100MHz,$@)" ] || \
  258. { echo "#define CONFIG_100MHz" >>include/config.h ; \
  259. echo "... with 100MHz system clock" ; \
  260. }
  261. @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
  262. IP860_config : unconfig
  263. @./mkconfig $(@:_config=) ppc mpc8xx ip860
  264. IVML24_256_config \
  265. IVML24_128_config \
  266. IVML24_config: unconfig
  267. @ >include/config.h
  268. @[ -z "$(findstring IVML24_config,$@)" ] || \
  269. { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
  270. }
  271. @[ -z "$(findstring IVML24_128_config,$@)" ] || \
  272. { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
  273. }
  274. @[ -z "$(findstring IVML24_256_config,$@)" ] || \
  275. { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
  276. }
  277. @./mkconfig -a IVML24 ppc mpc8xx ivm
  278. IVMS8_256_config \
  279. IVMS8_128_config \
  280. IVMS8_config: unconfig
  281. @ >include/config.h
  282. @[ -z "$(findstring IVMS8_config,$@)" ] || \
  283. { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
  284. }
  285. @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
  286. { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
  287. }
  288. @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
  289. { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
  290. }
  291. @./mkconfig -a IVMS8 ppc mpc8xx ivm
  292. KUP4K_config : unconfig
  293. @./mkconfig $(@:_config=) ppc mpc8xx kup4k
  294. LANTEC_config : unconfig
  295. @./mkconfig $(@:_config=) ppc mpc8xx lantec
  296. lwmon_config: unconfig
  297. @./mkconfig $(@:_config=) ppc mpc8xx lwmon
  298. MBX_config \
  299. MBX860T_config: unconfig
  300. @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
  301. MHPC_config: unconfig
  302. @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
  303. MVS1_config : unconfig
  304. @./mkconfig $(@:_config=) ppc mpc8xx mvs1
  305. xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
  306. NETVIA_V2_config \
  307. NETVIA_config: unconfig
  308. @ >include/config.h
  309. @[ -z "$(findstring NETVIA_config,$@)" ] || \
  310. { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
  311. echo "... Version 1" ; \
  312. }
  313. @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
  314. { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
  315. echo "... Version 2" ; \
  316. }
  317. @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
  318. NX823_config: unconfig
  319. @./mkconfig $(@:_config=) ppc mpc8xx nx823
  320. pcu_e_config: unconfig
  321. @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
  322. QS850_config: unconfig
  323. @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
  324. QS823_config: unconfig
  325. @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
  326. QS860T_config: unconfig
  327. @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
  328. R360MPI_config: unconfig
  329. @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
  330. RBC823_config: unconfig
  331. @./mkconfig $(@:_config=) ppc mpc8xx rbc823
  332. RPXClassic_config: unconfig
  333. @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
  334. RPXlite_config: unconfig
  335. @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
  336. rmu_config: unconfig
  337. @./mkconfig $(@:_config=) ppc mpc8xx rmu
  338. RRvision_config: unconfig
  339. @./mkconfig $(@:_config=) ppc mpc8xx RRvision
  340. RRvision_LCD_config: unconfig
  341. @echo "#define CONFIG_LCD" >include/config.h
  342. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  343. @./mkconfig -a RRvision ppc mpc8xx RRvision
  344. SM850_config : unconfig
  345. @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
  346. SPD823TS_config: unconfig
  347. @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
  348. svm_sc8xx_config: unconfig
  349. @ >include/config.h
  350. @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
  351. SXNI855T_config: unconfig
  352. @./mkconfig $(@:_config=) ppc mpc8xx sixnet
  353. # EMK MPC8xx based modules
  354. TOP860_config: unconfig
  355. @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
  356. # Play some tricks for configuration selection
  357. # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
  358. # but only 855 and 860 boards may come with FEC
  359. # and 823 boards may have LCD support
  360. xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _133MHz,,$(subst _LCD,,$(subst _config,,$1))))))
  361. FPS850L_config \
  362. FPS860L_config \
  363. NSCU_config \
  364. TQM823L_config \
  365. TQM823L_66MHz_config \
  366. TQM823L_80MHz_config \
  367. TQM823L_LCD_config \
  368. TQM823L_LCD_66MHz_config \
  369. TQM823L_LCD_80MHz_config \
  370. TQM850L_config \
  371. TQM850L_66MHz_config \
  372. TQM850L_80MHz_config \
  373. TQM855L_config \
  374. TQM855L_66MHz_config \
  375. TQM855L_80MHz_config \
  376. TQM860L_config \
  377. TQM860L_66MHz_config \
  378. TQM860L_80MHz_config \
  379. TQM862L_config \
  380. TQM862L_66MHz_config \
  381. TQM862L_80MHz_config \
  382. TQM823M_config \
  383. TQM823M_66MHz_config \
  384. TQM823M_80MHz_config \
  385. TQM850M_config \
  386. TQM850M_66MHz_config \
  387. TQM850M_80MHz_config \
  388. TQM855M_config \
  389. TQM855M_66MHz_config \
  390. TQM855M_80MHz_config \
  391. TQM860M_config \
  392. TQM860M_66MHz_config \
  393. TQM860M_80MHz_config \
  394. TQM862M_config \
  395. TQM862M_66MHz_config \
  396. TQM862M_80MHz_config \
  397. TQM862M_100MHz_config \
  398. TQM866M_config: unconfig
  399. @ >include/config.h
  400. @[ -z "$(findstring _66MHz,$@)" ] || \
  401. { echo "#define CONFIG_66MHz" >>include/config.h ; \
  402. echo "... with 66MHz system clock" ; \
  403. }
  404. @[ -z "$(findstring _80MHz,$@)" ] || \
  405. { echo "#define CONFIG_80MHz" >>include/config.h ; \
  406. echo "... with 80MHz system clock" ; \
  407. }
  408. @[ -z "$(findstring _100MHz,$@)" ] || \
  409. { echo "#define CONFIG_100MHz" >>include/config.h ; \
  410. echo "... with 100MHz system clock" ; \
  411. }
  412. @[ -z "$(findstring _133MHz,$@)" ] || \
  413. { echo "#define CONFIG_133MHz" >>include/config.h ; \
  414. echo "... with 133MHz system clock" ; \
  415. }
  416. @[ -z "$(findstring _LCD,$@)" ] || \
  417. { echo "#define CONFIG_LCD" >>include/config.h ; \
  418. echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
  419. echo "... with LCD display" ; \
  420. }
  421. @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
  422. TTTech_config: unconfig
  423. @echo "#define CONFIG_LCD" >include/config.h
  424. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  425. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  426. v37_config: unconfig
  427. @echo "#define CONFIG_LCD" >include/config.h
  428. @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
  429. @./mkconfig $(@:_config=) ppc mpc8xx v37
  430. wtk_config: unconfig
  431. @echo "#define CONFIG_LCD" >include/config.h
  432. @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
  433. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  434. #########################################################################
  435. ## PPC4xx Systems
  436. #########################################################################
  437. xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
  438. ADCIOP_config: unconfig
  439. @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
  440. AR405_config: unconfig
  441. @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
  442. ASH405_config: unconfig
  443. @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
  444. BUBINGA405EP_config:unconfig
  445. @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
  446. CANBT_config: unconfig
  447. @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
  448. CPCI405_config \
  449. CPCI4052_config \
  450. CPCI405AB_config: unconfig
  451. @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
  452. @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
  453. CPCI440_config: unconfig
  454. @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
  455. CPCIISER4_config: unconfig
  456. @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
  457. CRAYL1_config:unconfig
  458. @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
  459. csb272_config: unconfig
  460. @./mkconfig $(@:_config=) ppc ppc4xx csb272
  461. DASA_SIM_config: unconfig
  462. @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
  463. DP405_config: unconfig
  464. @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
  465. DU405_config: unconfig
  466. @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
  467. EBONY_config:unconfig
  468. @./mkconfig $(@:_config=) ppc ppc4xx ebony
  469. ERIC_config:unconfig
  470. @./mkconfig $(@:_config=) ppc ppc4xx eric
  471. EXBITGEN_config:unconfig
  472. @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
  473. HUB405_config: unconfig
  474. @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
  475. MIP405_config:unconfig
  476. @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
  477. MIP405T_config:unconfig
  478. @echo "#define CONFIG_MIP405T" >include/config.h
  479. @echo "Enable subset config for MIP405T"
  480. @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
  481. ML2_config:unconfig
  482. @./mkconfig $(@:_config=) ppc ppc4xx ml2
  483. ml300_config:unconfig
  484. @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
  485. OCRTC_config \
  486. ORSG_config: unconfig
  487. @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
  488. PCI405_config: unconfig
  489. @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
  490. PIP405_config:unconfig
  491. @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
  492. PLU405_config: unconfig
  493. @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
  494. PMC405_config: unconfig
  495. @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
  496. PPChameleonEVB_MODEL_BA_config \
  497. PPChameleonEVB_MODEL_ME_config \
  498. PPChameleonEVB_MODEL_HI_config \
  499. PPChameleonEVB_config: unconfig
  500. @ >include/config.h
  501. @[ -z "$(findstring _MODEL_BA,$@)" ] || \
  502. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
  503. echo "... BASIC model" ; \
  504. }
  505. @[ -z "$(findstring _MODEL_ME,$@)" ] || \
  506. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
  507. echo "... MEDIUM model" ; \
  508. }
  509. @[ -z "$(findstring _MODEL_HI,$@)" ] || \
  510. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
  511. echo "... HIGH-END model" ; \
  512. }
  513. @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  514. VOH405_config: unconfig
  515. @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
  516. W7OLMC_config \
  517. W7OLMG_config: unconfig
  518. @./mkconfig $(@:_config=) ppc ppc4xx w7o
  519. WALNUT405_config:unconfig
  520. @./mkconfig $(@:_config=) ppc ppc4xx walnut405
  521. XPEDITE1K_config:unconfig
  522. @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
  523. #########################################################################
  524. ## MPC824x Systems
  525. #########################################################################
  526. xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
  527. A3000_config: unconfig
  528. @./mkconfig $(@:_config=) ppc mpc824x a3000
  529. BMW_config: unconfig
  530. @./mkconfig $(@:_config=) ppc mpc824x bmw
  531. CPC45_config \
  532. CPC45_ROMBOOT_config: unconfig
  533. @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
  534. @cd ./include ; \
  535. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  536. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  537. echo "... booting from 8-bit flash" ; \
  538. else \
  539. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  540. echo "... booting from 64-bit flash" ; \
  541. fi; \
  542. echo "export CONFIG_BOOT_ROM" >> config.mk;
  543. CU824_config: unconfig
  544. @./mkconfig $(@:_config=) ppc mpc824x cu824
  545. MOUSSE_config: unconfig
  546. @./mkconfig $(@:_config=) ppc mpc824x mousse
  547. MUSENKI_config: unconfig
  548. @./mkconfig $(@:_config=) ppc mpc824x musenki
  549. MVBLUE_config: unconfig
  550. @./mkconfig $(@:_config=) ppc mpc824x mvblue
  551. OXC_config: unconfig
  552. @./mkconfig $(@:_config=) ppc mpc824x oxc
  553. PN62_config: unconfig
  554. @./mkconfig $(@:_config=) ppc mpc824x pn62
  555. Sandpoint8240_config: unconfig
  556. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  557. Sandpoint8245_config: unconfig
  558. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  559. SL8245_config: unconfig
  560. @./mkconfig $(@:_config=) ppc mpc824x sl8245
  561. utx8245_config: unconfig
  562. @./mkconfig $(@:_config=) ppc mpc824x utx8245
  563. #########################################################################
  564. ## MPC8260 Systems
  565. #########################################################################
  566. atc_config: unconfig
  567. @./mkconfig $(@:_config=) ppc mpc8260 atc
  568. cogent_mpc8260_config: unconfig
  569. @./mkconfig $(@:_config=) ppc mpc8260 cogent
  570. CPU86_config \
  571. CPU86_ROMBOOT_config: unconfig
  572. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
  573. @cd ./include ; \
  574. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  575. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  576. echo "... booting from 8-bit flash" ; \
  577. else \
  578. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  579. echo "... booting from 64-bit flash" ; \
  580. fi; \
  581. echo "export CONFIG_BOOT_ROM" >> config.mk;
  582. ep8260_config: unconfig
  583. @./mkconfig $(@:_config=) ppc mpc8260 ep8260
  584. gw8260_config: unconfig
  585. @./mkconfig $(@:_config=) ppc mpc8260 gw8260
  586. hymod_config: unconfig
  587. @./mkconfig $(@:_config=) ppc mpc8260 hymod
  588. IPHASE4539_config: unconfig
  589. @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
  590. MPC8260ADS_config: unconfig
  591. @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
  592. MPC8266ADS_config: unconfig
  593. @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
  594. PM825_config \
  595. PM825_ROMBOOT_config: unconfig
  596. @echo "#define CONFIG_PCI" >include/config.h
  597. @./mkconfig -a PM826 ppc mpc8260 pm826
  598. @cd ./include ; \
  599. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  600. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  601. echo "... booting from 8-bit flash" ; \
  602. else \
  603. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  604. echo "... booting from 64-bit flash" ; \
  605. fi; \
  606. echo "export CONFIG_BOOT_ROM" >> config.mk; \
  607. PM826_config \
  608. PM826_ROMBOOT_config: unconfig
  609. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
  610. @cd ./include ; \
  611. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  612. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  613. echo "... booting from 8-bit flash" ; \
  614. else \
  615. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  616. echo "... booting from 64-bit flash" ; \
  617. fi; \
  618. echo "export CONFIG_BOOT_ROM" >> config.mk; \
  619. ppmc8260_config: unconfig
  620. @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
  621. RPXsuper_config: unconfig
  622. @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
  623. rsdproto_config: unconfig
  624. @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
  625. sacsng_config: unconfig
  626. @./mkconfig $(@:_config=) ppc mpc8260 sacsng
  627. sbc8260_config: unconfig
  628. @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
  629. SCM_config: unconfig
  630. @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
  631. TQM8255_AA_config \
  632. TQM8260_AA_config \
  633. TQM8260_AB_config \
  634. TQM8260_AC_config \
  635. TQM8260_AD_config \
  636. TQM8260_AE_config \
  637. TQM8260_AF_config \
  638. TQM8260_AG_config \
  639. TQM8260_AH_config \
  640. TQM8265_AA_config: unconfig
  641. @case "$@" in \
  642. TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
  643. TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
  644. TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  645. TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  646. TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  647. TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
  648. TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  649. TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
  650. TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
  651. TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
  652. esac; \
  653. >include/config.h ; \
  654. if [ "$${CTYPE}" != "MPC8260" ] ; then \
  655. echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
  656. fi; \
  657. echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
  658. echo "... with $${CFREQ}MHz system clock" ; \
  659. if [ "$${CACHE}" == "yes" ] ; then \
  660. echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
  661. echo "... with L2 Cache support" ; \
  662. else \
  663. echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
  664. echo "... without L2 Cache support" ; \
  665. fi; \
  666. if [ "$${BMODE}" == "60x" ] ; then \
  667. echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
  668. echo "... with 60x Bus Mode" ; \
  669. else \
  670. echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
  671. echo "... without 60x Bus Mode" ; \
  672. fi
  673. @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
  674. ZPC1900_config: unconfig
  675. @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
  676. #========================================================================
  677. # M68K
  678. #========================================================================
  679. #########################################################################
  680. ## Coldfire
  681. #########################################################################
  682. M5272C3_config : unconfig
  683. @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
  684. M5282EVB_config : unconfig
  685. @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
  686. #########################################################################
  687. ## MPC85xx Systems
  688. #########################################################################
  689. MPC8540ADS_config: unconfig
  690. @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
  691. MPC8560ADS_config: unconfig
  692. @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
  693. #########################################################################
  694. ## 74xx/7xx Systems
  695. #########################################################################
  696. AmigaOneG3SE_config: unconfig
  697. @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
  698. BAB7xx_config: unconfig
  699. @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
  700. DB64360_config: unconfig
  701. @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
  702. DB64460_config: unconfig
  703. @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
  704. debris_config: unconfig
  705. @./mkconfig $(@:_config=) ppc mpc824x debris etin
  706. ELPPC_config: unconfig
  707. @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
  708. EVB64260_config \
  709. EVB64260_750CX_config: unconfig
  710. @./mkconfig EVB64260 ppc 74xx_7xx evb64260
  711. P3G4_config: unconfig
  712. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  713. PCIPPC2_config \
  714. PCIPPC6_config: unconfig
  715. @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
  716. ZUMA_config: unconfig
  717. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  718. #========================================================================
  719. # ARM
  720. #========================================================================
  721. #########################################################################
  722. ## StrongARM Systems
  723. #########################################################################
  724. at91rm9200dk_config : unconfig
  725. @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
  726. lart_config : unconfig
  727. @./mkconfig $(@:_config=) arm sa1100 lart
  728. dnp1110_config : unconfig
  729. @./mkconfig $(@:_config=) arm sa1100 dnp1110
  730. shannon_config : unconfig
  731. @./mkconfig $(@:_config=) arm sa1100 shannon
  732. #########################################################################
  733. ## ARM92xT Systems
  734. #########################################################################
  735. xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
  736. xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
  737. omap1510inn_config : unconfig
  738. @./mkconfig $(@:_config=) arm arm925t omap1510inn
  739. omap1610inn_config \
  740. omap1610inn_cs0boot_config \
  741. omap1610inn_cs3boot_config \
  742. omap1610h2_config \
  743. omap1610h2_cs0boot_config \
  744. omap1610h2_cs3boot_config : unconfig
  745. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  746. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  747. echo "Configured for CS0 boot"; \
  748. else \
  749. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  750. echo "Configured for CS3 boot"; \
  751. fi;
  752. @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
  753. smdk2400_config : unconfig
  754. @./mkconfig $(@:_config=) arm arm920t smdk2400
  755. smdk2410_config : unconfig
  756. @./mkconfig $(@:_config=) arm arm920t smdk2410
  757. # TRAB default configuration: 8 MB Flash, 32 MB RAM
  758. trab_config \
  759. trab_bigram_config \
  760. trab_bigflash_config \
  761. trab_old_config: unconfig
  762. @ >include/config.h
  763. @[ -z "$(findstring _bigram,$@)" ] || \
  764. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  765. echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
  766. echo "... with 8 MB Flash, 32 MB RAM" ; \
  767. }
  768. @[ -z "$(findstring _bigflash,$@)" ] || \
  769. { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
  770. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  771. echo "... with 16 MB Flash, 16 MB RAM" ; \
  772. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  773. }
  774. @[ -z "$(findstring _old,$@)" ] || \
  775. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  776. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  777. echo "... with 8 MB Flash, 16 MB RAM" ; \
  778. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  779. }
  780. @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
  781. VCMA9_config : unconfig
  782. @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
  783. #########################################################################
  784. ## ARM720T Systems
  785. #########################################################################
  786. impa7_config : unconfig
  787. @./mkconfig $(@:_config=) arm arm720t impa7
  788. ep7312_config : unconfig
  789. @./mkconfig $(@:_config=) arm arm720t ep7312
  790. modnet50_config : unconfig
  791. @./mkconfig $(@:_config=) arm arm720t modnet50
  792. #########################################################################
  793. ## XScale Systems
  794. #########################################################################
  795. cradle_config : unconfig
  796. @./mkconfig $(@:_config=) arm pxa cradle
  797. csb226_config : unconfig
  798. @./mkconfig $(@:_config=) arm pxa csb226
  799. innokom_config : unconfig
  800. @./mkconfig $(@:_config=) arm pxa innokom
  801. ixdp425_config : unconfig
  802. @./mkconfig $(@:_config=) arm ixp ixdp425
  803. lubbock_config : unconfig
  804. @./mkconfig $(@:_config=) arm pxa lubbock
  805. logodl_config : unconfig
  806. @./mkconfig $(@:_config=) arm pxa logodl
  807. wepep250_config : unconfig
  808. @./mkconfig $(@:_config=) arm pxa wepep250
  809. #========================================================================
  810. # i386
  811. #========================================================================
  812. #########################################################################
  813. ## AMD SC520 CDP
  814. #########################################################################
  815. sc520_cdp_config : unconfig
  816. @./mkconfig $(@:_config=) i386 i386 sc520_cdp
  817. sc520_spunk_config : unconfig
  818. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  819. sc520_spunk_rel_config : unconfig
  820. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  821. #========================================================================
  822. # MIPS
  823. #========================================================================
  824. #########################################################################
  825. ## MIPS32 4Kc
  826. #########################################################################
  827. xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
  828. incaip_100MHz_config \
  829. incaip_133MHz_config \
  830. incaip_150MHz_config \
  831. incaip_config: unconfig
  832. @ >include/config.h
  833. @[ -z "$(findstring _100MHz,$@)" ] || \
  834. { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
  835. echo "... with 100MHz system clock" ; \
  836. }
  837. @[ -z "$(findstring _133MHz,$@)" ] || \
  838. { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
  839. echo "... with 133MHz system clock" ; \
  840. }
  841. @[ -z "$(findstring _150MHz,$@)" ] || \
  842. { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
  843. echo "... with 150MHz system clock" ; \
  844. }
  845. @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
  846. tb0229_config: unconfig
  847. @./mkconfig $(@:_config=) mips mips tb0229
  848. #########################################################################
  849. ## MIPS64 5Kc
  850. #########################################################################
  851. purple_config : unconfig
  852. @./mkconfig $(@:_config=) mips mips purple
  853. #========================================================================
  854. # Nios
  855. #========================================================================
  856. #########################################################################
  857. ## Nios32
  858. #########################################################################
  859. DK1C20_safe_32_config \
  860. DK1C20_standard_32_config \
  861. DK1C20_config: unconfig
  862. @ >include/config.h
  863. @[ -z "$(findstring _safe_32,$@)" ] || \
  864. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  865. echo "... NIOS 'safe_32' configuration" ; \
  866. }
  867. @[ -z "$(findstring _standard_32,$@)" ] || \
  868. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  869. echo "... NIOS 'standard_32' configuration" ; \
  870. }
  871. @[ -z "$(findstring DK1C20_config,$@)" ] || \
  872. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  873. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  874. }
  875. @./mkconfig -a DK1C20 nios nios dk1c20 altera
  876. DK1S10_safe_32_config \
  877. DK1S10_standard_32_config \
  878. DK1S10_mtx_ldk_20_config \
  879. DK1S10_config: unconfig
  880. @ >include/config.h
  881. @[ -z "$(findstring _safe_32,$@)" ] || \
  882. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  883. echo "... NIOS 'safe_32' configuration" ; \
  884. }
  885. @[ -z "$(findstring _standard_32,$@)" ] || \
  886. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  887. echo "... NIOS 'standard_32' configuration" ; \
  888. }
  889. @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
  890. { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
  891. echo "... NIOS 'mtx_ldk_20' configuration" ; \
  892. }
  893. @[ -z "$(findstring DK1S10_config,$@)" ] || \
  894. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  895. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  896. }
  897. @./mkconfig -a DK1S10 nios nios dk1s10 altera
  898. #########################################################################
  899. ## MIPS32 AU1X00
  900. #########################################################################
  901. dbau1000_config : unconfig
  902. @ >include/config.h
  903. @echo "#define CONFIG_DBAU1000 1" >>include/config.h
  904. @./mkconfig -a dbau1x00 mips mips dbau1x00
  905. dbau1100_config : unconfig
  906. @ >include/config.h
  907. @echo "#define CONFIG_DBAU1100 1" >>include/config.h
  908. @./mkconfig -a dbau1x00 mips mips dbau1x00
  909. dbau1500_config : unconfig
  910. @ >include/config.h
  911. @echo "#define CONFIG_DBAU1500 1" >>include/config.h
  912. @./mkconfig -a dbau1x00 mips mips dbau1x00
  913. #########################################################################
  914. #########################################################################
  915. clean:
  916. find . -type f \
  917. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  918. -o -name '*.o' -o -name '*.a' \) -print \
  919. | xargs rm -f
  920. rm -f examples/hello_world examples/timer \
  921. examples/eepro100_eeprom examples/sched \
  922. examples/mem_to_mem_idma2intr examples/82559_eeprom
  923. rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
  924. rm -f tools/easylogo/easylogo tools/bmp_logo
  925. rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
  926. rm -f tools/env/fw_printenv tools/env/fw_setenv
  927. rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
  928. rm -f board/trab/trab_fkt board/*/config.tmp
  929. clobber: clean
  930. find . -type f \
  931. \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
  932. -print \
  933. | xargs rm -f
  934. rm -f $(OBJS) *.bak tags TAGS
  935. rm -fr *.*~
  936. rm -f u-boot u-boot.map $(ALL)
  937. rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
  938. rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
  939. rm -f include/asm/proc include/asm/arch include/asm
  940. mrproper \
  941. distclean: clobber unconfig
  942. backup:
  943. F=`basename $(TOPDIR)` ; cd .. ; \
  944. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  945. #########################################################################