Makefile 18 KB

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