Makefile 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860
  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. AP1000_config:unconfig
  605. @./mkconfig $(@:_config=) ppc ppc4xx ap1000 amirix
  606. APC405_config: unconfig
  607. @./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
  608. AR405_config: unconfig
  609. @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
  610. ASH405_config: unconfig
  611. @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
  612. bamboo_config: unconfig
  613. @./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc
  614. bubinga_config: unconfig
  615. @./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc
  616. CANBT_config: unconfig
  617. @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
  618. CATcenter_config \
  619. CATcenter_25_config \
  620. CATcenter_33_config: unconfig
  621. @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h
  622. @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
  623. @[ -z "$(findstring _25,$@)" ] || \
  624. { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
  625. echo "SysClk = 25MHz" ; \
  626. }
  627. @[ -z "$(findstring _33,$@)" ] || \
  628. { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
  629. echo "SysClk = 33MHz" ; \
  630. }
  631. @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  632. CPCI2DP_config: unconfig
  633. @./mkconfig $(@:_config=) ppc ppc4xx cpci2dp esd
  634. CPCI405_config \
  635. CPCI4052_config \
  636. CPCI405DT_config \
  637. CPCI405AB_config: unconfig
  638. @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
  639. @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
  640. CPCI440_config: unconfig
  641. @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
  642. CPCIISER4_config: unconfig
  643. @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
  644. CRAYL1_config: unconfig
  645. @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
  646. csb272_config: unconfig
  647. @./mkconfig $(@:_config=) ppc ppc4xx csb272
  648. csb472_config: unconfig
  649. @./mkconfig $(@:_config=) ppc ppc4xx csb472
  650. DASA_SIM_config: unconfig
  651. @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
  652. DP405_config: unconfig
  653. @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
  654. DU405_config: unconfig
  655. @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
  656. ebony_config: unconfig
  657. @./mkconfig $(@:_config=) ppc ppc4xx ebony amcc
  658. ERIC_config: unconfig
  659. @./mkconfig $(@:_config=) ppc ppc4xx eric
  660. EXBITGEN_config: unconfig
  661. @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
  662. G2000_config: unconfig
  663. @./mkconfig $(@:_config=) ppc ppc4xx g2000
  664. HH405_config: unconfig
  665. @./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
  666. HUB405_config: unconfig
  667. @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
  668. JSE_config: unconfig
  669. @./mkconfig $(@:_config=) ppc ppc4xx jse
  670. KAREF_config: unconfig
  671. @./mkconfig $(@:_config=) ppc ppc4xx karef sandburst
  672. luan_config: unconfig
  673. @./mkconfig $(@:_config=) ppc ppc4xx luan amcc
  674. METROBOX_config: unconfig
  675. @./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
  676. MIP405_config: unconfig
  677. @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
  678. MIP405T_config: unconfig
  679. @echo "#define CONFIG_MIP405T" >include/config.h
  680. @echo "Enable subset config for MIP405T"
  681. @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
  682. ML2_config: unconfig
  683. @./mkconfig $(@:_config=) ppc ppc4xx ml2
  684. ml300_config: unconfig
  685. @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
  686. ocotea_config: unconfig
  687. @./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
  688. OCRTC_config \
  689. ORSG_config: unconfig
  690. @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
  691. p3p440_config: unconfig
  692. @./mkconfig $(@:_config=) ppc ppc4xx p3p440 prodrive
  693. PCI405_config: unconfig
  694. @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
  695. PIP405_config: unconfig
  696. @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
  697. PLU405_config: unconfig
  698. @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
  699. PMC405_config: unconfig
  700. @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
  701. PPChameleonEVB_config \
  702. PPChameleonEVB_BA_25_config \
  703. PPChameleonEVB_ME_25_config \
  704. PPChameleonEVB_HI_25_config \
  705. PPChameleonEVB_BA_33_config \
  706. PPChameleonEVB_ME_33_config \
  707. PPChameleonEVB_HI_33_config: unconfig
  708. @ >include/config.h
  709. @[ -z "$(findstring EVB_BA,$@)" ] || \
  710. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
  711. echo "... BASIC model" ; \
  712. }
  713. @[ -z "$(findstring EVB_ME,$@)" ] || \
  714. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
  715. echo "... MEDIUM model" ; \
  716. }
  717. @[ -z "$(findstring EVB_HI,$@)" ] || \
  718. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
  719. echo "... HIGH-END model" ; \
  720. }
  721. @[ -z "$(findstring _25,$@)" ] || \
  722. { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
  723. echo "SysClk = 25MHz" ; \
  724. }
  725. @[ -z "$(findstring _33,$@)" ] || \
  726. { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
  727. echo "SysClk = 33MHz" ; \
  728. }
  729. @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  730. sbc405_config: unconfig
  731. @./mkconfig $(@:_config=) ppc ppc4xx sbc405
  732. sycamore_config: unconfig
  733. @echo "Configuring for sycamore board as subset of walnut..."
  734. @./mkconfig -a walnut ppc ppc4xx walnut amcc
  735. VOH405_config: unconfig
  736. @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
  737. VOM405_config: unconfig
  738. @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
  739. CMS700_config: unconfig
  740. @./mkconfig $(@:_config=) ppc ppc4xx cms700 esd
  741. W7OLMC_config \
  742. W7OLMG_config: unconfig
  743. @./mkconfig $(@:_config=) ppc ppc4xx w7o
  744. walnut_config: unconfig
  745. @./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
  746. WUH405_config: unconfig
  747. @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
  748. XPEDITE1K_config: unconfig
  749. @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
  750. yosemite_config: unconfig
  751. @./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
  752. yellowstone_config: unconfig
  753. @./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
  754. #########################################################################
  755. ## MPC8220 Systems
  756. #########################################################################
  757. Alaska8220_config \
  758. Yukon8220_config: unconfig
  759. @./mkconfig $(@:_config=) ppc mpc8220 alaska
  760. sorcery_config: unconfig
  761. @./mkconfig $(@:_config=) ppc mpc8220 sorcery
  762. #########################################################################
  763. ## MPC824x Systems
  764. #########################################################################
  765. xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
  766. A3000_config: unconfig
  767. @./mkconfig $(@:_config=) ppc mpc824x a3000
  768. barco_config: unconfig
  769. @./mkconfig $(@:_config=) ppc mpc824x barco
  770. BMW_config: unconfig
  771. @./mkconfig $(@:_config=) ppc mpc824x bmw
  772. CPC45_config \
  773. CPC45_ROMBOOT_config: unconfig
  774. @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
  775. @cd ./include ; \
  776. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  777. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  778. echo "... booting from 8-bit flash" ; \
  779. else \
  780. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  781. echo "... booting from 64-bit flash" ; \
  782. fi; \
  783. echo "export CONFIG_BOOT_ROM" >> config.mk;
  784. CU824_config: unconfig
  785. @./mkconfig $(@:_config=) ppc mpc824x cu824
  786. debris_config: unconfig
  787. @./mkconfig $(@:_config=) ppc mpc824x debris etin
  788. eXalion_config: unconfig
  789. @./mkconfig $(@:_config=) ppc mpc824x eXalion
  790. HIDDEN_DRAGON_config: unconfig
  791. @./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
  792. MOUSSE_config: unconfig
  793. @./mkconfig $(@:_config=) ppc mpc824x mousse
  794. MUSENKI_config: unconfig
  795. @./mkconfig $(@:_config=) ppc mpc824x musenki
  796. MVBLUE_config: unconfig
  797. @./mkconfig $(@:_config=) ppc mpc824x mvblue
  798. OXC_config: unconfig
  799. @./mkconfig $(@:_config=) ppc mpc824x oxc
  800. PN62_config: unconfig
  801. @./mkconfig $(@:_config=) ppc mpc824x pn62
  802. Sandpoint8240_config: unconfig
  803. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  804. Sandpoint8245_config: unconfig
  805. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  806. sbc8240_config: unconfig
  807. @./mkconfig $(@:_config=) ppc mpc824x sbc8240
  808. SL8245_config: unconfig
  809. @./mkconfig $(@:_config=) ppc mpc824x sl8245
  810. utx8245_config: unconfig
  811. @./mkconfig $(@:_config=) ppc mpc824x utx8245
  812. cobra5272_config : unconfig
  813. @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
  814. #########################################################################
  815. ## MPC8260 Systems
  816. #########################################################################
  817. atc_config: unconfig
  818. @./mkconfig $(@:_config=) ppc mpc8260 atc
  819. cogent_mpc8260_config: unconfig
  820. @./mkconfig $(@:_config=) ppc mpc8260 cogent
  821. CPU86_config \
  822. CPU86_ROMBOOT_config: unconfig
  823. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
  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. CPU87_config \
  834. CPU87_ROMBOOT_config: unconfig
  835. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
  836. @cd ./include ; \
  837. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  838. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  839. echo "... booting from 8-bit flash" ; \
  840. else \
  841. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  842. echo "... booting from 64-bit flash" ; \
  843. fi; \
  844. echo "export CONFIG_BOOT_ROM" >> config.mk;
  845. ep8248_config \
  846. ep8248E_config : unconfig
  847. @./mkconfig ep8248 ppc mpc8260 ep8248
  848. ep8260_config: unconfig
  849. @./mkconfig $(@:_config=) ppc mpc8260 ep8260
  850. gw8260_config: unconfig
  851. @./mkconfig $(@:_config=) ppc mpc8260 gw8260
  852. hymod_config: unconfig
  853. @./mkconfig $(@:_config=) ppc mpc8260 hymod
  854. IDS8247_config: unconfig
  855. @./mkconfig $(@:_config=) ppc mpc8260 ids8247
  856. IPHASE4539_config: unconfig
  857. @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
  858. ISPAN_config \
  859. ISPAN_REVB_config: unconfig
  860. @if [ "$(findstring _REVB_,$@)" ] ; then \
  861. echo "#define CFG_REV_B" > include/config.h ; \
  862. fi
  863. @./mkconfig -a ISPAN ppc mpc8260 ispan
  864. MPC8260ADS_config \
  865. MPC8260ADS_lowboot_config \
  866. MPC8260ADS_33MHz_config \
  867. MPC8260ADS_33MHz_lowboot_config \
  868. MPC8260ADS_40MHz_config \
  869. MPC8260ADS_40MHz_lowboot_config \
  870. MPC8272ADS_config \
  871. MPC8272ADS_lowboot_config \
  872. PQ2FADS_config \
  873. PQ2FADS_lowboot_config \
  874. PQ2FADS-VR_config \
  875. PQ2FADS-VR_lowboot_config \
  876. PQ2FADS-ZU_config \
  877. PQ2FADS-ZU_lowboot_config \
  878. PQ2FADS-ZU_66MHz_config \
  879. PQ2FADS-ZU_66MHz_lowboot_config \
  880. : unconfig
  881. $(if $(findstring PQ2FADS,$@), \
  882. @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
  883. @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
  884. $(if $(findstring MHz,$@), \
  885. @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
  886. $(if $(findstring VR,$@), \
  887. @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
  888. @[ -z "$(findstring lowboot_,$@)" ] || \
  889. { echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
  890. echo "... with lowboot configuration" ; \
  891. }
  892. @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
  893. MPC8266ADS_config: unconfig
  894. @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
  895. # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
  896. PM825_config \
  897. PM825_ROMBOOT_config \
  898. PM825_BIGFLASH_config \
  899. PM825_ROMBOOT_BIGFLASH_config \
  900. PM826_config \
  901. PM826_ROMBOOT_config \
  902. PM826_BIGFLASH_config \
  903. PM826_ROMBOOT_BIGFLASH_config: unconfig
  904. @if [ "$(findstring PM825_,$@)" ] ; then \
  905. echo "#define CONFIG_PCI" >include/config.h ; \
  906. else \
  907. >include/config.h ; \
  908. fi
  909. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  910. echo "... booting from 8-bit flash" ; \
  911. echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
  912. echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
  913. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  914. echo "... with 32 MB Flash" ; \
  915. echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
  916. fi; \
  917. else \
  918. echo "... booting from 64-bit flash" ; \
  919. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  920. echo "... with 32 MB Flash" ; \
  921. echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
  922. echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
  923. else \
  924. echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
  925. fi; \
  926. fi
  927. @./mkconfig -a PM826 ppc mpc8260 pm826
  928. PM828_config \
  929. PM828_PCI_config \
  930. PM828_ROMBOOT_config \
  931. PM828_ROMBOOT_PCI_config: unconfig
  932. @if [ -z "$(findstring _PCI_,$@)" ] ; then \
  933. echo "#define CONFIG_PCI" >>include/config.h ; \
  934. echo "... with PCI enabled" ; \
  935. else \
  936. >include/config.h ; \
  937. fi
  938. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  939. echo "... booting from 8-bit flash" ; \
  940. echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
  941. echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
  942. fi
  943. @./mkconfig -a PM828 ppc mpc8260 pm828
  944. ppmc8260_config: unconfig
  945. @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
  946. Rattler8248_config \
  947. Rattler_config: unconfig
  948. $(if $(findstring 8248,$@), \
  949. @echo "#define CONFIG_MPC8248" > include/config.h)
  950. @./mkconfig -a Rattler ppc mpc8260 rattler
  951. RPXsuper_config: unconfig
  952. @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
  953. rsdproto_config: unconfig
  954. @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
  955. sacsng_config: unconfig
  956. @./mkconfig $(@:_config=) ppc mpc8260 sacsng
  957. sbc8260_config: unconfig
  958. @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
  959. SCM_config: unconfig
  960. @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
  961. TQM8255_AA_config \
  962. TQM8260_AA_config \
  963. TQM8260_AB_config \
  964. TQM8260_AC_config \
  965. TQM8260_AD_config \
  966. TQM8260_AE_config \
  967. TQM8260_AF_config \
  968. TQM8260_AG_config \
  969. TQM8260_AH_config \
  970. TQM8265_AA_config: unconfig
  971. @case "$@" in \
  972. TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
  973. TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
  974. TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  975. TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  976. TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  977. TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
  978. TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  979. TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
  980. TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
  981. TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
  982. esac; \
  983. >include/config.h ; \
  984. if [ "$${CTYPE}" != "MPC8260" ] ; then \
  985. echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
  986. fi; \
  987. echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
  988. echo "... with $${CFREQ}MHz system clock" ; \
  989. if [ "$${CACHE}" == "yes" ] ; then \
  990. echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
  991. echo "... with L2 Cache support" ; \
  992. else \
  993. echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
  994. echo "... without L2 Cache support" ; \
  995. fi; \
  996. if [ "$${BMODE}" == "60x" ] ; then \
  997. echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
  998. echo "... with 60x Bus Mode" ; \
  999. else \
  1000. echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
  1001. echo "... without 60x Bus Mode" ; \
  1002. fi
  1003. @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
  1004. VoVPN-GW_66MHz_config \
  1005. VoVPN-GW_100MHz_config: unconfig
  1006. @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
  1007. @./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
  1008. ZPC1900_config: unconfig
  1009. @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
  1010. #========================================================================
  1011. # M68K
  1012. #========================================================================
  1013. #########################################################################
  1014. ## Coldfire
  1015. #########################################################################
  1016. M5272C3_config : unconfig
  1017. @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
  1018. M5282EVB_config : unconfig
  1019. @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
  1020. TASREG_config : unconfig
  1021. @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
  1022. #########################################################################
  1023. ## MPC83xx Systems
  1024. #########################################################################
  1025. MPC8349ADS_config: unconfig
  1026. @./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
  1027. TQM834x_config: unconfig
  1028. @./mkconfig $(@:_config=) ppc mpc83xx tqm834x
  1029. #########################################################################
  1030. ## MPC85xx Systems
  1031. #########################################################################
  1032. MPC8540ADS_config: unconfig
  1033. @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
  1034. MPC8540EVAL_config \
  1035. MPC8540EVAL_33_config \
  1036. MPC8540EVAL_66_config \
  1037. MPC8540EVAL_33_slave_config \
  1038. MPC8540EVAL_66_slave_config: unconfig
  1039. @echo "" >include/config.h ; \
  1040. if [ "$(findstring _33_,$@)" ] ; then \
  1041. echo -n "... 33 MHz PCI" ; \
  1042. else \
  1043. echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
  1044. echo -n "... 66 MHz PCI" ; \
  1045. fi ; \
  1046. if [ "$(findstring _slave_,$@)" ] ; then \
  1047. echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
  1048. echo " slave" ; \
  1049. else \
  1050. echo " host" ; \
  1051. fi
  1052. @./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
  1053. MPC8560ADS_config: unconfig
  1054. @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
  1055. MPC8541CDS_config: unconfig
  1056. @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
  1057. MPC8548CDS_config: unconfig
  1058. @./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
  1059. MPC8555CDS_config: unconfig
  1060. @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
  1061. PM854_config: unconfig
  1062. @./mkconfig $(@:_config=) ppc mpc85xx pm854
  1063. PM856_config: unconfig
  1064. @./mkconfig $(@:_config=) ppc mpc85xx pm856
  1065. sbc8540_config \
  1066. sbc8540_33_config \
  1067. sbc8540_66_config: unconfig
  1068. @if [ "$(findstring _66_,$@)" ] ; then \
  1069. echo "#define CONFIG_PCI_66" >>include/config.h ; \
  1070. echo "... 66 MHz PCI" ; \
  1071. else \
  1072. >include/config.h ; \
  1073. echo "... 33 MHz PCI" ; \
  1074. fi
  1075. @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
  1076. sbc8560_config \
  1077. sbc8560_33_config \
  1078. sbc8560_66_config: unconfig
  1079. @if [ "$(findstring _66_,$@)" ] ; then \
  1080. echo "#define CONFIG_PCI_66" >>include/config.h ; \
  1081. echo "... 66 MHz PCI" ; \
  1082. else \
  1083. >include/config.h ; \
  1084. echo "... 33 MHz PCI" ; \
  1085. fi
  1086. @./mkconfig -a sbc8560 ppc mpc85xx sbc8560
  1087. stxgp3_config: unconfig
  1088. @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
  1089. TQM8540_config \
  1090. TQM8541_config \
  1091. TQM8555_config \
  1092. TQM8560_config: unconfig
  1093. @case "$@" in \
  1094. TQM8540_config) CTYPE=8540;; \
  1095. TQM8541_config) CTYPE=8541;; \
  1096. TQM8555_config) CTYPE=8555;; \
  1097. TQM8560_config) CTYPE=8560;; \
  1098. esac; \
  1099. >include/config.h ; \
  1100. echo "... TQM"$${CTYPE}; \
  1101. echo "#define CONFIG_MPC$${CTYPE}">>include/config.h; \
  1102. echo "#define CONFIG_TQM$${CTYPE}">>include/config.h; \
  1103. echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>include/config.h; \
  1104. echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>include/config.h; \
  1105. echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>include/config.h
  1106. @./mkconfig -a TQM85xx ppc mpc85xx tqm85xx
  1107. #########################################################################
  1108. ## 74xx/7xx Systems
  1109. #########################################################################
  1110. AmigaOneG3SE_config: unconfig
  1111. @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
  1112. BAB7xx_config: unconfig
  1113. @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
  1114. CPCI750_config: unconfig
  1115. @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
  1116. DB64360_config: unconfig
  1117. @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
  1118. DB64460_config: unconfig
  1119. @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
  1120. ELPPC_config: unconfig
  1121. @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
  1122. EVB64260_config \
  1123. EVB64260_750CX_config: unconfig
  1124. @./mkconfig EVB64260 ppc 74xx_7xx evb64260
  1125. P3G4_config: unconfig
  1126. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  1127. PCIPPC2_config \
  1128. PCIPPC6_config: unconfig
  1129. @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
  1130. ZUMA_config: unconfig
  1131. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  1132. #========================================================================
  1133. # ARM
  1134. #========================================================================
  1135. #########################################################################
  1136. ## StrongARM Systems
  1137. #########################################################################
  1138. assabet_config : unconfig
  1139. @./mkconfig $(@:_config=) arm sa1100 assabet
  1140. dnp1110_config : unconfig
  1141. @./mkconfig $(@:_config=) arm sa1100 dnp1110
  1142. gcplus_config : unconfig
  1143. @./mkconfig $(@:_config=) arm sa1100 gcplus
  1144. lart_config : unconfig
  1145. @./mkconfig $(@:_config=) arm sa1100 lart
  1146. shannon_config : unconfig
  1147. @./mkconfig $(@:_config=) arm sa1100 shannon
  1148. #########################################################################
  1149. ## ARM92xT Systems
  1150. #########################################################################
  1151. xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
  1152. xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
  1153. xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
  1154. at91rm9200dk_config : unconfig
  1155. @./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
  1156. cmc_pu2_config : unconfig
  1157. @./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
  1158. csb637_config : unconfig
  1159. @./mkconfig $(@:_config=) arm arm920t csb637 NULL at91rm9200
  1160. mp2usb_config : unconfig
  1161. @./mkconfig $(@:_config=) arm arm920t mp2usb NULL at91rm9200
  1162. ########################################################################
  1163. ## ARM Integrator boards - see doc/README-integrator for more info.
  1164. integratorap_config \
  1165. ap_config \
  1166. ap966_config \
  1167. ap922_config \
  1168. ap922_XA10_config \
  1169. ap7_config \
  1170. ap720t_config \
  1171. ap920t_config \
  1172. ap926ejs_config \
  1173. ap946es_config: unconfig
  1174. @board/integratorap/split_by_variant.sh $@
  1175. integratorcp_config \
  1176. cp_config \
  1177. cp920t_config \
  1178. cp926ejs_config \
  1179. cp946es_config \
  1180. cp1136_config \
  1181. cp966_config \
  1182. cp922_config \
  1183. cp922_XA10_config \
  1184. cp1026_config: unconfig
  1185. @board/integratorcp/split_by_variant.sh $@
  1186. kb9202_config : unconfig
  1187. @./mkconfig $(@:_config=) arm arm920t kb9202 NULL at91rm9200
  1188. lpd7a400_config \
  1189. lpd7a404_config: unconfig
  1190. @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
  1191. mx1ads_config : unconfig
  1192. @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
  1193. mx1fs2_config : unconfig
  1194. @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
  1195. omap1510inn_config : unconfig
  1196. @./mkconfig $(@:_config=) arm arm925t omap1510inn
  1197. omap5912osk_config : unconfig
  1198. @./mkconfig $(@:_config=) arm arm926ejs omap5912osk
  1199. omap1610inn_config \
  1200. omap1610inn_cs0boot_config \
  1201. omap1610inn_cs3boot_config \
  1202. omap1610inn_cs_autoboot_config \
  1203. omap1610h2_config \
  1204. omap1610h2_cs0boot_config \
  1205. omap1610h2_cs3boot_config \
  1206. omap1610h2_cs_autoboot_config: unconfig
  1207. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1208. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  1209. echo "... configured for CS0 boot"; \
  1210. elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
  1211. echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
  1212. echo "... configured for CS_AUTO boot"; \
  1213. else \
  1214. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  1215. echo "... configured for CS3 boot"; \
  1216. fi;
  1217. @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
  1218. omap730p2_config \
  1219. omap730p2_cs0boot_config \
  1220. omap730p2_cs3boot_config : unconfig
  1221. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1222. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  1223. echo "... configured for CS0 boot"; \
  1224. else \
  1225. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  1226. echo "... configured for CS3 boot"; \
  1227. fi;
  1228. @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
  1229. scb9328_config : unconfig
  1230. @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
  1231. smdk2400_config : unconfig
  1232. @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
  1233. smdk2410_config : unconfig
  1234. @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
  1235. SX1_config : unconfig
  1236. @./mkconfig $(@:_config=) arm arm925t sx1
  1237. # TRAB default configuration: 8 MB Flash, 32 MB RAM
  1238. trab_config \
  1239. trab_bigram_config \
  1240. trab_bigflash_config \
  1241. trab_old_config: unconfig
  1242. @ >include/config.h
  1243. @[ -z "$(findstring _bigram,$@)" ] || \
  1244. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  1245. echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
  1246. echo "... with 8 MB Flash, 32 MB RAM" ; \
  1247. }
  1248. @[ -z "$(findstring _bigflash,$@)" ] || \
  1249. { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
  1250. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  1251. echo "... with 16 MB Flash, 16 MB RAM" ; \
  1252. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  1253. }
  1254. @[ -z "$(findstring _old,$@)" ] || \
  1255. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  1256. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  1257. echo "... with 8 MB Flash, 16 MB RAM" ; \
  1258. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  1259. }
  1260. @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
  1261. VCMA9_config : unconfig
  1262. @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
  1263. #========================================================================
  1264. # ARM supplied Versatile development boards
  1265. #========================================================================
  1266. versatile_config \
  1267. versatileab_config \
  1268. versatilepb_config : unconfig
  1269. @board/versatile/split_by_variant.sh $@
  1270. voiceblue_smallflash_config \
  1271. voiceblue_config: unconfig
  1272. @if [ "$(findstring _smallflash_,$@)" ] ; then \
  1273. echo "... boot from lower flash bank" ; \
  1274. echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
  1275. echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
  1276. else \
  1277. echo "... boot from upper flash bank" ; \
  1278. >include/config.h ; \
  1279. echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
  1280. fi
  1281. @./mkconfig -a voiceblue arm arm925t voiceblue
  1282. cm4008_config : unconfig
  1283. @./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
  1284. cm41xx_config : unconfig
  1285. @./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
  1286. #########################################################################
  1287. ## S3C44B0 Systems
  1288. #########################################################################
  1289. B2_config : unconfig
  1290. @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
  1291. #########################################################################
  1292. ## ARM720T Systems
  1293. #########################################################################
  1294. armadillo_config: unconfig
  1295. @./mkconfig $(@:_config=) arm arm720t armadillo
  1296. ep7312_config : unconfig
  1297. @./mkconfig $(@:_config=) arm arm720t ep7312
  1298. impa7_config : unconfig
  1299. @./mkconfig $(@:_config=) arm arm720t impa7
  1300. modnet50_config : unconfig
  1301. @./mkconfig $(@:_config=) arm arm720t modnet50
  1302. evb4510_config : unconfig
  1303. @./mkconfig $(@:_config=) arm arm720t evb4510
  1304. #########################################################################
  1305. ## XScale Systems
  1306. #########################################################################
  1307. adsvix_config : unconfig
  1308. @./mkconfig $(@:_config=) arm pxa adsvix
  1309. cerf250_config : unconfig
  1310. @./mkconfig $(@:_config=) arm pxa cerf250
  1311. cradle_config : unconfig
  1312. @./mkconfig $(@:_config=) arm pxa cradle
  1313. csb226_config : unconfig
  1314. @./mkconfig $(@:_config=) arm pxa csb226
  1315. innokom_config : unconfig
  1316. @./mkconfig $(@:_config=) arm pxa innokom
  1317. ixdp425_config : unconfig
  1318. @./mkconfig $(@:_config=) arm ixp ixdp425
  1319. lubbock_config : unconfig
  1320. @./mkconfig $(@:_config=) arm pxa lubbock
  1321. logodl_config : unconfig
  1322. @./mkconfig $(@:_config=) arm pxa logodl
  1323. pxa255_idp_config: unconfig
  1324. @./mkconfig $(@:_config=) arm pxa pxa255_idp
  1325. wepep250_config : unconfig
  1326. @./mkconfig $(@:_config=) arm pxa wepep250
  1327. xaeniax_config : unconfig
  1328. @./mkconfig $(@:_config=) arm pxa xaeniax
  1329. xm250_config : unconfig
  1330. @./mkconfig $(@:_config=) arm pxa xm250
  1331. xsengine_config : unconfig
  1332. @./mkconfig $(@:_config=) arm pxa xsengine
  1333. #########################################################################
  1334. ## ARM1136 Systems
  1335. #########################################################################
  1336. omap2420h4_config : unconfig
  1337. @./mkconfig $(@:_config=) arm arm1136 omap2420h4
  1338. #========================================================================
  1339. # i386
  1340. #========================================================================
  1341. #########################################################################
  1342. ## AMD SC520 CDP
  1343. #########################################################################
  1344. sc520_cdp_config : unconfig
  1345. @./mkconfig $(@:_config=) i386 i386 sc520_cdp
  1346. sc520_spunk_config : unconfig
  1347. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  1348. sc520_spunk_rel_config : unconfig
  1349. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  1350. #========================================================================
  1351. # MIPS
  1352. #========================================================================
  1353. #########################################################################
  1354. ## MIPS32 4Kc
  1355. #########################################################################
  1356. xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
  1357. incaip_100MHz_config \
  1358. incaip_133MHz_config \
  1359. incaip_150MHz_config \
  1360. incaip_config: unconfig
  1361. @ >include/config.h
  1362. @[ -z "$(findstring _100MHz,$@)" ] || \
  1363. { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
  1364. echo "... with 100MHz system clock" ; \
  1365. }
  1366. @[ -z "$(findstring _133MHz,$@)" ] || \
  1367. { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
  1368. echo "... with 133MHz system clock" ; \
  1369. }
  1370. @[ -z "$(findstring _150MHz,$@)" ] || \
  1371. { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
  1372. echo "... with 150MHz system clock" ; \
  1373. }
  1374. @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
  1375. tb0229_config: unconfig
  1376. @./mkconfig $(@:_config=) mips mips tb0229
  1377. #########################################################################
  1378. ## MIPS32 AU1X00
  1379. #########################################################################
  1380. dbau1000_config : unconfig
  1381. @ >include/config.h
  1382. @echo "#define CONFIG_DBAU1000 1" >>include/config.h
  1383. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1384. dbau1100_config : unconfig
  1385. @ >include/config.h
  1386. @echo "#define CONFIG_DBAU1100 1" >>include/config.h
  1387. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1388. dbau1500_config : unconfig
  1389. @ >include/config.h
  1390. @echo "#define CONFIG_DBAU1500 1" >>include/config.h
  1391. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1392. dbau1550_config : unconfig
  1393. @ >include/config.h
  1394. @echo "#define CONFIG_DBAU1550 1" >>include/config.h
  1395. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1396. dbau1550_el_config : unconfig
  1397. @ >include/config.h
  1398. @echo "#define CONFIG_DBAU1550 1" >>include/config.h
  1399. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1400. pb1000_config : unconfig
  1401. @ >include/config.h
  1402. @echo "#define CONFIG_PB1000 1" >>include/config.h
  1403. @./mkconfig -a pb1x00 mips mips pb1x00
  1404. #########################################################################
  1405. ## MIPS64 5Kc
  1406. #########################################################################
  1407. purple_config : unconfig
  1408. @./mkconfig $(@:_config=) mips mips purple
  1409. #========================================================================
  1410. # Nios
  1411. #========================================================================
  1412. #########################################################################
  1413. ## Nios32
  1414. #########################################################################
  1415. DK1C20_safe_32_config \
  1416. DK1C20_standard_32_config \
  1417. DK1C20_config: unconfig
  1418. @ >include/config.h
  1419. @[ -z "$(findstring _safe_32,$@)" ] || \
  1420. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  1421. echo "... NIOS 'safe_32' configuration" ; \
  1422. }
  1423. @[ -z "$(findstring _standard_32,$@)" ] || \
  1424. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1425. echo "... NIOS 'standard_32' configuration" ; \
  1426. }
  1427. @[ -z "$(findstring DK1C20_config,$@)" ] || \
  1428. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1429. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  1430. }
  1431. @./mkconfig -a DK1C20 nios nios dk1c20 altera
  1432. DK1S10_safe_32_config \
  1433. DK1S10_standard_32_config \
  1434. DK1S10_mtx_ldk_20_config \
  1435. DK1S10_config: unconfig
  1436. @ >include/config.h
  1437. @[ -z "$(findstring _safe_32,$@)" ] || \
  1438. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  1439. echo "... NIOS 'safe_32' configuration" ; \
  1440. }
  1441. @[ -z "$(findstring _standard_32,$@)" ] || \
  1442. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1443. echo "... NIOS 'standard_32' configuration" ; \
  1444. }
  1445. @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
  1446. { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
  1447. echo "... NIOS 'mtx_ldk_20' configuration" ; \
  1448. }
  1449. @[ -z "$(findstring DK1S10_config,$@)" ] || \
  1450. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1451. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  1452. }
  1453. @./mkconfig -a DK1S10 nios nios dk1s10 altera
  1454. ADNPESC1_DNPEVA2_base_32_config \
  1455. ADNPESC1_base_32_config \
  1456. ADNPESC1_config: unconfig
  1457. @ >include/config.h
  1458. @[ -z "$(findstring _DNPEVA2,$@)" ] || \
  1459. { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
  1460. echo "... DNP/EVA2 configuration" ; \
  1461. }
  1462. @[ -z "$(findstring _base_32,$@)" ] || \
  1463. { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
  1464. echo "... NIOS 'base_32' configuration" ; \
  1465. }
  1466. @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
  1467. { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
  1468. echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
  1469. }
  1470. @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
  1471. #########################################################################
  1472. ## Nios-II
  1473. #########################################################################
  1474. PK1C20_config : unconfig
  1475. @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
  1476. PCI5441_config : unconfig
  1477. @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
  1478. #========================================================================
  1479. # MicroBlaze
  1480. #========================================================================
  1481. #########################################################################
  1482. ## Microblaze
  1483. #########################################################################
  1484. suzaku_config: unconfig
  1485. @ >include/config.h
  1486. @echo "#define CONFIG_SUZAKU 1" >> include/config.h
  1487. @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
  1488. #########################################################################
  1489. #########################################################################
  1490. clean:
  1491. find . -type f \
  1492. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  1493. -o -name '*.o' -o -name '*.a' \) -print \
  1494. | xargs rm -f
  1495. rm -f examples/hello_world examples/timer \
  1496. examples/eepro100_eeprom examples/sched \
  1497. examples/mem_to_mem_idma2intr examples/82559_eeprom \
  1498. examples/test_burst
  1499. rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
  1500. rm -f tools/mpc86x_clk tools/ncb
  1501. rm -f tools/easylogo/easylogo tools/bmp_logo
  1502. rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
  1503. rm -f tools/env/fw_printenv tools/env/fw_setenv
  1504. rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
  1505. rm -f board/trab/trab_fkt board/voiceblue/eeprom
  1506. rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
  1507. clobber: clean
  1508. find . -type f \( -name .depend \
  1509. -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
  1510. -print0 \
  1511. | xargs -0 rm -f
  1512. rm -f $(OBJS) *.bak tags TAGS
  1513. rm -fr *.*~
  1514. rm -f u-boot u-boot.map u-boot.hex $(ALL)
  1515. rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
  1516. rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
  1517. rm -f include/asm/proc include/asm/arch include/asm
  1518. mrproper \
  1519. distclean: clobber unconfig
  1520. backup:
  1521. F=`basename $(TOPDIR)` ; cd .. ; \
  1522. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  1523. #########################################################################