Makefile 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180
  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_config \
  174. IceCube_5200_DDR_config \
  175. icecube_5200_DDR_LOWBOOT_config \
  176. icecube_5200_DDR_LOWBOOT08_config \
  177. icecube_5200_config \
  178. IceCube_5200_config \
  179. IceCube_5100_config: unconfig
  180. @ >include/config.h
  181. @[ -z "$(findstring LOWBOOT,$@)" ] || \
  182. { echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
  183. echo "... with LOWBOOT configuration" ; \
  184. }
  185. @[ -z "$(findstring LOWBOOT08,$@)" ] || \
  186. { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
  187. echo "... with 8 MB flash only" ; \
  188. }
  189. @[ -z "$(findstring DDR,$@)" ] || \
  190. { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
  191. echo "... DDR memory revision" ; \
  192. }
  193. @[ -z "$(findstring 5200,$@)" ] || \
  194. { echo "#define CONFIG_MPC5200" >>include/config.h ; \
  195. echo "... with MPC5200 processor" ; \
  196. }
  197. @[ -z "$(findstring 5100,$@)" ] || \
  198. { echo "#define CONFIG_MGT5100" >>include/config.h ; \
  199. echo "... with MGT5100 processor" ; \
  200. }
  201. @./mkconfig -a IceCube ppc mpc5xxx icecube
  202. MINI5200_config \
  203. EVAL5200_config \
  204. TOP5200_config: unconfig
  205. @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
  206. @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
  207. #########################################################################
  208. ## MPC8xx Systems
  209. #########################################################################
  210. AdderII_config: unconfig
  211. @./mkconfig $(@:_config=) ppc mpc8xx adderII
  212. ADS860_config \
  213. DUET_ADS_config \
  214. FADS823_config \
  215. FADS850SAR_config \
  216. MPC86xADS_config \
  217. FADS860T_config: unconfig
  218. @./mkconfig $(@:_config=) ppc mpc8xx fads
  219. AMX860_config : unconfig
  220. @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
  221. bms2003_config : unconfig
  222. @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
  223. c2mon_config: unconfig
  224. @./mkconfig $(@:_config=) ppc mpc8xx c2mon
  225. CCM_config: unconfig
  226. @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
  227. cogent_mpc8xx_config: unconfig
  228. @./mkconfig $(@:_config=) ppc mpc8xx cogent
  229. ELPT860_config: unconfig
  230. @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
  231. ESTEEM192E_config: unconfig
  232. @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
  233. ETX094_config : unconfig
  234. @./mkconfig $(@:_config=) ppc mpc8xx etx094
  235. FLAGADM_config: unconfig
  236. @./mkconfig $(@:_config=) ppc mpc8xx flagadm
  237. xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
  238. GEN860T_SC_config \
  239. GEN860T_config: unconfig
  240. @ >include/config.h
  241. @[ -z "$(findstring _SC,$@)" ] || \
  242. { echo "#define CONFIG_SC" >>include/config.h ; \
  243. echo "With reduced H/W feature set (SC)..." ; \
  244. }
  245. @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
  246. GENIETV_config: unconfig
  247. @./mkconfig $(@:_config=) ppc mpc8xx genietv
  248. GTH_config: unconfig
  249. @./mkconfig $(@:_config=) ppc mpc8xx gth
  250. hermes_config : unconfig
  251. @./mkconfig $(@:_config=) ppc mpc8xx hermes
  252. IAD210_config: unconfig
  253. @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
  254. xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
  255. ICU862_100MHz_config \
  256. ICU862_config: unconfig
  257. @ >include/config.h
  258. @[ -z "$(findstring _100MHz,$@)" ] || \
  259. { echo "#define CONFIG_100MHz" >>include/config.h ; \
  260. echo "... with 100MHz system clock" ; \
  261. }
  262. @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
  263. IP860_config : unconfig
  264. @./mkconfig $(@:_config=) ppc mpc8xx ip860
  265. IVML24_256_config \
  266. IVML24_128_config \
  267. IVML24_config: unconfig
  268. @ >include/config.h
  269. @[ -z "$(findstring IVML24_config,$@)" ] || \
  270. { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
  271. }
  272. @[ -z "$(findstring IVML24_128_config,$@)" ] || \
  273. { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
  274. }
  275. @[ -z "$(findstring IVML24_256_config,$@)" ] || \
  276. { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
  277. }
  278. @./mkconfig -a IVML24 ppc mpc8xx ivm
  279. IVMS8_256_config \
  280. IVMS8_128_config \
  281. IVMS8_config: unconfig
  282. @ >include/config.h
  283. @[ -z "$(findstring IVMS8_config,$@)" ] || \
  284. { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
  285. }
  286. @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
  287. { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
  288. }
  289. @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
  290. { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
  291. }
  292. @./mkconfig -a IVMS8 ppc mpc8xx ivm
  293. KUP4K_config : unconfig
  294. @./mkconfig $(@:_config=) ppc mpc8xx kup4k
  295. LANTEC_config : unconfig
  296. @./mkconfig $(@:_config=) ppc mpc8xx lantec
  297. lwmon_config: unconfig
  298. @./mkconfig $(@:_config=) ppc mpc8xx lwmon
  299. MBX_config \
  300. MBX860T_config: unconfig
  301. @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
  302. MHPC_config: unconfig
  303. @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
  304. MVS1_config : unconfig
  305. @./mkconfig $(@:_config=) ppc mpc8xx mvs1
  306. xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
  307. NETVIA_V2_config \
  308. NETVIA_config: unconfig
  309. @ >include/config.h
  310. @[ -z "$(findstring NETVIA_config,$@)" ] || \
  311. { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
  312. echo "... Version 1" ; \
  313. }
  314. @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
  315. { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
  316. echo "... Version 2" ; \
  317. }
  318. @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
  319. NX823_config: unconfig
  320. @./mkconfig $(@:_config=) ppc mpc8xx nx823
  321. pcu_e_config: unconfig
  322. @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
  323. QS850_config: unconfig
  324. @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
  325. QS823_config: unconfig
  326. @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
  327. QS860T_config: unconfig
  328. @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
  329. R360MPI_config: unconfig
  330. @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
  331. RBC823_config: unconfig
  332. @./mkconfig $(@:_config=) ppc mpc8xx rbc823
  333. RPXClassic_config: unconfig
  334. @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
  335. RPXlite_config: unconfig
  336. @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
  337. rmu_config: unconfig
  338. @./mkconfig $(@:_config=) ppc mpc8xx rmu
  339. RRvision_config: unconfig
  340. @./mkconfig $(@:_config=) ppc mpc8xx RRvision
  341. RRvision_LCD_config: unconfig
  342. @echo "#define CONFIG_LCD" >include/config.h
  343. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  344. @./mkconfig -a RRvision ppc mpc8xx RRvision
  345. SM850_config : unconfig
  346. @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
  347. SPD823TS_config: unconfig
  348. @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
  349. svm_sc8xx_config: unconfig
  350. @ >include/config.h
  351. @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
  352. SXNI855T_config: unconfig
  353. @./mkconfig $(@:_config=) ppc mpc8xx sixnet
  354. # EMK MPC8xx based modules
  355. TOP860_config: unconfig
  356. @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
  357. # Play some tricks for configuration selection
  358. # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
  359. # but only 855 and 860 boards may come with FEC
  360. # and 823 boards may have LCD support
  361. xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _133MHz,,$(subst _LCD,,$(subst _config,,$1))))))
  362. FPS850L_config \
  363. FPS860L_config \
  364. NSCU_config \
  365. TQM823L_config \
  366. TQM823L_66MHz_config \
  367. TQM823L_80MHz_config \
  368. TQM823L_LCD_config \
  369. TQM823L_LCD_66MHz_config \
  370. TQM823L_LCD_80MHz_config \
  371. TQM850L_config \
  372. TQM850L_66MHz_config \
  373. TQM850L_80MHz_config \
  374. TQM855L_config \
  375. TQM855L_66MHz_config \
  376. TQM855L_80MHz_config \
  377. TQM860L_config \
  378. TQM860L_66MHz_config \
  379. TQM860L_80MHz_config \
  380. TQM862L_config \
  381. TQM862L_66MHz_config \
  382. TQM862L_80MHz_config \
  383. TQM823M_config \
  384. TQM823M_66MHz_config \
  385. TQM823M_80MHz_config \
  386. TQM850M_config \
  387. TQM850M_66MHz_config \
  388. TQM850M_80MHz_config \
  389. TQM855M_config \
  390. TQM855M_66MHz_config \
  391. TQM855M_80MHz_config \
  392. TQM860M_config \
  393. TQM860M_66MHz_config \
  394. TQM860M_80MHz_config \
  395. TQM862M_config \
  396. TQM862M_66MHz_config \
  397. TQM862M_80MHz_config \
  398. TQM862M_100MHz_config \
  399. TQM866M_config: unconfig
  400. @ >include/config.h
  401. @[ -z "$(findstring _66MHz,$@)" ] || \
  402. { echo "#define CONFIG_66MHz" >>include/config.h ; \
  403. echo "... with 66MHz system clock" ; \
  404. }
  405. @[ -z "$(findstring _80MHz,$@)" ] || \
  406. { echo "#define CONFIG_80MHz" >>include/config.h ; \
  407. echo "... with 80MHz system clock" ; \
  408. }
  409. @[ -z "$(findstring _100MHz,$@)" ] || \
  410. { echo "#define CONFIG_100MHz" >>include/config.h ; \
  411. echo "... with 100MHz system clock" ; \
  412. }
  413. @[ -z "$(findstring _133MHz,$@)" ] || \
  414. { echo "#define CONFIG_133MHz" >>include/config.h ; \
  415. echo "... with 133MHz system clock" ; \
  416. }
  417. @[ -z "$(findstring _LCD,$@)" ] || \
  418. { echo "#define CONFIG_LCD" >>include/config.h ; \
  419. echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
  420. echo "... with LCD display" ; \
  421. }
  422. @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
  423. TTTech_config: unconfig
  424. @echo "#define CONFIG_LCD" >include/config.h
  425. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  426. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  427. v37_config: unconfig
  428. @echo "#define CONFIG_LCD" >include/config.h
  429. @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
  430. @./mkconfig $(@:_config=) ppc mpc8xx v37
  431. wtk_config: unconfig
  432. @echo "#define CONFIG_LCD" >include/config.h
  433. @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
  434. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  435. #########################################################################
  436. ## PPC4xx Systems
  437. #########################################################################
  438. xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
  439. ADCIOP_config: unconfig
  440. @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
  441. AR405_config: unconfig
  442. @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
  443. ASH405_config: unconfig
  444. @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
  445. BUBINGA405EP_config:unconfig
  446. @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
  447. CANBT_config: unconfig
  448. @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
  449. CPCI405_config \
  450. CPCI4052_config \
  451. CPCI405AB_config: unconfig
  452. @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
  453. @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
  454. CPCI440_config: unconfig
  455. @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
  456. CPCIISER4_config: unconfig
  457. @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
  458. CRAYL1_config:unconfig
  459. @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
  460. csb272_config: unconfig
  461. @./mkconfig $(@:_config=) ppc ppc4xx csb272
  462. DASA_SIM_config: unconfig
  463. @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
  464. DP405_config: unconfig
  465. @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
  466. DU405_config: unconfig
  467. @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
  468. EBONY_config:unconfig
  469. @./mkconfig $(@:_config=) ppc ppc4xx ebony
  470. ERIC_config:unconfig
  471. @./mkconfig $(@:_config=) ppc ppc4xx eric
  472. EXBITGEN_config:unconfig
  473. @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
  474. HUB405_config: unconfig
  475. @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
  476. MIP405_config:unconfig
  477. @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
  478. MIP405T_config:unconfig
  479. @echo "#define CONFIG_MIP405T" >include/config.h
  480. @echo "Enable subset config for MIP405T"
  481. @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
  482. ML2_config:unconfig
  483. @./mkconfig $(@:_config=) ppc ppc4xx ml2
  484. ml300_config:unconfig
  485. @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
  486. OCRTC_config \
  487. ORSG_config: unconfig
  488. @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
  489. PCI405_config: unconfig
  490. @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
  491. PIP405_config:unconfig
  492. @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
  493. PLU405_config: unconfig
  494. @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
  495. PMC405_config: unconfig
  496. @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
  497. PPChameleonEVB_MODEL_BA_config \
  498. PPChameleonEVB_MODEL_ME_config \
  499. PPChameleonEVB_MODEL_HI_config \
  500. PPChameleonEVB_config: unconfig
  501. @ >include/config.h
  502. @[ -z "$(findstring _MODEL_BA,$@)" ] || \
  503. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
  504. echo "... BASIC model" ; \
  505. }
  506. @[ -z "$(findstring _MODEL_ME,$@)" ] || \
  507. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
  508. echo "... MEDIUM model" ; \
  509. }
  510. @[ -z "$(findstring _MODEL_HI,$@)" ] || \
  511. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
  512. echo "... HIGH-END model" ; \
  513. }
  514. @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  515. VOH405_config: unconfig
  516. @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
  517. W7OLMC_config \
  518. W7OLMG_config: unconfig
  519. @./mkconfig $(@:_config=) ppc ppc4xx w7o
  520. WALNUT405_config:unconfig
  521. @./mkconfig $(@:_config=) ppc ppc4xx walnut405
  522. XPEDITE1K_config:unconfig
  523. @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
  524. #########################################################################
  525. ## MPC824x Systems
  526. #########################################################################
  527. xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
  528. A3000_config: unconfig
  529. @./mkconfig $(@:_config=) ppc mpc824x a3000
  530. BMW_config: unconfig
  531. @./mkconfig $(@:_config=) ppc mpc824x bmw
  532. CPC45_config \
  533. CPC45_ROMBOOT_config: unconfig
  534. @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
  535. @cd ./include ; \
  536. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  537. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  538. echo "... booting from 8-bit flash" ; \
  539. else \
  540. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  541. echo "... booting from 64-bit flash" ; \
  542. fi; \
  543. echo "export CONFIG_BOOT_ROM" >> config.mk;
  544. CU824_config: unconfig
  545. @./mkconfig $(@:_config=) ppc mpc824x cu824
  546. eXalion_config: unconfig
  547. @./mkconfig $(@:_config=) ppc mpc824x eXalion
  548. MOUSSE_config: unconfig
  549. @./mkconfig $(@:_config=) ppc mpc824x mousse
  550. MUSENKI_config: unconfig
  551. @./mkconfig $(@:_config=) ppc mpc824x musenki
  552. MVBLUE_config: unconfig
  553. @./mkconfig $(@:_config=) ppc mpc824x mvblue
  554. OXC_config: unconfig
  555. @./mkconfig $(@:_config=) ppc mpc824x oxc
  556. PN62_config: unconfig
  557. @./mkconfig $(@:_config=) ppc mpc824x pn62
  558. Sandpoint8240_config: unconfig
  559. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  560. Sandpoint8245_config: unconfig
  561. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  562. SL8245_config: unconfig
  563. @./mkconfig $(@:_config=) ppc mpc824x sl8245
  564. utx8245_config: unconfig
  565. @./mkconfig $(@:_config=) ppc mpc824x utx8245
  566. #########################################################################
  567. ## MPC8260 Systems
  568. #########################################################################
  569. atc_config: unconfig
  570. @./mkconfig $(@:_config=) ppc mpc8260 atc
  571. cogent_mpc8260_config: unconfig
  572. @./mkconfig $(@:_config=) ppc mpc8260 cogent
  573. CPU86_config \
  574. CPU86_ROMBOOT_config: unconfig
  575. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
  576. @cd ./include ; \
  577. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  578. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  579. echo "... booting from 8-bit flash" ; \
  580. else \
  581. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  582. echo "... booting from 64-bit flash" ; \
  583. fi; \
  584. echo "export CONFIG_BOOT_ROM" >> config.mk;
  585. ep8260_config: unconfig
  586. @./mkconfig $(@:_config=) ppc mpc8260 ep8260
  587. gw8260_config: unconfig
  588. @./mkconfig $(@:_config=) ppc mpc8260 gw8260
  589. hymod_config: unconfig
  590. @./mkconfig $(@:_config=) ppc mpc8260 hymod
  591. IPHASE4539_config: unconfig
  592. @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
  593. MPC8260ADS_config: unconfig
  594. @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
  595. MPC8266ADS_config: unconfig
  596. @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
  597. PM825_config \
  598. PM825_ROMBOOT_config: unconfig
  599. @echo "#define CONFIG_PCI" >include/config.h
  600. @./mkconfig -a PM826 ppc mpc8260 pm826
  601. @cd ./include ; \
  602. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  603. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  604. echo "... booting from 8-bit flash" ; \
  605. else \
  606. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  607. echo "... booting from 64-bit flash" ; \
  608. fi; \
  609. echo "export CONFIG_BOOT_ROM" >> config.mk; \
  610. PM826_config \
  611. PM826_ROMBOOT_config: unconfig
  612. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
  613. @cd ./include ; \
  614. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  615. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  616. echo "... booting from 8-bit flash" ; \
  617. else \
  618. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  619. echo "... booting from 64-bit flash" ; \
  620. fi; \
  621. echo "export CONFIG_BOOT_ROM" >> config.mk; \
  622. ppmc8260_config: unconfig
  623. @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
  624. RPXsuper_config: unconfig
  625. @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
  626. rsdproto_config: unconfig
  627. @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
  628. sacsng_config: unconfig
  629. @./mkconfig $(@:_config=) ppc mpc8260 sacsng
  630. sbc8260_config: unconfig
  631. @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
  632. SCM_config: unconfig
  633. @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
  634. TQM8255_AA_config \
  635. TQM8260_AA_config \
  636. TQM8260_AB_config \
  637. TQM8260_AC_config \
  638. TQM8260_AD_config \
  639. TQM8260_AE_config \
  640. TQM8260_AF_config \
  641. TQM8260_AG_config \
  642. TQM8260_AH_config \
  643. TQM8265_AA_config: unconfig
  644. @case "$@" in \
  645. TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
  646. TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
  647. TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  648. TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  649. TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  650. TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
  651. TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  652. TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
  653. TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
  654. TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
  655. esac; \
  656. >include/config.h ; \
  657. if [ "$${CTYPE}" != "MPC8260" ] ; then \
  658. echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
  659. fi; \
  660. echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
  661. echo "... with $${CFREQ}MHz system clock" ; \
  662. if [ "$${CACHE}" == "yes" ] ; then \
  663. echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
  664. echo "... with L2 Cache support" ; \
  665. else \
  666. echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
  667. echo "... without L2 Cache support" ; \
  668. fi; \
  669. if [ "$${BMODE}" == "60x" ] ; then \
  670. echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
  671. echo "... with 60x Bus Mode" ; \
  672. else \
  673. echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
  674. echo "... without 60x Bus Mode" ; \
  675. fi
  676. @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
  677. ZPC1900_config: unconfig
  678. @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
  679. #========================================================================
  680. # M68K
  681. #========================================================================
  682. #########################################################################
  683. ## Coldfire
  684. #########################################################################
  685. M5272C3_config : unconfig
  686. @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
  687. M5282EVB_config : unconfig
  688. @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
  689. #########################################################################
  690. ## MPC85xx Systems
  691. #########################################################################
  692. MPC8540ADS_config: unconfig
  693. @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
  694. MPC8560ADS_config: unconfig
  695. @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
  696. #########################################################################
  697. ## 74xx/7xx Systems
  698. #########################################################################
  699. AmigaOneG3SE_config: unconfig
  700. @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
  701. BAB7xx_config: unconfig
  702. @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
  703. DB64360_config: unconfig
  704. @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
  705. DB64460_config: unconfig
  706. @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
  707. debris_config: unconfig
  708. @./mkconfig $(@:_config=) ppc mpc824x debris etin
  709. ELPPC_config: unconfig
  710. @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
  711. EVB64260_config \
  712. EVB64260_750CX_config: unconfig
  713. @./mkconfig EVB64260 ppc 74xx_7xx evb64260
  714. P3G4_config: unconfig
  715. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  716. PCIPPC2_config \
  717. PCIPPC6_config: unconfig
  718. @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
  719. ZUMA_config: unconfig
  720. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  721. #========================================================================
  722. # ARM
  723. #========================================================================
  724. #########################################################################
  725. ## StrongARM Systems
  726. #########################################################################
  727. at91rm9200dk_config : unconfig
  728. @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
  729. lart_config : unconfig
  730. @./mkconfig $(@:_config=) arm sa1100 lart
  731. dnp1110_config : unconfig
  732. @./mkconfig $(@:_config=) arm sa1100 dnp1110
  733. shannon_config : unconfig
  734. @./mkconfig $(@:_config=) arm sa1100 shannon
  735. #########################################################################
  736. ## ARM92xT Systems
  737. #########################################################################
  738. xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
  739. xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
  740. omap1510inn_config : unconfig
  741. @./mkconfig $(@:_config=) arm arm925t omap1510inn
  742. omap1610inn_config \
  743. omap1610inn_cs0boot_config \
  744. omap1610inn_cs3boot_config \
  745. omap1610h2_config \
  746. omap1610h2_cs0boot_config \
  747. omap1610h2_cs3boot_config : unconfig
  748. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  749. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  750. echo "Configured for CS0 boot"; \
  751. else \
  752. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  753. echo "Configured for CS3 boot"; \
  754. fi;
  755. @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
  756. smdk2400_config : unconfig
  757. @./mkconfig $(@:_config=) arm arm920t smdk2400
  758. smdk2410_config : unconfig
  759. @./mkconfig $(@:_config=) arm arm920t smdk2410
  760. # TRAB default configuration: 8 MB Flash, 32 MB RAM
  761. trab_config \
  762. trab_bigram_config \
  763. trab_bigflash_config \
  764. trab_old_config: unconfig
  765. @ >include/config.h
  766. @[ -z "$(findstring _bigram,$@)" ] || \
  767. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  768. echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
  769. echo "... with 8 MB Flash, 32 MB RAM" ; \
  770. }
  771. @[ -z "$(findstring _bigflash,$@)" ] || \
  772. { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
  773. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  774. echo "... with 16 MB Flash, 16 MB RAM" ; \
  775. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  776. }
  777. @[ -z "$(findstring _old,$@)" ] || \
  778. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  779. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  780. echo "... with 8 MB Flash, 16 MB RAM" ; \
  781. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  782. }
  783. @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
  784. VCMA9_config : unconfig
  785. @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
  786. #########################################################################
  787. ## S3C44B0 Systems
  788. #########################################################################
  789. B2_config : unconfig
  790. @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
  791. #########################################################################
  792. ## ARM720T Systems
  793. #########################################################################
  794. impa7_config : unconfig
  795. @./mkconfig $(@:_config=) arm arm720t impa7
  796. ep7312_config : unconfig
  797. @./mkconfig $(@:_config=) arm arm720t ep7312
  798. modnet50_config : unconfig
  799. @./mkconfig $(@:_config=) arm arm720t modnet50
  800. #########################################################################
  801. ## XScale Systems
  802. #########################################################################
  803. cradle_config : unconfig
  804. @./mkconfig $(@:_config=) arm pxa cradle
  805. csb226_config : unconfig
  806. @./mkconfig $(@:_config=) arm pxa csb226
  807. innokom_config : unconfig
  808. @./mkconfig $(@:_config=) arm pxa innokom
  809. ixdp425_config : unconfig
  810. @./mkconfig $(@:_config=) arm ixp ixdp425
  811. lubbock_config : unconfig
  812. @./mkconfig $(@:_config=) arm pxa lubbock
  813. logodl_config : unconfig
  814. @./mkconfig $(@:_config=) arm pxa logodl
  815. wepep250_config : unconfig
  816. @./mkconfig $(@:_config=) arm pxa wepep250
  817. #========================================================================
  818. # i386
  819. #========================================================================
  820. #########################################################################
  821. ## AMD SC520 CDP
  822. #########################################################################
  823. sc520_cdp_config : unconfig
  824. @./mkconfig $(@:_config=) i386 i386 sc520_cdp
  825. sc520_spunk_config : unconfig
  826. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  827. sc520_spunk_rel_config : unconfig
  828. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  829. #========================================================================
  830. # MIPS
  831. #========================================================================
  832. #########################################################################
  833. ## MIPS32 4Kc
  834. #########################################################################
  835. xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
  836. incaip_100MHz_config \
  837. incaip_133MHz_config \
  838. incaip_150MHz_config \
  839. incaip_config: unconfig
  840. @ >include/config.h
  841. @[ -z "$(findstring _100MHz,$@)" ] || \
  842. { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
  843. echo "... with 100MHz system clock" ; \
  844. }
  845. @[ -z "$(findstring _133MHz,$@)" ] || \
  846. { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
  847. echo "... with 133MHz system clock" ; \
  848. }
  849. @[ -z "$(findstring _150MHz,$@)" ] || \
  850. { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
  851. echo "... with 150MHz system clock" ; \
  852. }
  853. @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
  854. tb0229_config: unconfig
  855. @./mkconfig $(@:_config=) mips mips tb0229
  856. #########################################################################
  857. ## MIPS64 5Kc
  858. #########################################################################
  859. purple_config : unconfig
  860. @./mkconfig $(@:_config=) mips mips purple
  861. #========================================================================
  862. # Nios
  863. #========================================================================
  864. #########################################################################
  865. ## Nios32
  866. #########################################################################
  867. DK1C20_safe_32_config \
  868. DK1C20_standard_32_config \
  869. DK1C20_config: unconfig
  870. @ >include/config.h
  871. @[ -z "$(findstring _safe_32,$@)" ] || \
  872. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  873. echo "... NIOS 'safe_32' configuration" ; \
  874. }
  875. @[ -z "$(findstring _standard_32,$@)" ] || \
  876. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  877. echo "... NIOS 'standard_32' configuration" ; \
  878. }
  879. @[ -z "$(findstring DK1C20_config,$@)" ] || \
  880. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  881. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  882. }
  883. @./mkconfig -a DK1C20 nios nios dk1c20 altera
  884. DK1S10_safe_32_config \
  885. DK1S10_standard_32_config \
  886. DK1S10_mtx_ldk_20_config \
  887. DK1S10_config: unconfig
  888. @ >include/config.h
  889. @[ -z "$(findstring _safe_32,$@)" ] || \
  890. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  891. echo "... NIOS 'safe_32' configuration" ; \
  892. }
  893. @[ -z "$(findstring _standard_32,$@)" ] || \
  894. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  895. echo "... NIOS 'standard_32' configuration" ; \
  896. }
  897. @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
  898. { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
  899. echo "... NIOS 'mtx_ldk_20' configuration" ; \
  900. }
  901. @[ -z "$(findstring DK1S10_config,$@)" ] || \
  902. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  903. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  904. }
  905. @./mkconfig -a DK1S10 nios nios dk1s10 altera
  906. #########################################################################
  907. ## MIPS32 AU1X00
  908. #########################################################################
  909. dbau1000_config : unconfig
  910. @ >include/config.h
  911. @echo "#define CONFIG_DBAU1000 1" >>include/config.h
  912. @./mkconfig -a dbau1x00 mips mips dbau1x00
  913. dbau1100_config : unconfig
  914. @ >include/config.h
  915. @echo "#define CONFIG_DBAU1100 1" >>include/config.h
  916. @./mkconfig -a dbau1x00 mips mips dbau1x00
  917. dbau1500_config : unconfig
  918. @ >include/config.h
  919. @echo "#define CONFIG_DBAU1500 1" >>include/config.h
  920. @./mkconfig -a dbau1x00 mips mips dbau1x00
  921. #########################################################################
  922. #########################################################################
  923. clean:
  924. find . -type f \
  925. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  926. -o -name '*.o' -o -name '*.a' \) -print \
  927. | xargs rm -f
  928. rm -f examples/hello_world examples/timer \
  929. examples/eepro100_eeprom examples/sched \
  930. examples/mem_to_mem_idma2intr examples/82559_eeprom
  931. rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
  932. rm -f tools/easylogo/easylogo tools/bmp_logo
  933. rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
  934. rm -f tools/env/fw_printenv tools/env/fw_setenv
  935. rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
  936. rm -f board/trab/trab_fkt board/*/config.tmp
  937. clobber: clean
  938. find . -type f \
  939. \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
  940. -print \
  941. | xargs rm -f
  942. rm -f $(OBJS) *.bak tags TAGS
  943. rm -fr *.*~
  944. rm -f u-boot u-boot.map $(ALL)
  945. rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
  946. rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
  947. rm -f include/asm/proc include/asm/arch include/asm
  948. mrproper \
  949. distclean: clobber unconfig
  950. backup:
  951. F=`basename $(TOPDIR)` ; cd .. ; \
  952. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  953. #########################################################################