Makefile 61 KB

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