Makefile 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835
  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. METROBOX_config: unconfig
  673. @./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
  674. MIP405_config: unconfig
  675. @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
  676. MIP405T_config: unconfig
  677. @echo "#define CONFIG_MIP405T" >include/config.h
  678. @echo "Enable subset config for MIP405T"
  679. @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
  680. ML2_config: unconfig
  681. @./mkconfig $(@:_config=) ppc ppc4xx ml2
  682. ml300_config: unconfig
  683. @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
  684. ocotea_config: unconfig
  685. @./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
  686. OCRTC_config \
  687. ORSG_config: unconfig
  688. @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
  689. PCI405_config: unconfig
  690. @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
  691. PIP405_config: unconfig
  692. @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
  693. PLU405_config: unconfig
  694. @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
  695. PMC405_config: unconfig
  696. @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
  697. PPChameleonEVB_config \
  698. PPChameleonEVB_BA_25_config \
  699. PPChameleonEVB_ME_25_config \
  700. PPChameleonEVB_HI_25_config \
  701. PPChameleonEVB_BA_33_config \
  702. PPChameleonEVB_ME_33_config \
  703. PPChameleonEVB_HI_33_config: unconfig
  704. @ >include/config.h
  705. @[ -z "$(findstring EVB_BA,$@)" ] || \
  706. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
  707. echo "... BASIC model" ; \
  708. }
  709. @[ -z "$(findstring EVB_ME,$@)" ] || \
  710. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
  711. echo "... MEDIUM model" ; \
  712. }
  713. @[ -z "$(findstring EVB_HI,$@)" ] || \
  714. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
  715. echo "... HIGH-END model" ; \
  716. }
  717. @[ -z "$(findstring _25,$@)" ] || \
  718. { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
  719. echo "SysClk = 25MHz" ; \
  720. }
  721. @[ -z "$(findstring _33,$@)" ] || \
  722. { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
  723. echo "SysClk = 33MHz" ; \
  724. }
  725. @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  726. sbc405_config: unconfig
  727. @./mkconfig $(@:_config=) ppc ppc4xx sbc405
  728. sycamore_config: unconfig
  729. @echo "Configuring for sycamore board as subset of walnut..."
  730. @./mkconfig -a walnut ppc ppc4xx walnut amcc
  731. VOH405_config: unconfig
  732. @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
  733. VOM405_config: unconfig
  734. @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
  735. W7OLMC_config \
  736. W7OLMG_config: unconfig
  737. @./mkconfig $(@:_config=) ppc ppc4xx w7o
  738. walnut_config: unconfig
  739. @./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
  740. WUH405_config: unconfig
  741. @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
  742. XPEDITE1K_config: unconfig
  743. @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
  744. yosemite_config: unconfig
  745. @./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
  746. yellowstone_config: unconfig
  747. @./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
  748. #########################################################################
  749. ## MPC8220 Systems
  750. #########################################################################
  751. Alaska8220_config \
  752. Yukon8220_config: unconfig
  753. @./mkconfig $(@:_config=) ppc mpc8220 alaska
  754. sorcery_config: unconfig
  755. @./mkconfig $(@:_config=) ppc mpc8220 sorcery
  756. #########################################################################
  757. ## MPC824x Systems
  758. #########################################################################
  759. xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
  760. A3000_config: unconfig
  761. @./mkconfig $(@:_config=) ppc mpc824x a3000
  762. barco_config: unconfig
  763. @./mkconfig $(@:_config=) ppc mpc824x barco
  764. BMW_config: unconfig
  765. @./mkconfig $(@:_config=) ppc mpc824x bmw
  766. CPC45_config \
  767. CPC45_ROMBOOT_config: unconfig
  768. @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
  769. @cd ./include ; \
  770. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  771. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  772. echo "... booting from 8-bit flash" ; \
  773. else \
  774. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  775. echo "... booting from 64-bit flash" ; \
  776. fi; \
  777. echo "export CONFIG_BOOT_ROM" >> config.mk;
  778. CU824_config: unconfig
  779. @./mkconfig $(@:_config=) ppc mpc824x cu824
  780. debris_config: unconfig
  781. @./mkconfig $(@:_config=) ppc mpc824x debris etin
  782. eXalion_config: unconfig
  783. @./mkconfig $(@:_config=) ppc mpc824x eXalion
  784. HIDDEN_DRAGON_config: unconfig
  785. @./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
  786. MOUSSE_config: unconfig
  787. @./mkconfig $(@:_config=) ppc mpc824x mousse
  788. MUSENKI_config: unconfig
  789. @./mkconfig $(@:_config=) ppc mpc824x musenki
  790. MVBLUE_config: unconfig
  791. @./mkconfig $(@:_config=) ppc mpc824x mvblue
  792. OXC_config: unconfig
  793. @./mkconfig $(@:_config=) ppc mpc824x oxc
  794. PN62_config: unconfig
  795. @./mkconfig $(@:_config=) ppc mpc824x pn62
  796. Sandpoint8240_config: unconfig
  797. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  798. Sandpoint8245_config: unconfig
  799. @./mkconfig $(@:_config=) ppc mpc824x sandpoint
  800. sbc8240_config: unconfig
  801. @./mkconfig $(@:_config=) ppc mpc824x sbc8240
  802. SL8245_config: unconfig
  803. @./mkconfig $(@:_config=) ppc mpc824x sl8245
  804. utx8245_config: unconfig
  805. @./mkconfig $(@:_config=) ppc mpc824x utx8245
  806. cobra5272_config : unconfig
  807. @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
  808. #########################################################################
  809. ## MPC8260 Systems
  810. #########################################################################
  811. atc_config: unconfig
  812. @./mkconfig $(@:_config=) ppc mpc8260 atc
  813. cogent_mpc8260_config: unconfig
  814. @./mkconfig $(@:_config=) ppc mpc8260 cogent
  815. CPU86_config \
  816. CPU86_ROMBOOT_config: unconfig
  817. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
  818. @cd ./include ; \
  819. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  820. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  821. echo "... booting from 8-bit flash" ; \
  822. else \
  823. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  824. echo "... booting from 64-bit flash" ; \
  825. fi; \
  826. echo "export CONFIG_BOOT_ROM" >> config.mk;
  827. CPU87_config \
  828. CPU87_ROMBOOT_config: unconfig
  829. @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
  830. @cd ./include ; \
  831. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  832. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  833. echo "... booting from 8-bit flash" ; \
  834. else \
  835. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  836. echo "... booting from 64-bit flash" ; \
  837. fi; \
  838. echo "export CONFIG_BOOT_ROM" >> config.mk;
  839. ep8248_config \
  840. ep8248E_config : unconfig
  841. @./mkconfig ep8248 ppc mpc8260 ep8248
  842. ep8260_config: unconfig
  843. @./mkconfig $(@:_config=) ppc mpc8260 ep8260
  844. gw8260_config: unconfig
  845. @./mkconfig $(@:_config=) ppc mpc8260 gw8260
  846. hymod_config: unconfig
  847. @./mkconfig $(@:_config=) ppc mpc8260 hymod
  848. IDS8247_config: unconfig
  849. @./mkconfig $(@:_config=) ppc mpc8260 ids8247
  850. IPHASE4539_config: unconfig
  851. @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
  852. ISPAN_config \
  853. ISPAN_REVB_config: unconfig
  854. @if [ "$(findstring _REVB_,$@)" ] ; then \
  855. echo "#define CFG_REV_B" > include/config.h ; \
  856. fi
  857. @./mkconfig -a ISPAN ppc mpc8260 ispan
  858. MPC8260ADS_config \
  859. MPC8260ADS_lowboot_config \
  860. MPC8260ADS_33MHz_config \
  861. MPC8260ADS_33MHz_lowboot_config \
  862. MPC8260ADS_40MHz_config \
  863. MPC8260ADS_40MHz_lowboot_config \
  864. MPC8272ADS_config \
  865. MPC8272ADS_lowboot_config \
  866. PQ2FADS_config \
  867. PQ2FADS_lowboot_config \
  868. PQ2FADS-VR_config \
  869. PQ2FADS-VR_lowboot_config \
  870. PQ2FADS-ZU_config \
  871. PQ2FADS-ZU_lowboot_config \
  872. PQ2FADS-ZU_66MHz_config \
  873. PQ2FADS-ZU_66MHz_lowboot_config \
  874. : unconfig
  875. $(if $(findstring PQ2FADS,$@), \
  876. @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
  877. @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
  878. $(if $(findstring MHz,$@), \
  879. @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
  880. $(if $(findstring VR,$@), \
  881. @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
  882. @[ -z "$(findstring lowboot_,$@)" ] || \
  883. { echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
  884. echo "... with lowboot configuration" ; \
  885. }
  886. @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
  887. MPC8266ADS_config: unconfig
  888. @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
  889. # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
  890. PM825_config \
  891. PM825_ROMBOOT_config \
  892. PM825_BIGFLASH_config \
  893. PM825_ROMBOOT_BIGFLASH_config \
  894. PM826_config \
  895. PM826_ROMBOOT_config \
  896. PM826_BIGFLASH_config \
  897. PM826_ROMBOOT_BIGFLASH_config: unconfig
  898. @if [ "$(findstring PM825_,$@)" ] ; then \
  899. echo "#define CONFIG_PCI" >include/config.h ; \
  900. else \
  901. >include/config.h ; \
  902. fi
  903. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  904. echo "... booting from 8-bit flash" ; \
  905. echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
  906. echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
  907. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  908. echo "... with 32 MB Flash" ; \
  909. echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
  910. fi; \
  911. else \
  912. echo "... booting from 64-bit flash" ; \
  913. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  914. echo "... with 32 MB Flash" ; \
  915. echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
  916. echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
  917. else \
  918. echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
  919. fi; \
  920. fi
  921. @./mkconfig -a PM826 ppc mpc8260 pm826
  922. PM828_config \
  923. PM828_PCI_config \
  924. PM828_ROMBOOT_config \
  925. PM828_ROMBOOT_PCI_config: unconfig
  926. @if [ -z "$(findstring _PCI_,$@)" ] ; then \
  927. echo "#define CONFIG_PCI" >>include/config.h ; \
  928. echo "... with PCI enabled" ; \
  929. else \
  930. >include/config.h ; \
  931. fi
  932. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  933. echo "... booting from 8-bit flash" ; \
  934. echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
  935. echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
  936. fi
  937. @./mkconfig -a PM828 ppc mpc8260 pm828
  938. ppmc8260_config: unconfig
  939. @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
  940. Rattler8248_config \
  941. Rattler_config: unconfig
  942. $(if $(findstring 8248,$@), \
  943. @echo "#define CONFIG_MPC8248" > include/config.h)
  944. @./mkconfig -a Rattler ppc mpc8260 rattler
  945. RPXsuper_config: unconfig
  946. @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
  947. rsdproto_config: unconfig
  948. @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
  949. sacsng_config: unconfig
  950. @./mkconfig $(@:_config=) ppc mpc8260 sacsng
  951. sbc8260_config: unconfig
  952. @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
  953. SCM_config: unconfig
  954. @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
  955. TQM8255_AA_config \
  956. TQM8260_AA_config \
  957. TQM8260_AB_config \
  958. TQM8260_AC_config \
  959. TQM8260_AD_config \
  960. TQM8260_AE_config \
  961. TQM8260_AF_config \
  962. TQM8260_AG_config \
  963. TQM8260_AH_config \
  964. TQM8265_AA_config: unconfig
  965. @case "$@" in \
  966. TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
  967. TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
  968. TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  969. TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  970. TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  971. TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
  972. TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  973. TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
  974. TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
  975. TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
  976. esac; \
  977. >include/config.h ; \
  978. if [ "$${CTYPE}" != "MPC8260" ] ; then \
  979. echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
  980. fi; \
  981. echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
  982. echo "... with $${CFREQ}MHz system clock" ; \
  983. if [ "$${CACHE}" == "yes" ] ; then \
  984. echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
  985. echo "... with L2 Cache support" ; \
  986. else \
  987. echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
  988. echo "... without L2 Cache support" ; \
  989. fi; \
  990. if [ "$${BMODE}" == "60x" ] ; then \
  991. echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
  992. echo "... with 60x Bus Mode" ; \
  993. else \
  994. echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
  995. echo "... without 60x Bus Mode" ; \
  996. fi
  997. @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
  998. VoVPN-GW_66MHz_config \
  999. VoVPN-GW_100MHz_config: unconfig
  1000. @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
  1001. @./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
  1002. ZPC1900_config: unconfig
  1003. @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
  1004. #========================================================================
  1005. # M68K
  1006. #========================================================================
  1007. #########################################################################
  1008. ## Coldfire
  1009. #########################################################################
  1010. M5272C3_config : unconfig
  1011. @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
  1012. M5282EVB_config : unconfig
  1013. @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
  1014. TASREG_config : unconfig
  1015. @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
  1016. #########################################################################
  1017. ## MPC83xx Systems
  1018. #########################################################################
  1019. MPC8349ADS_config: unconfig
  1020. @./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
  1021. TQM834x_config: unconfig
  1022. @./mkconfig $(@:_config=) ppc mpc83xx tqm834x
  1023. #########################################################################
  1024. ## MPC85xx Systems
  1025. #########################################################################
  1026. MPC8540ADS_config: unconfig
  1027. @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
  1028. MPC8540EVAL_config \
  1029. MPC8540EVAL_33_config \
  1030. MPC8540EVAL_66_config \
  1031. MPC8540EVAL_33_slave_config \
  1032. MPC8540EVAL_66_slave_config: unconfig
  1033. @echo "" >include/config.h ; \
  1034. if [ "$(findstring _33_,$@)" ] ; then \
  1035. echo -n "... 33 MHz PCI" ; \
  1036. else \
  1037. echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
  1038. echo -n "... 66 MHz PCI" ; \
  1039. fi ; \
  1040. if [ "$(findstring _slave_,$@)" ] ; then \
  1041. echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
  1042. echo " slave" ; \
  1043. else \
  1044. echo " host" ; \
  1045. fi
  1046. @./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
  1047. MPC8560ADS_config: unconfig
  1048. @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
  1049. MPC8541CDS_config: unconfig
  1050. @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
  1051. MPC8548CDS_config: unconfig
  1052. @./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
  1053. MPC8555CDS_config: unconfig
  1054. @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
  1055. PM854_config: unconfig
  1056. @./mkconfig $(@:_config=) ppc mpc85xx pm854
  1057. PM856_config: unconfig
  1058. @./mkconfig $(@:_config=) ppc mpc85xx pm856
  1059. sbc8540_config \
  1060. sbc8540_33_config \
  1061. sbc8540_66_config: unconfig
  1062. @if [ "$(findstring _66_,$@)" ] ; then \
  1063. echo "#define CONFIG_PCI_66" >>include/config.h ; \
  1064. echo "... 66 MHz PCI" ; \
  1065. else \
  1066. >include/config.h ; \
  1067. echo "... 33 MHz PCI" ; \
  1068. fi
  1069. @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
  1070. sbc8560_config \
  1071. sbc8560_33_config \
  1072. sbc8560_66_config: unconfig
  1073. @if [ "$(findstring _66_,$@)" ] ; then \
  1074. echo "#define CONFIG_PCI_66" >>include/config.h ; \
  1075. echo "... 66 MHz PCI" ; \
  1076. else \
  1077. >include/config.h ; \
  1078. echo "... 33 MHz PCI" ; \
  1079. fi
  1080. @./mkconfig -a sbc8560 ppc mpc85xx sbc8560
  1081. stxgp3_config: unconfig
  1082. @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
  1083. TQM8540_config: unconfig
  1084. @./mkconfig $(@:_config=) ppc mpc85xx tqm8540
  1085. TQM8560_config: unconfig
  1086. @./mkconfig $(@:_config=) ppc mpc85xx tqm8560
  1087. #########################################################################
  1088. ## 74xx/7xx Systems
  1089. #########################################################################
  1090. AmigaOneG3SE_config: unconfig
  1091. @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
  1092. BAB7xx_config: unconfig
  1093. @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
  1094. CPCI750_config: unconfig
  1095. @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
  1096. DB64360_config: unconfig
  1097. @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
  1098. DB64460_config: unconfig
  1099. @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
  1100. ELPPC_config: unconfig
  1101. @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
  1102. EVB64260_config \
  1103. EVB64260_750CX_config: unconfig
  1104. @./mkconfig EVB64260 ppc 74xx_7xx evb64260
  1105. P3G4_config: unconfig
  1106. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  1107. PCIPPC2_config \
  1108. PCIPPC6_config: unconfig
  1109. @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
  1110. ZUMA_config: unconfig
  1111. @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
  1112. #========================================================================
  1113. # ARM
  1114. #========================================================================
  1115. #########################################################################
  1116. ## StrongARM Systems
  1117. #########################################################################
  1118. assabet_config : unconfig
  1119. @./mkconfig $(@:_config=) arm sa1100 assabet
  1120. dnp1110_config : unconfig
  1121. @./mkconfig $(@:_config=) arm sa1100 dnp1110
  1122. gcplus_config : unconfig
  1123. @./mkconfig $(@:_config=) arm sa1100 gcplus
  1124. lart_config : unconfig
  1125. @./mkconfig $(@:_config=) arm sa1100 lart
  1126. shannon_config : unconfig
  1127. @./mkconfig $(@:_config=) arm sa1100 shannon
  1128. #########################################################################
  1129. ## ARM92xT Systems
  1130. #########################################################################
  1131. xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
  1132. xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
  1133. xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
  1134. at91rm9200dk_config : unconfig
  1135. @./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
  1136. cmc_pu2_config : unconfig
  1137. @./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
  1138. csb637_config : unconfig
  1139. @./mkconfig $(@:_config=) arm arm920t csb637 NULL at91rm9200
  1140. mp2usb_config : unconfig
  1141. @./mkconfig $(@:_config=) arm arm920t mp2usb NULL at91rm9200
  1142. ########################################################################
  1143. ## ARM Integrator boards - see doc/README-integrator for more info.
  1144. integratorap_config \
  1145. ap_config \
  1146. ap966_config \
  1147. ap922_config \
  1148. ap922_XA10_config \
  1149. ap7_config \
  1150. ap720t_config \
  1151. ap920t_config \
  1152. ap926ejs_config \
  1153. ap946es_config: unconfig
  1154. @board/integratorap/split_by_variant.sh $@
  1155. integratorcp_config \
  1156. cp_config \
  1157. cp920t_config \
  1158. cp926ejs_config \
  1159. cp946es_config \
  1160. cp1136_config \
  1161. cp966_config \
  1162. cp922_config \
  1163. cp922_XA10_config \
  1164. cp1026_config: unconfig
  1165. @board/integratorcp/split_by_variant.sh $@
  1166. kb9202_config : unconfig
  1167. @./mkconfig $(@:_config=) arm arm920t kb9202 NULL at91rm9200
  1168. lpd7a400_config \
  1169. lpd7a404_config: unconfig
  1170. @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
  1171. mx1ads_config : unconfig
  1172. @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
  1173. mx1fs2_config : unconfig
  1174. @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
  1175. omap1510inn_config : unconfig
  1176. @./mkconfig $(@:_config=) arm arm925t omap1510inn
  1177. omap5912osk_config : unconfig
  1178. @./mkconfig $(@:_config=) arm arm926ejs omap5912osk
  1179. omap1610inn_config \
  1180. omap1610inn_cs0boot_config \
  1181. omap1610inn_cs3boot_config \
  1182. omap1610inn_cs_autoboot_config \
  1183. omap1610h2_config \
  1184. omap1610h2_cs0boot_config \
  1185. omap1610h2_cs3boot_config \
  1186. omap1610h2_cs_autoboot_config: unconfig
  1187. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1188. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  1189. echo "... configured for CS0 boot"; \
  1190. elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
  1191. echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
  1192. echo "... configured for CS_AUTO boot"; \
  1193. else \
  1194. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  1195. echo "... configured for CS3 boot"; \
  1196. fi;
  1197. @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
  1198. omap730p2_config \
  1199. omap730p2_cs0boot_config \
  1200. omap730p2_cs3boot_config : unconfig
  1201. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1202. echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
  1203. echo "... configured for CS0 boot"; \
  1204. else \
  1205. echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
  1206. echo "... configured for CS3 boot"; \
  1207. fi;
  1208. @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
  1209. scb9328_config : unconfig
  1210. @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
  1211. smdk2400_config : unconfig
  1212. @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
  1213. smdk2410_config : unconfig
  1214. @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
  1215. SX1_config : unconfig
  1216. @./mkconfig $(@:_config=) arm arm925t sx1
  1217. # TRAB default configuration: 8 MB Flash, 32 MB RAM
  1218. trab_config \
  1219. trab_bigram_config \
  1220. trab_bigflash_config \
  1221. trab_old_config: unconfig
  1222. @ >include/config.h
  1223. @[ -z "$(findstring _bigram,$@)" ] || \
  1224. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  1225. echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
  1226. echo "... with 8 MB Flash, 32 MB RAM" ; \
  1227. }
  1228. @[ -z "$(findstring _bigflash,$@)" ] || \
  1229. { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
  1230. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  1231. echo "... with 16 MB Flash, 16 MB RAM" ; \
  1232. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  1233. }
  1234. @[ -z "$(findstring _old,$@)" ] || \
  1235. { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
  1236. echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
  1237. echo "... with 8 MB Flash, 16 MB RAM" ; \
  1238. echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
  1239. }
  1240. @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
  1241. VCMA9_config : unconfig
  1242. @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
  1243. #========================================================================
  1244. # ARM supplied Versatile development boards
  1245. #========================================================================
  1246. versatile_config \
  1247. versatileab_config \
  1248. versatilepb_config : unconfig
  1249. @board/versatile/split_by_variant.sh $@
  1250. voiceblue_smallflash_config \
  1251. voiceblue_config: unconfig
  1252. @if [ "$(findstring _smallflash_,$@)" ] ; then \
  1253. echo "... boot from lower flash bank" ; \
  1254. echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
  1255. echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
  1256. else \
  1257. echo "... boot from upper flash bank" ; \
  1258. >include/config.h ; \
  1259. echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
  1260. fi
  1261. @./mkconfig -a voiceblue arm arm925t voiceblue
  1262. cm4008_config : unconfig
  1263. @./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
  1264. cm41xx_config : unconfig
  1265. @./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
  1266. #########################################################################
  1267. ## S3C44B0 Systems
  1268. #########################################################################
  1269. B2_config : unconfig
  1270. @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
  1271. #########################################################################
  1272. ## ARM720T Systems
  1273. #########################################################################
  1274. armadillo_config: unconfig
  1275. @./mkconfig $(@:_config=) arm arm720t armadillo
  1276. ep7312_config : unconfig
  1277. @./mkconfig $(@:_config=) arm arm720t ep7312
  1278. impa7_config : unconfig
  1279. @./mkconfig $(@:_config=) arm arm720t impa7
  1280. modnet50_config : unconfig
  1281. @./mkconfig $(@:_config=) arm arm720t modnet50
  1282. evb4510_config : unconfig
  1283. @./mkconfig $(@:_config=) arm arm720t evb4510
  1284. #########################################################################
  1285. ## XScale Systems
  1286. #########################################################################
  1287. adsvix_config : unconfig
  1288. @./mkconfig $(@:_config=) arm pxa adsvix
  1289. cerf250_config : unconfig
  1290. @./mkconfig $(@:_config=) arm pxa cerf250
  1291. cradle_config : unconfig
  1292. @./mkconfig $(@:_config=) arm pxa cradle
  1293. csb226_config : unconfig
  1294. @./mkconfig $(@:_config=) arm pxa csb226
  1295. innokom_config : unconfig
  1296. @./mkconfig $(@:_config=) arm pxa innokom
  1297. ixdp425_config : unconfig
  1298. @./mkconfig $(@:_config=) arm ixp ixdp425
  1299. lubbock_config : unconfig
  1300. @./mkconfig $(@:_config=) arm pxa lubbock
  1301. logodl_config : unconfig
  1302. @./mkconfig $(@:_config=) arm pxa logodl
  1303. wepep250_config : unconfig
  1304. @./mkconfig $(@:_config=) arm pxa wepep250
  1305. xaeniax_config : unconfig
  1306. @./mkconfig $(@:_config=) arm pxa xaeniax
  1307. xm250_config : unconfig
  1308. @./mkconfig $(@:_config=) arm pxa xm250
  1309. xsengine_config : unconfig
  1310. @./mkconfig $(@:_config=) arm pxa xsengine
  1311. #########################################################################
  1312. ## ARM1136 Systems
  1313. #########################################################################
  1314. omap2420h4_config : unconfig
  1315. @./mkconfig $(@:_config=) arm arm1136 omap2420h4
  1316. #========================================================================
  1317. # i386
  1318. #========================================================================
  1319. #########################################################################
  1320. ## AMD SC520 CDP
  1321. #########################################################################
  1322. sc520_cdp_config : unconfig
  1323. @./mkconfig $(@:_config=) i386 i386 sc520_cdp
  1324. sc520_spunk_config : unconfig
  1325. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  1326. sc520_spunk_rel_config : unconfig
  1327. @./mkconfig $(@:_config=) i386 i386 sc520_spunk
  1328. #========================================================================
  1329. # MIPS
  1330. #========================================================================
  1331. #########################################################################
  1332. ## MIPS32 4Kc
  1333. #########################################################################
  1334. xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
  1335. incaip_100MHz_config \
  1336. incaip_133MHz_config \
  1337. incaip_150MHz_config \
  1338. incaip_config: unconfig
  1339. @ >include/config.h
  1340. @[ -z "$(findstring _100MHz,$@)" ] || \
  1341. { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
  1342. echo "... with 100MHz system clock" ; \
  1343. }
  1344. @[ -z "$(findstring _133MHz,$@)" ] || \
  1345. { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
  1346. echo "... with 133MHz system clock" ; \
  1347. }
  1348. @[ -z "$(findstring _150MHz,$@)" ] || \
  1349. { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
  1350. echo "... with 150MHz system clock" ; \
  1351. }
  1352. @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
  1353. tb0229_config: unconfig
  1354. @./mkconfig $(@:_config=) mips mips tb0229
  1355. #########################################################################
  1356. ## MIPS32 AU1X00
  1357. #########################################################################
  1358. dbau1000_config : unconfig
  1359. @ >include/config.h
  1360. @echo "#define CONFIG_DBAU1000 1" >>include/config.h
  1361. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1362. dbau1100_config : unconfig
  1363. @ >include/config.h
  1364. @echo "#define CONFIG_DBAU1100 1" >>include/config.h
  1365. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1366. dbau1500_config : unconfig
  1367. @ >include/config.h
  1368. @echo "#define CONFIG_DBAU1500 1" >>include/config.h
  1369. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1370. dbau1550_config : unconfig
  1371. @ >include/config.h
  1372. @echo "#define CONFIG_DBAU1550 1" >>include/config.h
  1373. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1374. dbau1550_el_config : unconfig
  1375. @ >include/config.h
  1376. @echo "#define CONFIG_DBAU1550 1" >>include/config.h
  1377. @./mkconfig -a dbau1x00 mips mips dbau1x00
  1378. pb1000_config : unconfig
  1379. @ >include/config.h
  1380. @echo "#define CONFIG_PB1000 1" >>include/config.h
  1381. @./mkconfig -a pb1x00 mips mips pb1x00
  1382. #########################################################################
  1383. ## MIPS64 5Kc
  1384. #########################################################################
  1385. purple_config : unconfig
  1386. @./mkconfig $(@:_config=) mips mips purple
  1387. #========================================================================
  1388. # Nios
  1389. #========================================================================
  1390. #########################################################################
  1391. ## Nios32
  1392. #########################################################################
  1393. DK1C20_safe_32_config \
  1394. DK1C20_standard_32_config \
  1395. DK1C20_config: unconfig
  1396. @ >include/config.h
  1397. @[ -z "$(findstring _safe_32,$@)" ] || \
  1398. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  1399. echo "... NIOS 'safe_32' configuration" ; \
  1400. }
  1401. @[ -z "$(findstring _standard_32,$@)" ] || \
  1402. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1403. echo "... NIOS 'standard_32' configuration" ; \
  1404. }
  1405. @[ -z "$(findstring DK1C20_config,$@)" ] || \
  1406. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1407. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  1408. }
  1409. @./mkconfig -a DK1C20 nios nios dk1c20 altera
  1410. DK1S10_safe_32_config \
  1411. DK1S10_standard_32_config \
  1412. DK1S10_mtx_ldk_20_config \
  1413. DK1S10_config: unconfig
  1414. @ >include/config.h
  1415. @[ -z "$(findstring _safe_32,$@)" ] || \
  1416. { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
  1417. echo "... NIOS 'safe_32' configuration" ; \
  1418. }
  1419. @[ -z "$(findstring _standard_32,$@)" ] || \
  1420. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1421. echo "... NIOS 'standard_32' configuration" ; \
  1422. }
  1423. @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
  1424. { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
  1425. echo "... NIOS 'mtx_ldk_20' configuration" ; \
  1426. }
  1427. @[ -z "$(findstring DK1S10_config,$@)" ] || \
  1428. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
  1429. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  1430. }
  1431. @./mkconfig -a DK1S10 nios nios dk1s10 altera
  1432. ADNPESC1_DNPEVA2_base_32_config \
  1433. ADNPESC1_base_32_config \
  1434. ADNPESC1_config: unconfig
  1435. @ >include/config.h
  1436. @[ -z "$(findstring _DNPEVA2,$@)" ] || \
  1437. { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
  1438. echo "... DNP/EVA2 configuration" ; \
  1439. }
  1440. @[ -z "$(findstring _base_32,$@)" ] || \
  1441. { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
  1442. echo "... NIOS 'base_32' configuration" ; \
  1443. }
  1444. @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
  1445. { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
  1446. echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
  1447. }
  1448. @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
  1449. #########################################################################
  1450. ## Nios-II
  1451. #########################################################################
  1452. PK1C20_config : unconfig
  1453. @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
  1454. PCI5441_config : unconfig
  1455. @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
  1456. #========================================================================
  1457. # MicroBlaze
  1458. #========================================================================
  1459. #########################################################################
  1460. ## Microblaze
  1461. #########################################################################
  1462. suzaku_config: unconfig
  1463. @ >include/config.h
  1464. @echo "#define CONFIG_SUZAKU 1" >> include/config.h
  1465. @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
  1466. #########################################################################
  1467. #########################################################################
  1468. clean:
  1469. find . -type f \
  1470. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  1471. -o -name '*.o' -o -name '*.a' \) -print \
  1472. | xargs rm -f
  1473. rm -f examples/hello_world examples/timer \
  1474. examples/eepro100_eeprom examples/sched \
  1475. examples/mem_to_mem_idma2intr examples/82559_eeprom \
  1476. examples/test_burst
  1477. rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
  1478. rm -f tools/mpc86x_clk tools/ncb
  1479. rm -f tools/easylogo/easylogo tools/bmp_logo
  1480. rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
  1481. rm -f tools/env/fw_printenv tools/env/fw_setenv
  1482. rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
  1483. rm -f board/trab/trab_fkt board/voiceblue/eeprom
  1484. rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
  1485. clobber: clean
  1486. find . -type f \( -name .depend \
  1487. -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
  1488. -print0 \
  1489. | xargs -0 rm -f
  1490. rm -f $(OBJS) *.bak tags TAGS
  1491. rm -fr *.*~
  1492. rm -f u-boot u-boot.map u-boot.hex $(ALL)
  1493. rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
  1494. rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
  1495. rm -f include/asm/proc include/asm/arch include/asm
  1496. mrproper \
  1497. distclean: clobber unconfig
  1498. backup:
  1499. F=`basename $(TOPDIR)` ; cd .. ; \
  1500. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  1501. #########################################################################