Makefile 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. #
  2. # (C) Copyright 2000, 2001, 2002
  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 ($(CPU),mpc8xx)
  49. ## CROSS_COMPILE = ppc_8xx-
  50. ## #endif
  51. ## #ifeq ($(CPU),ppc4xx)
  52. ## #CROSS_COMPILE = ppc_4xx-
  53. ## #endif
  54. ## #ifeq ($(CPU),mpc824x)
  55. ## #CROSS_COMPILE = ppc_82xx-
  56. ## #endif
  57. ## #ifeq ($(CPU),mpc8260)
  58. ## #CROSS_COMPILE = ppc_82xx-
  59. ## #endif
  60. ## #ifeq ($(CPU),74xx_7xx)
  61. ## #CROSS_COMPILE = ppc_74xx-)
  62. ## #endif
  63. ifeq ($(ARCH),ppc)
  64. CROSS_COMPILE = ppc_8xx-
  65. endif
  66. ifeq ($(ARCH),arm)
  67. CROSS_COMPILE = arm_920TDI-
  68. endif
  69. ifeq ($(ARCH),i386)
  70. #CROSS_COMPILE = i386-elf-
  71. endif
  72. ifeq ($(ARCH),mips)
  73. CROSS_COMPILE = mips_4KC-
  74. endif
  75. endif
  76. endif
  77. export CROSS_COMPILE
  78. # The "tools" are needed early, so put this first
  79. SUBDIRS = tools \
  80. lib_generic \
  81. lib_$(ARCH) \
  82. cpu/$(CPU) \
  83. board/$(BOARDDIR) \
  84. common \
  85. disk \
  86. fs \
  87. net \
  88. rtc \
  89. dtt \
  90. drivers \
  91. post \
  92. post/cpu \
  93. examples
  94. #########################################################################
  95. # U-Boot objects....order is important (i.e. start must be first)
  96. OBJS = cpu/$(CPU)/start.o
  97. ifeq ($(CPU),i386)
  98. OBJS += cpu/$(CPU)/start16.o
  99. OBJS += cpu/$(CPU)/reset.o
  100. endif
  101. ifeq ($(CPU),ppc4xx)
  102. OBJS += cpu/$(CPU)/resetvec.o
  103. endif
  104. LIBS = board/$(BOARDDIR)/lib$(BOARD).a
  105. LIBS += cpu/$(CPU)/lib$(CPU).a
  106. LIBS += lib_$(ARCH)/lib$(ARCH).a
  107. LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a
  108. LIBS += net/libnet.a
  109. LIBS += disk/libdisk.a
  110. LIBS += rtc/librtc.a
  111. LIBS += dtt/libdtt.a
  112. LIBS += drivers/libdrivers.a
  113. LIBS += post/libpost.a post/cpu/libcpu.a
  114. LIBS += common/libcommon.a
  115. LIBS += lib_generic/libgeneric.a
  116. #########################################################################
  117. all: u-boot.srec u-boot.bin System.map
  118. install: all
  119. -cp u-boot.bin /tftpboot/u-boot.bin
  120. -cp u-boot.bin /net/denx/tftpboot/u-boot.bin
  121. u-boot.srec: u-boot
  122. $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
  123. u-boot.bin: u-boot
  124. $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
  125. u-boot.dis: u-boot
  126. $(OBJDUMP) -d $< > $@
  127. u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
  128. $(LD) $(LDFLAGS) $(OBJS) \
  129. --start-group $(LIBS) --end-group \
  130. -Map u-boot.map -o u-boot
  131. subdirs:
  132. @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
  133. depend dep:
  134. @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
  135. tags:
  136. ctags -w `find $(SUBDIRS) include \
  137. \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
  138. etags:
  139. etags -a `find $(SUBDIRS) include \
  140. \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
  141. System.map: u-boot
  142. @$(NM) $< | \
  143. grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
  144. sort > System.map
  145. #########################################################################
  146. else
  147. all install u-boot u-boot.srec depend dep:
  148. @echo "System not configured - see README" >&2
  149. @ exit 1
  150. endif
  151. #########################################################################
  152. unconfig:
  153. rm -f include/config.h include/config.mk
  154. #========================================================================
  155. # PowerPC
  156. #========================================================================
  157. #########################################################################
  158. ## MPC8xx Systems
  159. #########################################################################
  160. ADS860_config: unconfig
  161. @./mkconfig $(@:_config=) ppc mpc8xx fads
  162. AMX860_config : unconfig
  163. @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
  164. c2mon_config: unconfig
  165. @./mkconfig $(@:_config=) ppc mpc8xx c2mon
  166. CCM_config: unconfig
  167. @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
  168. cogent_mpc8xx_config: unconfig
  169. @./mkconfig $(@:_config=) ppc mpc8xx cogent
  170. ESTEEM192E_config: unconfig
  171. @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
  172. ETX094_config : unconfig
  173. @./mkconfig $(@:_config=) ppc mpc8xx etx094
  174. FADS823_config \
  175. FADS850SAR_config \
  176. FADS860T_config: unconfig
  177. @./mkconfig $(@:_config=) ppc mpc8xx fads
  178. FLAGADM_config: unconfig
  179. @./mkconfig $(@:_config=) ppc mpc8xx flagadm
  180. GEN860T_config: unconfig
  181. @./mkconfig $(@:_config=) ppc mpc8xx gen860t
  182. GENIETV_config: unconfig
  183. @./mkconfig $(@:_config=) ppc mpc8xx genietv
  184. GTH_config: unconfig
  185. @./mkconfig $(@:_config=) ppc mpc8xx gth
  186. hermes_config : unconfig
  187. @./mkconfig $(@:_config=) ppc mpc8xx hermes
  188. IAD210_config: unconfig
  189. @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
  190. xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
  191. ICU862_100MHz_config \
  192. ICU862_config: unconfig
  193. @ >include/config.h
  194. @[ -z "$(findstring _100MHz,$@)" ] || \
  195. { echo "#define CONFIG_100MHz" >>include/config.h ; \
  196. echo "... with 100MHz system clock" ; \
  197. }
  198. @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
  199. IP860_config : unconfig
  200. @./mkconfig $(@:_config=) ppc mpc8xx ip860
  201. IVML24_256_config \
  202. IVML24_128_config \
  203. IVML24_config: unconfig
  204. @ >include/config.h
  205. @[ -z "$(findstring IVML24_config,$@)" ] || \
  206. { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
  207. }
  208. @[ -z "$(findstring IVML24_128_config,$@)" ] || \
  209. { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
  210. }
  211. @[ -z "$(findstring IVML24_256_config,$@)" ] || \
  212. { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
  213. }
  214. @./mkconfig -a IVML24 ppc mpc8xx ivm
  215. IVMS8_256_config \
  216. IVMS8_128_config \
  217. IVMS8_config: unconfig
  218. @ >include/config.h
  219. @[ -z "$(findstring IVMS8_config,$@)" ] || \
  220. { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
  221. }
  222. @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
  223. { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
  224. }
  225. @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
  226. { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
  227. }
  228. @./mkconfig -a IVMS8 ppc mpc8xx ivm
  229. KUP4K_config : unconfig
  230. @./mkconfig $(@:_config=) ppc mpc8xx kup4k
  231. LANTEC_config : unconfig
  232. @./mkconfig $(@:_config=) ppc mpc8xx lantec
  233. lwmon_config: unconfig
  234. @./mkconfig $(@:_config=) ppc mpc8xx lwmon
  235. MBX_config \
  236. MBX860T_config: unconfig
  237. @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
  238. MHPC_config: unconfig
  239. @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
  240. MVS1_config : unconfig
  241. @./mkconfig $(@:_config=) ppc mpc8xx mvs1
  242. NETVIA_config: unconfig
  243. @./mkconfig $(@:_config=) ppc mpc8xx netvia
  244. NX823_config: unconfig
  245. @./mkconfig $(@:_config=) ppc mpc8xx nx823
  246. pcu_e_config: unconfig
  247. @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
  248. R360MPI_config: unconfig
  249. @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
  250. RPXClassic_config: unconfig
  251. @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
  252. RPXlite_config: unconfig
  253. @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
  254. RRvision_config: unconfig
  255. @./mkconfig $(@:_config=) ppc mpc8xx RRvision
  256. RRvision_LCD_config: unconfig
  257. @echo "#define CONFIG_LCD" >include/config.h
  258. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  259. @./mkconfig -a RRvision ppc mpc8xx RRvision
  260. SM850_config : unconfig
  261. @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
  262. SPD823TS_config: unconfig
  263. @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
  264. SXNI855T_config: unconfig
  265. @./mkconfig $(@:_config=) ppc mpc8xx sixnet
  266. # Play some tricks for configuration selection
  267. # All boards can come with 50 MHz (default), 66MHz or 80MHz clock,
  268. # but only 855 and 860 boards may come with FEC
  269. # and 823 boards may have LCD support
  270. xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _LCD,,$(subst _FEC,,$(subst _config,,$1)))))
  271. FPS850L_config \
  272. FPS860L_config \
  273. TQM823L_config \
  274. TQM823L_66MHz_config \
  275. TQM823L_80MHz_config \
  276. TQM823L_LCD_config \
  277. TQM823L_LCD_66MHz_config \
  278. TQM823L_LCD_80MHz_config \
  279. TQM850L_config \
  280. TQM850L_66MHz_config \
  281. TQM850L_80MHz_config \
  282. TQM855L_config \
  283. TQM855L_66MHz_config \
  284. TQM855L_80MHz_config \
  285. TQM855L_FEC_config \
  286. TQM855L_FEC_66MHz_config \
  287. TQM855L_FEC_80MHz_config \
  288. TQM860L_config \
  289. TQM860L_66MHz_config \
  290. TQM860L_80MHz_config \
  291. TQM860L_FEC_config \
  292. TQM860L_FEC_66MHz_config \
  293. TQM860L_FEC_80MHz_config: unconfig
  294. @ >include/config.h
  295. @[ -z "$(findstring _FEC,$@)" ] || \
  296. { echo "#define CONFIG_FEC_ENET" >>include/config.h ; \
  297. echo "... with FEC support" ; \
  298. }
  299. @[ -z "$(findstring _66MHz,$@)" ] || \
  300. { echo "#define CONFIG_66MHz" >>include/config.h ; \
  301. echo "... with 66MHz system clock" ; \
  302. }
  303. @[ -z "$(findstring _80MHz,$@)" ] || \
  304. { echo "#define CONFIG_80MHz" >>include/config.h ; \
  305. echo "... with 80MHz system clock" ; \
  306. }
  307. @[ -z "$(findstring _LCD,$@)" ] || \
  308. { echo "#define CONFIG_LCD" >>include/config.h ; \
  309. echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
  310. echo "... with LCD display" ; \
  311. }
  312. @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
  313. TTTech_config: unconfig
  314. @echo "#define CONFIG_LCD" >include/config.h
  315. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  316. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  317. v37_config: unconfig
  318. @echo "#define CONFIG_LCD" >include/config.h
  319. @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
  320. @./mkconfig $(@:_config=) ppc mpc8xx v37
  321. #########################################################################
  322. ## PPC4xx Systems
  323. #########################################################################
  324. ADCIOP_config: unconfig
  325. @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
  326. AR405_config: unconfig
  327. @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
  328. CANBT_config: unconfig
  329. @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
  330. CPCI405_config \
  331. CPCI4052_config: unconfig
  332. @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
  333. @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
  334. CPCI440_config: unconfig
  335. @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
  336. CPCIISER4_config: unconfig
  337. @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
  338. CRAYL1_config:unconfig
  339. @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
  340. DASA_SIM_config: unconfig
  341. @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
  342. DU405_config: unconfig
  343. @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
  344. EBONY_config:unconfig
  345. @./mkconfig $(@:_config=) ppc ppc4xx ebony
  346. ERIC_config:unconfig
  347. @./mkconfig $(@:_config=) ppc ppc4xx eric
  348. MIP405_config:unconfig
  349. @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
  350. ML2_config:unconfig
  351. @./mkconfig $(@:_config=) ppc ppc4xx ml2
  352. OCRTC_config \
  353. ORSG_config: unconfig
  354. @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
  355. PCI405_config: unconfig
  356. @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
  357. PIP405_config:unconfig
  358. @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
  359. W7OLMC_config \
  360. W7OLMG_config: unconfig
  361. @./mkconfig $(@:_config=) ppc ppc4xx w7o
  362. WALNUT405_config:unconfig
  363. @./mkconfig $(@:_config=) ppc ppc4xx walnut405
  364. #########################################################################
  365. ## MPC824x Systems
  366. #########################################################################
  367. BMW_config: unconfig
  368. @./mkconfig $(@:_config=) ppc mpc824x bmw
  369. CU824_config: unconfig
  370. @./mkconfig $(@:_config=) ppc mpc824x cu824
  371. MOUSSE_config: unconfig
  372. @./mkconfig $(@:_config=) ppc mpc824x mousse
  373. MUSENKI_config: unconfig
  374. @./mkconfig $(@:_config=) ppc mpc824x musenki
  375. OXC_config: unconfig
  376. @./mkconfig $(@:_config=) ppc mpc824x oxc
  377. PN62_config: unconfig
  378. @./mkconfig $(@:_config=) ppc mpc824x pn62
  379. Sandpoint8240_config: unconfig
  380. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  381. Sandpoint8245_config: unconfig
  382. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  383. utx8245_config: unconfig
  384. @./mkconfig $(@:_config=) ppc mpc824x utx8245
  385. #########################################################################
  386. ## MPC8260 Systems
  387. #########################################################################
  388. xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
  389. cogent_mpc8260_config: unconfig
  390. @./mkconfig $(@:_config=) ppc mpc8260 cogent
  391. CPU86_config \
  392. CPU86_ROMBOOT_config: unconfig
  393. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
  394. @cd ./include ; \
  395. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  396. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  397. echo "... booting from 8-bit flash" ; \
  398. else \
  399. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  400. echo "... booting from 64-bit flash" ; \
  401. fi; \
  402. echo "export CONFIG_BOOT_ROM" >> config.mk;
  403. ep8260_config: unconfig
  404. @./mkconfig $(@:_config=) ppc mpc8260 ep8260
  405. gw8260_config: unconfig
  406. @./mkconfig $(@:_config=) ppc mpc8260 gw8260
  407. hymod_config: unconfig
  408. @./mkconfig $(@:_config=) ppc mpc8260 hymod
  409. IPHASE4539_config: unconfig
  410. @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
  411. MPC8260ADS_config: unconfig
  412. @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
  413. PM826_config \
  414. PM826_ROMBOOT_config: unconfig
  415. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
  416. @cd ./include ; \
  417. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  418. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  419. echo "... booting from 8-bit flash" ; \
  420. else \
  421. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  422. echo "... booting from 64-bit flash" ; \
  423. fi; \
  424. echo "export CONFIG_BOOT_ROM" >> config.mk; \
  425. ppmc8260_config: unconfig
  426. @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
  427. RPXsuper_config: unconfig
  428. @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
  429. rsdproto_config: unconfig
  430. @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
  431. sacsng_config: unconfig
  432. @./mkconfig $(@:_config=) ppc mpc8260 sacsng
  433. sbc8260_config: unconfig
  434. @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
  435. SCM_config: unconfig
  436. @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
  437. TQM8260_config \
  438. TQM8260_L2_config \
  439. TQM8260_266MHz_config \
  440. TQM8260_L2_266MHz_config \
  441. TQM8260_300MHz_config: unconfig
  442. @ >include/config.h
  443. @if [ "$(findstring _L2_,$@)" ] ; then \
  444. echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
  445. echo "... with L2 Cache support (60x Bus Mode)" ; \
  446. else \
  447. echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
  448. echo "... without L2 Cache support" ; \
  449. fi
  450. @[ -z "$(findstring _266MHz,$@)" ] || \
  451. { echo "#define CONFIG_266MHz" >>include/config.h ; \
  452. echo "... with 266MHz system clock" ; \
  453. }
  454. @[ -z "$(findstring _300MHz,$@)" ] || \
  455. { echo "#define CONFIG_300MHz" >>include/config.h ; \
  456. echo "... with 300MHz system clock" ; \
  457. }
  458. @./mkconfig -a $(call xtract_82xx,$@) ppc mpc8260 tqm8260
  459. #########################################################################
  460. ## 74xx/7xx Systems
  461. #########################################################################
  462. AmigaOneG3SE_config: unconfig
  463. @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
  464. EVB64260_config \
  465. EVB64260_750CX_config: unconfig
  466. @./mkconfig EVB64260 ppc 74xx_7xx evb64260
  467. ZUMA_config: unconfig
  468. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  469. PCIPPC2_config \
  470. PCIPPC6_config: unconfig
  471. @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
  472. BAB7xx_config: unconfig
  473. @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
  474. ELPPC_config: unconfig
  475. @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
  476. #========================================================================
  477. # ARM
  478. #========================================================================
  479. #########################################################################
  480. ## StrongARM Systems
  481. #########################################################################
  482. lart_config : unconfig
  483. @./mkconfig $(@:_config=) arm sa1100 lart
  484. dnp1110_config : unconfig
  485. @./mkconfig $(@:_config=) arm sa1100 dnp1110
  486. shannon_config : unconfig
  487. @./mkconfig $(@:_config=) arm sa1100 shannon
  488. #########################################################################
  489. ## ARM920T Systems
  490. #########################################################################
  491. xtract_trab = $(subst _big_flash,,$(subst _config,,$1))
  492. smdk2400_config : unconfig
  493. @./mkconfig $(@:_config=) arm arm920t smdk2400
  494. smdk2410_config : unconfig
  495. @./mkconfig $(@:_config=) arm arm920t smdk2410
  496. trab_config \
  497. trab_big_flash_config: unconfig
  498. @ >include/config.h
  499. @[ -z "$(findstring _big_flash,$@)" ] || \
  500. { echo "#define CONFIG_BIG_FLASH" >>include/config.h ; \
  501. echo "... with big flash support" ; \
  502. }
  503. @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
  504. #########################################################################
  505. ## ARM720T Systems
  506. #########################################################################
  507. impa7_config : unconfig
  508. @./mkconfig $(@:_config=) arm arm720t impa7
  509. ep7312_config : unconfig
  510. @./mkconfig $(@:_config=) arm arm720t ep7312
  511. #########################################################################
  512. ## XScale Systems
  513. #########################################################################
  514. cradle_config : unconfig
  515. @./mkconfig $(@:_config=) arm xscale cradle
  516. csb226_config : unconfig
  517. @./mkconfig $(@:_config=) arm xscale csb226
  518. innokom_config : unconfig
  519. @./mkconfig $(@:_config=) arm xscale innokom
  520. lubbock_config : unconfig
  521. @./mkconfig $(@:_config=) arm xscale lubbock
  522. #========================================================================
  523. # i386
  524. #========================================================================
  525. #########################################################################
  526. ## AMD SC520 CDP
  527. #########################################################################
  528. sc520_cdp_config : unconfig
  529. @./mkconfig $(@:_config=) i386 i386 sc520_cdp
  530. #========================================================================
  531. # MIPS
  532. #========================================================================
  533. #########################################################################
  534. ## MIPS32 4Kc
  535. #########################################################################
  536. incaip_config : unconfig
  537. @./mkconfig $(@:_config=) mips mips incaip
  538. clean:
  539. find . -type f \
  540. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  541. -o -name '*.o' -o -name '*.a' \) -print \
  542. | xargs rm -f
  543. rm -f examples/hello_world examples/timer examples/eepro100_eeprom
  544. rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
  545. rm -f tools/easylogo/easylogo tools/bmp_logo
  546. rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
  547. rm -f tools/env/fw_printenv tools/env/fw_setenv
  548. clobber: clean
  549. find . -type f \
  550. \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
  551. -print \
  552. | xargs rm -f
  553. rm -f $(OBJS) *.bak tags TAGS
  554. rm -fr *.*~
  555. rm -f u-boot u-boot.bin u-boot.elf u-boot.srec u-boot.map System.map
  556. rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
  557. rm -f cpu/mpc824x/bedbug_603e.c
  558. rm -f include/asm/arch include/asm
  559. mrproper \
  560. distclean: clobber unconfig
  561. backup:
  562. F=`basename $(TOPDIR)` ; cd .. ; \
  563. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  564. #########################################################################