Makefile 37 KB

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