Makefile 21 KB

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