xref: /openbmc/u-boot/Makefile (revision 89394047)
17ebf7443Swdenk#
2d4ca31c4Swdenk# (C) Copyright 2000-2004
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
327ebf7443SwdenkHOSTOS := $(shell uname -s | tr A-Z a-z | \
337ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
347ebf7443Swdenk
357ebf7443Swdenkexport	HOSTARCH
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
487ebf7443Swdenkexport	ARCH CPU BOARD VENDOR
497ebf7443Swdenk# load other configuration
507ebf7443Swdenkinclude $(TOPDIR)/config.mk
517ebf7443Swdenk
527ebf7443Swdenkifndef CROSS_COMPILE
537ebf7443Swdenkifeq ($(HOSTARCH),ppc)
547ebf7443SwdenkCROSS_COMPILE =
557ebf7443Swdenkelse
567ebf7443Swdenkifeq ($(ARCH),ppc)
577ebf7443SwdenkCROSS_COMPILE = ppc_8xx-
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
754e5ca3ebSwdenkifeq ($(ARCH),m68k)
764e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
774e5ca3ebSwdenkendif
78507bbe3eSwdenkifeq ($(ARCH),microblaze)
79507bbe3eSwdenkCROSS_COMPILE = mb-
80507bbe3eSwdenkendif
817ebf7443Swdenkendif
827ebf7443Swdenkendif
837ebf7443Swdenk
847ebf7443Swdenkexport	CROSS_COMPILE
857ebf7443Swdenk
867ebf7443Swdenk#########################################################################
877ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
887ebf7443Swdenk
897ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
902262cfeeSwdenkifeq ($(CPU),i386)
912262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
922262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
932262cfeeSwdenkendif
947ebf7443Swdenkifeq ($(CPU),ppc4xx)
957ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
967ebf7443Swdenkendif
9742d1f039Swdenkifeq ($(CPU),mpc85xx)
9842d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
9942d1f039Swdenkendif
1007ebf7443Swdenk
1019fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1029fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1037ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1047ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
105518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
106518e2e1aSwdenk	fs/reiserfs/libreiserfs.a
1077ebf7443SwdenkLIBS += net/libnet.a
1087ebf7443SwdenkLIBS += disk/libdisk.a
1097ebf7443SwdenkLIBS += rtc/librtc.a
1107ebf7443SwdenkLIBS += dtt/libdtt.a
1117ebf7443SwdenkLIBS += drivers/libdrivers.a
1127152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1137ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1147ebf7443SwdenkLIBS += common/libcommon.a
1159fd5e31fSwdenk.PHONY : $(LIBS)
116a8c7c708Swdenk
1174f7cb08eSwdenk# Add GCC lib
1183d3befa7SwdenkPLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1193d3befa7Swdenk
1207ebf7443Swdenk
121a8c7c708Swdenk# The "tools" are needed early, so put this first
122a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
123a8c7c708SwdenkSUBDIRS	= tools \
124a8c7c708Swdenk	  examples \
125a8c7c708Swdenk	  post \
126a8c7c708Swdenk	  post/cpu
127b028f715Swdenk.PHONY : $(SUBDIRS)
128a8c7c708Swdenk
1297ebf7443Swdenk#########################################################################
130bdccc4feSwdenk#########################################################################
1317ebf7443Swdenk
132bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1337ebf7443Swdenk
134bdccc4feSwdenkall:		$(ALL)
1357ebf7443Swdenk
1367ebf7443Swdenku-boot.srec:	u-boot
1377ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1387ebf7443Swdenk
1397ebf7443Swdenku-boot.bin:	u-boot
1407ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1417ebf7443Swdenk
142bdccc4feSwdenku-boot.img:	u-boot.bin
143bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
144bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
145bdccc4feSwdenk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
146bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
147bdccc4feSwdenk		-d $< $@
148bdccc4feSwdenk
1497ebf7443Swdenku-boot.dis:	u-boot
1507ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1517ebf7443Swdenk
152a8c7c708Swdenku-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1538bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1548bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1557152b1d0Swdenk			--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
156b2184c31Swdenk			-Map u-boot.map -o u-boot
1577ebf7443Swdenk
158a8c7c708Swdenk$(LIBS):
159a8c7c708Swdenk		$(MAKE) -C `dirname $@`
160a8c7c708Swdenk
161a8c7c708Swdenk$(SUBDIRS):
162b028f715Swdenk		$(MAKE) -C $@ all
1637ebf7443Swdenk
1648f713fdfSdzugdbtools:
1658f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
1668f713fdfSdzu
1677ebf7443Swdenkdepend dep:
1687ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
1697ebf7443Swdenk
1707ebf7443Swdenktags:
1717ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
172bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
173bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
174bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
1757ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1767ebf7443Swdenk
1777ebf7443Swdenketags:
1787ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
1797ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1807ebf7443Swdenk
1817ebf7443SwdenkSystem.map:	u-boot
1827ebf7443Swdenk		@$(NM) $< | \
1837ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1847ebf7443Swdenk		sort > System.map
1857ebf7443Swdenk
1867ebf7443Swdenk#########################################################################
1877ebf7443Swdenkelse
1887ebf7443Swdenkall install u-boot u-boot.srec depend dep:
1897ebf7443Swdenk	@echo "System not configured - see README" >&2
1907ebf7443Swdenk	@ exit 1
1917ebf7443Swdenkendif
1927ebf7443Swdenk
1937ebf7443Swdenk#########################################################################
1947ebf7443Swdenk
1957ebf7443Swdenkunconfig:
19617d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
1977ebf7443Swdenk
1987ebf7443Swdenk#========================================================================
1997ebf7443Swdenk# PowerPC
2007ebf7443Swdenk#========================================================================
2010db5bca8Swdenk
2020db5bca8Swdenk#########################################################################
2030db5bca8Swdenk## MPC5xx Systems
2040db5bca8Swdenk#########################################################################
2050db5bca8Swdenk
2060db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2070db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2080db5bca8Swdenk
209b6e4c403SwdenkPATI_config:		unconfig
210b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
211b6e4c403Swdenk
2127ebf7443Swdenk#########################################################################
213945af8d7Swdenk## MPC5xxx Systems
214945af8d7Swdenk#########################################################################
215e35745bbSwdenkLite5200_config				\
216e35745bbSwdenkLite5200_LOWBOOT_config			\
217e35745bbSwdenkLite5200_LOWBOOT08_config		\
218e35745bbSwdenkicecube_5200_config			\
219e35745bbSwdenkicecube_5200_LOWBOOT_config		\
220e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
221b2001f27Swdenkicecube_5200_DDR_config 		\
22279d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
22379d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
224e35745bbSwdenkicecube_5100_config:			unconfig
225945af8d7Swdenk	@ >include/config.h
22617d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
22717d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
22817d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
22917d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
23017d704ebSwdenk		  fi ; \
2315cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2325cf9da48Swdenk		}
2335cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2345cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2355cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
23617d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2375cf9da48Swdenk		}
238b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
239b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
240b2001f27Swdenk		  echo "... DDR memory revision" ; \
241b2001f27Swdenk		}
242d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
243d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
244d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
245d4ca31c4Swdenk		}
246a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
247945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
248945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
249945af8d7Swdenk		}
250945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
251945af8d7Swdenk
252*89394047SwdenkPM520_config \
253*89394047SwdenkPM520_DDR_config \
254*89394047SwdenkPM520_ROMBOOT_config \
255*89394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
256*89394047Swdenk	@ >include/config.h
257*89394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
258*89394047Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
259*89394047Swdenk		  echo "... DDR memory revision" ; \
260*89394047Swdenk		}
261*89394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
262*89394047Swdenk		{ echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
263*89394047Swdenk		  echo "... booting from 8-bit flash" ; \
264*89394047Swdenk		}
265*89394047Swdenk	@./mkconfig -a PM520 ppc mpc5xxx pm520
266*89394047Swdenk
267d4ca31c4SwdenkMINI5200_config	\
268d4ca31c4SwdenkEVAL5200_config	\
269d4ca31c4SwdenkTOP5200_config:	unconfig
270d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
271d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
272d4ca31c4Swdenk
2736c7a1408SwdenkTotal5100_config		\
2746c7a1408SwdenkTotal5200_config		\
2756c7a1408SwdenkTotal5200_lowboot_config	\
2766c7a1408SwdenkTotal5200_Rev2_config		\
2776c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
2786c7a1408Swdenk	@ >include/config.h
2796c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
2806c7a1408Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
2816c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
2826c7a1408Swdenk		}
2836c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
2846c7a1408Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
2856c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
2866c7a1408Swdenk		}
2876c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
2886c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>include/config.h ; \
2896c7a1408Swdenk		  echo "... revision 1 board" ; \
2906c7a1408Swdenk		}
2916c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
2926c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>include/config.h ; \
2936c7a1408Swdenk		  echo "... revision 2 board" ; \
2946c7a1408Swdenk		}
2956c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
2966c7a1408Swdenk		{ echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
2976c7a1408Swdenk		  echo "... with lowboot configuration" ; \
2986c7a1408Swdenk		}
2996c7a1408Swdenk	@./mkconfig -a Total5200 ppc mpc5xxx total5200
3006c7a1408Swdenk
30156523f12SwdenkTQM5200_AA_config	\
30256523f12SwdenkTQM5200_AB_config	\
30356523f12SwdenkTQM5200_AC_config	\
30456523f12SwdenkMiniFAP_config:	unconfig
30556523f12Swdenk	@ >include/config.h
306*89394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
30756523f12Swdenk		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
30856523f12Swdenk		  echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
309*89394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
31056523f12Swdenk		}
31156523f12Swdenk	@[ -z "$(findstring AA,$@)" ] || \
31256523f12Swdenk		{ echo "#define CONFIG_TQM5200_AA"	>>include/config.h ; \
31356523f12Swdenk		  echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
31456523f12Swdenk		}
31556523f12Swdenk	@[ -z "$(findstring AB,$@)" ] || \
31656523f12Swdenk		{ echo "#define CONFIG_TQM5200_AB"	>>include/config.h ; \
31756523f12Swdenk		  echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
31856523f12Swdenk		  echo "... with Grafic Controller"; \
31956523f12Swdenk		}
32056523f12Swdenk	@[ -z "$(findstring AC,$@)" ] || \
32156523f12Swdenk		{ echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
32256523f12Swdenk		  echo "... with 4 MB Flash, 128 MB SDRAM" ; \
32356523f12Swdenk		  echo "... with Grafic Controller"; \
32456523f12Swdenk		}
32556523f12Swdenk	@./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
32656523f12Swdenk
327945af8d7Swdenk#########################################################################
3287ebf7443Swdenk## MPC8xx Systems
3297ebf7443Swdenk#########################################################################
3307ebf7443Swdenk
3312d24a3a7SwdenkAdder_config    \
3322d24a3a7SwdenkAdder87x_config \
33326238132SwdenkAdderII_config  \
3342d24a3a7Swdenk	:		unconfig
33526238132Swdenk	$(if $(findstring AdderII,$@), \
3362d24a3a7Swdenk	@echo "#define CONFIG_MPC852T" > include/config.h)
3372d24a3a7Swdenk	@./mkconfig -a Adder ppc mpc8xx adder
3382d24a3a7Swdenk
339180d3f74SwdenkADS860_config     \
340180d3f74SwdenkFADS823_config    \
341180d3f74SwdenkFADS850SAR_config \
342180d3f74SwdenkMPC86xADS_config  \
3431114257cSwdenkMPC885ADS_config  \
344180d3f74SwdenkFADS860T_config:	unconfig
3457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
3467ebf7443Swdenk
3477ebf7443SwdenkAMX860_config	:	unconfig
3487ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
3497ebf7443Swdenk
3507ebf7443Swdenkc2mon_config:		unconfig
3517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
3527ebf7443Swdenk
3537ebf7443SwdenkCCM_config:		unconfig
3547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
3557ebf7443Swdenk
3567ebf7443Swdenkcogent_mpc8xx_config:	unconfig
3577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
3587ebf7443Swdenk
3593bac3513SwdenkELPT860_config:		unconfig
3603bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
3613bac3513Swdenk
3627ebf7443SwdenkESTEEM192E_config:	unconfig
3637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
3647ebf7443Swdenk
3657ebf7443SwdenkETX094_config	:	unconfig
3667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
3677ebf7443Swdenk
3687ebf7443SwdenkFLAGADM_config:	unconfig
3697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
3707ebf7443Swdenk
3717aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
3727aa78614Swdenk
3737aa78614SwdenkGEN860T_SC_config	\
3747ebf7443SwdenkGEN860T_config: unconfig
3757aa78614Swdenk	@ >include/config.h
3767aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
3777aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
3787aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
3797aa78614Swdenk		}
3807aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
3817ebf7443Swdenk
3827ebf7443SwdenkGENIETV_config:	unconfig
3837ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
3847ebf7443Swdenk
3857ebf7443SwdenkGTH_config:	unconfig
3867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
3877ebf7443Swdenk
3887ebf7443Swdenkhermes_config	:	unconfig
3897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
3907ebf7443Swdenk
391c40b2956SwdenkHMI10_config	:	unconfig
392c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
393c40b2956Swdenk
3947ebf7443SwdenkIAD210_config: unconfig
3957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
3967ebf7443Swdenk
3977ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
3987ebf7443Swdenk
3997ebf7443SwdenkICU862_100MHz_config	\
4007ebf7443SwdenkICU862_config: unconfig
4017ebf7443Swdenk	@ >include/config.h
4027ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
4037ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
4047ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
4057ebf7443Swdenk		}
4067ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
4077ebf7443Swdenk
4087ebf7443SwdenkIP860_config	:	unconfig
4097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
4107ebf7443Swdenk
4117ebf7443SwdenkIVML24_256_config \
4127ebf7443SwdenkIVML24_128_config \
4137ebf7443SwdenkIVML24_config:	unconfig
4147ebf7443Swdenk	@ >include/config.h
4157ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
4167ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
4177ebf7443Swdenk		 }
4187ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
4197ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
4207ebf7443Swdenk		 }
4217ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
4227ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
4237ebf7443Swdenk		 }
4247ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
4257ebf7443Swdenk
4267ebf7443SwdenkIVMS8_256_config \
4277ebf7443SwdenkIVMS8_128_config \
4287ebf7443SwdenkIVMS8_config:	unconfig
4297ebf7443Swdenk	@ >include/config.h
4307ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
4317ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
4327ebf7443Swdenk		 }
4337ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
4347ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
4357ebf7443Swdenk		 }
4367ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
4377ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
4387ebf7443Swdenk		 }
4397ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
4407ebf7443Swdenk
44156f94be3SwdenkKUP4K_config	:	unconfig
4420608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
4430608e04dSwdenk
4440608e04dSwdenkKUP4X_config    :       unconfig
4450608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
44656f94be3Swdenk
4477ebf7443SwdenkLANTEC_config	:	unconfig
4487ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
4497ebf7443Swdenk
4507ebf7443Swdenklwmon_config:		unconfig
4517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
4527ebf7443Swdenk
4537ebf7443SwdenkMBX_config	\
4547ebf7443SwdenkMBX860T_config:	unconfig
4557ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
4567ebf7443Swdenk
4577ebf7443SwdenkMHPC_config:		unconfig
4587ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
4597ebf7443Swdenk
4607ebf7443SwdenkMVS1_config :		unconfig
4617ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
4627ebf7443Swdenk
463993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
464993cad93Swdenk
465993cad93SwdenkNETVIA_V2_config \
4667ebf7443SwdenkNETVIA_config:		unconfig
467993cad93Swdenk	@ >include/config.h
468993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
469993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
470993cad93Swdenk		  echo "... Version 1" ; \
471993cad93Swdenk		 }
472993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
473993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
474993cad93Swdenk		  echo "... Version 2" ; \
475993cad93Swdenk		 }
476993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
4777ebf7443Swdenk
478c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
479c26e454dSwdenk
480c26e454dSwdenkNETPHONE_V2_config \
48104a85b3bSwdenkNETPHONE_config:	unconfig
482c26e454dSwdenk	@ >include/config.h
483c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
484c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
485c26e454dSwdenk		 }
486c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
487c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
488c26e454dSwdenk		 }
489c26e454dSwdenk	@./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
49004a85b3bSwdenk
49179fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
49204a85b3bSwdenk
49379fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
49479fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
49579fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
49679fa88f3SwdenkNETTA_SWAPHOOK_config \
49779fa88f3SwdenkNETTA_ISDN_6412_config \
49804a85b3bSwdenkNETTA_ISDN_config \
49979fa88f3SwdenkNETTA_6412_config \
50004a85b3bSwdenkNETTA_config:		unconfig
50104a85b3bSwdenk	@ >include/config.h
50279fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
50304a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
50404a85b3bSwdenk		 }
50579fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
50679fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
50779fa88f3Swdenk		 }
50879fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
50979fa88f3Swdenk		 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
51079fa88f3Swdenk		 }
51179fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
51279fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
51379fa88f3Swdenk		 }
51479fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
51579fa88f3Swdenk		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
51679fa88f3Swdenk		 }
51779fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
51879fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
51979fa88f3Swdenk		 }
52004a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
52104a85b3bSwdenk
52279fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
52379fa88f3Swdenk
52479fa88f3SwdenkNETTA2_V2_config \
52579fa88f3SwdenkNETTA2_config:		unconfig
52679fa88f3Swdenk	@ >include/config.h
52779fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
52879fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
52979fa88f3Swdenk		 }
53079fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
53179fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
53279fa88f3Swdenk		 }
53379fa88f3Swdenk	@./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
53479fa88f3Swdenk
5357ebf7443SwdenkNX823_config:		unconfig
5367ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
5377ebf7443Swdenk
5387ebf7443Swdenkpcu_e_config:		unconfig
5397ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
5407ebf7443Swdenk
5413bbc899fSwdenkQS850_config:	unconfig
5423bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5433bbc899fSwdenk
5443bbc899fSwdenkQS823_config:	unconfig
5453bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5463bbc899fSwdenk
5473bbc899fSwdenkQS860T_config:	unconfig
5483bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
5493bbc899fSwdenk
5507ebf7443SwdenkR360MPI_config:	unconfig
5517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
5527ebf7443Swdenk
553682011ffSwdenkRBC823_config:	unconfig
554682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
555682011ffSwdenk
5567ebf7443SwdenkRPXClassic_config:	unconfig
5577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
5587ebf7443Swdenk
5597ebf7443SwdenkRPXlite_config:		unconfig
5607ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
5617ebf7443Swdenk
562e63c8ee3SwdenkRPXlite_DW_64_config  		\
563e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
564e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
565e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
566e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
567e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
568e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
569e63c8ee3SwdenkRPXlite_DW_config:         unconfig
570e63c8ee3Swdenk	@ >include/config.h
571e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
572e63c8ee3Swdenk		{ echo "#define RPXlite_64MHz"		>>include/config.h ; \
573e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
574e63c8ee3Swdenk		}
575e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
576e63c8ee3Swdenk		{ echo "#define CONFIG_LCD"          	>>include/config.h ; \
577e63c8ee3Swdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
578e63c8ee3Swdenk		  echo "... with LCD display ..."; \
579e63c8ee3Swdenk		}
580e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
581e63c8ee3Swdenk		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>include/config.h ; \
582e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
583e63c8ee3Swdenk		}
584e63c8ee3Swdenk	@./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
585e63c8ee3Swdenk
58673a8b27cSwdenkrmu_config:	unconfig
58773a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
58873a8b27cSwdenk
5897ebf7443SwdenkRRvision_config:	unconfig
5907ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
5917ebf7443Swdenk
5927ebf7443SwdenkRRvision_LCD_config:	unconfig
5937ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
5947ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
5957ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
5967ebf7443Swdenk
5977ebf7443SwdenkSM850_config	:	unconfig
5987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
5997ebf7443Swdenk
6007ebf7443SwdenkSPD823TS_config:	unconfig
6017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
6027ebf7443Swdenk
603dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
604dc7c9a1aSwdenk	@ >include/config.h
605dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
606dc7c9a1aSwdenk
6077ebf7443SwdenkSXNI855T_config:	unconfig
6087ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
6097ebf7443Swdenk
610db2f721fSwdenk# EMK MPC8xx based modules
611db2f721fSwdenkTOP860_config:		unconfig
612db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
613db2f721fSwdenk
6147ebf7443Swdenk# Play some tricks for configuration selection
615e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
616e9132ea9Swdenk# and only 823 boards may have LCD support
617e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
6187ebf7443Swdenk
6197ebf7443SwdenkFPS850L_config		\
620384ae025SwdenkFPS860L_config		\
621f12e568cSwdenkNSCU_config		\
6227ebf7443SwdenkTQM823L_config		\
6237ebf7443SwdenkTQM823L_LCD_config	\
6247ebf7443SwdenkTQM850L_config		\
6257ebf7443SwdenkTQM855L_config		\
6267ebf7443SwdenkTQM860L_config		\
627d126bfbdSwdenkTQM862L_config		\
628ae3af05eSwdenkTQM823M_config		\
629ae3af05eSwdenkTQM850M_config		\
630f12e568cSwdenkTQM855M_config		\
631f12e568cSwdenkTQM860M_config		\
632f12e568cSwdenkTQM862M_config		\
633c178d3daSwdenkTQM866M_config:		unconfig
6347ebf7443Swdenk	@ >include/config.h
6357ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
6367ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
637fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
6387ebf7443Swdenk		  echo "... with LCD display" ; \
6397ebf7443Swdenk		}
6407ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
6417ebf7443Swdenk
6427ebf7443SwdenkTTTech_config:	unconfig
6437ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6447ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6457ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
6467ebf7443Swdenk
647608c9146Swdenkv37_config:	unconfig
648608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
649608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
650608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
651608c9146Swdenk
65291e940d9Sdzuwtk_config:	unconfig
65391e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
65491e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
65591e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
65691e940d9Sdzu
6577ebf7443Swdenk#########################################################################
6587ebf7443Swdenk## PPC4xx Systems
6597ebf7443Swdenk#########################################################################
660e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
6617ebf7443Swdenk
6627ebf7443SwdenkADCIOP_config:	unconfig
6637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
6647ebf7443Swdenk
6657ebf7443SwdenkAR405_config:	unconfig
6667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
6677ebf7443Swdenk
668549826eaSstroeseASH405_config:	unconfig
669549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
670549826eaSstroese
671549826eaSstroeseBUBINGA405EP_config:	unconfig
672549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
673549826eaSstroese
6747ebf7443SwdenkCANBT_config:	unconfig
6757ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
6767ebf7443Swdenk
67710767ccbSwdenkCATcenter_config:	unconfig
67810767ccbSwdenk	@ echo "/* CATcenter uses PPChameleon Model ME */"  > include/config.h
67910767ccbSwdenk	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
68010767ccbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
68110767ccbSwdenk
6827ebf7443SwdenkCPCI405_config	\
683549826eaSstroeseCPCI4052_config	\
684549826eaSstroeseCPCI405AB_config:	unconfig
6857ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
6867ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
6877ebf7443Swdenk
6887ebf7443SwdenkCPCI440_config:	unconfig
6897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
6907ebf7443Swdenk
6917ebf7443SwdenkCPCIISER4_config:	unconfig
6927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
6937ebf7443Swdenk
6947ebf7443SwdenkCRAYL1_config:	unconfig
6957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
6967ebf7443Swdenk
697cd0a9de6Swdenkcsb272_config:	unconfig
698cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
699cd0a9de6Swdenk
700aa245090Swdenkcsb472_config:	unconfig
701aa245090Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb472
702aa245090Swdenk
7037ebf7443SwdenkDASA_SIM_config: unconfig
7047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
7057ebf7443Swdenk
70672cd5aa7SstroeseDP405_config:	unconfig
70772cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
70872cd5aa7Sstroese
7097ebf7443SwdenkDU405_config:	unconfig
7107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
7117ebf7443Swdenk
7127ebf7443SwdenkEBONY_config:	unconfig
7137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ebony
7147ebf7443Swdenk
7157ebf7443SwdenkERIC_config:	unconfig
7167ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
7177ebf7443Swdenk
718d1cbe85bSwdenkEXBITGEN_config:	unconfig
719d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
720d1cbe85bSwdenk
72172cd5aa7SstroeseHUB405_config:	unconfig
72272cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
72372cd5aa7Sstroese
724db01a2eaSwdenkJSE_config:	unconfig
725db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
726db01a2eaSwdenk
7277ebf7443SwdenkMIP405_config:	unconfig
7287ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
7297ebf7443Swdenk
730f3e0de60SwdenkMIP405T_config:	unconfig
731f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
732f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
733f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
734f3e0de60Swdenk
7357ebf7443SwdenkML2_config:	unconfig
7367ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
7377ebf7443Swdenk
738028ab6b5Swdenkml300_config:	unconfig
739028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
740028ab6b5Swdenk
7410e6d798cSwdenkOCOTEA_config:	unconfig
7420e6d798cSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocotea
7430e6d798cSwdenk
7447ebf7443SwdenkOCRTC_config		\
7457ebf7443SwdenkORSG_config:	unconfig
7467ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
7477ebf7443Swdenk
7487ebf7443SwdenkPCI405_config:	unconfig
7497ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
7507ebf7443Swdenk
7517ebf7443SwdenkPIP405_config:	unconfig
7527ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
7537ebf7443Swdenk
75472cd5aa7SstroesePLU405_config:	unconfig
75572cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
75672cd5aa7Sstroese
757549826eaSstroesePMC405_config:	unconfig
758549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
759549826eaSstroese
760281e00a3SwdenkPPChameleonEVB_config		\
761e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
762e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
763e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
764e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
765e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
766e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
767fbe4b5cbSwdenk	@ >include/config.h
768fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_BA,$@)" ] || \
769fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
770fbe4b5cbSwdenk		  echo "... BASIC model" ; \
771fbe4b5cbSwdenk		}
772fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_ME,$@)" ] || \
773fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
774fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
775fbe4b5cbSwdenk		}
776fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_HI,$@)" ] || \
777fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
778fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
779fbe4b5cbSwdenk		}
780e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
781e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
782e55ca7e2Swdenk		  echo " SysClk = 25MHz" ; \
783e55ca7e2Swdenk		}
784e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
785e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
786e55ca7e2Swdenk		  echo " SysClk = 33MHz" ; \
787e55ca7e2Swdenk		}
788fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
78912f34241Swdenk
79072cd5aa7SstroeseVOH405_config:	unconfig
79172cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
79272cd5aa7Sstroese
7937ebf7443SwdenkW7OLMC_config	\
7947ebf7443SwdenkW7OLMG_config: unconfig
7957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
7967ebf7443Swdenk
7977ebf7443SwdenkWALNUT405_config:	unconfig
7987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx walnut405
7997ebf7443Swdenk
800ba56f625SwdenkXPEDITE1K_config:	unconfig
801ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
802ba56f625Swdenk
8037ebf7443Swdenk#########################################################################
8047ebf7443Swdenk## MPC824x Systems
8057ebf7443Swdenk#########################################################################
806efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
8073bac3513Swdenk
8080332990bSwdenkA3000_config: unconfig
8090332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
8100332990bSwdenk
8117ebf7443SwdenkBMW_config: unconfig
8127ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
8137ebf7443Swdenk
8143bac3513SwdenkCPC45_config	\
8153bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
8163bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
8173bac3513Swdenk	@cd ./include ;				\
8183bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
8193bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
8203bac3513Swdenk		echo "... booting from 8-bit flash" ; \
8213bac3513Swdenk	else \
8223bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
8233bac3513Swdenk		echo "... booting from 64-bit flash" ; \
8243bac3513Swdenk	fi; \
8253bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
8263bac3513Swdenk
8277ebf7443SwdenkCU824_config: unconfig
8287ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
8297ebf7443Swdenk
8307abf0c58Swdenkdebris_config: unconfig
8317abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
8327abf0c58Swdenk
83380885a9dSwdenkeXalion_config: unconfig
83480885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
83580885a9dSwdenk
8367ebf7443SwdenkMOUSSE_config: unconfig
8377ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
8387ebf7443Swdenk
8397ebf7443SwdenkMUSENKI_config: unconfig
8407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
8417ebf7443Swdenk
842b4676a25SwdenkMVBLUE_config:	unconfig
843b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
844b4676a25Swdenk
8457ebf7443SwdenkOXC_config: unconfig
8467ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
8477ebf7443Swdenk
8487ebf7443SwdenkPN62_config: unconfig
8497ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
8507ebf7443Swdenk
8517ebf7443SwdenkSandpoint8240_config: unconfig
8527ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
8537ebf7443Swdenk
8547ebf7443SwdenkSandpoint8245_config: unconfig
8557ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
8567ebf7443Swdenk
857466b7410Swdenksbc8240_config: unconfig
858466b7410Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sbc8240
859466b7410Swdenk
860d1cbe85bSwdenkSL8245_config: unconfig
861d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
862d1cbe85bSwdenk
8637ebf7443Swdenkutx8245_config: unconfig
8647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
8657ebf7443Swdenk
8667ebf7443Swdenk#########################################################################
8677ebf7443Swdenk## MPC8260 Systems
8687ebf7443Swdenk#########################################################################
8697ebf7443Swdenk
87054387ac9Swdenkatc_config:	unconfig
87154387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
87254387ac9Swdenk
8737ebf7443Swdenkcogent_mpc8260_config:	unconfig
8747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
8757ebf7443Swdenk
8767ebf7443SwdenkCPU86_config	\
8777ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
8787ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
8797ebf7443Swdenk	@cd ./include ;				\
8807ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
8817ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
8827ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
8837ebf7443Swdenk	else \
8847ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
8857ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
8867ebf7443Swdenk	fi; \
8877ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
8887ebf7443Swdenk
8897ebf7443Swdenkep8260_config:	unconfig
8907ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
8917ebf7443Swdenk
8927ebf7443Swdenkgw8260_config:	unconfig
8937ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
8947ebf7443Swdenk
8957ebf7443Swdenkhymod_config:	unconfig
8967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
8977ebf7443Swdenk
8987ebf7443SwdenkIPHASE4539_config:	unconfig
8997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
9007ebf7443Swdenk
901c3c7f861SwdenkISPAN_config		\
902c3c7f861SwdenkISPAN_REVB_config:	unconfig
903c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
904c3c7f861Swdenk		echo "#define CFG_REV_B" > include/config.h ; \
905c3c7f861Swdenk	fi
906c3c7f861Swdenk	@./mkconfig -a ISPAN ppc mpc8260 ispan
907c3c7f861Swdenk
90804a85b3bSwdenkMPC8260ADS_config	\
90904a85b3bSwdenkMPC8260ADS_33MHz_config	\
91004a85b3bSwdenkMPC8260ADS_40MHz_config	\
91104a85b3bSwdenkMPC8272ADS_config	\
91204a85b3bSwdenkPQ2FADS_config		\
91304a85b3bSwdenkPQ2FADS-VR_config	\
91404a85b3bSwdenkPQ2FADS-ZU_config	\
91504a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
91604a85b3bSwdenk	:		unconfig
91704a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
91804a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
91904a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
92004a85b3bSwdenk	$(if $(findstring MHz,$@), \
92104a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
92204a85b3bSwdenk	$(if $(findstring VR,$@), \
92304a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
92404a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
9257ebf7443Swdenk
926db2f721fSwdenkMPC8266ADS_config:	unconfig
927db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
928db2f721fSwdenk
929efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
93010f67017SwdenkPM825_config	\
931efa329cbSwdenkPM825_ROMBOOT_config	\
932efa329cbSwdenkPM825_BIGFLASH_config	\
933efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
9347ebf7443SwdenkPM826_config	\
935efa329cbSwdenkPM826_ROMBOOT_config	\
936efa329cbSwdenkPM826_BIGFLASH_config	\
937efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
938efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
939efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
9407ebf7443Swdenk	else \
941efa329cbSwdenk		>include/config.h ; \
942efa329cbSwdenk	fi
943efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
944efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
945efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
946efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
947efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
948efa329cbSwdenk			echo "... with 32 MB Flash" ; \
949efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
9507ebf7443Swdenk		fi; \
951efa329cbSwdenk	else \
952efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
953efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
954efa329cbSwdenk			echo "... with 32 MB Flash" ; \
955efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
956efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
957efa329cbSwdenk		else \
958efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
959efa329cbSwdenk		fi; \
960efa329cbSwdenk	fi
961efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
962efa329cbSwdenk
963efa329cbSwdenkPM828_config	\
964efa329cbSwdenkPM828_PCI_config	\
965efa329cbSwdenkPM828_ROMBOOT_config	\
966efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
967efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
968efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
969efa329cbSwdenk		echo "... with PCI enabled" ; \
970efa329cbSwdenk	else \
971efa329cbSwdenk		>include/config.h ; \
972efa329cbSwdenk	fi
973efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
974efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
975efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
976efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
977efa329cbSwdenk	fi
978efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
9797ebf7443Swdenk
9807ebf7443Swdenkppmc8260_config:	unconfig
9817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
9827ebf7443Swdenk
9837ebf7443SwdenkRPXsuper_config:	unconfig
9847ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
9857ebf7443Swdenk
9867ebf7443Swdenkrsdproto_config:	unconfig
9877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
9887ebf7443Swdenk
9897ebf7443Swdenksacsng_config:	unconfig
9907ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
9917ebf7443Swdenk
9927ebf7443Swdenksbc8260_config:	unconfig
9937ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
9947ebf7443Swdenk
9957ebf7443SwdenkSCM_config:		unconfig
9967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
9977ebf7443Swdenk
99827b207fdSwdenkTQM8255_AA_config \
99927b207fdSwdenkTQM8260_AA_config \
100027b207fdSwdenkTQM8260_AB_config \
100127b207fdSwdenkTQM8260_AC_config \
100227b207fdSwdenkTQM8260_AD_config \
100327b207fdSwdenkTQM8260_AE_config \
100427b207fdSwdenkTQM8260_AF_config \
100527b207fdSwdenkTQM8260_AG_config \
100627b207fdSwdenkTQM8260_AH_config \
100727b207fdSwdenkTQM8265_AA_config:  unconfig
100827b207fdSwdenk	@case "$@" in \
100927b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
101027b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
101127b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
101227b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
101327b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
101427b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
101527b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
101627b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
101727b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
101827b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
101927b207fdSwdenk	esac; \
102027b207fdSwdenk	>include/config.h ; \
102127b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
102227b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
102327b207fdSwdenk	fi; \
102427b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
102527b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
102627b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
10277ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
102827b207fdSwdenk		echo "... with L2 Cache support" ; \
10297ebf7443Swdenk	else \
10307ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
10317ebf7443Swdenk		echo "... without L2 Cache support" ; \
103227b207fdSwdenk	fi; \
103327b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
103427b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
103527b207fdSwdenk		echo "... with 60x Bus Mode" ; \
103627b207fdSwdenk	else \
103727b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
103827b207fdSwdenk		echo "... without 60x Bus Mode" ; \
10397ebf7443Swdenk	fi
10404532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
10417ebf7443Swdenk
104254387ac9SwdenkZPC1900_config: unconfig
104354387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
10447aa78614Swdenk
10454e5ca3ebSwdenk#========================================================================
10464e5ca3ebSwdenk# M68K
10474e5ca3ebSwdenk#========================================================================
10484e5ca3ebSwdenk#########################################################################
10494e5ca3ebSwdenk## Coldfire
10504e5ca3ebSwdenk#########################################################################
10514e5ca3ebSwdenk
10524e5ca3ebSwdenkM5272C3_config :		unconfig
1053bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
10544e5ca3ebSwdenk
10554e5ca3ebSwdenkM5282EVB_config :		unconfig
1056bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
10574e5ca3ebSwdenk
10587ebf7443Swdenk#########################################################################
105942d1f039Swdenk## MPC85xx Systems
106042d1f039Swdenk#########################################################################
106142d1f039Swdenk
106242d1f039SwdenkMPC8540ADS_config:	unconfig
106342d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
106442d1f039Swdenk
106542d1f039SwdenkMPC8560ADS_config:	unconfig
106642d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
106742d1f039Swdenk
10687abf0c58Swdenkstxgp3_config:		unconfig
10697abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
10707abf0c58Swdenk
1071466b7410Swdenksbc8560_config \
1072466b7410Swdenksbc8560_33_config \
1073466b7410Swdenksbc8560_66_config:      unconfig
10748b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
10758b07a110Swdenk		echo "#define CONFIG_PCI_66"  >>include/config.h ; \
10768b07a110Swdenk		echo "... 66 MHz PCI" ; \
10778b07a110Swdenk	else \
10788b07a110Swdenk		>include/config.h ; \
10798b07a110Swdenk		echo "... 33 MHz PCI" ; \
10808b07a110Swdenk	fi
1081466b7410Swdenk	@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
10828b07a110Swdenk
108342d1f039Swdenk#########################################################################
10847ebf7443Swdenk## 74xx/7xx Systems
10857ebf7443Swdenk#########################################################################
10867ebf7443Swdenk
1087c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1088c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1089c7de829cSwdenk
109015647dc7SwdenkBAB7xx_config: unconfig
109115647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
109215647dc7Swdenk
10933a473b2aSwdenkDB64360_config:  unconfig
10943a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
10953a473b2aSwdenk
10963a473b2aSwdenkDB64460_config:  unconfig
10973a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
10983a473b2aSwdenk
109915647dc7SwdenkELPPC_config: unconfig
110015647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
110115647dc7Swdenk
11027ebf7443SwdenkEVB64260_config	\
11037ebf7443SwdenkEVB64260_750CX_config:	unconfig
11047ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
11057ebf7443Swdenk
110615647dc7SwdenkP3G4_config: unconfig
11077ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
11087ebf7443Swdenk
11097ebf7443SwdenkPCIPPC2_config \
11107ebf7443SwdenkPCIPPC6_config: unconfig
11117ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
11127ebf7443Swdenk
111315647dc7SwdenkZUMA_config:	unconfig
111412f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
111512f34241Swdenk
11167ebf7443Swdenk#========================================================================
11177ebf7443Swdenk# ARM
11187ebf7443Swdenk#========================================================================
11197ebf7443Swdenk#########################################################################
11207ebf7443Swdenk## StrongARM Systems
11217ebf7443Swdenk#########################################################################
11227ebf7443Swdenk
1123ea66bc88Swdenkassabet_config	:	unconfig
1124ea66bc88Swdenk	@./mkconfig $(@:_config=) arm sa1100 assabet
1125ea66bc88Swdenk
11267ebf7443Swdenkdnp1110_config	:	unconfig
11277ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
11287ebf7443Swdenk
1129855a496fSwdenkgcplus_config	:	unconfig
1130855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
1131855a496fSwdenk
1132855a496fSwdenklart_config	:	unconfig
1133855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
1134855a496fSwdenk
11357ebf7443Swdenkshannon_config	:	unconfig
11367ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
11377ebf7443Swdenk
11387ebf7443Swdenk#########################################################################
11392e5983d2Swdenk## ARM92xT Systems
11407ebf7443Swdenk#########################################################################
11417ebf7443Swdenk
1142b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
114343d9616cSwdenk
11443ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
114563e73c9aSwdenk
1146a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1147a56bd922Swdenk
11483d3befa7Swdenkintegratorcp_config :	unconfig
11493d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorcp
11503d3befa7Swdenk
11513d3befa7Swdenkintegratorap_config :	unconfig
11523d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorap
11533d3befa7Swdenk
1154f832d8a1Swdenklpd7a400_config \
1155f832d8a1Swdenklpd7a404_config:	unconfig
11562d24a3a7Swdenk	@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
11573d3befa7Swdenk
1158281e00a3Swdenkmx1ads_config	:	unconfig
1159281e00a3Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1ads
1160281e00a3Swdenk
1161281e00a3Swdenkmx1fs2_config	:	unconfig
1162281e00a3Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1fs2
1163281e00a3Swdenk
11642e5983d2Swdenkomap1510inn_config :	unconfig
11652e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
11662e5983d2Swdenk
11671eaeb58eSwdenkomap5912osk_config :	unconfig
11681eaeb58eSwdenk	@./mkconfig $(@:_config=) arm arm926ejs omap5912osk
11691eaeb58eSwdenk
117063e73c9aSwdenkomap1610inn_config \
117163e73c9aSwdenkomap1610inn_cs0boot_config \
117263e73c9aSwdenkomap1610inn_cs3boot_config \
11733ff02c27Swdenkomap1610inn_cs_autoboot_config \
117463e73c9aSwdenkomap1610h2_config \
117563e73c9aSwdenkomap1610h2_cs0boot_config \
11763ff02c27Swdenkomap1610h2_cs3boot_config \
11773ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
117863e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
117963e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1180b79a11ccSwdenk		echo "... configured for CS0 boot"; \
11813ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
11823ff02c27Swdenk		echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
11833ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
118463e73c9aSwdenk	else \
118563e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1186b79a11ccSwdenk		echo "... configured for CS3 boot"; \
118763e73c9aSwdenk	fi;
118863e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
11896f21347dSwdenk
1190a56bd922Swdenkomap730p2_config \
1191a56bd922Swdenkomap730p2_cs0boot_config \
1192a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1193a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1194a56bd922Swdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1195a56bd922Swdenk		echo "... configured for CS0 boot"; \
1196a56bd922Swdenk	else \
1197a56bd922Swdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1198a56bd922Swdenk		echo "... configured for CS3 boot"; \
1199a56bd922Swdenk	fi;
1200a56bd922Swdenk	@./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1201a56bd922Swdenk
1202281e00a3Swdenkscb9328_config	:	unconfig
1203281e00a3Swdenk	@./mkconfig $(@:_config=) arm arm920t scb9328
1204281e00a3Swdenk
12057ebf7443Swdenksmdk2400_config	:	unconfig
12067ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400
12077ebf7443Swdenk
12087ebf7443Swdenksmdk2410_config	:	unconfig
12097ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410
12107ebf7443Swdenk
12112d24a3a7SwdenkSX1_config :		unconfig
12122d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm925t sx1
12132d24a3a7Swdenk
1214b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
121543d9616cSwdenktrab_config \
1216b0639ca3Swdenktrab_bigram_config \
1217b0639ca3Swdenktrab_bigflash_config \
1218f54ebdfaSwdenktrab_old_config:	unconfig
121943d9616cSwdenk	@ >include/config.h
1220b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1221b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1222b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1223b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1224b0639ca3Swdenk		}
1225b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1226b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1227b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1228b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1229a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1230b0639ca3Swdenk		}
1231f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1232b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1233b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1234b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1235a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
123643d9616cSwdenk		}
123743d9616cSwdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
12387ebf7443Swdenk
12391cb8e980SwdenkVCMA9_config	:	unconfig
12401cb8e980Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl
12411cb8e980Swdenk
12422d24a3a7Swdenkversatile_config :	unconfig
12432d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs versatile
1244074cff0dSwdenk
1245074cff0dSwdenk#########################################################################
1246074cff0dSwdenk## S3C44B0 Systems
1247074cff0dSwdenk#########################################################################
1248074cff0dSwdenk
1249074cff0dSwdenkB2_config	:	unconfig
1250074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1251074cff0dSwdenk
12527ebf7443Swdenk#########################################################################
12537ebf7443Swdenk## ARM720T Systems
12547ebf7443Swdenk#########################################################################
12557ebf7443Swdenk
12567ebf7443Swdenkep7312_config	:	unconfig
12577ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
12587ebf7443Swdenk
12592d24a3a7Swdenkimpa7_config	:	unconfig
12602d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
12612d24a3a7Swdenk
12622d1a537dSwdenkmodnet50_config :	unconfig
12632d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
12642d1a537dSwdenk
126539539887Swdenkevb4510_config :	unconfig
126639539887Swdenk	@./mkconfig $(@:_config=) arm arm720t evb4510
126739539887Swdenk
12687ebf7443Swdenk#########################################################################
1269d9df1f4eSwdenk## AT91RM9200 Systems
1270d9df1f4eSwdenk#########################################################################
1271d9df1f4eSwdenk
1272d9df1f4eSwdenkat91rm9200dk_config	:	unconfig
1273d9df1f4eSwdenk	@./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
1274d9df1f4eSwdenk
1275d9df1f4eSwdenk#########################################################################
127643d9616cSwdenk## XScale Systems
12777ebf7443Swdenk#########################################################################
12787ebf7443Swdenk
1279fabd46acSwdenkcerf250_config :	unconfig
1280fabd46acSwdenk	@./mkconfig $(@:_config=) arm pxa cerf250
1281fabd46acSwdenk
12827ebf7443Swdenkcradle_config	:	unconfig
12834c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
12847ebf7443Swdenk
12857ebf7443Swdenkcsb226_config	:	unconfig
12864c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
12877ebf7443Swdenk
128843d9616cSwdenkinnokom_config	:	unconfig
12894c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
129043d9616cSwdenk
12912d5b561eSwdenkixdp425_config	:	unconfig
12922d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
12932d5b561eSwdenk
129443d9616cSwdenklubbock_config	:	unconfig
12954c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
129643d9616cSwdenk
129752f52c14Swdenklogodl_config	:	unconfig
129852f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
129952f52c14Swdenk
13003e38691eSwdenkwepep250_config	:	unconfig
13014c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
13023e38691eSwdenk
1303efa329cbSwdenkxm250_config	:	unconfig
1304efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1305efa329cbSwdenk
1306ca0e7748Swdenkxsengine_config :	unconfig
1307ca0e7748Swdenk	@./mkconfig $(@:_config=) arm pxa xsengine
1308ca0e7748Swdenk
13092262cfeeSwdenk#========================================================================
13102262cfeeSwdenk# i386
13112262cfeeSwdenk#========================================================================
13122262cfeeSwdenk#########################################################################
13132262cfeeSwdenk## AMD SC520 CDP
13142262cfeeSwdenk#########################################################################
13152262cfeeSwdenksc520_cdp_config	:	unconfig
13162262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
13172262cfeeSwdenk
13187a8e9bedSwdenksc520_spunk_config	:	unconfig
13197a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
13207a8e9bedSwdenk
13217a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
13227a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
13237a8e9bedSwdenk
132443d9616cSwdenk#========================================================================
132543d9616cSwdenk# MIPS
132643d9616cSwdenk#========================================================================
13277ebf7443Swdenk#########################################################################
132843d9616cSwdenk## MIPS32 4Kc
132943d9616cSwdenk#########################################################################
133043d9616cSwdenk
1331e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1332e0ac62d7Swdenk
1333e0ac62d7Swdenkincaip_100MHz_config	\
1334e0ac62d7Swdenkincaip_133MHz_config	\
1335e0ac62d7Swdenkincaip_150MHz_config	\
133643d9616cSwdenkincaip_config: unconfig
1337e0ac62d7Swdenk	@ >include/config.h
1338e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1339e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1340e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1341e0ac62d7Swdenk		}
1342e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1343e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1344e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1345e0ac62d7Swdenk		}
1346e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1347e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1348e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1349e0ac62d7Swdenk		}
1350e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1351e0ac62d7Swdenk
1352f4863a7aSwdenktb0229_config: unconfig
1353f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1354f4863a7aSwdenk
1355e0ac62d7Swdenk#########################################################################
135669459791Swdenk## MIPS32 AU1X00
135769459791Swdenk#########################################################################
135869459791Swdenkdbau1000_config		: 	unconfig
135969459791Swdenk	@ >include/config.h
136069459791Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
136169459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
136269459791Swdenk
136369459791Swdenkdbau1100_config		: 	unconfig
136469459791Swdenk	@ >include/config.h
136569459791Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
136669459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
136769459791Swdenk
136869459791Swdenkdbau1500_config		: 	unconfig
136969459791Swdenk	@ >include/config.h
137069459791Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
137169459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
137269459791Swdenk
137369459791Swdenk#########################################################################
1374e0ac62d7Swdenk## MIPS64 5Kc
1375e0ac62d7Swdenk#########################################################################
137643d9616cSwdenk
13773e38691eSwdenkpurple_config :		unconfig
13783e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
137943d9616cSwdenk
13804a551709Swdenk#========================================================================
13814a551709Swdenk# Nios
13824a551709Swdenk#========================================================================
13834a551709Swdenk#########################################################################
13844a551709Swdenk## Nios32
13854a551709Swdenk#########################################################################
13864a551709Swdenk
1387c935d3bdSwdenkDK1C20_safe_32_config		\
1388c935d3bdSwdenkDK1C20_standard_32_config	\
13894a551709SwdenkDK1C20_config:	unconfig
1390c935d3bdSwdenk	@ >include/config.h
1391c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1392c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1393c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1394c935d3bdSwdenk		}
1395c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1396c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1397c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1398c935d3bdSwdenk		}
1399c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1400c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1401c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1402c935d3bdSwdenk		}
1403c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1404c935d3bdSwdenk
1405c935d3bdSwdenkDK1S10_safe_32_config		\
1406c935d3bdSwdenkDK1S10_standard_32_config	\
1407ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1408c935d3bdSwdenkDK1S10_config:	unconfig
1409c935d3bdSwdenk	@ >include/config.h
1410c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1411c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1412c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1413c935d3bdSwdenk		}
1414c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1415c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1416c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1417c935d3bdSwdenk		}
1418ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1419ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1420ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1421ec4c544bSwdenk		}
1422c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1423c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1424c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1425c935d3bdSwdenk		}
1426c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
14274a551709Swdenk
1428aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1429aaf224abSwdenkADNPESC1_base_32_config		\
1430aaf224abSwdenkADNPESC1_config: unconfig
1431aaf224abSwdenk	@ >include/config.h
1432aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1433aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1434aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1435aaf224abSwdenk		}
1436aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1437aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1438aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1439aaf224abSwdenk		}
1440aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1441aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1442aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1443aaf224abSwdenk		}
1444aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1445aaf224abSwdenk
14464a551709Swdenk
1447507bbe3eSwdenk#========================================================================
1448507bbe3eSwdenk# MicroBlaze
1449507bbe3eSwdenk#========================================================================
1450507bbe3eSwdenk#########################################################################
1451507bbe3eSwdenk## Microblaze
1452507bbe3eSwdenk#########################################################################
1453507bbe3eSwdenksuzaku_config:	unconfig
1454507bbe3eSwdenk	@ >include/config.h
1455507bbe3eSwdenk	@echo "#define CONFIG_SUZAKU 1" >> include/config.h
1456507bbe3eSwdenk	@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1457507bbe3eSwdenk
14583e38691eSwdenk#########################################################################
14593e38691eSwdenk#########################################################################
14607ebf7443Swdenk
14617ebf7443Swdenkclean:
14627ebf7443Swdenk	find . -type f \
14637ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
14647ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
14657ebf7443Swdenk		| xargs rm -f
146685ec0bccSwdenk	rm -f examples/hello_world examples/timer \
14673e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
14687a8e9bedSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom
14697ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1470bda6c8aeSwdenk	rm -f tools/mpc86x_clk
14717ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
14727ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1473228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
14747f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
14757e780369Swdenk	rm -f board/trab/trab_fkt
14767ebf7443Swdenk
14777ebf7443Swdenkclobber:	clean
14784c0d4c3bSwdenk	find . -type f \( -name .depend \
14794c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
14804c0d4c3bSwdenk		-print0 \
14814c0d4c3bSwdenk		| xargs -0 rm -f
14827ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
14837ebf7443Swdenk	rm -fr *.*~
1484bdccc4feSwdenk	rm -f u-boot u-boot.map $(ALL)
1485228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
14863e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1487b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
14887ebf7443Swdenk
14897ebf7443Swdenkmrproper \
14907ebf7443Swdenkdistclean:	clobber unconfig
14917ebf7443Swdenk
14927ebf7443Swdenkbackup:
14937ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
14947ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
14957ebf7443Swdenk
14967ebf7443Swdenk#########################################################################
1497