Makefile 59 KB

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