Makefile 60 KB

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