Makefile 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717
  1. #
  2. # (C) Copyright 2000-2007
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # See file CREDITS for list of people who contributed to this
  6. # project.
  7. #
  8. # This program is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as
  10. # published by the Free Software Foundatio; either version 2 of
  11. # the License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. # MA 02111-1307 USA
  22. #
  23. VERSION = 1
  24. PATCHLEVEL = 3
  25. SUBLEVEL = 1
  26. EXTRAVERSION =
  27. U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
  28. VERSION_FILE = $(obj)include/version_autogenerated.h
  29. HOSTARCH := $(shell uname -m | \
  30. sed -e s/i.86/i386/ \
  31. -e s/sun4u/sparc64/ \
  32. -e s/arm.*/arm/ \
  33. -e s/sa110/arm/ \
  34. -e s/powerpc/ppc/ \
  35. -e s/ppc64/ppc/ \
  36. -e s/macppc/ppc/)
  37. HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
  38. sed -e 's/\(cygwin\).*/cygwin/')
  39. export HOSTARCH HOSTOS
  40. # Deal with colliding definitions from tcsh etc.
  41. VENDOR=
  42. #########################################################################
  43. #
  44. # U-boot build supports producing a object files to the separate external
  45. # directory. Two use cases are supported:
  46. #
  47. # 1) Add O= to the make command line
  48. # 'make O=/tmp/build all'
  49. #
  50. # 2) Set environement variable BUILD_DIR to point to the desired location
  51. # 'export BUILD_DIR=/tmp/build'
  52. # 'make'
  53. #
  54. # The second approach can also be used with a MAKEALL script
  55. # 'export BUILD_DIR=/tmp/build'
  56. # './MAKEALL'
  57. #
  58. # Command line 'O=' setting overrides BUILD_DIR environent variable.
  59. #
  60. # When none of the above methods is used the local build is performed and
  61. # the object files are placed in the source directory.
  62. #
  63. ifdef O
  64. ifeq ("$(origin O)", "command line")
  65. BUILD_DIR := $(O)
  66. endif
  67. endif
  68. ifneq ($(BUILD_DIR),)
  69. saved-output := $(BUILD_DIR)
  70. # Attempt to create a output directory.
  71. $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
  72. # Verify if it was successful.
  73. BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
  74. $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
  75. endif # ifneq ($(BUILD_DIR),)
  76. OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
  77. SRCTREE := $(CURDIR)
  78. TOPDIR := $(SRCTREE)
  79. LNDIR := $(OBJTREE)
  80. export TOPDIR SRCTREE OBJTREE
  81. MKCONFIG := $(SRCTREE)/mkconfig
  82. export MKCONFIG
  83. ifneq ($(OBJTREE),$(SRCTREE))
  84. REMOTE_BUILD := 1
  85. export REMOTE_BUILD
  86. endif
  87. # $(obj) and (src) are defined in config.mk but here in main Makefile
  88. # we also need them before config.mk is included which is the case for
  89. # some targets like unconfig, clean, clobber, distclean, etc.
  90. ifneq ($(OBJTREE),$(SRCTREE))
  91. obj := $(OBJTREE)/
  92. src := $(SRCTREE)/
  93. else
  94. obj :=
  95. src :=
  96. endif
  97. export obj src
  98. #########################################################################
  99. ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
  100. # load ARCH, BOARD, and CPU configuration
  101. include $(OBJTREE)/include/config.mk
  102. export ARCH CPU BOARD VENDOR SOC
  103. ifndef CROSS_COMPILE
  104. ifeq ($(HOSTARCH),$(ARCH))
  105. CROSS_COMPILE =
  106. else
  107. ifeq ($(ARCH),ppc)
  108. CROSS_COMPILE = ppc_8xx-
  109. endif
  110. ifeq ($(ARCH),arm)
  111. CROSS_COMPILE = arm-linux-
  112. endif
  113. ifeq ($(ARCH),i386)
  114. CROSS_COMPILE = i386-linux-
  115. endif
  116. ifeq ($(ARCH),mips)
  117. CROSS_COMPILE = mips_4KC-
  118. endif
  119. ifeq ($(ARCH),nios)
  120. CROSS_COMPILE = nios-elf-
  121. endif
  122. ifeq ($(ARCH),nios2)
  123. CROSS_COMPILE = nios2-elf-
  124. endif
  125. ifeq ($(ARCH),m68k)
  126. CROSS_COMPILE = m68k-elf-
  127. endif
  128. ifeq ($(ARCH),microblaze)
  129. CROSS_COMPILE = mb-
  130. endif
  131. ifeq ($(ARCH),blackfin)
  132. CROSS_COMPILE = bfin-uclinux-
  133. endif
  134. ifeq ($(ARCH),avr32)
  135. CROSS_COMPILE = avr32-linux-
  136. endif
  137. endif
  138. endif
  139. export CROSS_COMPILE
  140. # load other configuration
  141. include $(TOPDIR)/config.mk
  142. #########################################################################
  143. # U-Boot objects....order is important (i.e. start must be first)
  144. OBJS = cpu/$(CPU)/start.o
  145. ifeq ($(CPU),i386)
  146. OBJS += cpu/$(CPU)/start16.o
  147. OBJS += cpu/$(CPU)/reset.o
  148. endif
  149. ifeq ($(CPU),ppc4xx)
  150. OBJS += cpu/$(CPU)/resetvec.o
  151. endif
  152. ifeq ($(CPU),mpc85xx)
  153. OBJS += cpu/$(CPU)/resetvec.o
  154. endif
  155. ifeq ($(CPU),bf533)
  156. OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
  157. OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
  158. endif
  159. ifeq ($(CPU),bf537)
  160. OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
  161. OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
  162. endif
  163. ifeq ($(CPU),bf561)
  164. OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
  165. OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
  166. endif
  167. OBJS := $(addprefix $(obj),$(OBJS))
  168. LIBS = lib_generic/libgeneric.a
  169. LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
  170. "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
  171. LIBS += board/$(BOARDDIR)/lib$(BOARD).a
  172. LIBS += cpu/$(CPU)/lib$(CPU).a
  173. ifdef SOC
  174. LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
  175. endif
  176. ifeq ($(CPU),ixp)
  177. LIBS += cpu/ixp/npe/libnpe.a
  178. endif
  179. LIBS += lib_$(ARCH)/lib$(ARCH).a
  180. LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
  181. fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
  182. LIBS += net/libnet.a
  183. LIBS += disk/libdisk.a
  184. LIBS += drivers/bios_emulator/libatibiosemu.a
  185. LIBS += drivers/block/libblock.a
  186. LIBS += drivers/hwmon/libhwmon.a
  187. LIBS += drivers/i2c/libi2c.a
  188. LIBS += drivers/input/libinput.a
  189. LIBS += drivers/misc/libmisc.a
  190. LIBS += drivers/mtd/libmtd.a
  191. LIBS += drivers/mtd/nand/libnand.a
  192. LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
  193. LIBS += drivers/mtd/onenand/libonenand.a
  194. LIBS += drivers/net/libnet.a
  195. LIBS += drivers/net/sk98lin/libsk98lin.a
  196. LIBS += drivers/pci/libpci.a
  197. LIBS += drivers/pcmcia/libpcmcia.a
  198. ifeq ($(CPU),mpc83xx)
  199. LIBS += drivers/qe/qe.a
  200. endif
  201. ifeq ($(CPU),mpc85xx)
  202. LIBS += drivers/qe/qe.a
  203. endif
  204. LIBS += drivers/rtc/librtc.a
  205. LIBS += drivers/serial/libserial.a
  206. LIBS += drivers/usb/libusb.a
  207. LIBS += drivers/video/libvideo.a
  208. LIBS += post/libpost.a post/drivers/libpostdrivers.a
  209. LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
  210. "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
  211. LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
  212. "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
  213. LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
  214. "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
  215. LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
  216. "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
  217. LIBS += common/libcommon.a
  218. LIBS += libfdt/libfdt.a
  219. LIBS := $(addprefix $(obj),$(LIBS))
  220. .PHONY : $(LIBS)
  221. # Add GCC lib
  222. PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
  223. # The "tools" are needed early, so put this first
  224. # Don't include stuff already done in $(LIBS)
  225. SUBDIRS = tools \
  226. examples
  227. .PHONY : $(SUBDIRS)
  228. ifeq ($(CONFIG_NAND_U_BOOT),y)
  229. NAND_SPL = nand_spl
  230. U_BOOT_NAND = $(obj)u-boot-nand.bin
  231. endif
  232. __OBJS := $(subst $(obj),,$(OBJS))
  233. __LIBS := $(subst $(obj),,$(LIBS))
  234. #########################################################################
  235. #########################################################################
  236. ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
  237. all: $(ALL)
  238. $(obj)u-boot.hex: $(obj)u-boot
  239. $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
  240. $(obj)u-boot.srec: $(obj)u-boot
  241. $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
  242. $(obj)u-boot.bin: $(obj)u-boot
  243. $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
  244. $(obj)u-boot.img: $(obj)u-boot.bin
  245. ./tools/mkimage -A $(ARCH) -T firmware -C none \
  246. -a $(TEXT_BASE) -e 0 \
  247. -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
  248. sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
  249. -d $< $@
  250. $(obj)u-boot.sha1: $(obj)u-boot.bin
  251. $(obj)tools/ubsha1 $(obj)u-boot.bin
  252. $(obj)u-boot.dis: $(obj)u-boot
  253. $(OBJDUMP) -d $< > $@
  254. $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
  255. UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
  256. cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
  257. --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
  258. -Map u-boot.map -o u-boot
  259. $(OBJS):
  260. $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
  261. $(LIBS):
  262. $(MAKE) -C $(dir $(subst $(obj),,$@))
  263. $(SUBDIRS):
  264. $(MAKE) -C $@ all
  265. $(NAND_SPL): version
  266. $(MAKE) -C nand_spl/board/$(BOARDDIR) all
  267. $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
  268. cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
  269. version:
  270. @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
  271. echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
  272. echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
  273. $(TOPDIR)) >> $(VERSION_FILE); \
  274. echo "\"" >> $(VERSION_FILE)
  275. gdbtools:
  276. $(MAKE) -C tools/gdb all || exit 1
  277. updater:
  278. $(MAKE) -C tools/updater all || exit 1
  279. env:
  280. $(MAKE) -C tools/env all || exit 1
  281. depend dep: version
  282. for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
  283. TAG_SUBDIRS += include
  284. TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
  285. TAG_SUBDIRS += cpu/$(CPU)
  286. TAG_SUBDIRS += lib_$(ARCH)
  287. TAG_SUBDIRS += fs/cramfs
  288. TAG_SUBDIRS += fs/fat
  289. TAG_SUBDIRS += fs/fdos
  290. TAG_SUBDIRS += fs/jffs2
  291. TAG_SUBDIRS += net
  292. TAG_SUBDIRS += disk
  293. TAG_SUBDIRS += common
  294. TAG_SUBDIRS += drivers/bios_emulator
  295. TAG_SUBDIRS += drivers/block
  296. TAG_SUBDIRS += drivers/hwmon
  297. TAG_SUBDIRS += drivers/i2c
  298. TAG_SUBDIRS += drivers/input
  299. TAG_SUBDIRS += drivers/misc
  300. TAG_SUBDIRS += drivers/mtd
  301. TAG_SUBDIRS += drivers/mtd/nand
  302. TAG_SUBDIRS += drivers/mtd/nand_legacy
  303. TAG_SUBDIRS += drivers/mtd/onenand
  304. TAG_SUBDIRS += drivers/net
  305. TAG_SUBDIRS += drivers/net/sk98lin
  306. TAG_SUBDIRS += drivers/pci
  307. TAG_SUBDIRS += drivers/pcmcia
  308. TAG_SUBDIRS += drivers/qe
  309. TAG_SUBDIRS += drivers/rtc
  310. TAG_SUBDIRS += drivers/serial
  311. TAG_SUBDIRS += drivers/usb
  312. TAG_SUBDIRS += drivers/video
  313. tags ctags:
  314. ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
  315. -name '*.[ch]' -print`
  316. etags:
  317. etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
  318. -name '*.[ch]' -print`
  319. $(obj)System.map: $(obj)u-boot
  320. @$(NM) $< | \
  321. grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
  322. sort > $(obj)System.map
  323. #
  324. # Auto-generate the autoconf.mk file (which is included by all makefiles)
  325. #
  326. # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
  327. # the dep file is only include in this top level makefile to determine when
  328. # to regenerate the autoconf.mk file.
  329. $(OBJTREE)/include/autoconf.mk: $(obj)include/config.h
  330. @echo Generating include/autoconf.mk
  331. @# Generate the dependancies
  332. @$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep
  333. @# Extract the config macros
  334. @$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed >> $@
  335. sinclude $(OBJTREE)/include/autoconf.mk.dep
  336. #########################################################################
  337. else
  338. all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
  339. $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
  340. $(SUBDIRS) version gdbtools updater env depend \
  341. dep tags ctags etags $(obj)System.map:
  342. @echo "System not configured - see README" >&2
  343. @ exit 1
  344. endif
  345. .PHONY : CHANGELOG
  346. CHANGELOG:
  347. git log --no-merges U-Boot-1_1_5.. | \
  348. unexpand -a | sed -e 's/\s\s*$$//' > $@
  349. #########################################################################
  350. unconfig:
  351. @rm -f $(obj)include/config.h $(obj)include/config.mk \
  352. $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
  353. $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
  354. #========================================================================
  355. # PowerPC
  356. #========================================================================
  357. #########################################################################
  358. ## MPC5xx Systems
  359. #########################################################################
  360. canmb_config: unconfig
  361. @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
  362. cmi_mpc5xx_config: unconfig
  363. @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
  364. PATI_config: unconfig
  365. @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
  366. #########################################################################
  367. ## MPC5xxx Systems
  368. #########################################################################
  369. aev_config: unconfig
  370. @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
  371. BC3450_config: unconfig
  372. @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
  373. cpci5200_config: unconfig
  374. @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
  375. hmi1001_config: unconfig
  376. @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
  377. Lite5200_config \
  378. Lite5200_LOWBOOT_config \
  379. Lite5200_LOWBOOT08_config \
  380. icecube_5200_config \
  381. icecube_5200_LOWBOOT_config \
  382. icecube_5200_LOWBOOT08_config \
  383. icecube_5200_DDR_config \
  384. icecube_5200_DDR_LOWBOOT_config \
  385. icecube_5200_DDR_LOWBOOT08_config \
  386. icecube_5100_config: unconfig
  387. @mkdir -p $(obj)include
  388. @mkdir -p $(obj)board/icecube
  389. @ >$(obj)include/config.h
  390. @[ -z "$(findstring LOWBOOT_,$@)" ] || \
  391. { if [ "$(findstring DDR,$@)" ] ; \
  392. then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
  393. else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
  394. fi ; \
  395. echo "... with LOWBOOT configuration" ; \
  396. }
  397. @[ -z "$(findstring LOWBOOT08,$@)" ] || \
  398. { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
  399. echo "... with 8 MB flash only" ; \
  400. echo "... with LOWBOOT configuration" ; \
  401. }
  402. @[ -z "$(findstring DDR,$@)" ] || \
  403. { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
  404. echo "... DDR memory revision" ; \
  405. }
  406. @[ -z "$(findstring 5200,$@)" ] || \
  407. { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
  408. echo "... with MPC5200 processor" ; \
  409. }
  410. @[ -z "$(findstring 5100,$@)" ] || \
  411. { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
  412. echo "... with MGT5100 processor" ; \
  413. }
  414. @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
  415. jupiter_config: unconfig
  416. @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
  417. v38b_config: unconfig
  418. @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
  419. inka4x0_config: unconfig
  420. @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
  421. lite5200b_config \
  422. lite5200b_PM_config \
  423. lite5200b_LOWBOOT_config: unconfig
  424. @mkdir -p $(obj)include
  425. @mkdir -p $(obj)board/icecube
  426. @ >$(obj)include/config.h
  427. @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
  428. @ echo "... DDR memory revision"
  429. @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
  430. @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
  431. @[ -z "$(findstring _PM_,$@)" ] || \
  432. { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
  433. echo "... with power management (low-power mode) support" ; \
  434. }
  435. @[ -z "$(findstring LOWBOOT_,$@)" ] || \
  436. { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
  437. echo "... with LOWBOOT configuration" ; \
  438. }
  439. @ echo "... with MPC5200B processor"
  440. @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
  441. mcc200_config \
  442. mcc200_SDRAM_config \
  443. mcc200_highboot_config \
  444. mcc200_COM12_config \
  445. mcc200_COM12_SDRAM_config \
  446. mcc200_COM12_highboot_config \
  447. mcc200_COM12_highboot_SDRAM_config \
  448. mcc200_highboot_SDRAM_config \
  449. prs200_config \
  450. prs200_DDR_config \
  451. prs200_highboot_config \
  452. prs200_highboot_DDR_config: unconfig
  453. @mkdir -p $(obj)include
  454. @mkdir -p $(obj)board/mcc200
  455. @ >$(obj)include/config.h
  456. @[ -n "$(findstring highboot,$@)" ] || \
  457. { echo "... with lowboot configuration" ; \
  458. }
  459. @[ -z "$(findstring highboot,$@)" ] || \
  460. { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
  461. echo "... with highboot configuration" ; \
  462. }
  463. @[ -n "$(findstring _SDRAM,$@)" ] || \
  464. { if [ -n "$(findstring mcc200,$@)" ]; \
  465. then \
  466. echo "... with DDR" ; \
  467. else \
  468. if [ -n "$(findstring _DDR,$@)" ];\
  469. then \
  470. echo "... with DDR" ; \
  471. else \
  472. echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
  473. echo "... with SDRAM" ; \
  474. fi; \
  475. fi; \
  476. }
  477. @[ -z "$(findstring _SDRAM,$@)" ] || \
  478. { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
  479. echo "... with SDRAM" ; \
  480. }
  481. @[ -z "$(findstring COM12,$@)" ] || \
  482. { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
  483. echo "... with console on COM12" ; \
  484. }
  485. @[ -z "$(findstring prs200,$@)" ] || \
  486. { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
  487. }
  488. @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
  489. mecp5200_config: unconfig
  490. @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
  491. o2dnt_config:
  492. @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
  493. pf5200_config: unconfig
  494. @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
  495. PM520_config \
  496. PM520_DDR_config \
  497. PM520_ROMBOOT_config \
  498. PM520_ROMBOOT_DDR_config: unconfig
  499. @mkdir -p $(obj)include
  500. @ >$(obj)include/config.h
  501. @[ -z "$(findstring DDR,$@)" ] || \
  502. { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
  503. echo "... DDR memory revision" ; \
  504. }
  505. @[ -z "$(findstring ROMBOOT,$@)" ] || \
  506. { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
  507. echo "... booting from 8-bit flash" ; \
  508. }
  509. @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
  510. smmaco4_config: unconfig
  511. @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
  512. cm5200_config: unconfig
  513. @./mkconfig -a cm5200 ppc mpc5xxx cm5200
  514. spieval_config: unconfig
  515. @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
  516. TB5200_B_config \
  517. TB5200_config: unconfig
  518. @mkdir -p $(obj)include
  519. @[ -z "$(findstring _B,$@)" ] || \
  520. { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
  521. echo "... with MPC5200B processor" ; \
  522. }
  523. @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
  524. MINI5200_config \
  525. EVAL5200_config \
  526. TOP5200_config: unconfig
  527. @mkdir -p $(obj)include
  528. @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
  529. @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
  530. Total5100_config \
  531. Total5200_config \
  532. Total5200_lowboot_config \
  533. Total5200_Rev2_config \
  534. Total5200_Rev2_lowboot_config: unconfig
  535. @mkdir -p $(obj)include
  536. @mkdir -p $(obj)board/total5200
  537. @ >$(obj)include/config.h
  538. @[ -z "$(findstring 5100,$@)" ] || \
  539. { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
  540. echo "... with MGT5100 processor" ; \
  541. }
  542. @[ -z "$(findstring 5200,$@)" ] || \
  543. { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
  544. echo "... with MPC5200 processor" ; \
  545. }
  546. @[ -n "$(findstring Rev,$@)" ] || \
  547. { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
  548. echo "... revision 1 board" ; \
  549. }
  550. @[ -z "$(findstring Rev2_,$@)" ] || \
  551. { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
  552. echo "... revision 2 board" ; \
  553. }
  554. @[ -z "$(findstring lowboot_,$@)" ] || \
  555. { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
  556. echo "... with lowboot configuration" ; \
  557. }
  558. @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
  559. cam5200_config \
  560. cam5200_niosflash_config \
  561. fo300_config \
  562. MiniFAP_config \
  563. TQM5200S_config \
  564. TQM5200S_HIGHBOOT_config \
  565. TQM5200_B_config \
  566. TQM5200_B_HIGHBOOT_config \
  567. TQM5200_config \
  568. TQM5200_STK100_config: unconfig
  569. @mkdir -p $(obj)include
  570. @mkdir -p $(obj)board/tqm5200
  571. @ >$(obj)include/config.h
  572. @[ -z "$(findstring cam5200,$@)" ] || \
  573. { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
  574. echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
  575. echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
  576. echo "... TQM5200S on Cam5200" ; \
  577. }
  578. @[ -z "$(findstring niosflash,$@)" ] || \
  579. { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
  580. echo "... with NIOS flash driver" ; \
  581. }
  582. @[ -z "$(findstring fo300,$@)" ] || \
  583. { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
  584. echo "... TQM5200 on FO300" ; \
  585. }
  586. @[ -z "$(findstring MiniFAP,$@)" ] || \
  587. { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
  588. echo "... TQM5200_AC on MiniFAP" ; \
  589. }
  590. @[ -z "$(findstring STK100,$@)" ] || \
  591. { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
  592. echo "... on a STK52XX.100 base board" ; \
  593. }
  594. @[ -z "$(findstring TQM5200_B,$@)" ] || \
  595. { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
  596. }
  597. @[ -z "$(findstring TQM5200S,$@)" ] || \
  598. { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
  599. echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
  600. }
  601. @[ -z "$(findstring HIGHBOOT,$@)" ] || \
  602. { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
  603. }
  604. @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
  605. uc101_config: unconfig
  606. @$(MKCONFIG) uc101 ppc mpc5xxx uc101
  607. motionpro_config: unconfig
  608. @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
  609. #########################################################################
  610. ## MPC512x Systems
  611. #########################################################################
  612. ads5121_config: unconfig
  613. @$(MKCONFIG) ads5121 ppc mpc512x ads5121
  614. #########################################################################
  615. ## MPC8xx Systems
  616. #########################################################################
  617. Adder_config \
  618. Adder87x_config \
  619. AdderII_config \
  620. : unconfig
  621. @mkdir -p $(obj)include
  622. $(if $(findstring AdderII,$@), \
  623. @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
  624. @$(MKCONFIG) -a Adder ppc mpc8xx adder
  625. AdderUSB_config: unconfig
  626. @./mkconfig -a AdderUSB ppc mpc8xx adder
  627. ADS860_config \
  628. FADS823_config \
  629. FADS850SAR_config \
  630. MPC86xADS_config \
  631. MPC885ADS_config \
  632. FADS860T_config: unconfig
  633. @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
  634. AMX860_config : unconfig
  635. @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
  636. c2mon_config: unconfig
  637. @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
  638. CCM_config: unconfig
  639. @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
  640. cogent_mpc8xx_config: unconfig
  641. @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
  642. ELPT860_config: unconfig
  643. @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
  644. EP88x_config: unconfig
  645. @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
  646. ESTEEM192E_config: unconfig
  647. @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
  648. ETX094_config : unconfig
  649. @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
  650. FLAGADM_config: unconfig
  651. @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
  652. xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
  653. GEN860T_SC_config \
  654. GEN860T_config: unconfig
  655. @mkdir -p $(obj)include
  656. @ >$(obj)include/config.h
  657. @[ -z "$(findstring _SC,$@)" ] || \
  658. { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
  659. echo "With reduced H/W feature set (SC)..." ; \
  660. }
  661. @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
  662. GENIETV_config: unconfig
  663. @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
  664. GTH_config: unconfig
  665. @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
  666. hermes_config : unconfig
  667. @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
  668. HMI10_config : unconfig
  669. @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
  670. IAD210_config: unconfig
  671. @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
  672. xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
  673. ICU862_100MHz_config \
  674. ICU862_config: unconfig
  675. @mkdir -p $(obj)include
  676. @ >$(obj)include/config.h
  677. @[ -z "$(findstring _100MHz,$@)" ] || \
  678. { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
  679. echo "... with 100MHz system clock" ; \
  680. }
  681. @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
  682. IP860_config : unconfig
  683. @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
  684. IVML24_256_config \
  685. IVML24_128_config \
  686. IVML24_config: unconfig
  687. @mkdir -p $(obj)include
  688. @ >$(obj)include/config.h
  689. @[ -z "$(findstring IVML24_config,$@)" ] || \
  690. { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
  691. }
  692. @[ -z "$(findstring IVML24_128_config,$@)" ] || \
  693. { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
  694. }
  695. @[ -z "$(findstring IVML24_256_config,$@)" ] || \
  696. { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
  697. }
  698. @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
  699. IVMS8_256_config \
  700. IVMS8_128_config \
  701. IVMS8_config: unconfig
  702. @mkdir -p $(obj)include
  703. @ >$(obj)include/config.h
  704. @[ -z "$(findstring IVMS8_config,$@)" ] || \
  705. { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
  706. }
  707. @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
  708. { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
  709. }
  710. @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
  711. { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
  712. }
  713. @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
  714. KUP4K_config : unconfig
  715. @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
  716. KUP4X_config : unconfig
  717. @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
  718. LANTEC_config : unconfig
  719. @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
  720. lwmon_config: unconfig
  721. @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
  722. MBX_config \
  723. MBX860T_config: unconfig
  724. @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
  725. MHPC_config: unconfig
  726. @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
  727. MVS1_config : unconfig
  728. @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
  729. xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
  730. NETVIA_V2_config \
  731. NETVIA_config: unconfig
  732. @mkdir -p $(obj)include
  733. @ >$(obj)include/config.h
  734. @[ -z "$(findstring NETVIA_config,$@)" ] || \
  735. { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
  736. echo "... Version 1" ; \
  737. }
  738. @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
  739. { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
  740. echo "... Version 2" ; \
  741. }
  742. @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
  743. xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
  744. NETPHONE_V2_config \
  745. NETPHONE_config: unconfig
  746. @mkdir -p $(obj)include
  747. @ >$(obj)include/config.h
  748. @[ -z "$(findstring NETPHONE_config,$@)" ] || \
  749. { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
  750. }
  751. @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
  752. { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
  753. }
  754. @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
  755. xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
  756. NETTA_ISDN_6412_SWAPHOOK_config \
  757. NETTA_ISDN_SWAPHOOK_config \
  758. NETTA_6412_SWAPHOOK_config \
  759. NETTA_SWAPHOOK_config \
  760. NETTA_ISDN_6412_config \
  761. NETTA_ISDN_config \
  762. NETTA_6412_config \
  763. NETTA_config: unconfig
  764. @mkdir -p $(obj)include
  765. @ >$(obj)include/config.h
  766. @[ -z "$(findstring ISDN_,$@)" ] || \
  767. { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
  768. }
  769. @[ -n "$(findstring ISDN_,$@)" ] || \
  770. { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
  771. }
  772. @[ -z "$(findstring 6412_,$@)" ] || \
  773. { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
  774. }
  775. @[ -n "$(findstring 6412_,$@)" ] || \
  776. { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
  777. }
  778. @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
  779. { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
  780. }
  781. @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
  782. { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
  783. }
  784. @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
  785. xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
  786. NETTA2_V2_config \
  787. NETTA2_config: unconfig
  788. @mkdir -p $(obj)include
  789. @ >$(obj)include/config.h
  790. @[ -z "$(findstring NETTA2_config,$@)" ] || \
  791. { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
  792. }
  793. @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
  794. { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
  795. }
  796. @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
  797. NC650_Rev1_config \
  798. NC650_Rev2_config \
  799. CP850_config: unconfig
  800. @mkdir -p $(obj)include
  801. @ >$(obj)include/config.h
  802. @[ -z "$(findstring CP850,$@)" ] || \
  803. { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
  804. echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
  805. }
  806. @[ -z "$(findstring Rev1,$@)" ] || \
  807. { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
  808. }
  809. @[ -z "$(findstring Rev2,$@)" ] || \
  810. { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
  811. }
  812. @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
  813. NX823_config: unconfig
  814. @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
  815. pcu_e_config: unconfig
  816. @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
  817. QS850_config: unconfig
  818. @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
  819. QS823_config: unconfig
  820. @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
  821. QS860T_config: unconfig
  822. @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
  823. quantum_config: unconfig
  824. @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
  825. R360MPI_config: unconfig
  826. @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
  827. RBC823_config: unconfig
  828. @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
  829. RPXClassic_config: unconfig
  830. @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
  831. RPXlite_config: unconfig
  832. @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
  833. RPXlite_DW_64_config \
  834. RPXlite_DW_LCD_config \
  835. RPXlite_DW_64_LCD_config \
  836. RPXlite_DW_NVRAM_config \
  837. RPXlite_DW_NVRAM_64_config \
  838. RPXlite_DW_NVRAM_LCD_config \
  839. RPXlite_DW_NVRAM_64_LCD_config \
  840. RPXlite_DW_config: unconfig
  841. @mkdir -p $(obj)include
  842. @ >$(obj)include/config.h
  843. @[ -z "$(findstring _64,$@)" ] || \
  844. { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
  845. echo "... with 64MHz system clock ..."; \
  846. }
  847. @[ -z "$(findstring _LCD,$@)" ] || \
  848. { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
  849. echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
  850. echo "... with LCD display ..."; \
  851. }
  852. @[ -z "$(findstring _NVRAM,$@)" ] || \
  853. { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
  854. echo "... with ENV in NVRAM ..."; \
  855. }
  856. @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
  857. rmu_config: unconfig
  858. @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
  859. RRvision_config: unconfig
  860. @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
  861. RRvision_LCD_config: unconfig
  862. @mkdir -p $(obj)include
  863. @echo "#define CONFIG_LCD" >$(obj)include/config.h
  864. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
  865. @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
  866. SM850_config : unconfig
  867. @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
  868. spc1920_config:
  869. @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
  870. SPD823TS_config: unconfig
  871. @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
  872. stxxtc_config: unconfig
  873. @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
  874. svm_sc8xx_config: unconfig
  875. @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
  876. SXNI855T_config: unconfig
  877. @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
  878. # EMK MPC8xx based modules
  879. TOP860_config: unconfig
  880. @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
  881. # Play some tricks for configuration selection
  882. # Only 855 and 860 boards may come with FEC
  883. # and only 823 boards may have LCD support
  884. xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
  885. FPS850L_config \
  886. FPS860L_config \
  887. NSCU_config \
  888. TQM823L_config \
  889. TQM823L_LCD_config \
  890. TQM850L_config \
  891. TQM855L_config \
  892. TQM860L_config \
  893. TQM862L_config \
  894. TQM823M_config \
  895. TQM850M_config \
  896. TQM855M_config \
  897. TQM860M_config \
  898. TQM862M_config \
  899. TQM866M_config \
  900. TQM885D_config \
  901. virtlab2_config: unconfig
  902. @mkdir -p $(obj)include
  903. @ >$(obj)include/config.h
  904. @[ -z "$(findstring _LCD,$@)" ] || \
  905. { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
  906. echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
  907. echo "... with LCD display" ; \
  908. }
  909. @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
  910. TTTech_config: unconfig
  911. @mkdir -p $(obj)include
  912. @echo "#define CONFIG_LCD" >$(obj)include/config.h
  913. @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
  914. @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
  915. uc100_config : unconfig
  916. @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
  917. v37_config: unconfig
  918. @mkdir -p $(obj)include
  919. @echo "#define CONFIG_LCD" >$(obj)include/config.h
  920. @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
  921. @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
  922. wtk_config: unconfig
  923. @mkdir -p $(obj)include
  924. @echo "#define CONFIG_LCD" >$(obj)include/config.h
  925. @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
  926. @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
  927. #########################################################################
  928. ## PPC4xx Systems
  929. #########################################################################
  930. xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
  931. acadia_config: unconfig
  932. @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
  933. acadia_nand_config: unconfig
  934. @mkdir -p $(obj)include $(obj)board/amcc/acadia
  935. @mkdir -p $(obj)nand_spl/board/amcc/acadia
  936. @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
  937. @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
  938. @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
  939. @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
  940. ADCIOP_config: unconfig
  941. @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
  942. alpr_config: unconfig
  943. @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
  944. AP1000_config:unconfig
  945. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
  946. APC405_config: unconfig
  947. @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
  948. AR405_config: unconfig
  949. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
  950. ASH405_config: unconfig
  951. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
  952. bamboo_config: unconfig
  953. @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
  954. bamboo_nand_config: unconfig
  955. @mkdir -p $(obj)include $(obj)board/amcc/bamboo
  956. @mkdir -p $(obj)nand_spl/board/amcc/bamboo
  957. @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
  958. @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
  959. @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
  960. @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
  961. bubinga_config: unconfig
  962. @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
  963. CANBT_config: unconfig
  964. @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
  965. CATcenter_config \
  966. CATcenter_25_config \
  967. CATcenter_33_config: unconfig
  968. @mkdir -p $(obj)include
  969. @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
  970. @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
  971. @[ -z "$(findstring _25,$@)" ] || \
  972. { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
  973. echo "SysClk = 25MHz" ; \
  974. }
  975. @[ -z "$(findstring _33,$@)" ] || \
  976. { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
  977. echo "SysClk = 33MHz" ; \
  978. }
  979. @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  980. CPCI2DP_config: unconfig
  981. @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
  982. CPCI405_config \
  983. CPCI4052_config \
  984. CPCI405DT_config \
  985. CPCI405AB_config: unconfig
  986. @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
  987. @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
  988. CPCI440_config: unconfig
  989. @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
  990. CPCIISER4_config: unconfig
  991. @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
  992. CRAYL1_config: unconfig
  993. @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
  994. csb272_config: unconfig
  995. @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
  996. csb472_config: unconfig
  997. @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
  998. DASA_SIM_config: unconfig
  999. @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
  1000. DP405_config: unconfig
  1001. @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
  1002. DU405_config: unconfig
  1003. @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
  1004. ebony_config: unconfig
  1005. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
  1006. ERIC_config: unconfig
  1007. @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
  1008. EXBITGEN_config: unconfig
  1009. @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
  1010. G2000_config: unconfig
  1011. @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
  1012. hcu4_config: unconfig
  1013. @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
  1014. hcu5_config: unconfig
  1015. @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
  1016. HH405_config: unconfig
  1017. @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
  1018. HUB405_config: unconfig
  1019. @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
  1020. JSE_config: unconfig
  1021. @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
  1022. KAREF_config: unconfig
  1023. @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
  1024. katmai_config: unconfig
  1025. @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
  1026. luan_config: unconfig
  1027. @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
  1028. lwmon5_config: unconfig
  1029. @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
  1030. METROBOX_config: unconfig
  1031. @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
  1032. MIP405_config: unconfig
  1033. @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
  1034. MIP405T_config: unconfig
  1035. @mkdir -p $(obj)include
  1036. @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
  1037. @echo "Enable subset config for MIP405T"
  1038. @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
  1039. ML2_config: unconfig
  1040. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
  1041. ml300_config: unconfig
  1042. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
  1043. ocotea_config: unconfig
  1044. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
  1045. OCRTC_config \
  1046. ORSG_config: unconfig
  1047. @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
  1048. p3p440_config: unconfig
  1049. @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
  1050. PCI405_config: unconfig
  1051. @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
  1052. pcs440ep_config: unconfig
  1053. @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
  1054. PIP405_config: unconfig
  1055. @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
  1056. PLU405_config: unconfig
  1057. @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
  1058. PMC405_config: unconfig
  1059. @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
  1060. PPChameleonEVB_config \
  1061. PPChameleonEVB_BA_25_config \
  1062. PPChameleonEVB_ME_25_config \
  1063. PPChameleonEVB_HI_25_config \
  1064. PPChameleonEVB_BA_33_config \
  1065. PPChameleonEVB_ME_33_config \
  1066. PPChameleonEVB_HI_33_config: unconfig
  1067. @mkdir -p $(obj)include
  1068. @ >$(obj)include/config.h
  1069. @[ -z "$(findstring EVB_BA,$@)" ] || \
  1070. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
  1071. echo "... BASIC model" ; \
  1072. }
  1073. @[ -z "$(findstring EVB_ME,$@)" ] || \
  1074. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
  1075. echo "... MEDIUM model" ; \
  1076. }
  1077. @[ -z "$(findstring EVB_HI,$@)" ] || \
  1078. { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
  1079. echo "... HIGH-END model" ; \
  1080. }
  1081. @[ -z "$(findstring _25,$@)" ] || \
  1082. { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
  1083. echo "SysClk = 25MHz" ; \
  1084. }
  1085. @[ -z "$(findstring _33,$@)" ] || \
  1086. { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
  1087. echo "SysClk = 33MHz" ; \
  1088. }
  1089. @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  1090. sbc405_config: unconfig
  1091. @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
  1092. sequoia_config \
  1093. rainier_config: unconfig
  1094. @mkdir -p $(obj)include
  1095. @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
  1096. tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
  1097. @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
  1098. sequoia_nand_config \
  1099. rainier_nand_config: unconfig
  1100. @mkdir -p $(obj)include $(obj)board/amcc/sequoia
  1101. @mkdir -p $(obj)nand_spl/board/amcc/sequoia
  1102. @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
  1103. @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
  1104. tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
  1105. @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
  1106. @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
  1107. @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
  1108. sc3_config:unconfig
  1109. @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
  1110. taihu_config: unconfig
  1111. @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
  1112. taishan_config: unconfig
  1113. @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
  1114. VOH405_config: unconfig
  1115. @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
  1116. VOM405_config: unconfig
  1117. @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
  1118. CMS700_config: unconfig
  1119. @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
  1120. W7OLMC_config \
  1121. W7OLMG_config: unconfig
  1122. @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
  1123. # Walnut & Sycamore images are identical (recognized via PVR)
  1124. walnut_config \
  1125. sycamore_config: unconfig
  1126. @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
  1127. WUH405_config: unconfig
  1128. @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
  1129. XPEDITE1K_config: unconfig
  1130. @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
  1131. yosemite_config \
  1132. yellowstone_config: unconfig
  1133. @mkdir -p $(obj)include
  1134. @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
  1135. tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
  1136. @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
  1137. yucca_config: unconfig
  1138. @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
  1139. zeus_config: unconfig
  1140. @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
  1141. #########################################################################
  1142. ## MPC8220 Systems
  1143. #########################################################################
  1144. Alaska8220_config \
  1145. Yukon8220_config: unconfig
  1146. @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
  1147. sorcery_config: unconfig
  1148. @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
  1149. #########################################################################
  1150. ## MPC824x Systems
  1151. #########################################################################
  1152. xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
  1153. A3000_config: unconfig
  1154. @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
  1155. barco_config: unconfig
  1156. @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
  1157. BMW_config: unconfig
  1158. @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
  1159. CPC45_config \
  1160. CPC45_ROMBOOT_config: unconfig
  1161. @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
  1162. @cd $(obj)include ; \
  1163. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  1164. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  1165. echo "... booting from 8-bit flash" ; \
  1166. else \
  1167. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  1168. echo "... booting from 64-bit flash" ; \
  1169. fi; \
  1170. echo "export CONFIG_BOOT_ROM" >> config.mk;
  1171. CU824_config: unconfig
  1172. @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
  1173. debris_config: unconfig
  1174. @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
  1175. eXalion_config: unconfig
  1176. @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
  1177. HIDDEN_DRAGON_config: unconfig
  1178. @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
  1179. kvme080_config: unconfig
  1180. @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
  1181. MOUSSE_config: unconfig
  1182. @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
  1183. MUSENKI_config: unconfig
  1184. @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
  1185. MVBLUE_config: unconfig
  1186. @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
  1187. OXC_config: unconfig
  1188. @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
  1189. PN62_config: unconfig
  1190. @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
  1191. Sandpoint8240_config: unconfig
  1192. @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
  1193. Sandpoint8245_config: unconfig
  1194. @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
  1195. sbc8240_config: unconfig
  1196. @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
  1197. SL8245_config: unconfig
  1198. @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
  1199. utx8245_config: unconfig
  1200. @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
  1201. #########################################################################
  1202. ## MPC8260 Systems
  1203. #########################################################################
  1204. atc_config: unconfig
  1205. @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
  1206. cogent_mpc8260_config: unconfig
  1207. @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
  1208. CPU86_config \
  1209. CPU86_ROMBOOT_config: unconfig
  1210. @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
  1211. @cd $(obj)include ; \
  1212. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  1213. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  1214. echo "... booting from 8-bit flash" ; \
  1215. else \
  1216. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  1217. echo "... booting from 64-bit flash" ; \
  1218. fi; \
  1219. echo "export CONFIG_BOOT_ROM" >> config.mk;
  1220. CPU87_config \
  1221. CPU87_ROMBOOT_config: unconfig
  1222. @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
  1223. @cd $(obj)include ; \
  1224. if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  1225. echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
  1226. echo "... booting from 8-bit flash" ; \
  1227. else \
  1228. echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
  1229. echo "... booting from 64-bit flash" ; \
  1230. fi; \
  1231. echo "export CONFIG_BOOT_ROM" >> config.mk;
  1232. ep8248_config \
  1233. ep8248E_config : unconfig
  1234. @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
  1235. ep8260_config: unconfig
  1236. @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
  1237. ep82xxm_config: unconfig
  1238. @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
  1239. gw8260_config: unconfig
  1240. @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
  1241. hymod_config: unconfig
  1242. @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
  1243. IDS8247_config: unconfig
  1244. @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
  1245. IPHASE4539_config: unconfig
  1246. @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
  1247. ISPAN_config \
  1248. ISPAN_REVB_config: unconfig
  1249. @mkdir -p $(obj)include
  1250. @if [ "$(findstring _REVB_,$@)" ] ; then \
  1251. echo "#define CFG_REV_B" > $(obj)include/config.h ; \
  1252. fi
  1253. @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
  1254. MPC8260ADS_config \
  1255. MPC8260ADS_lowboot_config \
  1256. MPC8260ADS_33MHz_config \
  1257. MPC8260ADS_33MHz_lowboot_config \
  1258. MPC8260ADS_40MHz_config \
  1259. MPC8260ADS_40MHz_lowboot_config \
  1260. MPC8272ADS_config \
  1261. MPC8272ADS_lowboot_config \
  1262. PQ2FADS_config \
  1263. PQ2FADS_lowboot_config \
  1264. PQ2FADS-VR_config \
  1265. PQ2FADS-VR_lowboot_config \
  1266. PQ2FADS-ZU_config \
  1267. PQ2FADS-ZU_lowboot_config \
  1268. PQ2FADS-ZU_66MHz_config \
  1269. PQ2FADS-ZU_66MHz_lowboot_config \
  1270. : unconfig
  1271. @mkdir -p $(obj)include
  1272. @mkdir -p $(obj)board/mpc8260ads
  1273. $(if $(findstring PQ2FADS,$@), \
  1274. @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
  1275. @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
  1276. $(if $(findstring MHz,$@), \
  1277. @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
  1278. $(if $(findstring VR,$@), \
  1279. @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
  1280. @[ -z "$(findstring lowboot_,$@)" ] || \
  1281. { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
  1282. echo "... with lowboot configuration" ; \
  1283. }
  1284. @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
  1285. MPC8266ADS_config: unconfig
  1286. @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
  1287. # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
  1288. PM825_config \
  1289. PM825_ROMBOOT_config \
  1290. PM825_BIGFLASH_config \
  1291. PM825_ROMBOOT_BIGFLASH_config \
  1292. PM826_config \
  1293. PM826_ROMBOOT_config \
  1294. PM826_BIGFLASH_config \
  1295. PM826_ROMBOOT_BIGFLASH_config: unconfig
  1296. @mkdir -p $(obj)include
  1297. @mkdir -p $(obj)board/pm826
  1298. @if [ "$(findstring PM825_,$@)" ] ; then \
  1299. echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
  1300. else \
  1301. >$(obj)include/config.h ; \
  1302. fi
  1303. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  1304. echo "... booting from 8-bit flash" ; \
  1305. echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
  1306. echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
  1307. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  1308. echo "... with 32 MB Flash" ; \
  1309. echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
  1310. fi; \
  1311. else \
  1312. echo "... booting from 64-bit flash" ; \
  1313. if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
  1314. echo "... with 32 MB Flash" ; \
  1315. echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
  1316. echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
  1317. else \
  1318. echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
  1319. fi; \
  1320. fi
  1321. @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
  1322. PM828_config \
  1323. PM828_PCI_config \
  1324. PM828_ROMBOOT_config \
  1325. PM828_ROMBOOT_PCI_config: unconfig
  1326. @mkdir -p $(obj)include
  1327. @mkdir -p $(obj)board/pm826
  1328. @if [ "$(findstring _PCI_,$@)" ] ; then \
  1329. echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  1330. echo "... with PCI enabled" ; \
  1331. else \
  1332. >$(obj)include/config.h ; \
  1333. fi
  1334. @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
  1335. echo "... booting from 8-bit flash" ; \
  1336. echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
  1337. echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
  1338. fi
  1339. @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
  1340. ppmc8260_config: unconfig
  1341. @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
  1342. Rattler8248_config \
  1343. Rattler_config: unconfig
  1344. @mkdir -p $(obj)include
  1345. $(if $(findstring 8248,$@), \
  1346. @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
  1347. @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
  1348. RPXsuper_config: unconfig
  1349. @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
  1350. rsdproto_config: unconfig
  1351. @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
  1352. sacsng_config: unconfig
  1353. @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
  1354. sbc8260_config: unconfig
  1355. @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
  1356. SCM_config: unconfig
  1357. @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
  1358. TQM8255_AA_config \
  1359. TQM8260_AA_config \
  1360. TQM8260_AB_config \
  1361. TQM8260_AC_config \
  1362. TQM8260_AD_config \
  1363. TQM8260_AE_config \
  1364. TQM8260_AF_config \
  1365. TQM8260_AG_config \
  1366. TQM8260_AH_config \
  1367. TQM8260_AI_config \
  1368. TQM8265_AA_config: unconfig
  1369. @mkdir -p $(obj)include
  1370. @case "$@" in \
  1371. TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
  1372. TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
  1373. TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  1374. TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
  1375. TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  1376. TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
  1377. TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  1378. TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
  1379. TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
  1380. TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
  1381. TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
  1382. esac; \
  1383. >$(obj)include/config.h ; \
  1384. if [ "$${CTYPE}" != "MPC8260" ] ; then \
  1385. echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
  1386. fi; \
  1387. echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
  1388. echo "... with $${CFREQ}MHz system clock" ; \
  1389. if [ "$${CACHE}" == "yes" ] ; then \
  1390. echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
  1391. echo "... with L2 Cache support" ; \
  1392. else \
  1393. echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
  1394. echo "... without L2 Cache support" ; \
  1395. fi; \
  1396. if [ "$${BMODE}" == "60x" ] ; then \
  1397. echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
  1398. echo "... with 60x Bus Mode" ; \
  1399. else \
  1400. echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
  1401. echo "... without 60x Bus Mode" ; \
  1402. fi
  1403. @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
  1404. TQM8272_config: unconfig
  1405. @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
  1406. VoVPN-GW_66MHz_config \
  1407. VoVPN-GW_100MHz_config: unconfig
  1408. @mkdir -p $(obj)include
  1409. @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
  1410. @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
  1411. ZPC1900_config: unconfig
  1412. @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
  1413. #########################################################################
  1414. ## Coldfire
  1415. #########################################################################
  1416. M5235EVB_config \
  1417. M5235EVB_Flash16_config \
  1418. M5235EVB_Flash32_config: unconfig
  1419. @case "$@" in \
  1420. M5235EVB_config) FLASH=16;; \
  1421. M5235EVB_Flash16_config) FLASH=16;; \
  1422. M5235EVB_Flash32_config) FLASH=32;; \
  1423. esac; \
  1424. >include/config.h ; \
  1425. if [ "$${FLASH}" != "16" ] ; then \
  1426. echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \
  1427. echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
  1428. cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
  1429. else \
  1430. echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
  1431. cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
  1432. fi
  1433. @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
  1434. M5249EVB_config : unconfig
  1435. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
  1436. M5253EVBE_config : unconfig
  1437. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
  1438. cobra5272_config : unconfig
  1439. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
  1440. EB+MCF-EV123_config : unconfig
  1441. @mkdir -p $(obj)include
  1442. @mkdir -p $(obj)board/BuS/EB+MCF-EV123
  1443. @ >$(obj)include/config.h
  1444. @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
  1445. @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
  1446. EB+MCF-EV123_internal_config : unconfig
  1447. @mkdir -p $(obj)include
  1448. @mkdir -p $(obj)board/BuS/EB+MCF-EV123
  1449. @ >$(obj)include/config.h
  1450. @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
  1451. @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
  1452. idmr_config : unconfig
  1453. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
  1454. M5271EVB_config : unconfig
  1455. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
  1456. M5272C3_config : unconfig
  1457. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
  1458. M5282EVB_config : unconfig
  1459. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
  1460. TASREG_config : unconfig
  1461. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
  1462. r5200_config : unconfig
  1463. @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
  1464. M5329AFEE_config \
  1465. M5329BFEE_config : unconfig
  1466. @case "$@" in \
  1467. M5329AFEE_config) NAND=0;; \
  1468. M5329BFEE_config) NAND=16;; \
  1469. esac; \
  1470. >include/config.h ; \
  1471. if [ "$${NAND}" != "0" ] ; then \
  1472. echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
  1473. fi
  1474. @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
  1475. M54455EVB_config \
  1476. M54455EVB_atmel_config \
  1477. M54455EVB_intel_config \
  1478. M54455EVB_a33_config \
  1479. M54455EVB_a66_config \
  1480. M54455EVB_i33_config \
  1481. M54455EVB_i66_config : unconfig
  1482. @case "$@" in \
  1483. M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
  1484. M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
  1485. M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
  1486. M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
  1487. M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
  1488. M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
  1489. M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
  1490. esac; \
  1491. >include/config.h ; \
  1492. if [ "$${FLASH}" == "INTEL" ] ; then \
  1493. echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
  1494. echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
  1495. cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
  1496. echo "... with INTEL boot..." ; \
  1497. else \
  1498. echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
  1499. echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
  1500. cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
  1501. echo "... with ATMEL boot..." ; \
  1502. fi; \
  1503. echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
  1504. echo "... with $${FREQ}Hz input clock"
  1505. @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
  1506. #########################################################################
  1507. ## MPC83xx Systems
  1508. #########################################################################
  1509. MPC8313ERDB_33_config \
  1510. MPC8313ERDB_66_config: unconfig
  1511. @mkdir -p $(obj)include
  1512. @echo "" >$(obj)include/config.h ; \
  1513. if [ "$(findstring _33_,$@)" ] ; then \
  1514. echo -n "...33M ..." ; \
  1515. echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
  1516. fi ; \
  1517. if [ "$(findstring _66_,$@)" ] ; then \
  1518. echo -n "...66M..." ; \
  1519. echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
  1520. fi ;
  1521. @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
  1522. MPC8323ERDB_config: unconfig
  1523. @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
  1524. MPC832XEMDS_config \
  1525. MPC832XEMDS_HOST_33_config \
  1526. MPC832XEMDS_HOST_66_config \
  1527. MPC832XEMDS_SLAVE_config \
  1528. MPC832XEMDS_ATM_config: unconfig
  1529. @mkdir -p $(obj)include
  1530. @echo "" >$(obj)include/config.h ; \
  1531. if [ "$(findstring _HOST_,$@)" ] ; then \
  1532. echo -n "... PCI HOST " ; \
  1533. echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  1534. fi ; \
  1535. if [ "$(findstring _SLAVE_,$@)" ] ; then \
  1536. echo "...PCI SLAVE 66M" ; \
  1537. echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  1538. echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
  1539. fi ; \
  1540. if [ "$(findstring _33_,$@)" ] ; then \
  1541. echo -n "...33M ..." ; \
  1542. echo "#define PCI_33M" >>$(obj)include/config.h ; \
  1543. echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  1544. fi ; \
  1545. if [ "$(findstring _66_,$@)" ] ; then \
  1546. echo -n "...66M..." ; \
  1547. echo "#define PCI_66M" >>$(obj)include/config.h ; \
  1548. echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  1549. fi ; \
  1550. if [ "$(findstring _ATM_,$@)" ] ; then \
  1551. echo -n "...ATM..." ; \
  1552. echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  1553. echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
  1554. fi ;
  1555. @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
  1556. MPC8349EMDS_config: unconfig
  1557. @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
  1558. MPC8349ITX_config \
  1559. MPC8349ITX_LOWBOOT_config \
  1560. MPC8349ITXGP_config: unconfig
  1561. @mkdir -p $(obj)include
  1562. @mkdir -p $(obj)board/freescale/mpc8349itx
  1563. @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
  1564. @if [ "$(findstring GP,$@)" ] ; then \
  1565. echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
  1566. fi
  1567. @if [ "$(findstring LOWBOOT,$@)" ] ; then \
  1568. echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
  1569. fi
  1570. @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
  1571. MPC8360EMDS_config \
  1572. MPC8360EMDS_HOST_33_config \
  1573. MPC8360EMDS_HOST_66_config \
  1574. MPC8360EMDS_SLAVE_config \
  1575. MPC8360EMDS_ATM_config: unconfig
  1576. @mkdir -p $(obj)include
  1577. @echo "" >$(obj)include/config.h ; \
  1578. if [ "$(findstring _HOST_,$@)" ] ; then \
  1579. echo -n "... PCI HOST " ; \
  1580. echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  1581. fi ; \
  1582. if [ "$(findstring _SLAVE_,$@)" ] ; then \
  1583. echo "...PCI SLAVE 66M" ; \
  1584. echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
  1585. echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
  1586. fi ; \
  1587. if [ "$(findstring _33_,$@)" ] ; then \
  1588. echo -n "...33M ..." ; \
  1589. echo "#define PCI_33M" >>$(obj)include/config.h ; \
  1590. echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  1591. fi ; \
  1592. if [ "$(findstring _66_,$@)" ] ; then \
  1593. echo -n "...66M..." ; \
  1594. echo "#define PCI_66M" >>$(obj)include/config.h ; \
  1595. echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  1596. fi ; \
  1597. if [ "$(findstring _ATM_,$@)" ] ; then \
  1598. echo -n "...ATM..." ; \
  1599. echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
  1600. echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
  1601. fi ;
  1602. @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
  1603. sbc8349_config: unconfig
  1604. @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
  1605. TQM834x_config: unconfig
  1606. @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
  1607. #########################################################################
  1608. ## MPC85xx Systems
  1609. #########################################################################
  1610. MPC8540ADS_config: unconfig
  1611. @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
  1612. MPC8540EVAL_config \
  1613. MPC8540EVAL_33_config \
  1614. MPC8540EVAL_66_config \
  1615. MPC8540EVAL_33_slave_config \
  1616. MPC8540EVAL_66_slave_config: unconfig
  1617. @mkdir -p $(obj)include
  1618. @echo "" >$(obj)include/config.h ; \
  1619. if [ "$(findstring _33_,$@)" ] ; then \
  1620. echo "... 33 MHz PCI" ; \
  1621. else \
  1622. echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
  1623. echo "... 66 MHz PCI" ; \
  1624. fi ; \
  1625. if [ "$(findstring _slave_,$@)" ] ; then \
  1626. echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
  1627. echo " slave" ; \
  1628. else \
  1629. echo " host" ; \
  1630. fi
  1631. @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
  1632. MPC8560ADS_config: unconfig
  1633. @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
  1634. MPC8541CDS_legacy_config \
  1635. MPC8541CDS_config: unconfig
  1636. @mkdir -p $(obj)include
  1637. @echo "" >$(obj)include/config.h ; \
  1638. if [ "$(findstring _legacy_,$@)" ] ; then \
  1639. echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
  1640. echo "... legacy" ; \
  1641. fi
  1642. @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds cds
  1643. MPC8544DS_config: unconfig
  1644. @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
  1645. MPC8548CDS_legacy_config \
  1646. MPC8548CDS_config: unconfig
  1647. @mkdir -p $(obj)include
  1648. @echo "" >$(obj)include/config.h ; \
  1649. if [ "$(findstring _legacy_,$@)" ] ; then \
  1650. echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
  1651. echo "... legacy" ; \
  1652. fi
  1653. @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds cds
  1654. MPC8555CDS_legacy_config \
  1655. MPC8555CDS_config: unconfig
  1656. @mkdir -p $(obj)include
  1657. @echo "" >$(obj)include/config.h ; \
  1658. if [ "$(findstring _legacy_,$@)" ] ; then \
  1659. echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
  1660. echo "... legacy" ; \
  1661. fi
  1662. @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds cds
  1663. MPC8568MDS_config: unconfig
  1664. @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
  1665. PM854_config: unconfig
  1666. @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
  1667. PM856_config: unconfig
  1668. @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
  1669. sbc8540_config \
  1670. sbc8540_33_config \
  1671. sbc8540_66_config: unconfig
  1672. @mkdir -p $(obj)include
  1673. @if [ "$(findstring _66_,$@)" ] ; then \
  1674. echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
  1675. echo "... 66 MHz PCI" ; \
  1676. else \
  1677. >$(obj)include/config.h ; \
  1678. echo "... 33 MHz PCI" ; \
  1679. fi
  1680. @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
  1681. sbc8560_config \
  1682. sbc8560_33_config \
  1683. sbc8560_66_config: unconfig
  1684. @mkdir -p $(obj)include
  1685. @if [ "$(findstring _66_,$@)" ] ; then \
  1686. echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
  1687. echo "... 66 MHz PCI" ; \
  1688. else \
  1689. >$(obj)include/config.h ; \
  1690. echo "... 33 MHz PCI" ; \
  1691. fi
  1692. @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
  1693. stxgp3_config: unconfig
  1694. @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
  1695. stxssa_config \
  1696. stxssa_4M_config: unconfig
  1697. @mkdir -p $(obj)include
  1698. @if [ "$(findstring _4M_,$@)" ] ; then \
  1699. echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
  1700. echo "... with 4 MiB flash memory" ; \
  1701. else \
  1702. >$(obj)include/config.h ; \
  1703. fi
  1704. @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
  1705. TQM8540_config \
  1706. TQM8541_config \
  1707. TQM8555_config \
  1708. TQM8560_config: unconfig
  1709. @mkdir -p $(obj)include
  1710. @CTYPE=$(subst TQM,,$(@:_config=)); \
  1711. >$(obj)include/config.h ; \
  1712. echo "... TQM"$${CTYPE}; \
  1713. echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
  1714. echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
  1715. echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
  1716. echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
  1717. echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
  1718. @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
  1719. #########################################################################
  1720. ## MPC86xx Systems
  1721. #########################################################################
  1722. MPC8641HPCN_config: unconfig
  1723. @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
  1724. sbc8641d_config: unconfig
  1725. @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
  1726. #########################################################################
  1727. ## 74xx/7xx Systems
  1728. #########################################################################
  1729. AmigaOneG3SE_config: unconfig
  1730. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
  1731. BAB7xx_config: unconfig
  1732. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
  1733. CPCI750_config: unconfig
  1734. @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
  1735. DB64360_config: unconfig
  1736. @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
  1737. DB64460_config: unconfig
  1738. @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
  1739. ELPPC_config: unconfig
  1740. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
  1741. EVB64260_config \
  1742. EVB64260_750CX_config: unconfig
  1743. @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
  1744. mpc7448hpc2_config: unconfig
  1745. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
  1746. P3G4_config: unconfig
  1747. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
  1748. p3m750_config \
  1749. p3m7448_config: unconfig
  1750. @mkdir -p $(obj)include
  1751. @if [ "$(findstring 750_,$@)" ] ; then \
  1752. echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
  1753. else \
  1754. echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
  1755. fi
  1756. @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
  1757. PCIPPC2_config \
  1758. PCIPPC6_config: unconfig
  1759. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
  1760. ZUMA_config: unconfig
  1761. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
  1762. ppmc7xx_config: unconfig
  1763. @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
  1764. #========================================================================
  1765. # ARM
  1766. #========================================================================
  1767. #########################################################################
  1768. ## StrongARM Systems
  1769. #########################################################################
  1770. assabet_config : unconfig
  1771. @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
  1772. dnp1110_config : unconfig
  1773. @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
  1774. gcplus_config : unconfig
  1775. @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
  1776. lart_config : unconfig
  1777. @$(MKCONFIG) $(@:_config=) arm sa1100 lart
  1778. shannon_config : unconfig
  1779. @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
  1780. #########################################################################
  1781. ## ARM92xT Systems
  1782. #########################################################################
  1783. xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
  1784. xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
  1785. xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
  1786. at91rm9200dk_config : unconfig
  1787. @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
  1788. cmc_pu2_config : unconfig
  1789. @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
  1790. csb637_config : unconfig
  1791. @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
  1792. mp2usb_config : unconfig
  1793. @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
  1794. ########################################################################
  1795. ## ARM Integrator boards - see doc/README-integrator for more info.
  1796. integratorap_config \
  1797. ap_config \
  1798. ap966_config \
  1799. ap922_config \
  1800. ap922_XA10_config \
  1801. ap7_config \
  1802. ap720t_config \
  1803. ap920t_config \
  1804. ap926ejs_config \
  1805. ap946es_config: unconfig
  1806. @board/integratorap/split_by_variant.sh $@
  1807. integratorcp_config \
  1808. cp_config \
  1809. cp920t_config \
  1810. cp926ejs_config \
  1811. cp946es_config \
  1812. cp1136_config \
  1813. cp966_config \
  1814. cp922_config \
  1815. cp922_XA10_config \
  1816. cp1026_config: unconfig
  1817. @board/integratorcp/split_by_variant.sh $@
  1818. kb9202_config : unconfig
  1819. @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
  1820. lpd7a400_config \
  1821. lpd7a404_config: unconfig
  1822. @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
  1823. mx1ads_config : unconfig
  1824. @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
  1825. mx1fs2_config : unconfig
  1826. @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
  1827. netstar_32_config \
  1828. netstar_config: unconfig
  1829. @mkdir -p $(obj)include
  1830. @if [ "$(findstring _32_,$@)" ] ; then \
  1831. echo "... 32MB SDRAM" ; \
  1832. echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
  1833. else \
  1834. echo "... 64MB SDRAM" ; \
  1835. echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
  1836. fi
  1837. @$(MKCONFIG) -a netstar arm arm925t netstar
  1838. omap1510inn_config : unconfig
  1839. @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
  1840. omap5912osk_config : unconfig
  1841. @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
  1842. davinci_dvevm_config : unconfig
  1843. @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
  1844. davinci_schmoogie_config : unconfig
  1845. @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
  1846. davinci_sonata_config : unconfig
  1847. @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
  1848. omap1610inn_config \
  1849. omap1610inn_cs0boot_config \
  1850. omap1610inn_cs3boot_config \
  1851. omap1610inn_cs_autoboot_config \
  1852. omap1610h2_config \
  1853. omap1610h2_cs0boot_config \
  1854. omap1610h2_cs3boot_config \
  1855. omap1610h2_cs_autoboot_config: unconfig
  1856. @mkdir -p $(obj)include
  1857. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1858. echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
  1859. echo "... configured for CS0 boot"; \
  1860. elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
  1861. echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
  1862. echo "... configured for CS_AUTO boot"; \
  1863. else \
  1864. echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
  1865. echo "... configured for CS3 boot"; \
  1866. fi;
  1867. @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
  1868. omap730p2_config \
  1869. omap730p2_cs0boot_config \
  1870. omap730p2_cs3boot_config : unconfig
  1871. @mkdir -p $(obj)include
  1872. @if [ "$(findstring _cs0boot_, $@)" ] ; then \
  1873. echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
  1874. echo "... configured for CS0 boot"; \
  1875. else \
  1876. echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
  1877. echo "... configured for CS3 boot"; \
  1878. fi;
  1879. @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
  1880. sbc2410x_config: unconfig
  1881. @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
  1882. scb9328_config : unconfig
  1883. @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
  1884. smdk2400_config : unconfig
  1885. @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
  1886. smdk2410_config : unconfig
  1887. @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
  1888. SX1_config : unconfig
  1889. @$(MKCONFIG) $(@:_config=) arm arm925t sx1
  1890. # TRAB default configuration: 8 MB Flash, 32 MB RAM
  1891. trab_config \
  1892. trab_bigram_config \
  1893. trab_bigflash_config \
  1894. trab_old_config: unconfig
  1895. @mkdir -p $(obj)include
  1896. @mkdir -p $(obj)board/trab
  1897. @ >$(obj)include/config.h
  1898. @[ -z "$(findstring _bigram,$@)" ] || \
  1899. { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
  1900. echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
  1901. echo "... with 8 MB Flash, 32 MB RAM" ; \
  1902. }
  1903. @[ -z "$(findstring _bigflash,$@)" ] || \
  1904. { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
  1905. echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
  1906. echo "... with 16 MB Flash, 16 MB RAM" ; \
  1907. echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
  1908. }
  1909. @[ -z "$(findstring _old,$@)" ] || \
  1910. { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
  1911. echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
  1912. echo "... with 8 MB Flash, 16 MB RAM" ; \
  1913. echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
  1914. }
  1915. @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
  1916. VCMA9_config : unconfig
  1917. @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
  1918. #========================================================================
  1919. # ARM supplied Versatile development boards
  1920. #========================================================================
  1921. versatile_config \
  1922. versatileab_config \
  1923. versatilepb_config : unconfig
  1924. @board/versatile/split_by_variant.sh $@
  1925. voiceblue_smallflash_config \
  1926. voiceblue_config: unconfig
  1927. @mkdir -p $(obj)include
  1928. @mkdir -p $(obj)board/voiceblue
  1929. @if [ "$(findstring _smallflash_,$@)" ] ; then \
  1930. echo "... boot from lower flash bank" ; \
  1931. echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
  1932. echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
  1933. else \
  1934. echo "... boot from upper flash bank" ; \
  1935. >$(obj)include/config.h ; \
  1936. echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
  1937. fi
  1938. @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
  1939. cm4008_config : unconfig
  1940. @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
  1941. cm41xx_config : unconfig
  1942. @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
  1943. gth2_config : unconfig
  1944. @mkdir -p $(obj)include
  1945. @ >$(obj)include/config.h
  1946. @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
  1947. @$(MKCONFIG) -a gth2 mips mips gth2
  1948. #########################################################################
  1949. ## S3C44B0 Systems
  1950. #########################################################################
  1951. B2_config : unconfig
  1952. @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
  1953. #########################################################################
  1954. ## ARM720T Systems
  1955. #########################################################################
  1956. armadillo_config: unconfig
  1957. @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
  1958. ep7312_config : unconfig
  1959. @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
  1960. impa7_config : unconfig
  1961. @$(MKCONFIG) $(@:_config=) arm arm720t impa7
  1962. modnet50_config : unconfig
  1963. @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
  1964. evb4510_config : unconfig
  1965. @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
  1966. lpc2292sodimm_config: unconfig
  1967. @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
  1968. SMN42_config : unconfig
  1969. @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
  1970. #########################################################################
  1971. ## XScale Systems
  1972. #########################################################################
  1973. adsvix_config : unconfig
  1974. @$(MKCONFIG) $(@:_config=) arm pxa adsvix
  1975. cerf250_config : unconfig
  1976. @$(MKCONFIG) $(@:_config=) arm pxa cerf250
  1977. cradle_config : unconfig
  1978. @$(MKCONFIG) $(@:_config=) arm pxa cradle
  1979. csb226_config : unconfig
  1980. @$(MKCONFIG) $(@:_config=) arm pxa csb226
  1981. delta_config :
  1982. @$(MKCONFIG) $(@:_config=) arm pxa delta
  1983. innokom_config : unconfig
  1984. @$(MKCONFIG) $(@:_config=) arm pxa innokom
  1985. ixdp425_config : unconfig
  1986. @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
  1987. ixdpg425_config : unconfig
  1988. @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
  1989. lubbock_config : unconfig
  1990. @$(MKCONFIG) $(@:_config=) arm pxa lubbock
  1991. pleb2_config : unconfig
  1992. @$(MKCONFIG) $(@:_config=) arm pxa pleb2
  1993. logodl_config : unconfig
  1994. @$(MKCONFIG) $(@:_config=) arm pxa logodl
  1995. pdnb3_config \
  1996. scpu_config: unconfig
  1997. @mkdir -p $(obj)include
  1998. @if [ "$(findstring scpu_,$@)" ] ; then \
  1999. echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
  2000. echo "... on SCPU board variant" ; \
  2001. else \
  2002. >$(obj)include/config.h ; \
  2003. fi
  2004. @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
  2005. pxa255_idp_config: unconfig
  2006. @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
  2007. trizepsiv_config : unconfig
  2008. @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
  2009. wepep250_config : unconfig
  2010. @$(MKCONFIG) $(@:_config=) arm pxa wepep250
  2011. xaeniax_config : unconfig
  2012. @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
  2013. xm250_config : unconfig
  2014. @$(MKCONFIG) $(@:_config=) arm pxa xm250
  2015. xsengine_config : unconfig
  2016. @$(MKCONFIG) $(@:_config=) arm pxa xsengine
  2017. zylonite_config :
  2018. @$(MKCONFIG) $(@:_config=) arm pxa zylonite
  2019. #########################################################################
  2020. ## ARM1136 Systems
  2021. #########################################################################
  2022. omap2420h4_config : unconfig
  2023. @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
  2024. #========================================================================
  2025. # i386
  2026. #========================================================================
  2027. #########################################################################
  2028. ## AMD SC520 CDP
  2029. #########################################################################
  2030. sc520_cdp_config : unconfig
  2031. @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
  2032. sc520_spunk_config : unconfig
  2033. @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
  2034. sc520_spunk_rel_config : unconfig
  2035. @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
  2036. #========================================================================
  2037. # MIPS
  2038. #========================================================================
  2039. #########################################################################
  2040. ## MIPS32 4Kc
  2041. #########################################################################
  2042. xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
  2043. incaip_100MHz_config \
  2044. incaip_133MHz_config \
  2045. incaip_150MHz_config \
  2046. incaip_config: unconfig
  2047. @mkdir -p $(obj)include
  2048. @ >$(obj)include/config.h
  2049. @[ -z "$(findstring _100MHz,$@)" ] || \
  2050. { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
  2051. echo "... with 100MHz system clock" ; \
  2052. }
  2053. @[ -z "$(findstring _133MHz,$@)" ] || \
  2054. { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
  2055. echo "... with 133MHz system clock" ; \
  2056. }
  2057. @[ -z "$(findstring _150MHz,$@)" ] || \
  2058. { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
  2059. echo "... with 150MHz system clock" ; \
  2060. }
  2061. @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
  2062. tb0229_config: unconfig
  2063. @$(MKCONFIG) $(@:_config=) mips mips tb0229
  2064. #########################################################################
  2065. ## MIPS32 AU1X00
  2066. #########################################################################
  2067. dbau1000_config : unconfig
  2068. @mkdir -p $(obj)include
  2069. @ >$(obj)include/config.h
  2070. @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
  2071. @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
  2072. dbau1100_config : unconfig
  2073. @mkdir -p $(obj)include
  2074. @ >$(obj)include/config.h
  2075. @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
  2076. @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
  2077. dbau1500_config : unconfig
  2078. @mkdir -p $(obj)include
  2079. @ >$(obj)include/config.h
  2080. @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
  2081. @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
  2082. dbau1550_config : unconfig
  2083. @mkdir -p $(obj)include
  2084. @ >$(obj)include/config.h
  2085. @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
  2086. @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
  2087. dbau1550_el_config : unconfig
  2088. @mkdir -p $(obj)include
  2089. @ >$(obj)include/config.h
  2090. @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
  2091. @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
  2092. pb1000_config : unconfig
  2093. @mkdir -p $(obj)include
  2094. @ >$(obj)include/config.h
  2095. @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
  2096. @$(MKCONFIG) -a pb1x00 mips mips pb1x00
  2097. #########################################################################
  2098. ## MIPS64 5Kc
  2099. #########################################################################
  2100. purple_config : unconfig
  2101. @$(MKCONFIG) $(@:_config=) mips mips purple
  2102. #========================================================================
  2103. # Nios
  2104. #========================================================================
  2105. #########################################################################
  2106. ## Nios32
  2107. #########################################################################
  2108. DK1C20_safe_32_config \
  2109. DK1C20_standard_32_config \
  2110. DK1C20_config: unconfig
  2111. @mkdir -p $(obj)include
  2112. @ >$(obj)include/config.h
  2113. @[ -z "$(findstring _safe_32,$@)" ] || \
  2114. { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
  2115. echo "... NIOS 'safe_32' configuration" ; \
  2116. }
  2117. @[ -z "$(findstring _standard_32,$@)" ] || \
  2118. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
  2119. echo "... NIOS 'standard_32' configuration" ; \
  2120. }
  2121. @[ -z "$(findstring DK1C20_config,$@)" ] || \
  2122. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
  2123. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  2124. }
  2125. @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
  2126. DK1S10_safe_32_config \
  2127. DK1S10_standard_32_config \
  2128. DK1S10_mtx_ldk_20_config \
  2129. DK1S10_config: unconfig
  2130. @mkdir -p $(obj)include
  2131. @ >$(obj)include/config.h
  2132. @[ -z "$(findstring _safe_32,$@)" ] || \
  2133. { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
  2134. echo "... NIOS 'safe_32' configuration" ; \
  2135. }
  2136. @[ -z "$(findstring _standard_32,$@)" ] || \
  2137. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
  2138. echo "... NIOS 'standard_32' configuration" ; \
  2139. }
  2140. @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
  2141. { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
  2142. echo "... NIOS 'mtx_ldk_20' configuration" ; \
  2143. }
  2144. @[ -z "$(findstring DK1S10_config,$@)" ] || \
  2145. { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
  2146. echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
  2147. }
  2148. @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
  2149. ADNPESC1_DNPEVA2_base_32_config \
  2150. ADNPESC1_base_32_config \
  2151. ADNPESC1_config: unconfig
  2152. @mkdir -p $(obj)include
  2153. @ >$(obj)include/config.h
  2154. @[ -z "$(findstring _DNPEVA2,$@)" ] || \
  2155. { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
  2156. echo "... DNP/EVA2 configuration" ; \
  2157. }
  2158. @[ -z "$(findstring _base_32,$@)" ] || \
  2159. { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
  2160. echo "... NIOS 'base_32' configuration" ; \
  2161. }
  2162. @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
  2163. { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
  2164. echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
  2165. }
  2166. @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
  2167. #########################################################################
  2168. ## Nios-II
  2169. #########################################################################
  2170. EP1C20_config : unconfig
  2171. @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
  2172. EP1S10_config : unconfig
  2173. @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
  2174. EP1S40_config : unconfig
  2175. @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
  2176. PK1C20_config : unconfig
  2177. @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
  2178. PCI5441_config : unconfig
  2179. @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
  2180. #========================================================================
  2181. # MicroBlaze
  2182. #========================================================================
  2183. #########################################################################
  2184. ## Microblaze
  2185. #########################################################################
  2186. suzaku_config: unconfig
  2187. @mkdir -p $(obj)include
  2188. @ >$(obj)include/config.h
  2189. @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
  2190. @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
  2191. ml401_config: unconfig
  2192. @mkdir -p $(obj)include
  2193. @ >$(obj)include/config.h
  2194. @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
  2195. @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
  2196. xupv2p_config: unconfig
  2197. @mkdir -p $(obj)include
  2198. @ >$(obj)include/config.h
  2199. @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
  2200. @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
  2201. #########################################################################
  2202. ## Blackfin
  2203. #########################################################################
  2204. bf533-ezkit_config: unconfig
  2205. @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
  2206. bf533-stamp_config: unconfig
  2207. @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
  2208. bf537-stamp_config: unconfig
  2209. @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
  2210. bf561-ezkit_config: unconfig
  2211. @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
  2212. #========================================================================
  2213. # AVR32
  2214. #========================================================================
  2215. #########################################################################
  2216. ## AT32AP7xxx
  2217. #########################################################################
  2218. atstk1002_config : unconfig
  2219. @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
  2220. #########################################################################
  2221. #########################################################################
  2222. #########################################################################
  2223. clean:
  2224. find $(OBJTREE) -type f \
  2225. \( -name 'core' -o -name '*.bak' -o -name '*~' \
  2226. -o -name '*.o' -o -name '*.a' \) -print \
  2227. | xargs rm -f
  2228. rm -f $(obj)examples/hello_world $(obj)examples/timer \
  2229. $(obj)examples/eepro100_eeprom $(obj)examples/sched \
  2230. $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
  2231. $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
  2232. $(obj)examples/test_burst
  2233. rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
  2234. $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
  2235. rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
  2236. rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
  2237. rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
  2238. rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
  2239. rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
  2240. rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
  2241. rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
  2242. rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
  2243. rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
  2244. rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
  2245. rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
  2246. rm -f $(obj)include/bmp_logo.h
  2247. rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
  2248. clobber: clean
  2249. find $(OBJTREE) -type f \( -name .depend \
  2250. -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
  2251. -print0 \
  2252. | xargs -0 rm -f
  2253. rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
  2254. rm -fr $(obj)*.*~
  2255. rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
  2256. rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
  2257. rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
  2258. rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
  2259. [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
  2260. ifeq ($(OBJTREE),$(SRCTREE))
  2261. mrproper \
  2262. distclean: clobber unconfig
  2263. else
  2264. mrproper \
  2265. distclean: clobber unconfig
  2266. rm -rf $(OBJTREE)/*
  2267. endif
  2268. backup:
  2269. F=`basename $(TOPDIR)` ; cd .. ; \
  2270. gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
  2271. #########################################################################