Makefile 19 KB

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