xref: /openbmc/u-boot/Makefile (revision 7521af1c)
17ebf7443Swdenk#
25e5f9ed2Swdenk# (C) Copyright 2000-2005
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
107ebf7443Swdenk# published by the Free Software Foundation; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
247ebf7443SwdenkHOSTARCH := $(shell uname -m | \
257ebf7443Swdenk	sed -e s/i.86/i386/ \
267ebf7443Swdenk	    -e s/sun4u/sparc64/ \
277ebf7443Swdenk	    -e s/arm.*/arm/ \
287ebf7443Swdenk	    -e s/sa110/arm/ \
297ebf7443Swdenk	    -e s/powerpc/ppc/ \
307ebf7443Swdenk	    -e s/macppc/ppc/)
317ebf7443Swdenk
32f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
337ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
347ebf7443Swdenk
35f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
367ebf7443Swdenk
377ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
387ebf7443SwdenkVENDOR=
397ebf7443Swdenk
407ebf7443Swdenk#########################################################################
417ebf7443Swdenk
427ebf7443SwdenkTOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
437ebf7443Swdenkexport	TOPDIR
447ebf7443Swdenk
457ebf7443Swdenkifeq (include/config.mk,$(wildcard include/config.mk))
467ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
477ebf7443Swdenkinclude include/config.mk
481d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
497ebf7443Swdenk# load other configuration
507ebf7443Swdenkinclude $(TOPDIR)/config.mk
517ebf7443Swdenk
527ebf7443Swdenkifndef CROSS_COMPILE
537ebf7443Swdenkifeq ($(HOSTARCH),ppc)
547ebf7443SwdenkCROSS_COMPILE =
557ebf7443Swdenkelse
567ebf7443Swdenkifeq ($(ARCH),ppc)
57f046ccd1SEran LibertyCROSS_COMPILE = powerpc-linux-
587ebf7443Swdenkendif
597ebf7443Swdenkifeq ($(ARCH),arm)
60dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
617ebf7443Swdenkendif
622262cfeeSwdenkifeq ($(ARCH),i386)
637a8e9bedSwdenkifeq ($(HOSTARCH),i386)
647a8e9bedSwdenkCROSS_COMPILE =
657a8e9bedSwdenkelse
667a8e9bedSwdenkCROSS_COMPILE = i386-linux-
677a8e9bedSwdenkendif
682262cfeeSwdenkendif
6943d9616cSwdenkifeq ($(ARCH),mips)
7043d9616cSwdenkCROSS_COMPILE = mips_4KC-
7143d9616cSwdenkendif
724a551709Swdenkifeq ($(ARCH),nios)
734a551709SwdenkCROSS_COMPILE = nios-elf-
744a551709Swdenkendif
755c952cf0Swdenkifeq ($(ARCH),nios2)
765c952cf0SwdenkCROSS_COMPILE = nios2-elf-
775c952cf0Swdenkendif
784e5ca3ebSwdenkifeq ($(ARCH),m68k)
794e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
804e5ca3ebSwdenkendif
81507bbe3eSwdenkifeq ($(ARCH),microblaze)
82507bbe3eSwdenkCROSS_COMPILE = mb-
83507bbe3eSwdenkendif
847ebf7443Swdenkendif
857ebf7443Swdenkendif
867ebf7443Swdenk
877ebf7443Swdenkexport	CROSS_COMPILE
887ebf7443Swdenk
897ebf7443Swdenk#########################################################################
907ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
917ebf7443Swdenk
927ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
932262cfeeSwdenkifeq ($(CPU),i386)
942262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
952262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
962262cfeeSwdenkendif
977ebf7443Swdenkifeq ($(CPU),ppc4xx)
987ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
997ebf7443Swdenkendif
100f046ccd1SEran Libertyifeq ($(CPU),mpc83xx)
101f046ccd1SEran LibertyOBJS += cpu/$(CPU)/resetvec.o
102f046ccd1SEran Libertyendif
10342d1f039Swdenkifeq ($(CPU),mpc85xx)
10442d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
10542d1f039Swdenkendif
1067ebf7443Swdenk
1079fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1089fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1097ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1101d9f4105Swdenkifdef SOC
1111d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1121d9f4105Swdenkendif
1137ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
114518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
115c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
1167ebf7443SwdenkLIBS += net/libnet.a
1177ebf7443SwdenkLIBS += disk/libdisk.a
1187ebf7443SwdenkLIBS += rtc/librtc.a
1197ebf7443SwdenkLIBS += dtt/libdtt.a
1207ebf7443SwdenkLIBS += drivers/libdrivers.a
1217152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1227ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1237ebf7443SwdenkLIBS += common/libcommon.a
1249fd5e31fSwdenk.PHONY : $(LIBS)
125a8c7c708Swdenk
1264f7cb08eSwdenk# Add GCC lib
1271a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1283d3befa7Swdenk
1297ebf7443Swdenk
130a8c7c708Swdenk# The "tools" are needed early, so put this first
131a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
132a8c7c708SwdenkSUBDIRS	= tools \
133a8c7c708Swdenk	  examples \
134a8c7c708Swdenk	  post \
135a8c7c708Swdenk	  post/cpu
136b028f715Swdenk.PHONY : $(SUBDIRS)
137a8c7c708Swdenk
1387ebf7443Swdenk#########################################################################
139bdccc4feSwdenk#########################################################################
1407ebf7443Swdenk
141bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1427ebf7443Swdenk
143bdccc4feSwdenkall:		$(ALL)
1447ebf7443Swdenk
1456310eb9dSwdenku-boot.hex:	u-boot
1466310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
1476310eb9dSwdenk
1487ebf7443Swdenku-boot.srec:	u-boot
1497ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1507ebf7443Swdenk
1517ebf7443Swdenku-boot.bin:	u-boot
1527ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1537ebf7443Swdenk
154bdccc4feSwdenku-boot.img:	u-boot.bin
155bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
156bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
157bdccc4feSwdenk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
158bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
159bdccc4feSwdenk		-d $< $@
160bdccc4feSwdenk
1617ebf7443Swdenku-boot.dis:	u-boot
1627ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1637ebf7443Swdenk
164a8c7c708Swdenku-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1658bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1668bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1671a344f29Swdenk			--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
168b2184c31Swdenk			-Map u-boot.map -o u-boot
1697ebf7443Swdenk
170a8c7c708Swdenk$(LIBS):
171a8c7c708Swdenk		$(MAKE) -C `dirname $@`
172a8c7c708Swdenk
173a8c7c708Swdenk$(SUBDIRS):
174b028f715Swdenk		$(MAKE) -C $@ all
1757ebf7443Swdenk
1768f713fdfSdzugdbtools:
1778f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
1788f713fdfSdzu
1797ebf7443Swdenkdepend dep:
1807ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
1817ebf7443Swdenk
1827ebf7443Swdenktags:
1837ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
184bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
185bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
186bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
1877ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1887ebf7443Swdenk
1897ebf7443Swdenketags:
1907ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
191eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
192eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
193eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
1947ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1957ebf7443Swdenk
1967ebf7443SwdenkSystem.map:	u-boot
1977ebf7443Swdenk		@$(NM) $< | \
1987ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1997ebf7443Swdenk		sort > System.map
2007ebf7443Swdenk
2017ebf7443Swdenk#########################################################################
2027ebf7443Swdenkelse
2037ebf7443Swdenkall install u-boot u-boot.srec depend dep:
2047ebf7443Swdenk	@echo "System not configured - see README" >&2
2057ebf7443Swdenk	@ exit 1
2067ebf7443Swdenkendif
2077ebf7443Swdenk
2087ebf7443Swdenk#########################################################################
2097ebf7443Swdenk
2107ebf7443Swdenkunconfig:
21117d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
2127ebf7443Swdenk
2137ebf7443Swdenk#========================================================================
2147ebf7443Swdenk# PowerPC
2157ebf7443Swdenk#========================================================================
2160db5bca8Swdenk
2170db5bca8Swdenk#########################################################################
2180db5bca8Swdenk## MPC5xx Systems
2190db5bca8Swdenk#########################################################################
2200db5bca8Swdenk
2215e5f9ed2Swdenkcanmb_config:	unconfig
2225e5f9ed2Swdenk	@./mkconfig -a canmb ppc mpc5xxx canmb
2235e5f9ed2Swdenk
2240db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2250db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2260db5bca8Swdenk
227b6e4c403SwdenkPATI_config:		unconfig
228b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
229b6e4c403Swdenk
2307ebf7443Swdenk#########################################################################
231945af8d7Swdenk## MPC5xxx Systems
232945af8d7Swdenk#########################################################################
233a87589daSwdenk
234dafba16eSWolfgang Denkaev_config: unconfig
235dafba16eSWolfgang Denk	@./mkconfig -a aev ppc mpc5xxx tqm5200
236dafba16eSWolfgang Denk
2375e4b3361SStefan Roesecpci5200_config:  unconfig
2385e4b3361SStefan Roese	@./mkconfig -a cpci5200  ppc mpc5xxx cpci5200 esd
2395e4b3361SStefan Roese
240a87589daSwdenkhmi1001_config:         unconfig
241a87589daSwdenk	@./mkconfig hmi1001 ppc mpc5xxx hmi1001
242a87589daSwdenk
243e35745bbSwdenkLite5200_config				\
244e35745bbSwdenkLite5200_LOWBOOT_config			\
245e35745bbSwdenkLite5200_LOWBOOT08_config		\
246e35745bbSwdenkicecube_5200_config			\
247e35745bbSwdenkicecube_5200_LOWBOOT_config		\
248e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
249b2001f27Swdenkicecube_5200_DDR_config 		\
25079d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
25179d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
252e35745bbSwdenkicecube_5100_config:			unconfig
253945af8d7Swdenk	@ >include/config.h
25417d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
25517d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
25617d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
25717d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
25817d704ebSwdenk		  fi ; \
2595cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2605cf9da48Swdenk		}
2615cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2625cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2635cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
26417d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2655cf9da48Swdenk		}
266b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
267b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
268b2001f27Swdenk		  echo "... DDR memory revision" ; \
269b2001f27Swdenk		}
270d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
271d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
272d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
273d4ca31c4Swdenk		}
274a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
275945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
276945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
277945af8d7Swdenk		}
278945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
279945af8d7Swdenk
280138ff60cSwdenkinka4x0_config:		unconfig
281138ff60cSwdenk	@./mkconfig inka4x0 ppc mpc5xxx inka4x0
282138ff60cSwdenk
283df04a3dfSWolfgang Denko2dnt_config:
284df04a3dfSWolfgang Denk	@./mkconfig -a o2dnt ppc mpc5xxx o2dnt
285df04a3dfSWolfgang Denk
2865e4b3361SStefan Roesepf5200_config:  unconfig
2875e4b3361SStefan Roese	@./mkconfig -a pf5200  ppc mpc5xxx pf5200 esd
2885e4b3361SStefan Roese
28989394047SwdenkPM520_config \
29089394047SwdenkPM520_DDR_config \
29189394047SwdenkPM520_ROMBOOT_config \
29289394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
29389394047Swdenk	@ >include/config.h
29489394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
29589394047Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
29689394047Swdenk		  echo "... DDR memory revision" ; \
29789394047Swdenk		}
29889394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
29989394047Swdenk		{ echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
30089394047Swdenk		  echo "... booting from 8-bit flash" ; \
30189394047Swdenk		}
30289394047Swdenk	@./mkconfig -a PM520 ppc mpc5xxx pm520
30389394047Swdenk
304d4ca31c4SwdenkMINI5200_config	\
305d4ca31c4SwdenkEVAL5200_config	\
306d4ca31c4SwdenkTOP5200_config:	unconfig
307d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
308d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
309d4ca31c4Swdenk
3106c7a1408SwdenkTotal5100_config		\
3116c7a1408SwdenkTotal5200_config		\
3126c7a1408SwdenkTotal5200_lowboot_config	\
3136c7a1408SwdenkTotal5200_Rev2_config		\
3146c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
3156c7a1408Swdenk	@ >include/config.h
3166c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
3176c7a1408Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
3186c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
3196c7a1408Swdenk		}
3206c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
3216c7a1408Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
3226c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
3236c7a1408Swdenk		}
3246c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
3256c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>include/config.h ; \
3266c7a1408Swdenk		  echo "... revision 1 board" ; \
3276c7a1408Swdenk		}
3286c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
3296c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>include/config.h ; \
3306c7a1408Swdenk		  echo "... revision 2 board" ; \
3316c7a1408Swdenk		}
3326c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
3336c7a1408Swdenk		{ echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
3346c7a1408Swdenk		  echo "... with lowboot configuration" ; \
3356c7a1408Swdenk		}
3366c7a1408Swdenk	@./mkconfig -a Total5200 ppc mpc5xxx total5200
3376c7a1408Swdenk
3387e6bf358SwdenkTQM5200_auto_config	\
33956523f12SwdenkTQM5200_AA_config	\
34056523f12SwdenkTQM5200_AB_config	\
34156523f12SwdenkTQM5200_AC_config	\
34256523f12SwdenkMiniFAP_config:	unconfig
34356523f12Swdenk	@ >include/config.h
34489394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
34556523f12Swdenk		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
34656523f12Swdenk		  echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
34789394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
34856523f12Swdenk		}
34956523f12Swdenk	@[ -z "$(findstring AA,$@)" ] || \
35056523f12Swdenk		{ echo "#define CONFIG_TQM5200_AA"	>>include/config.h ; \
35156523f12Swdenk		  echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
35256523f12Swdenk		}
35356523f12Swdenk	@[ -z "$(findstring AB,$@)" ] || \
35456523f12Swdenk		{ echo "#define CONFIG_TQM5200_AB"	>>include/config.h ; \
35556523f12Swdenk		  echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
35631a64923Swdenk		  echo "... with Graphics Controller"; \
35756523f12Swdenk		}
35856523f12Swdenk	@[ -z "$(findstring AC,$@)" ] || \
35956523f12Swdenk		{ echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
36056523f12Swdenk		  echo "... with 4 MB Flash, 128 MB SDRAM" ; \
36131a64923Swdenk		  echo "... with Graphics Controller"; \
36256523f12Swdenk		}
3637e6bf358Swdenk	@[ -z "$(findstring auto,$@)" ] || \
3647e6bf358Swdenk		{ echo "#define CONFIG_CS_AUTOCONF"	>>include/config.h ; \
3657e6bf358Swdenk		  echo "... with automatic CS configuration" ; \
3667e6bf358Swdenk		}
36756523f12Swdenk	@./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
36856523f12Swdenk
369eece159cSWolfgang Denkspieval_config:	unconfig
370eece159cSWolfgang Denk	echo "#define CONFIG_CS_AUTOCONF">>include/config.h
371eece159cSWolfgang Denk	echo "... with automatic CS configuration"
372eece159cSWolfgang Denk	@./mkconfig -a spieval ppc mpc5xxx tqm5200
373eece159cSWolfgang Denk
374945af8d7Swdenk#########################################################################
3757ebf7443Swdenk## MPC8xx Systems
3767ebf7443Swdenk#########################################################################
3777ebf7443Swdenk
3782d24a3a7SwdenkAdder_config    \
3792d24a3a7SwdenkAdder87x_config \
38026238132SwdenkAdderII_config  \
3812d24a3a7Swdenk	:		unconfig
38226238132Swdenk	$(if $(findstring AdderII,$@), \
3832d24a3a7Swdenk	@echo "#define CONFIG_MPC852T" > include/config.h)
3842d24a3a7Swdenk	@./mkconfig -a Adder ppc mpc8xx adder
3852d24a3a7Swdenk
386180d3f74SwdenkADS860_config     \
387180d3f74SwdenkFADS823_config    \
388180d3f74SwdenkFADS850SAR_config \
389180d3f74SwdenkMPC86xADS_config  \
3901114257cSwdenkMPC885ADS_config  \
391180d3f74SwdenkFADS860T_config:	unconfig
3927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
3937ebf7443Swdenk
3947ebf7443SwdenkAMX860_config	:	unconfig
3957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
3967ebf7443Swdenk
3977ebf7443Swdenkc2mon_config:		unconfig
3987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
3997ebf7443Swdenk
4007ebf7443SwdenkCCM_config:		unconfig
4017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
4027ebf7443Swdenk
4037ebf7443Swdenkcogent_mpc8xx_config:	unconfig
4047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
4057ebf7443Swdenk
4063bac3513SwdenkELPT860_config:		unconfig
4073bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
4083bac3513Swdenk
4097ebf7443SwdenkESTEEM192E_config:	unconfig
4107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
4117ebf7443Swdenk
4127ebf7443SwdenkETX094_config	:	unconfig
4137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
4147ebf7443Swdenk
4157ebf7443SwdenkFLAGADM_config:	unconfig
4167ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
4177ebf7443Swdenk
4187aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
4197aa78614Swdenk
4207aa78614SwdenkGEN860T_SC_config	\
4217ebf7443SwdenkGEN860T_config: unconfig
4227aa78614Swdenk	@ >include/config.h
4237aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
4247aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
4257aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
4267aa78614Swdenk		}
4277aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
4287ebf7443Swdenk
4297ebf7443SwdenkGENIETV_config:	unconfig
4307ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
4317ebf7443Swdenk
4327ebf7443SwdenkGTH_config:	unconfig
4337ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
4347ebf7443Swdenk
4357ebf7443Swdenkhermes_config	:	unconfig
4367ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
4377ebf7443Swdenk
438c40b2956SwdenkHMI10_config	:	unconfig
439c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
440c40b2956Swdenk
4417ebf7443SwdenkIAD210_config: unconfig
4427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
4437ebf7443Swdenk
4447ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
4457ebf7443Swdenk
4467ebf7443SwdenkICU862_100MHz_config	\
4477ebf7443SwdenkICU862_config: unconfig
4487ebf7443Swdenk	@ >include/config.h
4497ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
4507ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
4517ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
4527ebf7443Swdenk		}
4537ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
4547ebf7443Swdenk
4557ebf7443SwdenkIP860_config	:	unconfig
4567ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
4577ebf7443Swdenk
4587ebf7443SwdenkIVML24_256_config \
4597ebf7443SwdenkIVML24_128_config \
4607ebf7443SwdenkIVML24_config:	unconfig
4617ebf7443Swdenk	@ >include/config.h
4627ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
4637ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
4647ebf7443Swdenk		 }
4657ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
4667ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
4677ebf7443Swdenk		 }
4687ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
4697ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
4707ebf7443Swdenk		 }
4717ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
4727ebf7443Swdenk
4737ebf7443SwdenkIVMS8_256_config \
4747ebf7443SwdenkIVMS8_128_config \
4757ebf7443SwdenkIVMS8_config:	unconfig
4767ebf7443Swdenk	@ >include/config.h
4777ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
4787ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
4797ebf7443Swdenk		 }
4807ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
4817ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
4827ebf7443Swdenk		 }
4837ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
4847ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
4857ebf7443Swdenk		 }
4867ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
4877ebf7443Swdenk
48856f94be3SwdenkKUP4K_config	:	unconfig
4890608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
4900608e04dSwdenk
4910608e04dSwdenkKUP4X_config    :       unconfig
4920608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
49356f94be3Swdenk
4947ebf7443SwdenkLANTEC_config	:	unconfig
4957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
4967ebf7443Swdenk
4977ebf7443Swdenklwmon_config:		unconfig
4987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
4997ebf7443Swdenk
5007ebf7443SwdenkMBX_config	\
5017ebf7443SwdenkMBX860T_config:	unconfig
5027ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
5037ebf7443Swdenk
5047ebf7443SwdenkMHPC_config:		unconfig
5057ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
5067ebf7443Swdenk
5077ebf7443SwdenkMVS1_config :		unconfig
5087ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
5097ebf7443Swdenk
510993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
511993cad93Swdenk
512993cad93SwdenkNETVIA_V2_config \
5137ebf7443SwdenkNETVIA_config:		unconfig
514993cad93Swdenk	@ >include/config.h
515993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
516993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
517993cad93Swdenk		  echo "... Version 1" ; \
518993cad93Swdenk		 }
519993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
520993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
521993cad93Swdenk		  echo "... Version 2" ; \
522993cad93Swdenk		 }
523993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
5247ebf7443Swdenk
525c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
526c26e454dSwdenk
527c26e454dSwdenkNETPHONE_V2_config \
52804a85b3bSwdenkNETPHONE_config:	unconfig
529c26e454dSwdenk	@ >include/config.h
530c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
531c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
532c26e454dSwdenk		 }
533c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
534c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
535c26e454dSwdenk		 }
536c26e454dSwdenk	@./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
53704a85b3bSwdenk
53879fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
53904a85b3bSwdenk
54079fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
54179fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
54279fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
54379fa88f3SwdenkNETTA_SWAPHOOK_config \
54479fa88f3SwdenkNETTA_ISDN_6412_config \
54504a85b3bSwdenkNETTA_ISDN_config \
54679fa88f3SwdenkNETTA_6412_config \
54704a85b3bSwdenkNETTA_config:		unconfig
54804a85b3bSwdenk	@ >include/config.h
54979fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
55004a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
55104a85b3bSwdenk		 }
55279fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
55379fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
55479fa88f3Swdenk		 }
55579fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
55679fa88f3Swdenk		 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
55779fa88f3Swdenk		 }
55879fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
55979fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
56079fa88f3Swdenk		 }
56179fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
56279fa88f3Swdenk		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
56379fa88f3Swdenk		 }
56479fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
56579fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
56679fa88f3Swdenk		 }
56704a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
56804a85b3bSwdenk
56979fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
57079fa88f3Swdenk
57179fa88f3SwdenkNETTA2_V2_config \
57279fa88f3SwdenkNETTA2_config:		unconfig
57379fa88f3Swdenk	@ >include/config.h
57479fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
57579fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
57679fa88f3Swdenk		 }
57779fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
57879fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
57979fa88f3Swdenk		 }
58079fa88f3Swdenk	@./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
58179fa88f3Swdenk
5827ca202f5SwdenkNC650_config:	unconfig
5837ca202f5Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nc650
5847ca202f5Swdenk
5857ebf7443SwdenkNX823_config:		unconfig
5867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
5877ebf7443Swdenk
5887ebf7443Swdenkpcu_e_config:		unconfig
5897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
5907ebf7443Swdenk
5913bbc899fSwdenkQS850_config:	unconfig
5923bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5933bbc899fSwdenk
5943bbc899fSwdenkQS823_config:	unconfig
5953bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5963bbc899fSwdenk
5973bbc899fSwdenkQS860T_config:	unconfig
5983bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
5993bbc899fSwdenk
600da93ed81Swdenkquantum_config:	unconfig
601da93ed81Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx quantum
602da93ed81Swdenk
6037ebf7443SwdenkR360MPI_config:	unconfig
6047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
6057ebf7443Swdenk
606682011ffSwdenkRBC823_config:	unconfig
607682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
608682011ffSwdenk
6097ebf7443SwdenkRPXClassic_config:	unconfig
6107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
6117ebf7443Swdenk
6127ebf7443SwdenkRPXlite_config:		unconfig
6137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
6147ebf7443Swdenk
615e63c8ee3SwdenkRPXlite_DW_64_config  		\
616e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
617e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
618e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
619e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
620e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
621e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
622e63c8ee3SwdenkRPXlite_DW_config:         unconfig
623e63c8ee3Swdenk	@ >include/config.h
624e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
625e63c8ee3Swdenk		{ echo "#define RPXlite_64MHz"		>>include/config.h ; \
626e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
627e63c8ee3Swdenk		}
628e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
629e63c8ee3Swdenk		{ echo "#define CONFIG_LCD"          	>>include/config.h ; \
630e63c8ee3Swdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
631e63c8ee3Swdenk		  echo "... with LCD display ..."; \
632e63c8ee3Swdenk		}
633e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
634e63c8ee3Swdenk		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>include/config.h ; \
635e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
636e63c8ee3Swdenk		}
637e63c8ee3Swdenk	@./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
638e63c8ee3Swdenk
63973a8b27cSwdenkrmu_config:	unconfig
64073a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
64173a8b27cSwdenk
6427ebf7443SwdenkRRvision_config:	unconfig
6437ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
6447ebf7443Swdenk
6457ebf7443SwdenkRRvision_LCD_config:	unconfig
6467ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6477ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6487ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
6497ebf7443Swdenk
6507ebf7443SwdenkSM850_config	:	unconfig
6517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
6527ebf7443Swdenk
6537ebf7443SwdenkSPD823TS_config:	unconfig
6547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
6557ebf7443Swdenk
6566bdf4306SWolfgang Denkstxxtc_config:	unconfig
6576bdf4306SWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc8xx stxxtc
6586bdf4306SWolfgang Denk
659dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
660dc7c9a1aSwdenk	@ >include/config.h
661dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
662dc7c9a1aSwdenk
6637ebf7443SwdenkSXNI855T_config:	unconfig
6647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
6657ebf7443Swdenk
666db2f721fSwdenk# EMK MPC8xx based modules
667db2f721fSwdenkTOP860_config:		unconfig
668db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
669db2f721fSwdenk
6707ebf7443Swdenk# Play some tricks for configuration selection
671e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
672e9132ea9Swdenk# and only 823 boards may have LCD support
673e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
6747ebf7443Swdenk
6757ebf7443SwdenkFPS850L_config		\
676384ae025SwdenkFPS860L_config		\
677f12e568cSwdenkNSCU_config		\
6787ebf7443SwdenkTQM823L_config		\
6797ebf7443SwdenkTQM823L_LCD_config	\
6807ebf7443SwdenkTQM850L_config		\
6817ebf7443SwdenkTQM855L_config		\
6827ebf7443SwdenkTQM860L_config		\
683d126bfbdSwdenkTQM862L_config		\
684ae3af05eSwdenkTQM823M_config		\
685ae3af05eSwdenkTQM850M_config		\
686f12e568cSwdenkTQM855M_config		\
687f12e568cSwdenkTQM860M_config		\
688f12e568cSwdenkTQM862M_config		\
689c178d3daSwdenkTQM866M_config:		unconfig
6907ebf7443Swdenk	@ >include/config.h
6917ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
6927ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
693fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
6947ebf7443Swdenk		  echo "... with LCD display" ; \
6957ebf7443Swdenk		}
6967ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
6977ebf7443Swdenk
6987ebf7443SwdenkTTTech_config:	unconfig
6997ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
7007ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
7017ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
7027ebf7443Swdenk
703ec0aee7bSwdenkuc100_config	:	unconfig
704f7d1572bSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx uc100
705f7d1572bSwdenk
706608c9146Swdenkv37_config:	unconfig
707608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
708608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
709608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
710608c9146Swdenk
71191e940d9Sdzuwtk_config:	unconfig
71291e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
71391e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
71491e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
71591e940d9Sdzu
7167ebf7443Swdenk#########################################################################
7177ebf7443Swdenk## PPC4xx Systems
7187ebf7443Swdenk#########################################################################
719e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
7207ebf7443Swdenk
7217ebf7443SwdenkADCIOP_config:	unconfig
7227ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
7237ebf7443Swdenk
724*7521af1cSWolfgang DenkAP1000_config:unconfig
725*7521af1cSWolfgang Denk	@./mkconfig $(@:_config=) ppc ppc4xx ap1000 amirix
726*7521af1cSWolfgang Denk
727c419d1d6SstroeseAPC405_config:	unconfig
728c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
729c419d1d6Sstroese
7307ebf7443SwdenkAR405_config:	unconfig
7317ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
7327ebf7443Swdenk
733549826eaSstroeseASH405_config:	unconfig
734549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
735549826eaSstroese
7368a316c9bSStefan Roesebamboo_config:	unconfig
7378a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc
7388a316c9bSStefan Roese
7398a316c9bSStefan Roesebubinga_config:	unconfig
7408a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc
741549826eaSstroese
7427ebf7443SwdenkCANBT_config:	unconfig
7437ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
7447ebf7443Swdenk
7451d6f9720SwdenkCATcenter_config	\
7461d6f9720SwdenkCATcenter_25_config	\
7471d6f9720SwdenkCATcenter_33_config:	unconfig
74810767ccbSwdenk	@ echo "/* CATcenter uses PPChameleon Model ME */"  > include/config.h
74910767ccbSwdenk	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
7501d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
7511d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
7521d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
7531d6f9720Swdenk		}
7541d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
7551d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
7561d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
7571d6f9720Swdenk		}
75810767ccbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
75910767ccbSwdenk
7607644f16fSStefan RoeseCPCI2DP_config:	unconfig
7617644f16fSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx cpci2dp esd
7627644f16fSStefan Roese
7637ebf7443SwdenkCPCI405_config	\
764549826eaSstroeseCPCI4052_config	\
765c419d1d6SstroeseCPCI405DT_config	\
766549826eaSstroeseCPCI405AB_config:	unconfig
7677ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
7687ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
7697ebf7443Swdenk
7707ebf7443SwdenkCPCI440_config:	unconfig
7717ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
7727ebf7443Swdenk
7737ebf7443SwdenkCPCIISER4_config:	unconfig
7747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
7757ebf7443Swdenk
7767ebf7443SwdenkCRAYL1_config:	unconfig
7777ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
7787ebf7443Swdenk
779cd0a9de6Swdenkcsb272_config:	unconfig
780cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
781cd0a9de6Swdenk
782aa245090Swdenkcsb472_config:	unconfig
783aa245090Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb472
784aa245090Swdenk
7857ebf7443SwdenkDASA_SIM_config: unconfig
7867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
7877ebf7443Swdenk
78872cd5aa7SstroeseDP405_config:	unconfig
78972cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
79072cd5aa7Sstroese
7917ebf7443SwdenkDU405_config:	unconfig
7927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
7937ebf7443Swdenk
7948a316c9bSStefan Roeseebony_config:	unconfig
7958a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx ebony amcc
7967ebf7443Swdenk
7977ebf7443SwdenkERIC_config:	unconfig
7987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
7997ebf7443Swdenk
800d1cbe85bSwdenkEXBITGEN_config:	unconfig
801d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
802d1cbe85bSwdenk
803c419d1d6SstroeseG2000_config:	unconfig
804c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx g2000
805c419d1d6Sstroese
806c419d1d6SstroeseHH405_config:	unconfig
807c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
808c419d1d6Sstroese
80972cd5aa7SstroeseHUB405_config:	unconfig
81072cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
81172cd5aa7Sstroese
812db01a2eaSwdenkJSE_config:	unconfig
813db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
814db01a2eaSwdenk
815b79316f2SStefan RoeseKAREF_config: unconfig
816b79316f2SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx karef sandburst
817b79316f2SStefan Roese
818b79316f2SStefan RoeseMETROBOX_config: unconfig
819b79316f2SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
820b79316f2SStefan Roese
8217ebf7443SwdenkMIP405_config:	unconfig
8227ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
8237ebf7443Swdenk
824f3e0de60SwdenkMIP405T_config:	unconfig
825f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
826f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
827f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
828f3e0de60Swdenk
8297ebf7443SwdenkML2_config:	unconfig
8307ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
8317ebf7443Swdenk
832028ab6b5Swdenkml300_config:	unconfig
833028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
834028ab6b5Swdenk
8358a316c9bSStefan Roeseocotea_config:	unconfig
8368a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
8370e6d798cSwdenk
8387ebf7443SwdenkOCRTC_config		\
8397ebf7443SwdenkORSG_config:	unconfig
8407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
8417ebf7443Swdenk
8427ebf7443SwdenkPCI405_config:	unconfig
8437ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
8447ebf7443Swdenk
8457ebf7443SwdenkPIP405_config:	unconfig
8467ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
8477ebf7443Swdenk
84872cd5aa7SstroesePLU405_config:	unconfig
84972cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
85072cd5aa7Sstroese
851549826eaSstroesePMC405_config:	unconfig
852549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
853549826eaSstroese
854281e00a3SwdenkPPChameleonEVB_config		\
855e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
856e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
857e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
858e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
859e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
860e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
861fbe4b5cbSwdenk	@ >include/config.h
8621d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
863fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
864fbe4b5cbSwdenk		  echo "... BASIC model" ; \
865fbe4b5cbSwdenk		}
8661d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
867fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
868fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
869fbe4b5cbSwdenk		}
8701d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
871fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
872fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
873fbe4b5cbSwdenk		}
874e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
875e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
876e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
877e55ca7e2Swdenk		}
878e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
879e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
880e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
881e55ca7e2Swdenk		}
882fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
88312f34241Swdenk
884652a10c0Swdenksbc405_config:	unconfig
885652a10c0Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx sbc405
886652a10c0Swdenk
8878a316c9bSStefan Roesesycamore_config:	unconfig
8888a316c9bSStefan Roese	@echo "Configuring for sycamore board as subset of walnut..."
8898a316c9bSStefan Roese	@./mkconfig -a walnut ppc ppc4xx walnut amcc
8908a316c9bSStefan Roese
89172cd5aa7SstroeseVOH405_config:	unconfig
89272cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
89372cd5aa7Sstroese
894c419d1d6SstroeseVOM405_config:	unconfig
895c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
896c419d1d6Sstroese
8977ebf7443SwdenkW7OLMC_config	\
8987ebf7443SwdenkW7OLMG_config: unconfig
8997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
9007ebf7443Swdenk
9018a316c9bSStefan Roesewalnut_config: unconfig
9028a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
9037ebf7443Swdenk
904c419d1d6SstroeseWUH405_config:	unconfig
905c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
906c419d1d6Sstroese
907ba56f625SwdenkXPEDITE1K_config:	unconfig
908ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
909ba56f625Swdenk
9108a316c9bSStefan Roeseyosemite_config:	unconfig
9118a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
9128a316c9bSStefan Roese
9138a316c9bSStefan Roeseyellowstone_config:	unconfig
9148a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
9158a316c9bSStefan Roese
9167ebf7443Swdenk#########################################################################
917983fda83Swdenk## MPC8220 Systems
918983fda83Swdenk#########################################################################
919dc17fb6dSWolfgang Denk
920dc17fb6dSWolfgang DenkAlaska8220_config	\
921dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
922983fda83Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 alaska
923983fda83Swdenk
92412b43d51Swdenksorcery_config:		unconfig
92512b43d51Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 sorcery
92612b43d51Swdenk
927983fda83Swdenk#########################################################################
9287ebf7443Swdenk## MPC824x Systems
9297ebf7443Swdenk#########################################################################
930efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
9313bac3513Swdenk
9320332990bSwdenkA3000_config: unconfig
9330332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
9340332990bSwdenk
9358e6f1a8eSWolfgang Denkbarco_config: unconfig
9368e6f1a8eSWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc824x barco
9378e6f1a8eSWolfgang Denk
9387ebf7443SwdenkBMW_config: unconfig
9397ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
9407ebf7443Swdenk
9413bac3513SwdenkCPC45_config	\
9423bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
9433bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
9443bac3513Swdenk	@cd ./include ;				\
9453bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
9463bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
9473bac3513Swdenk		echo "... booting from 8-bit flash" ; \
9483bac3513Swdenk	else \
9493bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
9503bac3513Swdenk		echo "... booting from 64-bit flash" ; \
9513bac3513Swdenk	fi; \
9523bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
9533bac3513Swdenk
9547ebf7443SwdenkCU824_config: unconfig
9557ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
9567ebf7443Swdenk
9577abf0c58Swdenkdebris_config: unconfig
9587abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
9597abf0c58Swdenk
96080885a9dSwdenkeXalion_config: unconfig
96180885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
96280885a9dSwdenk
963756f586aSwdenkHIDDEN_DRAGON_config: unconfig
964756f586aSwdenk	@./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
965756f586aSwdenk
9667ebf7443SwdenkMOUSSE_config: unconfig
9677ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
9687ebf7443Swdenk
9697ebf7443SwdenkMUSENKI_config: unconfig
9707ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
9717ebf7443Swdenk
972b4676a25SwdenkMVBLUE_config:	unconfig
973b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
974b4676a25Swdenk
9757ebf7443SwdenkOXC_config: unconfig
9767ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
9777ebf7443Swdenk
9787ebf7443SwdenkPN62_config: unconfig
9797ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
9807ebf7443Swdenk
9817ebf7443SwdenkSandpoint8240_config: unconfig
9827ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
9837ebf7443Swdenk
9847ebf7443SwdenkSandpoint8245_config: unconfig
9857ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
9867ebf7443Swdenk
987466b7410Swdenksbc8240_config: unconfig
988466b7410Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sbc8240
989466b7410Swdenk
990d1cbe85bSwdenkSL8245_config: unconfig
991d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
992d1cbe85bSwdenk
9937ebf7443Swdenkutx8245_config: unconfig
9947ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
9957ebf7443Swdenk
996a562e1bdSwdenkcobra5272_config :		unconfig
997a562e1bdSwdenk	@./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
998a562e1bdSwdenk
9997ebf7443Swdenk#########################################################################
10007ebf7443Swdenk## MPC8260 Systems
10017ebf7443Swdenk#########################################################################
10027ebf7443Swdenk
100354387ac9Swdenkatc_config:	unconfig
100454387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
100554387ac9Swdenk
10067ebf7443Swdenkcogent_mpc8260_config:	unconfig
10077ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
10087ebf7443Swdenk
10097ebf7443SwdenkCPU86_config	\
10107ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
10117ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
10127ebf7443Swdenk	@cd ./include ;				\
10137ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
10147ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
10157ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
10167ebf7443Swdenk	else \
10177ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
10187ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
10197ebf7443Swdenk	fi; \
10207ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
10217ebf7443Swdenk
1022384cc687SwdenkCPU87_config	\
1023384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1024384cc687Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
1025384cc687Swdenk	@cd ./include ;				\
1026384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1027384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1028384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1029384cc687Swdenk	else \
1030384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1031384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1032384cc687Swdenk	fi; \
1033384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1034384cc687Swdenk
1035f901a83bSWolfgang Denkep8248_config	\
1036f901a83bSWolfgang Denkep8248E_config	:	unconfig
1037f901a83bSWolfgang Denk	@./mkconfig ep8248 ppc mpc8260 ep8248
1038f901a83bSWolfgang Denk
10397ebf7443Swdenkep8260_config:	unconfig
10407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
10417ebf7443Swdenk
10427ebf7443Swdenkgw8260_config:	unconfig
10437ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
10447ebf7443Swdenk
10457ebf7443Swdenkhymod_config:	unconfig
10467ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
10477ebf7443Swdenk
10489dd41a7bSwdenkIDS8247_config:	unconfig
10499dd41a7bSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 ids8247
10509dd41a7bSwdenk
10517ebf7443SwdenkIPHASE4539_config:	unconfig
10527ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
10537ebf7443Swdenk
1054c3c7f861SwdenkISPAN_config		\
1055c3c7f861SwdenkISPAN_REVB_config:	unconfig
1056c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1057c3c7f861Swdenk		echo "#define CFG_REV_B" > include/config.h ; \
1058c3c7f861Swdenk	fi
1059c3c7f861Swdenk	@./mkconfig -a ISPAN ppc mpc8260 ispan
1060c3c7f861Swdenk
106104a85b3bSwdenkMPC8260ADS_config	\
1062901787d6SwdenkMPC8260ADS_lowboot_config	\
106304a85b3bSwdenkMPC8260ADS_33MHz_config	\
1064901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
106504a85b3bSwdenkMPC8260ADS_40MHz_config	\
1066901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
106704a85b3bSwdenkMPC8272ADS_config	\
1068901787d6SwdenkMPC8272ADS_lowboot_config	\
106904a85b3bSwdenkPQ2FADS_config		\
1070901787d6SwdenkPQ2FADS_lowboot_config		\
107104a85b3bSwdenkPQ2FADS-VR_config	\
1072901787d6SwdenkPQ2FADS-VR_lowboot_config	\
107304a85b3bSwdenkPQ2FADS-ZU_config	\
1074901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
107504a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1076901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
107704a85b3bSwdenk	:		unconfig
107804a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
107904a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
108004a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
108104a85b3bSwdenk	$(if $(findstring MHz,$@), \
108204a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
108304a85b3bSwdenk	$(if $(findstring VR,$@), \
108404a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
1085901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1086901787d6Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
1087901787d6Swdenk		  echo "... with lowboot configuration" ; \
1088901787d6Swdenk		}
108904a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
10907ebf7443Swdenk
1091db2f721fSwdenkMPC8266ADS_config:	unconfig
1092db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
1093db2f721fSwdenk
1094efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
109510f67017SwdenkPM825_config	\
1096efa329cbSwdenkPM825_ROMBOOT_config	\
1097efa329cbSwdenkPM825_BIGFLASH_config	\
1098efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
10997ebf7443SwdenkPM826_config	\
1100efa329cbSwdenkPM826_ROMBOOT_config	\
1101efa329cbSwdenkPM826_BIGFLASH_config	\
1102efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1103efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1104efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
11057ebf7443Swdenk	else \
1106efa329cbSwdenk		>include/config.h ; \
1107efa329cbSwdenk	fi
1108efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1109efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1110efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1111efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1112efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1113efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1114efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
11157ebf7443Swdenk		fi; \
1116efa329cbSwdenk	else \
1117efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1118efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1119efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1120efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1121efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
1122efa329cbSwdenk		else \
1123efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
1124efa329cbSwdenk		fi; \
1125efa329cbSwdenk	fi
1126efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
1127efa329cbSwdenk
1128efa329cbSwdenkPM828_config	\
1129efa329cbSwdenkPM828_PCI_config	\
1130efa329cbSwdenkPM828_ROMBOOT_config	\
1131efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1132efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
1133efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
1134efa329cbSwdenk		echo "... with PCI enabled" ; \
1135efa329cbSwdenk	else \
1136efa329cbSwdenk		>include/config.h ; \
1137efa329cbSwdenk	fi
1138efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1139efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1140efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1141efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1142efa329cbSwdenk	fi
1143efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
11447ebf7443Swdenk
11457ebf7443Swdenkppmc8260_config:	unconfig
11467ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
11477ebf7443Swdenk
11488b0bfc68SwdenkRattler8248_config	\
11498b0bfc68SwdenkRattler_config:		unconfig
11508b0bfc68Swdenk	$(if $(findstring 8248,$@), \
11518b0bfc68Swdenk	@echo "#define CONFIG_MPC8248" > include/config.h)
11528b0bfc68Swdenk	@./mkconfig -a Rattler ppc mpc8260 rattler
11538b0bfc68Swdenk
11547ebf7443SwdenkRPXsuper_config:	unconfig
11557ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
11567ebf7443Swdenk
11577ebf7443Swdenkrsdproto_config:	unconfig
11587ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
11597ebf7443Swdenk
11607ebf7443Swdenksacsng_config:	unconfig
11617ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
11627ebf7443Swdenk
11637ebf7443Swdenksbc8260_config:	unconfig
11647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
11657ebf7443Swdenk
11667ebf7443SwdenkSCM_config:		unconfig
11677ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
11687ebf7443Swdenk
116927b207fdSwdenkTQM8255_AA_config \
117027b207fdSwdenkTQM8260_AA_config \
117127b207fdSwdenkTQM8260_AB_config \
117227b207fdSwdenkTQM8260_AC_config \
117327b207fdSwdenkTQM8260_AD_config \
117427b207fdSwdenkTQM8260_AE_config \
117527b207fdSwdenkTQM8260_AF_config \
117627b207fdSwdenkTQM8260_AG_config \
117727b207fdSwdenkTQM8260_AH_config \
117827b207fdSwdenkTQM8265_AA_config:  unconfig
117927b207fdSwdenk	@case "$@" in \
118027b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
118127b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
118227b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
118327b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
118427b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
118527b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
118627b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
118727b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
118827b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
118927b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
119027b207fdSwdenk	esac; \
119127b207fdSwdenk	>include/config.h ; \
119227b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
119327b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
119427b207fdSwdenk	fi; \
119527b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
119627b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
119727b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
11987ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
119927b207fdSwdenk		echo "... with L2 Cache support" ; \
12007ebf7443Swdenk	else \
12017ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
12027ebf7443Swdenk		echo "... without L2 Cache support" ; \
120327b207fdSwdenk	fi; \
120427b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
120527b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
120627b207fdSwdenk		echo "... with 60x Bus Mode" ; \
120727b207fdSwdenk	else \
120827b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
120927b207fdSwdenk		echo "... without 60x Bus Mode" ; \
12107ebf7443Swdenk	fi
12114532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
12127ebf7443Swdenk
1213ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1214ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1215ba91e26aSwdenk	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
1216ba91e26aSwdenk	@./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1217ba91e26aSwdenk
121854387ac9SwdenkZPC1900_config: unconfig
121954387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
12207aa78614Swdenk
12214e5ca3ebSwdenk#========================================================================
12224e5ca3ebSwdenk# M68K
12234e5ca3ebSwdenk#========================================================================
12244e5ca3ebSwdenk#########################################################################
12254e5ca3ebSwdenk## Coldfire
12264e5ca3ebSwdenk#########################################################################
12274e5ca3ebSwdenk
12284e5ca3ebSwdenkM5272C3_config :		unconfig
1229bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
12304e5ca3ebSwdenk
12314e5ca3ebSwdenkM5282EVB_config :		unconfig
1232bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
12334e5ca3ebSwdenk
1234c419d1d6SstroeseTASREG_config :		unconfig
1235c419d1d6Sstroese	@./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
1236c419d1d6Sstroese
12377ebf7443Swdenk#########################################################################
1238f046ccd1SEran Liberty## MPC83xx Systems
1239f046ccd1SEran Liberty#########################################################################
1240f046ccd1SEran Liberty
1241f046ccd1SEran LibertyMPC8349ADS_config:	unconfig
1242f046ccd1SEran Liberty	@./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
1243f046ccd1SEran Liberty
1244f046ccd1SEran Liberty#########################################################################
124542d1f039Swdenk## MPC85xx Systems
124642d1f039Swdenk#########################################################################
124742d1f039Swdenk
124842d1f039SwdenkMPC8540ADS_config:	unconfig
124942d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
125042d1f039Swdenk
1251b0e32949SLunsheng WangMPC8540EVAL_config \
1252b0e32949SLunsheng WangMPC8540EVAL_33_config \
1253b0e32949SLunsheng WangMPC8540EVAL_66_config \
1254b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1255b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1256b0e32949SLunsheng Wang	@echo "" >include/config.h ; \
1257b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1258b0e32949SLunsheng Wang		echo -n "... 33 MHz PCI" ; \
1259b0e32949SLunsheng Wang	else \
1260b0e32949SLunsheng Wang		echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
1261b0e32949SLunsheng Wang		echo -n "... 66 MHz PCI" ; \
1262b0e32949SLunsheng Wang	fi ; \
1263b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1264b0e32949SLunsheng Wang		echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
1265b0e32949SLunsheng Wang		echo " slave" ; \
1266b0e32949SLunsheng Wang	else \
1267b0e32949SLunsheng Wang		echo " host" ; \
1268b0e32949SLunsheng Wang	fi
1269b0e32949SLunsheng Wang	@./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
1270b0e32949SLunsheng Wang
127142d1f039SwdenkMPC8560ADS_config:	unconfig
127242d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
127342d1f039Swdenk
127403f5c550SwdenkMPC8541CDS_config:	unconfig
127503f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
127603f5c550Swdenk
1277d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
1278d9b94f28SJon Loeliger	@./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
1279d9b94f28SJon Loeliger
128003f5c550SwdenkMPC8555CDS_config:	unconfig
128103f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
12827abf0c58Swdenk
1283384cc687SwdenkPM854_config:	unconfig
1284384cc687Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx pm854
1285384cc687Swdenk
1286b20d0032SWolfgang DenkPM856_config:	unconfig
1287b20d0032SWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc85xx pm856
1288b20d0032SWolfgang Denk
1289c15f3120Swdenksbc8540_config \
1290c15f3120Swdenksbc8540_33_config \
1291c15f3120Swdenksbc8540_66_config:	unconfig
1292c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1293c15f3120Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
1294c15f3120Swdenk		echo "... 66 MHz PCI" ; \
1295c15f3120Swdenk	else \
1296c15f3120Swdenk		>include/config.h ; \
1297c15f3120Swdenk		echo "... 33 MHz PCI" ; \
1298c15f3120Swdenk	fi
1299c15f3120Swdenk	@./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1300c15f3120Swdenk
1301466b7410Swdenksbc8560_config \
1302466b7410Swdenksbc8560_33_config \
1303466b7410Swdenksbc8560_66_config:      unconfig
13048b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
13058b07a110Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
13068b07a110Swdenk		echo "... 66 MHz PCI" ; \
13078b07a110Swdenk	else \
13088b07a110Swdenk		>include/config.h ; \
13098b07a110Swdenk		echo "... 33 MHz PCI" ; \
13108b07a110Swdenk	fi
1311466b7410Swdenk	@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
13128b07a110Swdenk
131303f5c550Swdenkstxgp3_config:		unconfig
131403f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
131503f5c550Swdenk
13169d46ea4aSwdenkTQM8540_config:      unconfig
13179d46ea4aSwdenk	@./mkconfig $(@:_config=) ppc mpc85xx tqm8540
13189d46ea4aSwdenk
1319f5c5ef4aSwdenkTQM8560_config:      unconfig
1320f5c5ef4aSwdenk	@./mkconfig $(@:_config=) ppc mpc85xx tqm8560
1321f5c5ef4aSwdenk
132242d1f039Swdenk#########################################################################
13237ebf7443Swdenk## 74xx/7xx Systems
13247ebf7443Swdenk#########################################################################
13257ebf7443Swdenk
1326c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1327c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1328c7de829cSwdenk
132915647dc7SwdenkBAB7xx_config: unconfig
133015647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
133115647dc7Swdenk
1332c419d1d6SstroeseCPCI750_config:        unconfig
1333c419d1d6Sstroese	@./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
1334c419d1d6Sstroese
13353a473b2aSwdenkDB64360_config:  unconfig
13363a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
13373a473b2aSwdenk
13383a473b2aSwdenkDB64460_config:  unconfig
13393a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
13403a473b2aSwdenk
134115647dc7SwdenkELPPC_config: unconfig
134215647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
134315647dc7Swdenk
13447ebf7443SwdenkEVB64260_config	\
13457ebf7443SwdenkEVB64260_750CX_config:	unconfig
13467ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
13477ebf7443Swdenk
134815647dc7SwdenkP3G4_config: unconfig
13497ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
13507ebf7443Swdenk
13517ebf7443SwdenkPCIPPC2_config \
13527ebf7443SwdenkPCIPPC6_config: unconfig
13537ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
13547ebf7443Swdenk
135515647dc7SwdenkZUMA_config:	unconfig
135612f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
135712f34241Swdenk
13587ebf7443Swdenk#========================================================================
13597ebf7443Swdenk# ARM
13607ebf7443Swdenk#========================================================================
13617ebf7443Swdenk#########################################################################
13627ebf7443Swdenk## StrongARM Systems
13637ebf7443Swdenk#########################################################################
13647ebf7443Swdenk
1365ea66bc88Swdenkassabet_config	:	unconfig
1366ea66bc88Swdenk	@./mkconfig $(@:_config=) arm sa1100 assabet
1367ea66bc88Swdenk
13687ebf7443Swdenkdnp1110_config	:	unconfig
13697ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
13707ebf7443Swdenk
1371855a496fSwdenkgcplus_config	:	unconfig
1372855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
1373855a496fSwdenk
1374855a496fSwdenklart_config	:	unconfig
1375855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
1376855a496fSwdenk
13777ebf7443Swdenkshannon_config	:	unconfig
13787ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
13797ebf7443Swdenk
13807ebf7443Swdenk#########################################################################
13812e5983d2Swdenk## ARM92xT Systems
13827ebf7443Swdenk#########################################################################
13837ebf7443Swdenk
1384b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
138543d9616cSwdenk
13863ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
138763e73c9aSwdenk
1388a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1389a56bd922Swdenk
1390a85f9f21Swdenkat91rm9200dk_config	:	unconfig
1391a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1392a85f9f21Swdenk
1393a85f9f21Swdenkcmc_pu2_config	:	unconfig
1394a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1395a85f9f21Swdenk
1396645da510SWolfgang Denkcsb637_config	:	unconfig
1397645da510SWolfgang Denk	@./mkconfig $(@:_config=) arm arm920t csb637 NULL at91rm9200
1398645da510SWolfgang Denk
13990e4018d2SWolfgang Denkmp2usb_config	:	unconfig
14000e4018d2SWolfgang Denk	@./mkconfig $(@:_config=) arm arm920t mp2usb NULL at91rm9200
14010e4018d2SWolfgang Denk
140287cb6862SWolfgang Denk
140374f4304eSWolfgang Denk########################################################################
140487cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
140587cb6862SWolfgang Denkintegratorap_config	\
140687cb6862SWolfgang Denkap_config		\
140787cb6862SWolfgang Denkap966_config		\
140887cb6862SWolfgang Denkap922_config		\
140987cb6862SWolfgang Denkap922_XA10_config	\
141087cb6862SWolfgang Denkap7_config		\
141187cb6862SWolfgang Denkap720t_config  		\
141287cb6862SWolfgang Denkap920t_config		\
141387cb6862SWolfgang Denkap926ejs_config		\
141487cb6862SWolfgang Denkap946es_config: unconfig
141596782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
14163d3befa7Swdenk
141787cb6862SWolfgang Denkintegratorcp_config	\
141887cb6862SWolfgang Denkcp_config		\
141987cb6862SWolfgang Denkcp920t_config		\
142087cb6862SWolfgang Denkcp926ejs_config		\
142187cb6862SWolfgang Denkcp946es_config		\
142287cb6862SWolfgang Denkcp1136_config		\
142387cb6862SWolfgang Denkcp966_config		\
142487cb6862SWolfgang Denkcp922_config		\
142587cb6862SWolfgang Denkcp922_XA10_config	\
142687cb6862SWolfgang Denkcp1026_config: unconfig
142796782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
142825d6712aSwdenk
142999b0d285SWolfgang Denkkb9202_config	:	unconfig
143099b0d285SWolfgang Denk	@./mkconfig $(@:_config=) arm arm920t kb9202 NULL at91rm9200
143199b0d285SWolfgang Denk
1432f832d8a1Swdenklpd7a400_config \
1433f832d8a1Swdenklpd7a404_config:	unconfig
14342d24a3a7Swdenk	@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
14353d3befa7Swdenk
1436281e00a3Swdenkmx1ads_config	:	unconfig
14371d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
1438281e00a3Swdenk
1439281e00a3Swdenkmx1fs2_config	:	unconfig
14401d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
1441281e00a3Swdenk
14422e5983d2Swdenkomap1510inn_config :	unconfig
14432e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
14442e5983d2Swdenk
14451eaeb58eSwdenkomap5912osk_config :	unconfig
14461eaeb58eSwdenk	@./mkconfig $(@:_config=) arm arm926ejs omap5912osk
14471eaeb58eSwdenk
144863e73c9aSwdenkomap1610inn_config \
144963e73c9aSwdenkomap1610inn_cs0boot_config \
145063e73c9aSwdenkomap1610inn_cs3boot_config \
14513ff02c27Swdenkomap1610inn_cs_autoboot_config \
145263e73c9aSwdenkomap1610h2_config \
145363e73c9aSwdenkomap1610h2_cs0boot_config \
14543ff02c27Swdenkomap1610h2_cs3boot_config \
14553ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
145663e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
145763e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1458b79a11ccSwdenk		echo "... configured for CS0 boot"; \
14593ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
14603ff02c27Swdenk		echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
14613ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
146263e73c9aSwdenk	else \
146363e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1464b79a11ccSwdenk		echo "... configured for CS3 boot"; \
146563e73c9aSwdenk	fi;
146663e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
14676f21347dSwdenk
1468a56bd922Swdenkomap730p2_config \
1469a56bd922Swdenkomap730p2_cs0boot_config \
1470a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1471a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1472a56bd922Swdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1473a56bd922Swdenk		echo "... configured for CS0 boot"; \
1474a56bd922Swdenk	else \
1475a56bd922Swdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1476a56bd922Swdenk		echo "... configured for CS3 boot"; \
1477a56bd922Swdenk	fi;
1478a56bd922Swdenk	@./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1479a56bd922Swdenk
1480281e00a3Swdenkscb9328_config	:	unconfig
14811d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
1482281e00a3Swdenk
14837ebf7443Swdenksmdk2400_config	:	unconfig
14841d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
14857ebf7443Swdenk
14867ebf7443Swdenksmdk2410_config	:	unconfig
14871d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
14887ebf7443Swdenk
14892d24a3a7SwdenkSX1_config :		unconfig
14902d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm925t sx1
14912d24a3a7Swdenk
1492b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
149343d9616cSwdenktrab_config \
1494b0639ca3Swdenktrab_bigram_config \
1495b0639ca3Swdenktrab_bigflash_config \
1496f54ebdfaSwdenktrab_old_config:	unconfig
149743d9616cSwdenk	@ >include/config.h
1498b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1499b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1500b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1501b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1502b0639ca3Swdenk		}
1503b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1504b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1505b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1506b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1507a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1508b0639ca3Swdenk		}
1509f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1510b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1511b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1512b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1513a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
151443d9616cSwdenk		}
15151d9f4105Swdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
15167ebf7443Swdenk
15171cb8e980SwdenkVCMA9_config	:	unconfig
15181d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
15191cb8e980Swdenk
152087cb6862SWolfgang Denk#========================================================================
152187cb6862SWolfgang Denk# ARM supplied Versatile development boards
152287cb6862SWolfgang Denk#========================================================================
152387cb6862SWolfgang Denkversatile_config	\
152487cb6862SWolfgang Denkversatileab_config	\
152587cb6862SWolfgang Denkversatilepb_config :	unconfig
152696782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
1527074cff0dSwdenk
15283c2b3d45Swdenkvoiceblue_smallflash_config	\
15293c2b3d45Swdenkvoiceblue_config:	unconfig
15303c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
15313c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
15323c2b3d45Swdenk		echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
15333c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
15343c2b3d45Swdenk	else \
15353c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
15363c2b3d45Swdenk		>include/config.h ; \
15373c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
15383c2b3d45Swdenk	fi
15393c2b3d45Swdenk	@./mkconfig -a voiceblue arm arm925t voiceblue
15403c2b3d45Swdenk
154116b013e7Swdenkcm4008_config	:	unconfig
154216b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
154316b013e7Swdenk
154416b013e7Swdenkcm41xx_config	:	unconfig
154516b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
154616b013e7Swdenk
1547074cff0dSwdenk#########################################################################
1548074cff0dSwdenk## S3C44B0 Systems
1549074cff0dSwdenk#########################################################################
1550074cff0dSwdenk
1551074cff0dSwdenkB2_config	:	unconfig
1552074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1553074cff0dSwdenk
15547ebf7443Swdenk#########################################################################
15557ebf7443Swdenk## ARM720T Systems
15567ebf7443Swdenk#########################################################################
15577ebf7443Swdenk
1558c570b2fdSWolfgang Denkarmadillo_config:	unconfig
1559c570b2fdSWolfgang Denk	@./mkconfig $(@:_config=) arm arm720t armadillo
1560c570b2fdSWolfgang Denk
15617ebf7443Swdenkep7312_config	:	unconfig
15627ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
15637ebf7443Swdenk
15642d24a3a7Swdenkimpa7_config	:	unconfig
15652d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
15662d24a3a7Swdenk
15672d1a537dSwdenkmodnet50_config :	unconfig
15682d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
15692d1a537dSwdenk
157039539887Swdenkevb4510_config :	unconfig
157139539887Swdenk	@./mkconfig $(@:_config=) arm arm720t evb4510
157239539887Swdenk
15737ebf7443Swdenk#########################################################################
157443d9616cSwdenk## XScale Systems
15757ebf7443Swdenk#########################################################################
15767ebf7443Swdenk
157720787e23Swdenkadsvix_config	:	unconfig
157820787e23Swdenk	@./mkconfig $(@:_config=) arm pxa adsvix
157920787e23Swdenk
1580fabd46acSwdenkcerf250_config :	unconfig
1581fabd46acSwdenk	@./mkconfig $(@:_config=) arm pxa cerf250
1582fabd46acSwdenk
15837ebf7443Swdenkcradle_config	:	unconfig
15844c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
15857ebf7443Swdenk
15867ebf7443Swdenkcsb226_config	:	unconfig
15874c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
15887ebf7443Swdenk
158943d9616cSwdenkinnokom_config	:	unconfig
15904c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
159143d9616cSwdenk
15922d5b561eSwdenkixdp425_config	:	unconfig
15932d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
15942d5b561eSwdenk
159543d9616cSwdenklubbock_config	:	unconfig
15964c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
159743d9616cSwdenk
159852f52c14Swdenklogodl_config	:	unconfig
159952f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
160052f52c14Swdenk
16013e38691eSwdenkwepep250_config	:	unconfig
16024c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
16033e38691eSwdenk
16044ec3a7f0Swdenkxaeniax_config	:	unconfig
16054ec3a7f0Swdenk	@./mkconfig $(@:_config=) arm pxa xaeniax
16064ec3a7f0Swdenk
1607efa329cbSwdenkxm250_config	:	unconfig
1608efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1609efa329cbSwdenk
1610ca0e7748Swdenkxsengine_config :	unconfig
1611ca0e7748Swdenk	@./mkconfig $(@:_config=) arm pxa xsengine
1612ca0e7748Swdenk
16138ed96046Swdenk#########################################################################
16148ed96046Swdenk## ARM1136 Systems
16158ed96046Swdenk#########################################################################
16168ed96046Swdenkomap2420h4_config :    unconfig
16178ed96046Swdenk	@./mkconfig $(@:_config=) arm arm1136 omap2420h4
16188ed96046Swdenk
16192262cfeeSwdenk#========================================================================
16202262cfeeSwdenk# i386
16212262cfeeSwdenk#========================================================================
16222262cfeeSwdenk#########################################################################
16232262cfeeSwdenk## AMD SC520 CDP
16242262cfeeSwdenk#########################################################################
16252262cfeeSwdenksc520_cdp_config	:	unconfig
16262262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
16272262cfeeSwdenk
16287a8e9bedSwdenksc520_spunk_config	:	unconfig
16297a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
16307a8e9bedSwdenk
16317a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
16327a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
16337a8e9bedSwdenk
163443d9616cSwdenk#========================================================================
163543d9616cSwdenk# MIPS
163643d9616cSwdenk#========================================================================
16377ebf7443Swdenk#########################################################################
163843d9616cSwdenk## MIPS32 4Kc
163943d9616cSwdenk#########################################################################
164043d9616cSwdenk
1641e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1642e0ac62d7Swdenk
1643e0ac62d7Swdenkincaip_100MHz_config	\
1644e0ac62d7Swdenkincaip_133MHz_config	\
1645e0ac62d7Swdenkincaip_150MHz_config	\
164643d9616cSwdenkincaip_config: unconfig
1647e0ac62d7Swdenk	@ >include/config.h
1648e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1649e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1650e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1651e0ac62d7Swdenk		}
1652e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1653e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1654e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1655e0ac62d7Swdenk		}
1656e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1657e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1658e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1659e0ac62d7Swdenk		}
1660e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1661e0ac62d7Swdenk
1662f4863a7aSwdenktb0229_config: unconfig
1663f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1664f4863a7aSwdenk
1665e0ac62d7Swdenk#########################################################################
166669459791Swdenk## MIPS32 AU1X00
166769459791Swdenk#########################################################################
166869459791Swdenkdbau1000_config		: 	unconfig
166969459791Swdenk	@ >include/config.h
167069459791Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
167169459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
167269459791Swdenk
167369459791Swdenkdbau1100_config		: 	unconfig
167469459791Swdenk	@ >include/config.h
167569459791Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
167669459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
167769459791Swdenk
167869459791Swdenkdbau1500_config		: 	unconfig
167969459791Swdenk	@ >include/config.h
168069459791Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
168169459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
168269459791Swdenk
1683ff36fd85Swdenkdbau1550_config		:	unconfig
1684ff36fd85Swdenk	@ >include/config.h
1685ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
1686ff36fd85Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1687ff36fd85Swdenk
1688ff36fd85Swdenkdbau1550_el_config	:	unconfig
1689ff36fd85Swdenk	@ >include/config.h
1690ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
169121919230SWolfgang Denk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1692ff36fd85Swdenk
1693265817c7SWolfgang Denkpb1000_config		: 	unconfig
1694265817c7SWolfgang Denk	@ >include/config.h
1695265817c7SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >>include/config.h
1696265817c7SWolfgang Denk	@./mkconfig -a pb1x00 mips mips pb1x00
1697265817c7SWolfgang Denk
169869459791Swdenk#########################################################################
1699e0ac62d7Swdenk## MIPS64 5Kc
1700e0ac62d7Swdenk#########################################################################
170143d9616cSwdenk
17023e38691eSwdenkpurple_config :		unconfig
17033e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
170443d9616cSwdenk
17054a551709Swdenk#========================================================================
17064a551709Swdenk# Nios
17074a551709Swdenk#========================================================================
17084a551709Swdenk#########################################################################
17094a551709Swdenk## Nios32
17104a551709Swdenk#########################################################################
17114a551709Swdenk
1712c935d3bdSwdenkDK1C20_safe_32_config		\
1713c935d3bdSwdenkDK1C20_standard_32_config	\
17144a551709SwdenkDK1C20_config:	unconfig
1715c935d3bdSwdenk	@ >include/config.h
1716c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1717c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1718c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1719c935d3bdSwdenk		}
1720c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1721c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1722c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1723c935d3bdSwdenk		}
1724c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1725c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1726c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1727c935d3bdSwdenk		}
1728c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1729c935d3bdSwdenk
1730c935d3bdSwdenkDK1S10_safe_32_config		\
1731c935d3bdSwdenkDK1S10_standard_32_config	\
1732ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1733c935d3bdSwdenkDK1S10_config:	unconfig
1734c935d3bdSwdenk	@ >include/config.h
1735c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1736c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1737c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1738c935d3bdSwdenk		}
1739c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1740c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1741c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1742c935d3bdSwdenk		}
1743ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1744ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1745ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1746ec4c544bSwdenk		}
1747c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1748c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1749c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1750c935d3bdSwdenk		}
1751c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
17524a551709Swdenk
1753aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1754aaf224abSwdenkADNPESC1_base_32_config		\
1755aaf224abSwdenkADNPESC1_config: unconfig
1756aaf224abSwdenk	@ >include/config.h
1757aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1758aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1759aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1760aaf224abSwdenk		}
1761aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1762aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1763aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1764aaf224abSwdenk		}
1765aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1766aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1767aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1768aaf224abSwdenk		}
1769aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1770aaf224abSwdenk
17715c952cf0Swdenk#########################################################################
17725c952cf0Swdenk## Nios-II
17735c952cf0Swdenk#########################################################################
17745c952cf0Swdenk
17755c952cf0SwdenkPK1C20_config : unconfig
17765c952cf0Swdenk	@./mkconfig  PK1C20 nios2 nios2 pk1c20 psyent
17775c952cf0Swdenk
17785c952cf0SwdenkPCI5441_config : unconfig
17795c952cf0Swdenk	@./mkconfig  PCI5441 nios2 nios2 pci5441 psyent
17804a551709Swdenk
1781507bbe3eSwdenk#========================================================================
1782507bbe3eSwdenk# MicroBlaze
1783507bbe3eSwdenk#========================================================================
1784507bbe3eSwdenk#########################################################################
1785507bbe3eSwdenk## Microblaze
1786507bbe3eSwdenk#########################################################################
1787507bbe3eSwdenksuzaku_config:	unconfig
1788507bbe3eSwdenk	@ >include/config.h
1789507bbe3eSwdenk	@echo "#define CONFIG_SUZAKU 1" >> include/config.h
1790507bbe3eSwdenk	@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1791507bbe3eSwdenk
17923e38691eSwdenk#########################################################################
17933e38691eSwdenk#########################################################################
17947ebf7443Swdenk
17957ebf7443Swdenkclean:
17967ebf7443Swdenk	find . -type f \
17977ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
17987ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
17997ebf7443Swdenk		| xargs rm -f
180085ec0bccSwdenk	rm -f examples/hello_world examples/timer \
18013e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
1802ed16fefcSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom \
1803ed16fefcSwdenk	      examples/test_burst
18047ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1805eedcd078Swdenk	rm -f tools/mpc86x_clk tools/ncb
18067ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
18077ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1808228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
18097f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
18100e1fb5eeSWolfgang Denk	rm -f board/trab/trab_fkt board/voiceblue/eeprom
181187cb6862SWolfgang Denk	rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
18127ebf7443Swdenk
18137ebf7443Swdenkclobber:	clean
18144c0d4c3bSwdenk	find . -type f \( -name .depend \
18154c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
18164c0d4c3bSwdenk		-print0 \
18174c0d4c3bSwdenk		| xargs -0 rm -f
18187ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
18197ebf7443Swdenk	rm -fr *.*~
18206310eb9dSwdenk	rm -f u-boot u-boot.map u-boot.hex $(ALL)
1821228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
18223e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1823b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
18247ebf7443Swdenk
18257ebf7443Swdenkmrproper \
18267ebf7443Swdenkdistclean:	clobber unconfig
18277ebf7443Swdenk
18287ebf7443Swdenkbackup:
18297ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
18307ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
18317ebf7443Swdenk
18327ebf7443Swdenk#########################################################################
1833