Makefile 55 KB

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