Makefile 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779
  1. #
  2. # (C) Copyright 2000-2005
  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 '[:upper:]' '[:lower:]' | \
  31. sed -e 's/\(cygwin\).*/cygwin/')
  32. export HOSTARCH HOSTOS
  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 SOC
  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 = powerpc-linux-
  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. ifeq ($(ARCH),nios)
  65. CROSS_COMPILE = nios-elf-
  66. endif
  67. ifeq ($(ARCH),nios2)
  68. CROSS_COMPILE = nios2-elf-
  69. endif
  70. ifeq ($(ARCH),m68k)
  71. CROSS_COMPILE = m68k-elf-
  72. endif
  73. ifeq ($(ARCH),microblaze)
  74. CROSS_COMPILE = mb-
  75. endif
  76. endif
  77. endif
  78. export CROSS_COMPILE
  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. ifeq ($(CPU),mpc83xx)
  90. OBJS += cpu/$(CPU)/resetvec.o
  91. endif
  92. ifeq ($(CPU),mpc85xx)
  93. OBJS += cpu/$(CPU)/resetvec.o
  94. endif
  95. LIBS = lib_generic/libgeneric.a
  96. LIBS += board/$(BOARDDIR)/lib$(BOARD).a
  97. LIBS += cpu/$(CPU)/lib$(CPU).a
  98. ifdef SOC
  99. LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
  100. endif
  101. LIBS += lib_$(ARCH)/lib$(ARCH).a
  102. LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
  103. fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
  104. LIBS += net/libnet.a
  105. LIBS += disk/libdisk.a
  106. LIBS += rtc/librtc.a
  107. LIBS += dtt/libdtt.a
  108. LIBS += drivers/libdrivers.a
  109. LIBS += drivers/sk98lin/libsk98lin.a
  110. LIBS += post/libpost.a post/cpu/libcpu.a
  111. LIBS += common/libcommon.a
  112. .PHONY : $(LIBS)
  113. # Add GCC lib
  114. PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
  115. # The "tools" are needed early, so put this first
  116. # Don't include stuff already done in $(LIBS)
  117. SUBDIRS = tools \
  118. examples \
  119. post \
  120. post/cpu
  121. .PHONY : $(SUBDIRS)
  122. #########################################################################
  123. #########################################################################
  124. ALL = u-boot.srec u-boot.bin System.map
  125. all: $(ALL)
  126. u-boot.hex: u-boot
  127. $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
  128. u-boot.srec: u-boot
  129. $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
  130. u-boot.bin: u-boot
  131. $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
  132. u-boot.img: u-boot.bin
  133. ./tools/mkimage -A $(ARCH) -T firmware -C none \
  134. -a $(TEXT_BASE) -e 0 \
  135. -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
  136. sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
  137. -d $< $@
  138. u-boot.dis: u-boot
  139. $(OBJDUMP) -d $< > $@
  140. u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
  141. UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
  142. $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
  143. --start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
  144. -Map u-boot.map -o u-boot
  145. $(LIBS):
  146. $(MAKE) -C `dirname $@`
  147. $(SUBDIRS):
  148. $(MAKE) -C $@ all
  149. gdbtools:
  150. $(MAKE) -C tools/gdb || exit 1
  151. depend dep:
  152. @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
  153. tags:
  154. ctags -w `find $(SUBDIRS) include \
  155. lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
  156. fs/cramfs fs/fat fs/fdos fs/jffs2 \
  157. net disk rtc dtt drivers drivers/sk98lin common \
  158. \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
  159. etags:
  160. etags -a `find $(SUBDIRS) include \
  161. lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
  162. fs/cramfs fs/fat fs/fdos fs/jffs2 \
  163. net disk rtc dtt drivers drivers/sk98lin common \
  164. \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
  165. System.map: u-boot
  166. @$(NM) $< | \
  167. grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
  168. sort > System.map
  169. #########################################################################
  170. else
  171. all install u-boot u-boot.srec depend dep:
  172. @echo "System not configured - see README" >&2
  173. @ exit 1
  174. endif
  175. #########################################################################
  176. unconfig:
  177. @rm -f include/config.h include/config.mk board/*/config.tmp
  178. #========================================================================
  179. # PowerPC
  180. #========================================================================
  181. #########################################################################
  182. ## MPC5xx Systems
  183. #########################################################################
  184. canmb_config: unconfig
  185. @./mkconfig -a canmb ppc mpc5xxx canmb
  186. cmi_mpc5xx_config: unconfig
  187. @./mkconfig $(@:_config=) ppc mpc5xx cmi
  188. PATI_config: unconfig
  189. @./mkconfig $(@:_config=) ppc mpc5xx pati mpl
  190. #########################################################################
  191. ## MPC5xxx Systems
  192. #########################################################################
  193. aev_config: unconfig
  194. @./mkconfig -a aev ppc mpc5xxx tqm5200
  195. cpci5200_config: unconfig
  196. @./mkconfig -a cpci5200 ppc mpc5xxx cpci5200 esd
  197. hmi1001_config: unconfig
  198. @./mkconfig hmi1001 ppc mpc5xxx hmi1001
  199. Lite5200_config \
  200. Lite5200_LOWBOOT_config \
  201. Lite5200_LOWBOOT08_config \
  202. icecube_5200_config \
  203. icecube_5200_LOWBOOT_config \
  204. icecube_5200_LOWBOOT08_config \
  205. icecube_5200_DDR_config \
  206. icecube_5200_DDR_LOWBOOT_config \
  207. icecube_5200_DDR_LOWBOOT08_config \
  208. icecube_5100_config: unconfig
  209. @ >include/config.h
  210. @[ -z "$(findstring LOWBOOT_,$@)" ] || \
  211. { if [ "$(findstring DDR,$@)" ] ; \
  212. then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
  213. else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
  214. fi ; \
  215. echo "... with LOWBOOT configuration" ; \
  216. }
  217. @[ -z "$(findstring LOWBOOT08,$@)" ] || \
  218. { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
  219. echo "... with 8 MB flash only" ; \
  220. echo "... with LOWBOOT configuration" ; \
  221. }
  222. @[ -z "$(findstring DDR,$@)" ] || \
  223. { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
  224. echo "... DDR memory revision" ; \
  225. }
  226. @[ -z "$(findstring 5200,$@)" ] || \
  227. { echo "#define CONFIG_MPC5200" >>include/config.h ; \
  228. echo "... with MPC5200 processor" ; \
  229. }
  230. @[ -z "$(findstring 5100,$@)" ] || \
  231. { echo "#define CONFIG_MGT5100" >>include/config.h ; \
  232. echo "... with MGT5100 processor" ; \
  233. }
  234. @./mkconfig -a IceCube ppc mpc5xxx icecube
  235. inka4x0_config: unconfig
  236. @./mkconfig inka4x0 ppc mpc5xxx inka4x0
  237. o2dnt_config:
  238. @./mkconfig -a o2dnt ppc mpc5xxx o2dnt
  239. pf5200_config: unconfig
  240. @./mkconfig -a pf5200 ppc mpc5xxx pf5200 esd
  241. PM520_config \
  242. PM520_DDR_config \
  243. PM520_ROMBOOT_config \
  244. PM520_ROMBOOT_DDR_config: unconfig
  245. @ >include/config.h
  246. @[ -z "$(findstring DDR,$@)" ] || \
  247. { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
  248. echo "... DDR memory revision" ; \
  249. }
  250. @[ -z "$(findstring ROMBOOT,$@)" ] || \
  251. { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
  252. echo "... booting from 8-bit flash" ; \
  253. }
  254. @./mkconfig -a PM520 ppc mpc5xxx pm520
  255. MINI5200_config \
  256. EVAL5200_config \
  257. TOP5200_config: unconfig
  258. @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
  259. @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
  260. Total5100_config \
  261. Total5200_config \
  262. Total5200_lowboot_config \
  263. Total5200_Rev2_config \
  264. Total5200_Rev2_lowboot_config: unconfig
  265. @ >include/config.h
  266. @[ -z "$(findstring 5100,$@)" ] || \
  267. { echo "#define CONFIG_MGT5100" >>include/config.h ; \
  268. echo "... with MGT5100 processor" ; \
  269. }
  270. @[ -z "$(findstring 5200,$@)" ] || \
  271. { echo "#define CONFIG_MPC5200" >>include/config.h ; \
  272. echo "... with MPC5200 processor" ; \
  273. }
  274. @[ -n "$(findstring Rev,$@)" ] || \
  275. { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \
  276. echo "... revision 1 board" ; \
  277. }
  278. @[ -z "$(findstring Rev2_,$@)" ] || \
  279. { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \
  280. echo "... revision 2 board" ; \
  281. }
  282. @[ -z "$(findstring lowboot_,$@)" ] || \
  283. { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
  284. echo "... with lowboot configuration" ; \
  285. }
  286. @./mkconfig -a Total5200 ppc mpc5xxx total5200
  287. TQM5200_auto_config \
  288. TQM5200_AA_config \
  289. TQM5200_AB_config \
  290. TQM5200_AC_config \
  291. MiniFAP_config: unconfig
  292. @ >include/config.h
  293. @[ -z "$(findstring MiniFAP,$@)" ] || \
  294. { echo "#define CONFIG_MINIFAP" >>include/config.h ; \
  295. echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
  296. echo "... TQM5200_AC on MiniFAP" ; \
  297. }
  298. @[ -z "$(findstring AA,$@)" ] || \
  299. { echo "#define CONFIG_TQM5200_AA" >>include/config.h ; \
  300. echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
  301. }
  302. @[ -z "$(findstring AB,$@)" ] || \
  303. { echo "#define CONFIG_TQM5200_AB" >>include/config.h ; \
  304. echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
  305. echo "... with Graphics Controller"; \
  306. }
  307. @[ -z "$(findstring AC,$@)" ] || \
  308. { echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
  309. echo "... with 4 MB Flash, 128 MB SDRAM" ; \
  310. echo "... with Graphics Controller"; \
  311. }
  312. @[ -z "$(findstring auto,$@)" ] || \
  313. { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \
  314. echo "... with automatic CS configuration" ; \
  315. }
  316. @./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
  317. spieval_config: unconfig
  318. echo "#define CONFIG_CS_AUTOCONF">>include/config.h
  319. echo "... with automatic CS configuration"
  320. @./mkconfig -a spieval ppc mpc5xxx tqm5200
  321. #########################################################################
  322. ## MPC8xx Systems
  323. #########################################################################
  324. Adder_config \
  325. Adder87x_config \
  326. AdderII_config \
  327. : unconfig
  328. $(if $(findstring AdderII,$@), \
  329. @echo "#define CONFIG_MPC852T" > include/config.h)
  330. @./mkconfig -a Adder ppc mpc8xx adder
  331. ADS860_config \
  332. FADS823_config \
  333. FADS850SAR_config \
  334. MPC86xADS_config \
  335. MPC885ADS_config \
  336. FADS860T_config: unconfig
  337. @./mkconfig $(@:_config=) ppc mpc8xx fads
  338. AMX860_config : unconfig
  339. @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
  340. c2mon_config: unconfig
  341. @./mkconfig $(@:_config=) ppc mpc8xx c2mon
  342. CCM_config: unconfig
  343. @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
  344. cogent_mpc8xx_config: unconfig
  345. @./mkconfig $(@:_config=) ppc mpc8xx cogent
  346. ELPT860_config: unconfig
  347. @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
  348. ESTEEM192E_config: unconfig
  349. @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
  350. ETX094_config : unconfig
  351. @./mkconfig $(@:_config=) ppc mpc8xx etx094
  352. FLAGADM_config: unconfig
  353. @./mkconfig $(@:_config=) ppc mpc8xx flagadm
  354. xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
  355. GEN860T_SC_config \
  356. GEN860T_config: unconfig
  357. @ >include/config.h
  358. @[ -z "$(findstring _SC,$@)" ] || \
  359. { echo "#define CONFIG_SC" >>include/config.h ; \
  360. echo "With reduced H/W feature set (SC)..." ; \
  361. }
  362. @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
  363. GENIETV_config: unconfig
  364. @./mkconfig $(@:_config=) ppc mpc8xx genietv
  365. GTH_config: unconfig
  366. @./mkconfig $(@:_config=) ppc mpc8xx gth
  367. hermes_config : unconfig
  368. @./mkconfig $(@:_config=) ppc mpc8xx hermes
  369. HMI10_config : unconfig
  370. @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
  371. IAD210_config: unconfig
  372. @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
  373. xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
  374. ICU862_100MHz_config \
  375. ICU862_config: unconfig
  376. @ >include/config.h
  377. @[ -z "$(findstring _100MHz,$@)" ] || \
  378. { echo "#define CONFIG_100MHz" >>include/config.h ; \
  379. echo "... with 100MHz system clock" ; \
  380. }
  381. @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
  382. IP860_config : unconfig
  383. @./mkconfig $(@:_config=) ppc mpc8xx ip860
  384. IVML24_256_config \
  385. IVML24_128_config \
  386. IVML24_config: unconfig
  387. @ >include/config.h
  388. @[ -z "$(findstring IVML24_config,$@)" ] || \
  389. { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
  390. }
  391. @[ -z "$(findstring IVML24_128_config,$@)" ] || \
  392. { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
  393. }
  394. @[ -z "$(findstring IVML24_256_config,$@)" ] || \
  395. { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
  396. }
  397. @./mkconfig -a IVML24 ppc mpc8xx ivm
  398. IVMS8_256_config \
  399. IVMS8_128_config \
  400. IVMS8_config: unconfig
  401. @ >include/config.h
  402. @[ -z "$(findstring IVMS8_config,$@)" ] || \
  403. { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
  404. }
  405. @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
  406. { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
  407. }
  408. @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
  409. { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
  410. }
  411. @./mkconfig -a IVMS8 ppc mpc8xx ivm
  412. KUP4K_config : unconfig
  413. @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
  414. KUP4X_config : unconfig
  415. @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
  416. LANTEC_config : unconfig
  417. @./mkconfig $(@:_config=) ppc mpc8xx lantec
  418. lwmon_config: unconfig
  419. @./mkconfig $(@:_config=) ppc mpc8xx lwmon
  420. MBX_config \
  421. MBX860T_config: unconfig
  422. @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
  423. MHPC_config: unconfig
  424. @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
  425. MVS1_config : unconfig
  426. @./mkconfig $(@:_config=) ppc mpc8xx mvs1
  427. xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
  428. NETVIA_V2_config \
  429. NETVIA_config: unconfig
  430. @ >include/config.h
  431. @[ -z "$(findstring NETVIA_config,$@)" ] || \
  432. { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
  433. echo "... Version 1" ; \
  434. }
  435. @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
  436. { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
  437. echo "... Version 2" ; \
  438. }
  439. @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
  440. xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
  441. NETPHONE_V2_config \
  442. NETPHONE_config: unconfig
  443. @ >include/config.h
  444. @[ -z "$(findstring NETPHONE_config,$@)" ] || \
  445. { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
  446. }
  447. @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
  448. { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
  449. }
  450. @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
  451. xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
  452. NETTA_ISDN_6412_SWAPHOOK_config \
  453. NETTA_ISDN_SWAPHOOK_config \
  454. NETTA_6412_SWAPHOOK_config \
  455. NETTA_SWAPHOOK_config \
  456. NETTA_ISDN_6412_config \
  457. NETTA_ISDN_config \
  458. NETTA_6412_config \
  459. NETTA_config: unconfig
  460. @ >include/config.h
  461. @[ -z "$(findstring ISDN_,$@)" ] || \
  462. { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
  463. }
  464. @[ -n "$(findstring ISDN_,$@)" ] || \
  465. { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
  466. }
  467. @[ -z "$(findstring 6412_,$@)" ] || \
  468. { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
  469. }
  470. @[ -n "$(findstring 6412_,$@)" ] || \
  471. { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
  472. }
  473. @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
  474. { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
  475. }
  476. @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
  477. { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
  478. }
  479. @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
  480. xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
  481. NETTA2_V2_config \
  482. NETTA2_config: unconfig
  483. @ >include/config.h
  484. @[ -z "$(findstring NETTA2_config,$@)" ] || \
  485. { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
  486. }
  487. @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
  488. { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
  489. }
  490. @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
  491. NC650_config: unconfig
  492. @./mkconfig $(@:_config=) ppc mpc8xx nc650
  493. NX823_config: unconfig
  494. @./mkconfig $(@:_config=) ppc mpc8xx nx823
  495. pcu_e_config: unconfig
  496. @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
  497. QS850_config: unconfig
  498. @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
  499. QS823_config: unconfig
  500. @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
  501. QS860T_config: unconfig
  502. @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
  503. quantum_config: unconfig
  504. @./mkconfig $(@:_config=) ppc mpc8xx quantum
  505. R360MPI_config: unconfig
  506. @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
  507. RBC823_config: unconfig
  508. @./mkconfig $(@:_config=) ppc mpc8xx rbc823
  509. RPXClassic_config: unconfig
  510. @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
  511. RPXlite_config: unconfig
  512. @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
  513. RPXlite_DW_64_config \
  514. RPXlite_DW_LCD_config \
  515. RPXlite_DW_64_LCD_config \
  516. RPXlite_DW_NVRAM_config \
  517. RPXlite_DW_NVRAM_64_config \
  518. RPXlite_DW_NVRAM_LCD_config \
  519. RPXlite_DW_NVRAM_64_LCD_config \
  520. RPXlite_DW_config: unconfig
  521. @ >include/config.h
  522. @[ -z "$(findstring _64,$@)" ] || \
  523. { echo "#define RPXlite_64MHz" >>include/config.h ; \
  524. echo "... with 64MHz system clock ..."; \
  525. }
  526. @[ -z "$(findstring _LCD,$@)" ] || \
  527. { echo "#define CONFIG_LCD" >>include/config.h ; \
  528. echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
  529. echo "... with LCD display ..."; \
  530. }
  531. @[ -z "$(findstring _NVRAM,$@)" ] || \
  532. { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \
  533. echo "... with ENV in NVRAM ..."; \
  534. }
  535. @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
  536. rmu_config: unconfig
  537. @./mkconfig $(@:_config=) ppc mpc8xx rmu
  538. RRvision_config: unconfig
  539. @./mkconfig $(@:_config=) ppc mpc8xx RRvision
  540. RRvision_LCD_config: unconfig
  541. @echo "#define CONFIG_LCD" >include/config.h
  542. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  543. @./mkconfig -a RRvision ppc mpc8xx RRvision
  544. SM850_config : unconfig
  545. @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
  546. SPD823TS_config: unconfig
  547. @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
  548. stxxtc_config: unconfig
  549. @./mkconfig $(@:_config=) ppc mpc8xx stxxtc
  550. svm_sc8xx_config: unconfig
  551. @ >include/config.h
  552. @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
  553. SXNI855T_config: unconfig
  554. @./mkconfig $(@:_config=) ppc mpc8xx sixnet
  555. # EMK MPC8xx based modules
  556. TOP860_config: unconfig
  557. @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
  558. # Play some tricks for configuration selection
  559. # Only 855 and 860 boards may come with FEC
  560. # and only 823 boards may have LCD support
  561. xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
  562. FPS850L_config \
  563. FPS860L_config \
  564. NSCU_config \
  565. TQM823L_config \
  566. TQM823L_LCD_config \
  567. TQM850L_config \
  568. TQM855L_config \
  569. TQM860L_config \
  570. TQM862L_config \
  571. TQM823M_config \
  572. TQM850M_config \
  573. TQM855M_config \
  574. TQM860M_config \
  575. TQM862M_config \
  576. TQM866M_config: unconfig
  577. @ >include/config.h
  578. @[ -z "$(findstring _LCD,$@)" ] || \
  579. { echo "#define CONFIG_LCD" >>include/config.h ; \
  580. echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
  581. echo "... with LCD display" ; \
  582. }
  583. @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
  584. TTTech_config: unconfig
  585. @echo "#define CONFIG_LCD" >include/config.h
  586. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
  587. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  588. uc100_config : unconfig
  589. @./mkconfig $(@:_config=) ppc mpc8xx uc100
  590. v37_config: unconfig
  591. @echo "#define CONFIG_LCD" >include/config.h
  592. @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
  593. @./mkconfig $(@:_config=) ppc mpc8xx v37
  594. wtk_config: unconfig
  595. @echo "#define CONFIG_LCD" >include/config.h
  596. @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
  597. @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
  598. #########################################################################
  599. ## PPC4xx Systems
  600. #########################################################################
  601. xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
  602. ADCIOP_config: unconfig
  603. @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
  604. APC405_config: unconfig
  605. @./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
  606. AR405_config: unconfig
  607. @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
  608. ASH405_config: unconfig
  609. @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
  610. bamboo_config: unconfig
  611. @./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc
  612. bubinga_config: unconfig
  613. @./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc
  614. CANBT_config: unconfig
  615. @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
  616. CATcenter_config \
  617. CATcenter_25_config \
  618. CATcenter_33_config: unconfig
  619. @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h
  620. @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
  621. @[ -z "$(findstring _25,$@)" ] || \
  622. { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
  623. echo "SysClk = 25MHz" ; \
  624. }
  625. @[ -z "$(findstring _33,$@)" ] || \
  626. { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
  627. echo "SysClk = 33MHz" ; \
  628. }
  629. @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  630. CPCI405_config \
  631. CPCI4052_config \
  632. CPCI405DT_config \
  633. CPCI405AB_config: unconfig
  634. @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
  635. @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
  636. CPCI440_config: unconfig
  637. @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
  638. CPCIISER4_config: unconfig
  639. @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
  640. CRAYL1_config: unconfig
  641. @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
  642. csb272_config: unconfig
  643. @./mkconfig $(@:_config=) ppc ppc4xx csb272
  644. csb472_config: unconfig
  645. @./mkconfig $(@:_config=) ppc ppc4xx csb472
  646. DASA_SIM_config: unconfig
  647. @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
  648. DP405_config: unconfig
  649. @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
  650. DU405_config: unconfig
  651. @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
  652. ebony_config: unconfig
  653. @./mkconfig $(@:_config=) ppc ppc4xx ebony amcc
  654. ERIC_config: unconfig
  655. @./mkconfig $(@:_config=) ppc ppc4xx eric
  656. EXBITGEN_config: unconfig
  657. @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
  658. G2000_config: unconfig
  659. @./mkconfig $(@:_config=) ppc ppc4xx g2000
  660. HH405_config: unconfig
  661. @./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
  662. HUB405_config: unconfig
  663. @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
  664. JSE_config: unconfig
  665. @./mkconfig $(@:_config=) ppc ppc4xx jse
  666. KAREF_config: unconfig
  667. @./mkconfig $(@:_config=) ppc ppc4xx karef sandburst
  668. METROBOX_config: unconfig
  669. @./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
  670. MIP405_config: unconfig
  671. @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
  672. MIP405T_config: unconfig
  673. @echo "#define CONFIG_MIP405T" >include/config.h
  674. @echo "Enable subset config for MIP405T"
  675. @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
  676. ML2_config: unconfig
  677. @./mkconfig $(@:_config=) ppc ppc4xx ml2
  678. ml300_config: unconfig
  679. @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
  680. ocotea_config: unconfig
  681. @./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
  682. OCRTC_config \
  683. ORSG_config: unconfig
  684. @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
  685. PCI405_config: unconfig
  686. @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
  687. PIP405_config: unconfig
  688. @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
  689. PLU405_config: unconfig
  690. @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
  691. PMC405_config: unconfig
  692. @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
  693. PPChameleonEVB_config \
  694. PPChameleonEVB_BA_25_config \
  695. PPChameleonEVB_ME_25_config \
  696. PPChameleonEVB_HI_25_config \
  697. PPChameleonEVB_BA_33_config \
  698. PPChameleonEVB_ME_33_config \
  699. PPChameleonEVB_HI_33_config: unconfig
  700. @ >include/config.h
  701. @[ -z "$(findstring EVB_BA,$@)" ] || \
  702. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
  703. echo "... BASIC model" ; \
  704. }
  705. @[ -z "$(findstring EVB_ME,$@)" ] || \
  706. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
  707. echo "... MEDIUM model" ; \
  708. }
  709. @[ -z "$(findstring EVB_HI,$@)" ] || \
  710. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
  711. echo "... HIGH-END model" ; \
  712. }
  713. @[ -z "$(findstring _25,$@)" ] || \
  714. { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
  715. echo "SysClk = 25MHz" ; \
  716. }
  717. @[ -z "$(findstring _33,$@)" ] || \
  718. { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
  719. echo "SysClk = 33MHz" ; \
  720. }
  721. @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  722. sbc405_config: unconfig
  723. @./mkconfig $(@:_config=) ppc ppc4xx sbc405
  724. sycamore_config: unconfig
  725. @echo "Configuring for sycamore board as subset of walnut..."
  726. @./mkconfig -a walnut ppc ppc4xx walnut amcc
  727. VOH405_config: unconfig
  728. @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
  729. VOM405_config: unconfig
  730. @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
  731. W7OLMC_config \
  732. W7OLMG_config: unconfig
  733. @./mkconfig $(@:_config=) ppc ppc4xx w7o
  734. walnut_config: unconfig
  735. @./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
  736. WUH405_config: unconfig
  737. @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
  738. XPEDITE1K_config: unconfig
  739. @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
  740. yosemite_config: unconfig
  741. @./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
  742. yellowstone_config: unconfig
  743. @./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
  744. #########################################################################
  745. ## MPC8220 Systems
  746. #########################################################################
  747. Alaska8220_config \
  748. Yukon8220_config: unconfig
  749. @./mkconfig $(@:_config=) ppc mpc8220 alaska
  750. sorcery_config: unconfig
  751. @./mkconfig $(@:_config=) ppc mpc8220 sorcery
  752. #########################################################################
  753. ## MPC824x Systems
  754. #########################################################################
  755. xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
  756. A3000_config: unconfig
  757. @./mkconfig $(@:_config=) ppc mpc824x a3000
  758. BMW_config: unconfig
  759. @./mkconfig $(@:_config=) ppc mpc824x bmw
  760. CPC45_config \
  761. CPC45_ROMBOOT_config: unconfig
  762. @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
  763. @cd ./include ; \
  764. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  765. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  766. echo "... booting from 8-bit flash" ; \
  767. else \
  768. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  769. echo "... booting from 64-bit flash" ; \
  770. fi; \
  771. echo "export CONFIG_BOOT_ROM" >> config.mk;
  772. CU824_config: unconfig
  773. @./mkconfig $(@:_config=) ppc mpc824x cu824
  774. debris_config: unconfig
  775. @./mkconfig $(@:_config=) ppc mpc824x debris etin
  776. eXalion_config: unconfig
  777. @./mkconfig $(@:_config=) ppc mpc824x eXalion
  778. HIDDEN_DRAGON_config: unconfig
  779. @./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
  780. MOUSSE_config: unconfig
  781. @./mkconfig $(@:_config=) ppc mpc824x mousse
  782. MUSENKI_config: unconfig
  783. @./mkconfig $(@:_config=) ppc mpc824x musenki
  784. MVBLUE_config: unconfig
  785. @./mkconfig $(@:_config=) ppc mpc824x mvblue
  786. OXC_config: unconfig
  787. @./mkconfig $(@:_config=) ppc mpc824x oxc
  788. PN62_config: unconfig
  789. @./mkconfig $(@:_config=) ppc mpc824x pn62
  790. Sandpoint8240_config: unconfig
  791. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  792. Sandpoint8245_config: unconfig
  793. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  794. sbc8240_config: unconfig
  795. @./mkconfig $(@:_config=) ppc mpc824x sbc8240
  796. SL8245_config: unconfig
  797. @./mkconfig $(@:_config=) ppc mpc824x sl8245
  798. utx8245_config: unconfig
  799. @./mkconfig $(@:_config=) ppc mpc824x utx8245
  800. cobra5272_config : unconfig
  801. @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
  802. #########################################################################
  803. ## MPC8260 Systems
  804. #########################################################################
  805. atc_config: unconfig
  806. @./mkconfig $(@:_config=) ppc mpc8260 atc
  807. cogent_mpc8260_config: unconfig
  808. @./mkconfig $(@:_config=) ppc mpc8260 cogent
  809. CPU86_config \
  810. CPU86_ROMBOOT_config: unconfig
  811. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
  812. @cd ./include ; \
  813. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  814. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  815. echo "... booting from 8-bit flash" ; \
  816. else \
  817. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  818. echo "... booting from 64-bit flash" ; \
  819. fi; \
  820. echo "export CONFIG_BOOT_ROM" >> config.mk;
  821. CPU87_config \
  822. CPU87_ROMBOOT_config: unconfig
  823. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
  824. @cd ./include ; \
  825. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  826. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  827. echo "... booting from 8-bit flash" ; \
  828. else \
  829. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  830. echo "... booting from 64-bit flash" ; \
  831. fi; \
  832. echo "export CONFIG_BOOT_ROM" >> config.mk;
  833. ep8248_config \
  834. ep8248E_config : unconfig
  835. @./mkconfig ep8248 ppc mpc8260 ep8248
  836. ep8260_config: unconfig
  837. @./mkconfig $(@:_config=) ppc mpc8260 ep8260
  838. gw8260_config: unconfig
  839. @./mkconfig $(@:_config=) ppc mpc8260 gw8260
  840. hymod_config: unconfig
  841. @./mkconfig $(@:_config=) ppc mpc8260 hymod
  842. IDS8247_config: unconfig
  843. @./mkconfig $(@:_config=) ppc mpc8260 ids8247
  844. IPHASE4539_config: unconfig
  845. @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
  846. ISPAN_config \
  847. ISPAN_REVB_config: unconfig
  848. @if [ "$(findstring _REVB_,$@)" ] ; then \
  849. echo "#define CFG_REV_B" > include/config.h ; \
  850. fi
  851. @./mkconfig -a ISPAN ppc mpc8260 ispan
  852. MPC8260ADS_config \
  853. MPC8260ADS_lowboot_config \
  854. MPC8260ADS_33MHz_config \
  855. MPC8260ADS_33MHz_lowboot_config \
  856. MPC8260ADS_40MHz_config \
  857. MPC8260ADS_40MHz_lowboot_config \
  858. MPC8272ADS_config \
  859. MPC8272ADS_lowboot_config \
  860. PQ2FADS_config \
  861. PQ2FADS_lowboot_config \
  862. PQ2FADS-VR_config \
  863. PQ2FADS-VR_lowboot_config \
  864. PQ2FADS-ZU_config \
  865. PQ2FADS-ZU_lowboot_config \
  866. PQ2FADS-ZU_66MHz_config \
  867. PQ2FADS-ZU_66MHz_lowboot_config \
  868. : unconfig
  869. $(if $(findstring PQ2FADS,$@), \
  870. @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
  871. @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
  872. $(if $(findstring MHz,$@), \
  873. @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
  874. $(if $(findstring VR,$@), \
  875. @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
  876. @[ -z "$(findstring lowboot_,$@)" ] || \
  877. { echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
  878. echo "... with lowboot configuration" ; \
  879. }
  880. @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
  881. MPC8266ADS_config: unconfig
  882. @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
  883. # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
  884. PM825_config \
  885. PM825_ROMBOOT_config \
  886. PM825_BIGFLASH_config \
  887. PM825_ROMBOOT_BIGFLASH_config \
  888. PM826_config \
  889. PM826_ROMBOOT_config \
  890. PM826_BIGFLASH_config \
  891. PM826_ROMBOOT_BIGFLASH_config: unconfig
  892. @if [ "$(findstring PM825_,$@)" ] ; then \
  893. echo "#define CONFIG_PCI" >include/config.h ; \
  894. else \
  895. >include/config.h ; \
  896. fi
  897. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  898. echo "... booting from 8-bit flash" ; \
  899. echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
  900. echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
  901. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  902. echo "... with 32 MB Flash" ; \
  903. echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
  904. fi; \
  905. else \
  906. echo "... booting from 64-bit flash" ; \
  907. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  908. echo "... with 32 MB Flash" ; \
  909. echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
  910. echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
  911. else \
  912. echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
  913. fi; \
  914. fi
  915. @./mkconfig -a PM826 ppc mpc8260 pm826
  916. PM828_config \
  917. PM828_PCI_config \
  918. PM828_ROMBOOT_config \
  919. PM828_ROMBOOT_PCI_config: unconfig
  920. @if [ -z "$(findstring _PCI_,$@)" ] ; then \
  921. echo "#define CONFIG_PCI" >>include/config.h ; \
  922. echo "... with PCI enabled" ; \
  923. else \
  924. >include/config.h ; \
  925. fi
  926. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  927. echo "... booting from 8-bit flash" ; \
  928. echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
  929. echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
  930. fi
  931. @./mkconfig -a PM828 ppc mpc8260 pm828
  932. ppmc8260_config: unconfig
  933. @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
  934. Rattler8248_config \
  935. Rattler_config: unconfig
  936. $(if $(findstring 8248,$@), \
  937. @echo "#define CONFIG_MPC8248" > include/config.h)
  938. @./mkconfig -a Rattler ppc mpc8260 rattler
  939. RPXsuper_config: unconfig
  940. @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
  941. rsdproto_config: unconfig
  942. @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
  943. sacsng_config: unconfig
  944. @./mkconfig $(@:_config=) ppc mpc8260 sacsng
  945. sbc8260_config: unconfig
  946. @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
  947. SCM_config: unconfig
  948. @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
  949. TQM8255_AA_config \
  950. TQM8260_AA_config \
  951. TQM8260_AB_config \
  952. TQM8260_AC_config \
  953. TQM8260_AD_config \
  954. TQM8260_AE_config \
  955. TQM8260_AF_config \
  956. TQM8260_AG_config \
  957. TQM8260_AH_config \
  958. TQM8265_AA_config: unconfig
  959. @case "$@" in \
  960. TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
  961. TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
  962. TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  963. TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  964. TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  965. TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
  966. TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  967. TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
  968. TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
  969. TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
  970. esac; \
  971. >include/config.h ; \
  972. if [ "$${CTYPE}" != "MPC8260" ] ; then \
  973. echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
  974. fi; \
  975. echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
  976. echo "... with $${CFREQ}MHz system clock" ; \
  977. if [ "$${CACHE}" == "yes" ] ; then \
  978. echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
  979. echo "... with L2 Cache support" ; \
  980. else \
  981. echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
  982. echo "... without L2 Cache support" ; \
  983. fi; \
  984. if [ "$${BMODE}" == "60x" ] ; then \
  985. echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
  986. echo "... with 60x Bus Mode" ; \
  987. else \
  988. echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
  989. echo "... without 60x Bus Mode" ; \
  990. fi
  991. @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
  992. VoVPN-GW_66MHz_config \
  993. VoVPN-GW_100MHz_config: unconfig
  994. @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
  995. @./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
  996. ZPC1900_config: unconfig
  997. @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
  998. #========================================================================
  999. # M68K
  1000. #========================================================================
  1001. #########################################################################
  1002. ## Coldfire
  1003. #########################################################################
  1004. M5272C3_config : unconfig
  1005. @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
  1006. M5282EVB_config : unconfig
  1007. @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
  1008. TASREG_config : unconfig
  1009. @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
  1010. #########################################################################
  1011. ## MPC83xx Systems
  1012. #########################################################################
  1013. MPC8349ADS_config: unconfig
  1014. @./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
  1015. #########################################################################
  1016. ## MPC85xx Systems
  1017. #########################################################################
  1018. MPC8540ADS_config: unconfig
  1019. @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
  1020. MPC8540EVAL_config \
  1021. MPC8540EVAL_33_config \
  1022. MPC8540EVAL_66_config \
  1023. MPC8540EVAL_33_slave_config \
  1024. MPC8540EVAL_66_slave_config: unconfig
  1025. @echo "" >include/config.h ; \
  1026. if [ "$(findstring _33_,$@)" ] ; then \
  1027. echo -n "... 33 MHz PCI" ; \
  1028. else \
  1029. echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
  1030. echo -n "... 66 MHz PCI" ; \
  1031. fi ; \
  1032. if [ "$(findstring _slave_,$@)" ] ; then \
  1033. echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
  1034. echo " slave" ; \
  1035. else \
  1036. echo " host" ; \
  1037. fi
  1038. @./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
  1039. MPC8560ADS_config: unconfig
  1040. @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
  1041. MPC8541CDS_config: unconfig
  1042. @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
  1043. MPC8548CDS_config: unconfig
  1044. @./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
  1045. MPC8555CDS_config: unconfig
  1046. @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
  1047. PM854_config: unconfig
  1048. @./mkconfig $(@:_config=) ppc mpc85xx pm854
  1049. PM856_config: unconfig
  1050. @./mkconfig $(@:_config=) ppc mpc85xx pm856
  1051. sbc8540_config \
  1052. sbc8540_33_config \
  1053. sbc8540_66_config: unconfig
  1054. @if [ "$(findstring _66_,$@)" ] ; then \
  1055. echo "#define CONFIG_PCI_66" >>include/config.h ; \
  1056. echo "... 66 MHz PCI" ; \
  1057. else \
  1058. >include/config.h ; \
  1059. echo "... 33 MHz PCI" ; \
  1060. fi
  1061. @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
  1062. sbc8560_config \
  1063. sbc8560_33_config \
  1064. sbc8560_66_config: unconfig
  1065. @if [ "$(findstring _66_,$@)" ] ; then \
  1066. echo "#define CONFIG_PCI_66" >>include/config.h ; \
  1067. echo "... 66 MHz PCI" ; \
  1068. else \
  1069. >include/config.h ; \
  1070. echo "... 33 MHz PCI" ; \
  1071. fi
  1072. @./mkconfig -a sbc8560 ppc mpc85xx sbc8560
  1073. stxgp3_config: unconfig
  1074. @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
  1075. TQM8540_config: unconfig
  1076. @./mkconfig $(@:_config=) ppc mpc85xx tqm8540
  1077. TQM8560_config: unconfig
  1078. @./mkconfig $(@:_config=) ppc mpc85xx tqm8560
  1079. #########################################################################
  1080. ## 74xx/7xx Systems
  1081. #########################################################################
  1082. AmigaOneG3SE_config: unconfig
  1083. @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
  1084. BAB7xx_config: unconfig
  1085. @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
  1086. CPCI750_config: unconfig
  1087. @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
  1088. DB64360_config: unconfig
  1089. @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
  1090. DB64460_config: unconfig
  1091. @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
  1092. ELPPC_config: unconfig
  1093. @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
  1094. EVB64260_config \
  1095. EVB64260_750CX_config: unconfig
  1096. @./mkconfig EVB64260 ppc 74xx_7xx evb64260
  1097. P3G4_config: unconfig
  1098. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  1099. PCIPPC2_config \
  1100. PCIPPC6_config: unconfig
  1101. @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
  1102. ZUMA_config: unconfig
  1103. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  1104. #========================================================================
  1105. # ARM
  1106. #========================================================================
  1107. #########################################################################
  1108. ## StrongARM Systems
  1109. #########################################################################
  1110. assabet_config : unconfig
  1111. @./mkconfig $(@:_config=) arm sa1100 assabet
  1112. dnp1110_config : unconfig
  1113. @./mkconfig $(@:_config=) arm sa1100 dnp1110
  1114. gcplus_config : unconfig
  1115. @./mkconfig $(@:_config=) arm sa1100 gcplus
  1116. lart_config : unconfig
  1117. @./mkconfig $(@:_config=) arm sa1100 lart
  1118. shannon_config : unconfig
  1119. @./mkconfig $(@:_config=) arm sa1100 shannon
  1120. #########################################################################
  1121. ## ARM92xT Systems
  1122. #########################################################################
  1123. xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
  1124. xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
  1125. xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
  1126. at91rm9200dk_config : unconfig
  1127. @./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
  1128. cmc_pu2_config : unconfig
  1129. @./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
  1130. integratorap_config : unconfig
  1131. @./mkconfig $(@:_config=) arm arm926ejs integratorap
  1132. integratorcp_config : unconfig
  1133. @./mkconfig $(@:_config=) arm arm926ejs integratorcp
  1134. lpd7a400_config \
  1135. lpd7a404_config: unconfig
  1136. @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
  1137. mx1ads_config : unconfig
  1138. @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
  1139. mx1fs2_config : unconfig
  1140. @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
  1141. omap1510inn_config : unconfig
  1142. @./mkconfig $(@:_config=) arm arm925t omap1510inn
  1143. omap5912osk_config : unconfig
  1144. @./mkconfig $(@:_config=) arm arm926ejs omap5912osk
  1145. omap1610inn_config \
  1146. omap1610inn_cs0boot_config \
  1147. omap1610inn_cs3boot_config \
  1148. omap1610inn_cs_autoboot_config \
  1149. omap1610h2_config \
  1150. omap1610h2_cs0boot_config \
  1151. omap1610h2_cs3boot_config \
  1152. omap1610h2_cs_autoboot_config: unconfig
  1153. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1154. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  1155. echo "... configured for CS0 boot"; \
  1156. elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
  1157. echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
  1158. echo "... configured for CS_AUTO boot"; \
  1159. else \
  1160. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  1161. echo "... configured for CS3 boot"; \
  1162. fi;
  1163. @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
  1164. omap730p2_config \
  1165. omap730p2_cs0boot_config \
  1166. omap730p2_cs3boot_config : unconfig
  1167. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1168. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  1169. echo "... configured for CS0 boot"; \
  1170. else \
  1171. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  1172. echo "... configured for CS3 boot"; \
  1173. fi;
  1174. @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
  1175. scb9328_config : unconfig
  1176. @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
  1177. smdk2400_config : unconfig
  1178. @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
  1179. smdk2410_config : unconfig
  1180. @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
  1181. SX1_config : unconfig
  1182. @./mkconfig $(@:_config=) arm arm925t sx1
  1183. # TRAB default configuration: 8 MB Flash, 32 MB RAM
  1184. trab_config \
  1185. trab_bigram_config \
  1186. trab_bigflash_config \
  1187. trab_old_config: unconfig
  1188. @ >include/config.h
  1189. @[ -z "$(findstring _bigram,$@)" ] || \
  1190. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  1191. echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
  1192. echo "... with 8 MB Flash, 32 MB RAM" ; \
  1193. }
  1194. @[ -z "$(findstring _bigflash,$@)" ] || \
  1195. { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
  1196. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  1197. echo "... with 16 MB Flash, 16 MB RAM" ; \
  1198. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  1199. }
  1200. @[ -z "$(findstring _old,$@)" ] || \
  1201. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  1202. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  1203. echo "... with 8 MB Flash, 16 MB RAM" ; \
  1204. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  1205. }
  1206. @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
  1207. VCMA9_config : unconfig
  1208. @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
  1209. versatile_config : unconfig
  1210. @./mkconfig $(@:_config=) arm arm926ejs versatile
  1211. voiceblue_smallflash_config \
  1212. voiceblue_config: unconfig
  1213. @if [ "$(findstring _smallflash_,$@)" ] ; then \
  1214. echo "... boot from lower flash bank" ; \
  1215. echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
  1216. echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
  1217. else \
  1218. echo "... boot from upper flash bank" ; \
  1219. >include/config.h ; \
  1220. echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
  1221. fi
  1222. @./mkconfig -a voiceblue arm arm925t voiceblue
  1223. cm4008_config : unconfig
  1224. @./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
  1225. cm41xx_config : unconfig
  1226. @./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
  1227. #########################################################################
  1228. ## S3C44B0 Systems
  1229. #########################################################################
  1230. B2_config : unconfig
  1231. @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
  1232. #########################################################################
  1233. ## ARM720T Systems
  1234. #########################################################################
  1235. ep7312_config : unconfig
  1236. @./mkconfig $(@:_config=) arm arm720t ep7312
  1237. impa7_config : unconfig
  1238. @./mkconfig $(@:_config=) arm arm720t impa7
  1239. modnet50_config : unconfig
  1240. @./mkconfig $(@:_config=) arm arm720t modnet50
  1241. evb4510_config : unconfig
  1242. @./mkconfig $(@:_config=) arm arm720t evb4510
  1243. #########################################################################
  1244. ## XScale Systems
  1245. #########################################################################
  1246. adsvix_config : unconfig
  1247. @./mkconfig $(@:_config=) arm pxa adsvix
  1248. cerf250_config : unconfig
  1249. @./mkconfig $(@:_config=) arm pxa cerf250
  1250. cradle_config : unconfig
  1251. @./mkconfig $(@:_config=) arm pxa cradle
  1252. csb226_config : unconfig
  1253. @./mkconfig $(@:_config=) arm pxa csb226
  1254. innokom_config : unconfig
  1255. @./mkconfig $(@:_config=) arm pxa innokom
  1256. ixdp425_config : unconfig
  1257. @./mkconfig $(@:_config=) arm ixp ixdp425
  1258. lubbock_config : unconfig
  1259. @./mkconfig $(@:_config=) arm pxa lubbock
  1260. logodl_config : unconfig
  1261. @./mkconfig $(@:_config=) arm pxa logodl
  1262. wepep250_config : unconfig
  1263. @./mkconfig $(@:_config=) arm pxa wepep250
  1264. xaeniax_config : unconfig
  1265. @./mkconfig $(@:_config=) arm pxa xaeniax
  1266. xm250_config : unconfig
  1267. @./mkconfig $(@:_config=) arm pxa xm250
  1268. xsengine_config : unconfig
  1269. @./mkconfig $(@:_config=) arm pxa xsengine
  1270. #########################################################################
  1271. ## ARM1136 Systems
  1272. #########################################################################
  1273. omap2420h4_config : unconfig
  1274. @./mkconfig $(@:_config=) arm arm1136 omap2420h4
  1275. #========================================================================
  1276. # i386
  1277. #========================================================================
  1278. #########################################################################
  1279. ## AMD SC520 CDP
  1280. #########################################################################
  1281. sc520_cdp_config : unconfig
  1282. @./mkconfig $(@:_config=) i386 i386 sc520_cdp
  1283. sc520_spunk_config : unconfig
  1284. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  1285. sc520_spunk_rel_config : unconfig
  1286. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  1287. #========================================================================
  1288. # MIPS
  1289. #========================================================================
  1290. #########################################################################
  1291. ## MIPS32 4Kc
  1292. #########################################################################
  1293. xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
  1294. incaip_100MHz_config \
  1295. incaip_133MHz_config \
  1296. incaip_150MHz_config \
  1297. incaip_config: unconfig
  1298. @ >include/config.h
  1299. @[ -z "$(findstring _100MHz,$@)" ] || \
  1300. { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
  1301. echo "... with 100MHz system clock" ; \
  1302. }
  1303. @[ -z "$(findstring _133MHz,$@)" ] || \
  1304. { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
  1305. echo "... with 133MHz system clock" ; \
  1306. }
  1307. @[ -z "$(findstring _150MHz,$@)" ] || \
  1308. { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
  1309. echo "... with 150MHz system clock" ; \
  1310. }
  1311. @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
  1312. tb0229_config: unconfig
  1313. @./mkconfig $(@:_config=) mips mips tb0229
  1314. #########################################################################
  1315. ## MIPS32 AU1X00
  1316. #########################################################################
  1317. dbau1000_config : unconfig
  1318. @ >include/config.h
  1319. @echo "#define CONFIG_DBAU1000 1" >>include/config.h
  1320. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1321. dbau1100_config : unconfig
  1322. @ >include/config.h
  1323. @echo "#define CONFIG_DBAU1100 1" >>include/config.h
  1324. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1325. dbau1500_config : unconfig
  1326. @ >include/config.h
  1327. @echo "#define CONFIG_DBAU1500 1" >>include/config.h
  1328. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1329. dbau1550_config : unconfig
  1330. @ >include/config.h
  1331. @echo "#define CONFIG_DBAU1550 1" >>include/config.h
  1332. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1333. dbau1550_el_config : unconfig
  1334. @ >include/config.h
  1335. @echo "#define CONFIG_DBAU1550 1" >>include/config.h
  1336. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1337. #########################################################################
  1338. ## MIPS64 5Kc
  1339. #########################################################################
  1340. purple_config : unconfig
  1341. @./mkconfig $(@:_config=) mips mips purple
  1342. #========================================================================
  1343. # Nios
  1344. #========================================================================
  1345. #########################################################################
  1346. ## Nios32
  1347. #########################################################################
  1348. DK1C20_safe_32_config \
  1349. DK1C20_standard_32_config \
  1350. DK1C20_config: unconfig
  1351. @ >include/config.h
  1352. @[ -z "$(findstring _safe_32,$@)" ] || \
  1353. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  1354. echo "... NIOS 'safe_32' configuration" ; \
  1355. }
  1356. @[ -z "$(findstring _standard_32,$@)" ] || \
  1357. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1358. echo "... NIOS 'standard_32' configuration" ; \
  1359. }
  1360. @[ -z "$(findstring DK1C20_config,$@)" ] || \
  1361. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1362. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  1363. }
  1364. @./mkconfig -a DK1C20 nios nios dk1c20 altera
  1365. DK1S10_safe_32_config \
  1366. DK1S10_standard_32_config \
  1367. DK1S10_mtx_ldk_20_config \
  1368. DK1S10_config: unconfig
  1369. @ >include/config.h
  1370. @[ -z "$(findstring _safe_32,$@)" ] || \
  1371. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  1372. echo "... NIOS 'safe_32' configuration" ; \
  1373. }
  1374. @[ -z "$(findstring _standard_32,$@)" ] || \
  1375. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1376. echo "... NIOS 'standard_32' configuration" ; \
  1377. }
  1378. @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
  1379. { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
  1380. echo "... NIOS 'mtx_ldk_20' configuration" ; \
  1381. }
  1382. @[ -z "$(findstring DK1S10_config,$@)" ] || \
  1383. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1384. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  1385. }
  1386. @./mkconfig -a DK1S10 nios nios dk1s10 altera
  1387. ADNPESC1_DNPEVA2_base_32_config \
  1388. ADNPESC1_base_32_config \
  1389. ADNPESC1_config: unconfig
  1390. @ >include/config.h
  1391. @[ -z "$(findstring _DNPEVA2,$@)" ] || \
  1392. { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
  1393. echo "... DNP/EVA2 configuration" ; \
  1394. }
  1395. @[ -z "$(findstring _base_32,$@)" ] || \
  1396. { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
  1397. echo "... NIOS 'base_32' configuration" ; \
  1398. }
  1399. @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
  1400. { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
  1401. echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
  1402. }
  1403. @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
  1404. #########################################################################
  1405. ## Nios-II
  1406. #########################################################################
  1407. PK1C20_config : unconfig
  1408. @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
  1409. PCI5441_config : unconfig
  1410. @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
  1411. #========================================================================
  1412. # MicroBlaze
  1413. #========================================================================
  1414. #########################################################################
  1415. ## Microblaze
  1416. #########################################################################
  1417. suzaku_config: unconfig
  1418. @ >include/config.h
  1419. @echo "#define CONFIG_SUZAKU 1" >> include/config.h
  1420. @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
  1421. #########################################################################
  1422. #########################################################################
  1423. clean:
  1424. find . -type f \
  1425. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  1426. -o -name '*.o' -o -name '*.a' \) -print \
  1427. | xargs rm -f
  1428. rm -f examples/hello_world examples/timer \
  1429. examples/eepro100_eeprom examples/sched \
  1430. examples/mem_to_mem_idma2intr examples/82559_eeprom \
  1431. examples/test_burst
  1432. rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
  1433. rm -f tools/mpc86x_clk tools/ncb
  1434. rm -f tools/easylogo/easylogo tools/bmp_logo
  1435. rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
  1436. rm -f tools/env/fw_printenv tools/env/fw_setenv
  1437. rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
  1438. rm -f board/trab/trab_fkt board/voiceblue/eeprom
  1439. clobber: clean
  1440. find . -type f \( -name .depend \
  1441. -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
  1442. -print0 \
  1443. | xargs -0 rm -f
  1444. rm -f $(OBJS) *.bak tags TAGS
  1445. rm -fr *.*~
  1446. rm -f u-boot u-boot.map u-boot.hex $(ALL)
  1447. rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
  1448. rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
  1449. rm -f include/asm/proc include/asm/arch include/asm
  1450. mrproper \
  1451. distclean: clobber unconfig
  1452. backup:
  1453. F=`basename $(TOPDIR)` ; cd .. ; \
  1454. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  1455. #########################################################################