Makefile 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  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. TQM823L_config \
  259. TQM823L_66MHz_config \
  260. TQM823L_80MHz_config \
  261. TQM823L_LCD_config \
  262. TQM823L_LCD_66MHz_config \
  263. TQM823L_LCD_80MHz_config \
  264. TQM850L_config \
  265. TQM850L_66MHz_config \
  266. TQM850L_80MHz_config \
  267. TQM855L_config \
  268. TQM855L_66MHz_config \
  269. TQM855L_80MHz_config \
  270. TQM855L_FEC_config \
  271. TQM855L_FEC_66MHz_config \
  272. TQM855L_FEC_80MHz_config \
  273. TQM860L_config \
  274. TQM860L_66MHz_config \
  275. TQM860L_80MHz_config \
  276. TQM860L_FEC_config \
  277. TQM860L_FEC_66MHz_config \
  278. TQM860L_FEC_80MHz_config: unconfig
  279. @ >include/config.h
  280. @[ -z "$(findstring _FEC,$@)" ] || \
  281. { echo "#define CONFIG_FEC_ENET" >>include/config.h ; \
  282. echo "... with FEC support" ; \
  283. }
  284. @[ -z "$(findstring _66MHz,$@)" ] || \
  285. { echo "#define CONFIG_66MHz" >>include/config.h ; \
  286. echo "... with 66MHz system clock" ; \
  287. }
  288. @[ -z "$(findstring _80MHz,$@)" ] || \
  289. { echo "#define CONFIG_80MHz" >>include/config.h ; \
  290. echo "... with 80MHz system clock" ; \
  291. }
  292. @[ -z "$(findstring _LCD,$@)" ] || \
  293. { echo "#define CONFIG_LCD" >>include/config.h ; \
  294. echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
  295. echo "... with LCD display" ; \
  296. }
  297. @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
  298. TTTech_config: unconfig
  299. @echo "#define CONFIG_LCD" >include/config.h
  300. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  301. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  302. #########################################################################
  303. ## PPC4xx Systems
  304. #########################################################################
  305. ADCIOP_config: unconfig
  306. @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
  307. AR405_config: unconfig
  308. @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
  309. CANBT_config: unconfig
  310. @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
  311. CPCI405_config \
  312. CPCI4052_config: unconfig
  313. @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
  314. @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
  315. CPCI440_config: unconfig
  316. @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
  317. CPCIISER4_config: unconfig
  318. @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
  319. CRAYL1_config:unconfig
  320. @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
  321. DASA_SIM_config: unconfig
  322. @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
  323. DU405_config: unconfig
  324. @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
  325. EBONY_config:unconfig
  326. @./mkconfig $(@:_config=) ppc ppc4xx ebony
  327. ERIC_config:unconfig
  328. @./mkconfig $(@:_config=) ppc ppc4xx eric
  329. MIP405_config:unconfig
  330. @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
  331. ML2_config:unconfig
  332. @./mkconfig $(@:_config=) ppc ppc4xx ml2
  333. OCRTC_config \
  334. ORSG_config: unconfig
  335. @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
  336. PCI405_config: unconfig
  337. @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
  338. PIP405_config:unconfig
  339. @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
  340. W7OLMC_config \
  341. W7OLMG_config: unconfig
  342. @./mkconfig $(@:_config=) ppc ppc4xx w7o
  343. WALNUT405_config:unconfig
  344. @./mkconfig $(@:_config=) ppc ppc4xx walnut405
  345. #########################################################################
  346. ## MPC824x Systems
  347. #########################################################################
  348. BMW_config: unconfig
  349. @./mkconfig $(@:_config=) ppc mpc824x bmw
  350. CU824_config: unconfig
  351. @./mkconfig $(@:_config=) ppc mpc824x cu824
  352. MOUSSE_config: unconfig
  353. @./mkconfig $(@:_config=) ppc mpc824x mousse
  354. MUSENKI_config: unconfig
  355. @./mkconfig $(@:_config=) ppc mpc824x musenki
  356. OXC_config: unconfig
  357. @./mkconfig $(@:_config=) ppc mpc824x oxc
  358. PN62_config: unconfig
  359. @./mkconfig $(@:_config=) ppc mpc824x pn62
  360. Sandpoint8240_config: unconfig
  361. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  362. Sandpoint8245_config: unconfig
  363. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  364. utx8245_config: unconfig
  365. @./mkconfig $(@:_config=) ppc mpc824x utx8245
  366. #########################################################################
  367. ## MPC8260 Systems
  368. #########################################################################
  369. xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
  370. cogent_mpc8260_config: unconfig
  371. @./mkconfig $(@:_config=) ppc mpc8260 cogent
  372. CPU86_config \
  373. CPU86_ROMBOOT_config: unconfig
  374. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
  375. @cd ./include ; \
  376. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  377. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  378. echo "... booting from 8-bit flash" ; \
  379. else \
  380. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  381. echo "... booting from 64-bit flash" ; \
  382. fi; \
  383. echo "export CONFIG_BOOT_ROM" >> config.mk;
  384. ep8260_config: unconfig
  385. @./mkconfig $(@:_config=) ppc mpc8260 ep8260
  386. gw8260_config: unconfig
  387. @./mkconfig $(@:_config=) ppc mpc8260 gw8260
  388. hymod_config: unconfig
  389. @./mkconfig $(@:_config=) ppc mpc8260 hymod
  390. IPHASE4539_config: unconfig
  391. @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
  392. MPC8260ADS_config: unconfig
  393. @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
  394. PM826_config \
  395. PM826_ROMBOOT_config: unconfig
  396. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
  397. @cd ./include ; \
  398. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  399. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  400. echo "... booting from 8-bit flash" ; \
  401. else \
  402. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  403. echo "... booting from 64-bit flash" ; \
  404. fi; \
  405. echo "export CONFIG_BOOT_ROM" >> config.mk; \
  406. ppmc8260_config: unconfig
  407. @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
  408. RPXsuper_config: unconfig
  409. @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
  410. rsdproto_config: unconfig
  411. @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
  412. sacsng_config: unconfig
  413. @./mkconfig $(@:_config=) ppc mpc8260 sacsng
  414. sbc8260_config: unconfig
  415. @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
  416. SCM_config: unconfig
  417. @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
  418. TQM8260_config \
  419. TQM8260_L2_config \
  420. TQM8260_266MHz_config \
  421. TQM8260_L2_266MHz_config \
  422. TQM8260_300MHz_config: unconfig
  423. @ >include/config.h
  424. @if [ "$(findstring _L2_,$@)" ] ; then \
  425. echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
  426. echo "... with L2 Cache support (60x Bus Mode)" ; \
  427. else \
  428. echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
  429. echo "... without L2 Cache support" ; \
  430. fi
  431. @[ -z "$(findstring _266MHz,$@)" ] || \
  432. { echo "#define CONFIG_266MHz" >>include/config.h ; \
  433. echo "... with 266MHz system clock" ; \
  434. }
  435. @[ -z "$(findstring _300MHz,$@)" ] || \
  436. { echo "#define CONFIG_300MHz" >>include/config.h ; \
  437. echo "... with 300MHz system clock" ; \
  438. }
  439. @./mkconfig -a $(call xtract_82xx,$@) ppc mpc8260 tqm8260
  440. #########################################################################
  441. ## 74xx/7xx Systems
  442. #########################################################################
  443. EVB64260_config \
  444. EVB64260_750CX_config: unconfig
  445. @./mkconfig EVB64260 ppc 74xx_7xx evb64260
  446. ZUMA_config: unconfig
  447. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  448. PCIPPC2_config \
  449. PCIPPC6_config: unconfig
  450. @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
  451. BAB7xx_config: unconfig
  452. @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
  453. ELPPC_config: unconfig
  454. @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
  455. #========================================================================
  456. # ARM
  457. #========================================================================
  458. #########################################################################
  459. ## StrongARM Systems
  460. #########################################################################
  461. lart_config : unconfig
  462. @./mkconfig $(@:_config=) arm sa1100 lart
  463. dnp1110_config : unconfig
  464. @./mkconfig $(@:_config=) arm sa1100 dnp1110
  465. shannon_config : unconfig
  466. @./mkconfig $(@:_config=) arm sa1100 shannon
  467. #########################################################################
  468. ## ARM920T Systems
  469. #########################################################################
  470. smdk2400_config : unconfig
  471. @./mkconfig $(@:_config=) arm arm920t smdk2400
  472. smdk2410_config : unconfig
  473. @./mkconfig $(@:_config=) arm arm920t smdk2410
  474. trab_config : unconfig
  475. @./mkconfig $(@:_config=) arm arm920t trab
  476. #########################################################################
  477. ## ARM720T Systems
  478. #########################################################################
  479. impa7_config : unconfig
  480. @./mkconfig $(@:_config=) arm arm720t impa7
  481. ep7312_config : unconfig
  482. @./mkconfig $(@:_config=) arm arm720t ep7312
  483. #########################################################################
  484. ## Xscale Systems
  485. #########################################################################
  486. lubbock_config : unconfig
  487. @./mkconfig $(@:_config=) arm xscale lubbock
  488. cradle_config : unconfig
  489. @./mkconfig $(@:_config=) arm xscale cradle
  490. csb226_config : unconfig
  491. @./mkconfig $(@:_config=) arm xscale csb226
  492. #########################################################################
  493. clean:
  494. find . -type f \
  495. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  496. -o -name '*.o' -o -name '*.a' \) -print \
  497. | xargs rm -f
  498. rm -f examples/hello_world examples/timer examples/eepro100_eeprom
  499. rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
  500. rm -f tools/easylogo/easylogo tools/bmp_logo
  501. rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
  502. clobber: clean
  503. find . -type f \
  504. \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
  505. -print \
  506. | xargs rm -f
  507. rm -f $(OBJS) *.bak tags TAGS
  508. rm -fr *.*~
  509. rm -f u-boot u-boot.bin u-boot.elf u-boot.srec u-boot.map System.map
  510. rm -f tools/crc32.c tools/environment.c
  511. rm -f include/asm/arch include/asm
  512. mrproper \
  513. distclean: clobber unconfig
  514. backup:
  515. F=`basename $(TOPDIR)` ; cd .. ; \
  516. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  517. #########################################################################