Makefile 18 KB

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