Makefile 22 KB

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