Makefile 55 KB

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