xref: /openbmc/u-boot/Makefile (revision eedcd078)
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 \
179*eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
180*eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
181*eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
1827ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1837ebf7443Swdenk
1847ebf7443SwdenkSystem.map:	u-boot
1857ebf7443Swdenk		@$(NM) $< | \
1867ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1877ebf7443Swdenk		sort > System.map
1887ebf7443Swdenk
1897ebf7443Swdenk#########################################################################
1907ebf7443Swdenkelse
1917ebf7443Swdenkall install u-boot u-boot.srec depend dep:
1927ebf7443Swdenk	@echo "System not configured - see README" >&2
1937ebf7443Swdenk	@ exit 1
1947ebf7443Swdenkendif
1957ebf7443Swdenk
1967ebf7443Swdenk#########################################################################
1977ebf7443Swdenk
1987ebf7443Swdenkunconfig:
19917d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
2007ebf7443Swdenk
2017ebf7443Swdenk#========================================================================
2027ebf7443Swdenk# PowerPC
2037ebf7443Swdenk#========================================================================
2040db5bca8Swdenk
2050db5bca8Swdenk#########################################################################
2060db5bca8Swdenk## MPC5xx Systems
2070db5bca8Swdenk#########################################################################
2080db5bca8Swdenk
2090db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2100db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2110db5bca8Swdenk
212b6e4c403SwdenkPATI_config:		unconfig
213b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
214b6e4c403Swdenk
2157ebf7443Swdenk#########################################################################
216945af8d7Swdenk## MPC5xxx Systems
217945af8d7Swdenk#########################################################################
218e35745bbSwdenkLite5200_config				\
219e35745bbSwdenkLite5200_LOWBOOT_config			\
220e35745bbSwdenkLite5200_LOWBOOT08_config		\
221e35745bbSwdenkicecube_5200_config			\
222e35745bbSwdenkicecube_5200_LOWBOOT_config		\
223e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
224b2001f27Swdenkicecube_5200_DDR_config 		\
22579d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
22679d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
227e35745bbSwdenkicecube_5100_config:			unconfig
228945af8d7Swdenk	@ >include/config.h
22917d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
23017d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
23117d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
23217d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
23317d704ebSwdenk		  fi ; \
2345cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2355cf9da48Swdenk		}
2365cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2375cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2385cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
23917d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2405cf9da48Swdenk		}
241b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
242b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
243b2001f27Swdenk		  echo "... DDR memory revision" ; \
244b2001f27Swdenk		}
245d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
246d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
247d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
248d4ca31c4Swdenk		}
249a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
250945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
251945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
252945af8d7Swdenk		}
253945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
254945af8d7Swdenk
25589394047SwdenkPM520_config \
25689394047SwdenkPM520_DDR_config \
25789394047SwdenkPM520_ROMBOOT_config \
25889394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
25989394047Swdenk	@ >include/config.h
26089394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
26189394047Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
26289394047Swdenk		  echo "... DDR memory revision" ; \
26389394047Swdenk		}
26489394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
26589394047Swdenk		{ echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
26689394047Swdenk		  echo "... booting from 8-bit flash" ; \
26789394047Swdenk		}
26889394047Swdenk	@./mkconfig -a PM520 ppc mpc5xxx pm520
26989394047Swdenk
270d4ca31c4SwdenkMINI5200_config	\
271d4ca31c4SwdenkEVAL5200_config	\
272d4ca31c4SwdenkTOP5200_config:	unconfig
273d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
274d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
275d4ca31c4Swdenk
2766c7a1408SwdenkTotal5100_config		\
2776c7a1408SwdenkTotal5200_config		\
2786c7a1408SwdenkTotal5200_lowboot_config	\
2796c7a1408SwdenkTotal5200_Rev2_config		\
2806c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
2816c7a1408Swdenk	@ >include/config.h
2826c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
2836c7a1408Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
2846c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
2856c7a1408Swdenk		}
2866c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
2876c7a1408Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
2886c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
2896c7a1408Swdenk		}
2906c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
2916c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>include/config.h ; \
2926c7a1408Swdenk		  echo "... revision 1 board" ; \
2936c7a1408Swdenk		}
2946c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
2956c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>include/config.h ; \
2966c7a1408Swdenk		  echo "... revision 2 board" ; \
2976c7a1408Swdenk		}
2986c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
2996c7a1408Swdenk		{ echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
3006c7a1408Swdenk		  echo "... with lowboot configuration" ; \
3016c7a1408Swdenk		}
3026c7a1408Swdenk	@./mkconfig -a Total5200 ppc mpc5xxx total5200
3036c7a1408Swdenk
30456523f12SwdenkTQM5200_AA_config	\
30556523f12SwdenkTQM5200_AB_config	\
30656523f12SwdenkTQM5200_AC_config	\
30756523f12SwdenkMiniFAP_config:	unconfig
30856523f12Swdenk	@ >include/config.h
30989394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
31056523f12Swdenk		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
31156523f12Swdenk		  echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
31289394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
31356523f12Swdenk		}
31456523f12Swdenk	@[ -z "$(findstring AA,$@)" ] || \
31556523f12Swdenk		{ echo "#define CONFIG_TQM5200_AA"	>>include/config.h ; \
31656523f12Swdenk		  echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
31756523f12Swdenk		}
31856523f12Swdenk	@[ -z "$(findstring AB,$@)" ] || \
31956523f12Swdenk		{ echo "#define CONFIG_TQM5200_AB"	>>include/config.h ; \
32056523f12Swdenk		  echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
32131a64923Swdenk		  echo "... with Graphics Controller"; \
32256523f12Swdenk		}
32356523f12Swdenk	@[ -z "$(findstring AC,$@)" ] || \
32456523f12Swdenk		{ echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
32556523f12Swdenk		  echo "... with 4 MB Flash, 128 MB SDRAM" ; \
32631a64923Swdenk		  echo "... with Graphics Controller"; \
32756523f12Swdenk		}
32856523f12Swdenk	@./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
32956523f12Swdenk
330945af8d7Swdenk#########################################################################
3317ebf7443Swdenk## MPC8xx Systems
3327ebf7443Swdenk#########################################################################
3337ebf7443Swdenk
3342d24a3a7SwdenkAdder_config    \
3352d24a3a7SwdenkAdder87x_config \
33626238132SwdenkAdderII_config  \
3372d24a3a7Swdenk	:		unconfig
33826238132Swdenk	$(if $(findstring AdderII,$@), \
3392d24a3a7Swdenk	@echo "#define CONFIG_MPC852T" > include/config.h)
3402d24a3a7Swdenk	@./mkconfig -a Adder ppc mpc8xx adder
3412d24a3a7Swdenk
342180d3f74SwdenkADS860_config     \
343180d3f74SwdenkFADS823_config    \
344180d3f74SwdenkFADS850SAR_config \
345180d3f74SwdenkMPC86xADS_config  \
3461114257cSwdenkMPC885ADS_config  \
347180d3f74SwdenkFADS860T_config:	unconfig
3487ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
3497ebf7443Swdenk
3507ebf7443SwdenkAMX860_config	:	unconfig
3517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
3527ebf7443Swdenk
3537ebf7443Swdenkc2mon_config:		unconfig
3547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
3557ebf7443Swdenk
3567ebf7443SwdenkCCM_config:		unconfig
3577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
3587ebf7443Swdenk
3597ebf7443Swdenkcogent_mpc8xx_config:	unconfig
3607ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
3617ebf7443Swdenk
3623bac3513SwdenkELPT860_config:		unconfig
3633bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
3643bac3513Swdenk
3657ebf7443SwdenkESTEEM192E_config:	unconfig
3667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
3677ebf7443Swdenk
3687ebf7443SwdenkETX094_config	:	unconfig
3697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
3707ebf7443Swdenk
3717ebf7443SwdenkFLAGADM_config:	unconfig
3727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
3737ebf7443Swdenk
3747aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
3757aa78614Swdenk
3767aa78614SwdenkGEN860T_SC_config	\
3777ebf7443SwdenkGEN860T_config: unconfig
3787aa78614Swdenk	@ >include/config.h
3797aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
3807aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
3817aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
3827aa78614Swdenk		}
3837aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
3847ebf7443Swdenk
3857ebf7443SwdenkGENIETV_config:	unconfig
3867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
3877ebf7443Swdenk
3887ebf7443SwdenkGTH_config:	unconfig
3897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
3907ebf7443Swdenk
3917ebf7443Swdenkhermes_config	:	unconfig
3927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
3937ebf7443Swdenk
394c40b2956SwdenkHMI10_config	:	unconfig
395c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
396c40b2956Swdenk
3977ebf7443SwdenkIAD210_config: unconfig
3987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
3997ebf7443Swdenk
4007ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
4017ebf7443Swdenk
4027ebf7443SwdenkICU862_100MHz_config	\
4037ebf7443SwdenkICU862_config: unconfig
4047ebf7443Swdenk	@ >include/config.h
4057ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
4067ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
4077ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
4087ebf7443Swdenk		}
4097ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
4107ebf7443Swdenk
4117ebf7443SwdenkIP860_config	:	unconfig
4127ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
4137ebf7443Swdenk
4147ebf7443SwdenkIVML24_256_config \
4157ebf7443SwdenkIVML24_128_config \
4167ebf7443SwdenkIVML24_config:	unconfig
4177ebf7443Swdenk	@ >include/config.h
4187ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
4197ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
4207ebf7443Swdenk		 }
4217ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
4227ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
4237ebf7443Swdenk		 }
4247ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
4257ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
4267ebf7443Swdenk		 }
4277ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
4287ebf7443Swdenk
4297ebf7443SwdenkIVMS8_256_config \
4307ebf7443SwdenkIVMS8_128_config \
4317ebf7443SwdenkIVMS8_config:	unconfig
4327ebf7443Swdenk	@ >include/config.h
4337ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
4347ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
4357ebf7443Swdenk		 }
4367ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
4377ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
4387ebf7443Swdenk		 }
4397ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
4407ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
4417ebf7443Swdenk		 }
4427ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
4437ebf7443Swdenk
44456f94be3SwdenkKUP4K_config	:	unconfig
4450608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
4460608e04dSwdenk
4470608e04dSwdenkKUP4X_config    :       unconfig
4480608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
44956f94be3Swdenk
4507ebf7443SwdenkLANTEC_config	:	unconfig
4517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
4527ebf7443Swdenk
4537ebf7443Swdenklwmon_config:		unconfig
4547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
4557ebf7443Swdenk
4567ebf7443SwdenkMBX_config	\
4577ebf7443SwdenkMBX860T_config:	unconfig
4587ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
4597ebf7443Swdenk
4607ebf7443SwdenkMHPC_config:		unconfig
4617ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
4627ebf7443Swdenk
4637ebf7443SwdenkMVS1_config :		unconfig
4647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
4657ebf7443Swdenk
466993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
467993cad93Swdenk
468993cad93SwdenkNETVIA_V2_config \
4697ebf7443SwdenkNETVIA_config:		unconfig
470993cad93Swdenk	@ >include/config.h
471993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
472993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
473993cad93Swdenk		  echo "... Version 1" ; \
474993cad93Swdenk		 }
475993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
476993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
477993cad93Swdenk		  echo "... Version 2" ; \
478993cad93Swdenk		 }
479993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
4807ebf7443Swdenk
481c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
482c26e454dSwdenk
483c26e454dSwdenkNETPHONE_V2_config \
48404a85b3bSwdenkNETPHONE_config:	unconfig
485c26e454dSwdenk	@ >include/config.h
486c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
487c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
488c26e454dSwdenk		 }
489c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
490c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
491c26e454dSwdenk		 }
492c26e454dSwdenk	@./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
49304a85b3bSwdenk
49479fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
49504a85b3bSwdenk
49679fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
49779fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
49879fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
49979fa88f3SwdenkNETTA_SWAPHOOK_config \
50079fa88f3SwdenkNETTA_ISDN_6412_config \
50104a85b3bSwdenkNETTA_ISDN_config \
50279fa88f3SwdenkNETTA_6412_config \
50304a85b3bSwdenkNETTA_config:		unconfig
50404a85b3bSwdenk	@ >include/config.h
50579fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
50604a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
50704a85b3bSwdenk		 }
50879fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
50979fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
51079fa88f3Swdenk		 }
51179fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
51279fa88f3Swdenk		 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
51379fa88f3Swdenk		 }
51479fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
51579fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
51679fa88f3Swdenk		 }
51779fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
51879fa88f3Swdenk		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
51979fa88f3Swdenk		 }
52079fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
52179fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
52279fa88f3Swdenk		 }
52304a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
52404a85b3bSwdenk
52579fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
52679fa88f3Swdenk
52779fa88f3SwdenkNETTA2_V2_config \
52879fa88f3SwdenkNETTA2_config:		unconfig
52979fa88f3Swdenk	@ >include/config.h
53079fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
53179fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
53279fa88f3Swdenk		 }
53379fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
53479fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
53579fa88f3Swdenk		 }
53679fa88f3Swdenk	@./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
53779fa88f3Swdenk
5387ca202f5SwdenkNC650_config:	unconfig
5397ca202f5Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nc650
5407ca202f5Swdenk
5417ebf7443SwdenkNX823_config:		unconfig
5427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
5437ebf7443Swdenk
5447ebf7443Swdenkpcu_e_config:		unconfig
5457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
5467ebf7443Swdenk
5473bbc899fSwdenkQS850_config:	unconfig
5483bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5493bbc899fSwdenk
5503bbc899fSwdenkQS823_config:	unconfig
5513bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5523bbc899fSwdenk
5533bbc899fSwdenkQS860T_config:	unconfig
5543bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
5553bbc899fSwdenk
5567ebf7443SwdenkR360MPI_config:	unconfig
5577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
5587ebf7443Swdenk
559682011ffSwdenkRBC823_config:	unconfig
560682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
561682011ffSwdenk
5627ebf7443SwdenkRPXClassic_config:	unconfig
5637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
5647ebf7443Swdenk
5657ebf7443SwdenkRPXlite_config:		unconfig
5667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
5677ebf7443Swdenk
568e63c8ee3SwdenkRPXlite_DW_64_config  		\
569e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
570e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
571e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
572e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
573e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
574e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
575e63c8ee3SwdenkRPXlite_DW_config:         unconfig
576e63c8ee3Swdenk	@ >include/config.h
577e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
578e63c8ee3Swdenk		{ echo "#define RPXlite_64MHz"		>>include/config.h ; \
579e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
580e63c8ee3Swdenk		}
581e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
582e63c8ee3Swdenk		{ echo "#define CONFIG_LCD"          	>>include/config.h ; \
583e63c8ee3Swdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
584e63c8ee3Swdenk		  echo "... with LCD display ..."; \
585e63c8ee3Swdenk		}
586e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
587e63c8ee3Swdenk		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>include/config.h ; \
588e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
589e63c8ee3Swdenk		}
590e63c8ee3Swdenk	@./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
591e63c8ee3Swdenk
59273a8b27cSwdenkrmu_config:	unconfig
59373a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
59473a8b27cSwdenk
5957ebf7443SwdenkRRvision_config:	unconfig
5967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
5977ebf7443Swdenk
5987ebf7443SwdenkRRvision_LCD_config:	unconfig
5997ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6007ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6017ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
6027ebf7443Swdenk
6037ebf7443SwdenkSM850_config	:	unconfig
6047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
6057ebf7443Swdenk
6067ebf7443SwdenkSPD823TS_config:	unconfig
6077ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
6087ebf7443Swdenk
609dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
610dc7c9a1aSwdenk	@ >include/config.h
611dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
612dc7c9a1aSwdenk
6137ebf7443SwdenkSXNI855T_config:	unconfig
6147ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
6157ebf7443Swdenk
616db2f721fSwdenk# EMK MPC8xx based modules
617db2f721fSwdenkTOP860_config:		unconfig
618db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
619db2f721fSwdenk
6207ebf7443Swdenk# Play some tricks for configuration selection
621e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
622e9132ea9Swdenk# and only 823 boards may have LCD support
623e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
6247ebf7443Swdenk
6257ebf7443SwdenkFPS850L_config		\
626384ae025SwdenkFPS860L_config		\
627f12e568cSwdenkNSCU_config		\
6287ebf7443SwdenkTQM823L_config		\
6297ebf7443SwdenkTQM823L_LCD_config	\
6307ebf7443SwdenkTQM850L_config		\
6317ebf7443SwdenkTQM855L_config		\
6327ebf7443SwdenkTQM860L_config		\
633d126bfbdSwdenkTQM862L_config		\
634ae3af05eSwdenkTQM823M_config		\
635ae3af05eSwdenkTQM850M_config		\
636f12e568cSwdenkTQM855M_config		\
637f12e568cSwdenkTQM860M_config		\
638f12e568cSwdenkTQM862M_config		\
639c178d3daSwdenkTQM866M_config:		unconfig
6407ebf7443Swdenk	@ >include/config.h
6417ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
6427ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
643fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
6447ebf7443Swdenk		  echo "... with LCD display" ; \
6457ebf7443Swdenk		}
6467ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
6477ebf7443Swdenk
6487ebf7443SwdenkTTTech_config:	unconfig
6497ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6507ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6517ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
6527ebf7443Swdenk
653608c9146Swdenkv37_config:	unconfig
654608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
655608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
656608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
657608c9146Swdenk
65891e940d9Sdzuwtk_config:	unconfig
65991e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
66091e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
66191e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
66291e940d9Sdzu
6637ebf7443Swdenk#########################################################################
6647ebf7443Swdenk## PPC4xx Systems
6657ebf7443Swdenk#########################################################################
666e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
6677ebf7443Swdenk
6687ebf7443SwdenkADCIOP_config:	unconfig
6697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
6707ebf7443Swdenk
6717ebf7443SwdenkAR405_config:	unconfig
6727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
6737ebf7443Swdenk
674549826eaSstroeseASH405_config:	unconfig
675549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
676549826eaSstroese
677549826eaSstroeseBUBINGA405EP_config:	unconfig
678549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
679549826eaSstroese
6807ebf7443SwdenkCANBT_config:	unconfig
6817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
6827ebf7443Swdenk
68310767ccbSwdenkCATcenter_config:	unconfig
68410767ccbSwdenk	@ echo "/* CATcenter uses PPChameleon Model ME */"  > include/config.h
68510767ccbSwdenk	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
68610767ccbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
68710767ccbSwdenk
6887ebf7443SwdenkCPCI405_config	\
689549826eaSstroeseCPCI4052_config	\
690549826eaSstroeseCPCI405AB_config:	unconfig
6917ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
6927ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
6937ebf7443Swdenk
6947ebf7443SwdenkCPCI440_config:	unconfig
6957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
6967ebf7443Swdenk
6977ebf7443SwdenkCPCIISER4_config:	unconfig
6987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
6997ebf7443Swdenk
7007ebf7443SwdenkCRAYL1_config:	unconfig
7017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
7027ebf7443Swdenk
703cd0a9de6Swdenkcsb272_config:	unconfig
704cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
705cd0a9de6Swdenk
706aa245090Swdenkcsb472_config:	unconfig
707aa245090Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb472
708aa245090Swdenk
7097ebf7443SwdenkDASA_SIM_config: unconfig
7107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
7117ebf7443Swdenk
71272cd5aa7SstroeseDP405_config:	unconfig
71372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
71472cd5aa7Sstroese
7157ebf7443SwdenkDU405_config:	unconfig
7167ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
7177ebf7443Swdenk
7187ebf7443SwdenkEBONY_config:	unconfig
7197ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ebony
7207ebf7443Swdenk
7217ebf7443SwdenkERIC_config:	unconfig
7227ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
7237ebf7443Swdenk
724d1cbe85bSwdenkEXBITGEN_config:	unconfig
725d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
726d1cbe85bSwdenk
72772cd5aa7SstroeseHUB405_config:	unconfig
72872cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
72972cd5aa7Sstroese
730db01a2eaSwdenkJSE_config:	unconfig
731db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
732db01a2eaSwdenk
7337ebf7443SwdenkMIP405_config:	unconfig
7347ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
7357ebf7443Swdenk
736f3e0de60SwdenkMIP405T_config:	unconfig
737f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
738f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
739f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
740f3e0de60Swdenk
7417ebf7443SwdenkML2_config:	unconfig
7427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
7437ebf7443Swdenk
744028ab6b5Swdenkml300_config:	unconfig
745028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
746028ab6b5Swdenk
7470e6d798cSwdenkOCOTEA_config:	unconfig
7480e6d798cSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocotea
7490e6d798cSwdenk
7507ebf7443SwdenkOCRTC_config		\
7517ebf7443SwdenkORSG_config:	unconfig
7527ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
7537ebf7443Swdenk
7547ebf7443SwdenkPCI405_config:	unconfig
7557ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
7567ebf7443Swdenk
7577ebf7443SwdenkPIP405_config:	unconfig
7587ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
7597ebf7443Swdenk
76072cd5aa7SstroesePLU405_config:	unconfig
76172cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
76272cd5aa7Sstroese
763549826eaSstroesePMC405_config:	unconfig
764549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
765549826eaSstroese
766281e00a3SwdenkPPChameleonEVB_config		\
767e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
768e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
769e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
770e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
771e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
772e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
773fbe4b5cbSwdenk	@ >include/config.h
774fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_BA,$@)" ] || \
775fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
776fbe4b5cbSwdenk		  echo "... BASIC model" ; \
777fbe4b5cbSwdenk		}
778fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_ME,$@)" ] || \
779fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
780fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
781fbe4b5cbSwdenk		}
782fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_HI,$@)" ] || \
783fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
784fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
785fbe4b5cbSwdenk		}
786e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
787e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
788e55ca7e2Swdenk		  echo " SysClk = 25MHz" ; \
789e55ca7e2Swdenk		}
790e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
791e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
792e55ca7e2Swdenk		  echo " SysClk = 33MHz" ; \
793e55ca7e2Swdenk		}
794fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
79512f34241Swdenk
79672cd5aa7SstroeseVOH405_config:	unconfig
79772cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
79872cd5aa7Sstroese
7997ebf7443SwdenkW7OLMC_config	\
8007ebf7443SwdenkW7OLMG_config: unconfig
8017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
8027ebf7443Swdenk
8037ebf7443SwdenkWALNUT405_config:	unconfig
8047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx walnut405
8057ebf7443Swdenk
806ba56f625SwdenkXPEDITE1K_config:	unconfig
807ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
808ba56f625Swdenk
8097ebf7443Swdenk#########################################################################
8107ebf7443Swdenk## MPC824x Systems
8117ebf7443Swdenk#########################################################################
812efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
8133bac3513Swdenk
8140332990bSwdenkA3000_config: unconfig
8150332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
8160332990bSwdenk
8177ebf7443SwdenkBMW_config: unconfig
8187ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
8197ebf7443Swdenk
8203bac3513SwdenkCPC45_config	\
8213bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
8223bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
8233bac3513Swdenk	@cd ./include ;				\
8243bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
8253bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
8263bac3513Swdenk		echo "... booting from 8-bit flash" ; \
8273bac3513Swdenk	else \
8283bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
8293bac3513Swdenk		echo "... booting from 64-bit flash" ; \
8303bac3513Swdenk	fi; \
8313bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
8323bac3513Swdenk
8337ebf7443SwdenkCU824_config: unconfig
8347ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
8357ebf7443Swdenk
8367abf0c58Swdenkdebris_config: unconfig
8377abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
8387abf0c58Swdenk
83980885a9dSwdenkeXalion_config: unconfig
84080885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
84180885a9dSwdenk
8427ebf7443SwdenkMOUSSE_config: unconfig
8437ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
8447ebf7443Swdenk
8457ebf7443SwdenkMUSENKI_config: unconfig
8467ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
8477ebf7443Swdenk
848b4676a25SwdenkMVBLUE_config:	unconfig
849b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
850b4676a25Swdenk
8517ebf7443SwdenkOXC_config: unconfig
8527ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
8537ebf7443Swdenk
8547ebf7443SwdenkPN62_config: unconfig
8557ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
8567ebf7443Swdenk
8577ebf7443SwdenkSandpoint8240_config: unconfig
8587ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
8597ebf7443Swdenk
8607ebf7443SwdenkSandpoint8245_config: unconfig
8617ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
8627ebf7443Swdenk
863466b7410Swdenksbc8240_config: unconfig
864466b7410Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sbc8240
865466b7410Swdenk
866d1cbe85bSwdenkSL8245_config: unconfig
867d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
868d1cbe85bSwdenk
8697ebf7443Swdenkutx8245_config: unconfig
8707ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
8717ebf7443Swdenk
8727ebf7443Swdenk#########################################################################
8737ebf7443Swdenk## MPC8260 Systems
8747ebf7443Swdenk#########################################################################
8757ebf7443Swdenk
87654387ac9Swdenkatc_config:	unconfig
87754387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
87854387ac9Swdenk
8797ebf7443Swdenkcogent_mpc8260_config:	unconfig
8807ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
8817ebf7443Swdenk
8827ebf7443SwdenkCPU86_config	\
8837ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
8847ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
8857ebf7443Swdenk	@cd ./include ;				\
8867ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
8877ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
8887ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
8897ebf7443Swdenk	else \
8907ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
8917ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
8927ebf7443Swdenk	fi; \
8937ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
8947ebf7443Swdenk
8957ebf7443Swdenkep8260_config:	unconfig
8967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
8977ebf7443Swdenk
8987ebf7443Swdenkgw8260_config:	unconfig
8997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
9007ebf7443Swdenk
9017ebf7443Swdenkhymod_config:	unconfig
9027ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
9037ebf7443Swdenk
9047ebf7443SwdenkIPHASE4539_config:	unconfig
9057ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
9067ebf7443Swdenk
907c3c7f861SwdenkISPAN_config		\
908c3c7f861SwdenkISPAN_REVB_config:	unconfig
909c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
910c3c7f861Swdenk		echo "#define CFG_REV_B" > include/config.h ; \
911c3c7f861Swdenk	fi
912c3c7f861Swdenk	@./mkconfig -a ISPAN ppc mpc8260 ispan
913c3c7f861Swdenk
91404a85b3bSwdenkMPC8260ADS_config	\
91504a85b3bSwdenkMPC8260ADS_33MHz_config	\
91604a85b3bSwdenkMPC8260ADS_40MHz_config	\
91704a85b3bSwdenkMPC8272ADS_config	\
91804a85b3bSwdenkPQ2FADS_config		\
91904a85b3bSwdenkPQ2FADS-VR_config	\
92004a85b3bSwdenkPQ2FADS-ZU_config	\
92104a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
92204a85b3bSwdenk	:		unconfig
92304a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
92404a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
92504a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
92604a85b3bSwdenk	$(if $(findstring MHz,$@), \
92704a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
92804a85b3bSwdenk	$(if $(findstring VR,$@), \
92904a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
93004a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
9317ebf7443Swdenk
932db2f721fSwdenkMPC8266ADS_config:	unconfig
933db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
934db2f721fSwdenk
935efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
93610f67017SwdenkPM825_config	\
937efa329cbSwdenkPM825_ROMBOOT_config	\
938efa329cbSwdenkPM825_BIGFLASH_config	\
939efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
9407ebf7443SwdenkPM826_config	\
941efa329cbSwdenkPM826_ROMBOOT_config	\
942efa329cbSwdenkPM826_BIGFLASH_config	\
943efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
944efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
945efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
9467ebf7443Swdenk	else \
947efa329cbSwdenk		>include/config.h ; \
948efa329cbSwdenk	fi
949efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
950efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
951efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
952efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
953efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
954efa329cbSwdenk			echo "... with 32 MB Flash" ; \
955efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
9567ebf7443Swdenk		fi; \
957efa329cbSwdenk	else \
958efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
959efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
960efa329cbSwdenk			echo "... with 32 MB Flash" ; \
961efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
962efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
963efa329cbSwdenk		else \
964efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
965efa329cbSwdenk		fi; \
966efa329cbSwdenk	fi
967efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
968efa329cbSwdenk
969efa329cbSwdenkPM828_config	\
970efa329cbSwdenkPM828_PCI_config	\
971efa329cbSwdenkPM828_ROMBOOT_config	\
972efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
973efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
974efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
975efa329cbSwdenk		echo "... with PCI enabled" ; \
976efa329cbSwdenk	else \
977efa329cbSwdenk		>include/config.h ; \
978efa329cbSwdenk	fi
979efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
980efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
981efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
982efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
983efa329cbSwdenk	fi
984efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
9857ebf7443Swdenk
9867ebf7443Swdenkppmc8260_config:	unconfig
9877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
9887ebf7443Swdenk
9897ebf7443SwdenkRPXsuper_config:	unconfig
9907ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
9917ebf7443Swdenk
9927ebf7443Swdenkrsdproto_config:	unconfig
9937ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
9947ebf7443Swdenk
9957ebf7443Swdenksacsng_config:	unconfig
9967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
9977ebf7443Swdenk
9987ebf7443Swdenksbc8260_config:	unconfig
9997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
10007ebf7443Swdenk
10017ebf7443SwdenkSCM_config:		unconfig
10027ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
10037ebf7443Swdenk
100427b207fdSwdenkTQM8255_AA_config \
100527b207fdSwdenkTQM8260_AA_config \
100627b207fdSwdenkTQM8260_AB_config \
100727b207fdSwdenkTQM8260_AC_config \
100827b207fdSwdenkTQM8260_AD_config \
100927b207fdSwdenkTQM8260_AE_config \
101027b207fdSwdenkTQM8260_AF_config \
101127b207fdSwdenkTQM8260_AG_config \
101227b207fdSwdenkTQM8260_AH_config \
101327b207fdSwdenkTQM8265_AA_config:  unconfig
101427b207fdSwdenk	@case "$@" in \
101527b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
101627b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
101727b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
101827b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
101927b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
102027b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
102127b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
102227b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
102327b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
102427b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
102527b207fdSwdenk	esac; \
102627b207fdSwdenk	>include/config.h ; \
102727b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
102827b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
102927b207fdSwdenk	fi; \
103027b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
103127b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
103227b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
10337ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
103427b207fdSwdenk		echo "... with L2 Cache support" ; \
10357ebf7443Swdenk	else \
10367ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
10377ebf7443Swdenk		echo "... without L2 Cache support" ; \
103827b207fdSwdenk	fi; \
103927b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
104027b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
104127b207fdSwdenk		echo "... with 60x Bus Mode" ; \
104227b207fdSwdenk	else \
104327b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
104427b207fdSwdenk		echo "... without 60x Bus Mode" ; \
10457ebf7443Swdenk	fi
10464532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
10477ebf7443Swdenk
104854387ac9SwdenkZPC1900_config: unconfig
104954387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
10507aa78614Swdenk
10514e5ca3ebSwdenk#========================================================================
10524e5ca3ebSwdenk# M68K
10534e5ca3ebSwdenk#========================================================================
10544e5ca3ebSwdenk#########################################################################
10554e5ca3ebSwdenk## Coldfire
10564e5ca3ebSwdenk#########################################################################
10574e5ca3ebSwdenk
10584e5ca3ebSwdenkM5272C3_config :		unconfig
1059bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
10604e5ca3ebSwdenk
10614e5ca3ebSwdenkM5282EVB_config :		unconfig
1062bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
10634e5ca3ebSwdenk
10647ebf7443Swdenk#########################################################################
106542d1f039Swdenk## MPC85xx Systems
106642d1f039Swdenk#########################################################################
106742d1f039Swdenk
106842d1f039SwdenkMPC8540ADS_config:	unconfig
106942d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
107042d1f039Swdenk
107142d1f039SwdenkMPC8560ADS_config:	unconfig
107242d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
107342d1f039Swdenk
10747abf0c58Swdenkstxgp3_config:		unconfig
10757abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
10767abf0c58Swdenk
1077466b7410Swdenksbc8560_config \
1078466b7410Swdenksbc8560_33_config \
1079466b7410Swdenksbc8560_66_config:      unconfig
10808b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
10818b07a110Swdenk		echo "#define CONFIG_PCI_66"  >>include/config.h ; \
10828b07a110Swdenk		echo "... 66 MHz PCI" ; \
10838b07a110Swdenk	else \
10848b07a110Swdenk		>include/config.h ; \
10858b07a110Swdenk		echo "... 33 MHz PCI" ; \
10868b07a110Swdenk	fi
1087466b7410Swdenk	@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
10888b07a110Swdenk
108942d1f039Swdenk#########################################################################
10907ebf7443Swdenk## 74xx/7xx Systems
10917ebf7443Swdenk#########################################################################
10927ebf7443Swdenk
1093c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1094c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1095c7de829cSwdenk
109615647dc7SwdenkBAB7xx_config: unconfig
109715647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
109815647dc7Swdenk
10993a473b2aSwdenkDB64360_config:  unconfig
11003a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
11013a473b2aSwdenk
11023a473b2aSwdenkDB64460_config:  unconfig
11033a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
11043a473b2aSwdenk
110515647dc7SwdenkELPPC_config: unconfig
110615647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
110715647dc7Swdenk
11087ebf7443SwdenkEVB64260_config	\
11097ebf7443SwdenkEVB64260_750CX_config:	unconfig
11107ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
11117ebf7443Swdenk
111215647dc7SwdenkP3G4_config: unconfig
11137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
11147ebf7443Swdenk
11157ebf7443SwdenkPCIPPC2_config \
11167ebf7443SwdenkPCIPPC6_config: unconfig
11177ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
11187ebf7443Swdenk
111915647dc7SwdenkZUMA_config:	unconfig
112012f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
112112f34241Swdenk
11227ebf7443Swdenk#========================================================================
11237ebf7443Swdenk# ARM
11247ebf7443Swdenk#========================================================================
11257ebf7443Swdenk#########################################################################
11267ebf7443Swdenk## StrongARM Systems
11277ebf7443Swdenk#########################################################################
11287ebf7443Swdenk
1129ea66bc88Swdenkassabet_config	:	unconfig
1130ea66bc88Swdenk	@./mkconfig $(@:_config=) arm sa1100 assabet
1131ea66bc88Swdenk
11327ebf7443Swdenkdnp1110_config	:	unconfig
11337ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
11347ebf7443Swdenk
1135855a496fSwdenkgcplus_config	:	unconfig
1136855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
1137855a496fSwdenk
1138855a496fSwdenklart_config	:	unconfig
1139855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
1140855a496fSwdenk
11417ebf7443Swdenkshannon_config	:	unconfig
11427ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
11437ebf7443Swdenk
11447ebf7443Swdenk#########################################################################
11452e5983d2Swdenk## ARM92xT Systems
11467ebf7443Swdenk#########################################################################
11477ebf7443Swdenk
1148b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
114943d9616cSwdenk
11503ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
115163e73c9aSwdenk
1152a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1153a56bd922Swdenk
11543d3befa7Swdenkintegratorcp_config :	unconfig
11553d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorcp
11563d3befa7Swdenk
11573d3befa7Swdenkintegratorap_config :	unconfig
11583d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorap
11593d3befa7Swdenk
1160f832d8a1Swdenklpd7a400_config \
1161f832d8a1Swdenklpd7a404_config:	unconfig
11622d24a3a7Swdenk	@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
11633d3befa7Swdenk
1164281e00a3Swdenkmx1ads_config	:	unconfig
1165281e00a3Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1ads
1166281e00a3Swdenk
1167281e00a3Swdenkmx1fs2_config	:	unconfig
1168281e00a3Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1fs2
1169281e00a3Swdenk
11702e5983d2Swdenkomap1510inn_config :	unconfig
11712e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
11722e5983d2Swdenk
11731eaeb58eSwdenkomap5912osk_config :	unconfig
11741eaeb58eSwdenk	@./mkconfig $(@:_config=) arm arm926ejs omap5912osk
11751eaeb58eSwdenk
117663e73c9aSwdenkomap1610inn_config \
117763e73c9aSwdenkomap1610inn_cs0boot_config \
117863e73c9aSwdenkomap1610inn_cs3boot_config \
11793ff02c27Swdenkomap1610inn_cs_autoboot_config \
118063e73c9aSwdenkomap1610h2_config \
118163e73c9aSwdenkomap1610h2_cs0boot_config \
11823ff02c27Swdenkomap1610h2_cs3boot_config \
11833ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
118463e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
118563e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1186b79a11ccSwdenk		echo "... configured for CS0 boot"; \
11873ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
11883ff02c27Swdenk		echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
11893ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
119063e73c9aSwdenk	else \
119163e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1192b79a11ccSwdenk		echo "... configured for CS3 boot"; \
119363e73c9aSwdenk	fi;
119463e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
11956f21347dSwdenk
1196a56bd922Swdenkomap730p2_config \
1197a56bd922Swdenkomap730p2_cs0boot_config \
1198a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1199a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1200a56bd922Swdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1201a56bd922Swdenk		echo "... configured for CS0 boot"; \
1202a56bd922Swdenk	else \
1203a56bd922Swdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1204a56bd922Swdenk		echo "... configured for CS3 boot"; \
1205a56bd922Swdenk	fi;
1206a56bd922Swdenk	@./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1207a56bd922Swdenk
1208281e00a3Swdenkscb9328_config	:	unconfig
1209281e00a3Swdenk	@./mkconfig $(@:_config=) arm arm920t scb9328
1210281e00a3Swdenk
12117ebf7443Swdenksmdk2400_config	:	unconfig
12127ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400
12137ebf7443Swdenk
12147ebf7443Swdenksmdk2410_config	:	unconfig
12157ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410
12167ebf7443Swdenk
12172d24a3a7SwdenkSX1_config :		unconfig
12182d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm925t sx1
12192d24a3a7Swdenk
1220b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
122143d9616cSwdenktrab_config \
1222b0639ca3Swdenktrab_bigram_config \
1223b0639ca3Swdenktrab_bigflash_config \
1224f54ebdfaSwdenktrab_old_config:	unconfig
122543d9616cSwdenk	@ >include/config.h
1226b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1227b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1228b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1229b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1230b0639ca3Swdenk		}
1231b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1232b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1233b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1234b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1235a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1236b0639ca3Swdenk		}
1237f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1238b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1239b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1240b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1241a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
124243d9616cSwdenk		}
124343d9616cSwdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
12447ebf7443Swdenk
12451cb8e980SwdenkVCMA9_config	:	unconfig
12461cb8e980Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl
12471cb8e980Swdenk
12482d24a3a7Swdenkversatile_config :	unconfig
12492d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs versatile
1250074cff0dSwdenk
1251074cff0dSwdenk#########################################################################
1252074cff0dSwdenk## S3C44B0 Systems
1253074cff0dSwdenk#########################################################################
1254074cff0dSwdenk
1255074cff0dSwdenkB2_config	:	unconfig
1256074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1257074cff0dSwdenk
12587ebf7443Swdenk#########################################################################
12597ebf7443Swdenk## ARM720T Systems
12607ebf7443Swdenk#########################################################################
12617ebf7443Swdenk
12627ebf7443Swdenkep7312_config	:	unconfig
12637ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
12647ebf7443Swdenk
12652d24a3a7Swdenkimpa7_config	:	unconfig
12662d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
12672d24a3a7Swdenk
12682d1a537dSwdenkmodnet50_config :	unconfig
12692d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
12702d1a537dSwdenk
127139539887Swdenkevb4510_config :	unconfig
127239539887Swdenk	@./mkconfig $(@:_config=) arm arm720t evb4510
127339539887Swdenk
12747ebf7443Swdenk#########################################################################
1275d9df1f4eSwdenk## AT91RM9200 Systems
1276d9df1f4eSwdenk#########################################################################
1277d9df1f4eSwdenk
1278d9df1f4eSwdenkat91rm9200dk_config	:	unconfig
1279d9df1f4eSwdenk	@./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
1280d9df1f4eSwdenk
1281d9df1f4eSwdenk#########################################################################
128243d9616cSwdenk## XScale Systems
12837ebf7443Swdenk#########################################################################
12847ebf7443Swdenk
1285fabd46acSwdenkcerf250_config :	unconfig
1286fabd46acSwdenk	@./mkconfig $(@:_config=) arm pxa cerf250
1287fabd46acSwdenk
12887ebf7443Swdenkcradle_config	:	unconfig
12894c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
12907ebf7443Swdenk
12917ebf7443Swdenkcsb226_config	:	unconfig
12924c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
12937ebf7443Swdenk
129443d9616cSwdenkinnokom_config	:	unconfig
12954c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
129643d9616cSwdenk
12972d5b561eSwdenkixdp425_config	:	unconfig
12982d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
12992d5b561eSwdenk
130043d9616cSwdenklubbock_config	:	unconfig
13014c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
130243d9616cSwdenk
130352f52c14Swdenklogodl_config	:	unconfig
130452f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
130552f52c14Swdenk
13063e38691eSwdenkwepep250_config	:	unconfig
13074c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
13083e38691eSwdenk
1309efa329cbSwdenkxm250_config	:	unconfig
1310efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1311efa329cbSwdenk
1312ca0e7748Swdenkxsengine_config :	unconfig
1313ca0e7748Swdenk	@./mkconfig $(@:_config=) arm pxa xsengine
1314ca0e7748Swdenk
13152262cfeeSwdenk#========================================================================
13162262cfeeSwdenk# i386
13172262cfeeSwdenk#========================================================================
13182262cfeeSwdenk#########################################################################
13192262cfeeSwdenk## AMD SC520 CDP
13202262cfeeSwdenk#########################################################################
13212262cfeeSwdenksc520_cdp_config	:	unconfig
13222262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
13232262cfeeSwdenk
13247a8e9bedSwdenksc520_spunk_config	:	unconfig
13257a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
13267a8e9bedSwdenk
13277a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
13287a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
13297a8e9bedSwdenk
133043d9616cSwdenk#========================================================================
133143d9616cSwdenk# MIPS
133243d9616cSwdenk#========================================================================
13337ebf7443Swdenk#########################################################################
133443d9616cSwdenk## MIPS32 4Kc
133543d9616cSwdenk#########################################################################
133643d9616cSwdenk
1337e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1338e0ac62d7Swdenk
1339e0ac62d7Swdenkincaip_100MHz_config	\
1340e0ac62d7Swdenkincaip_133MHz_config	\
1341e0ac62d7Swdenkincaip_150MHz_config	\
134243d9616cSwdenkincaip_config: unconfig
1343e0ac62d7Swdenk	@ >include/config.h
1344e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1345e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1346e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1347e0ac62d7Swdenk		}
1348e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1349e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1350e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1351e0ac62d7Swdenk		}
1352e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1353e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1354e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1355e0ac62d7Swdenk		}
1356e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1357e0ac62d7Swdenk
1358f4863a7aSwdenktb0229_config: unconfig
1359f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1360f4863a7aSwdenk
1361e0ac62d7Swdenk#########################################################################
136269459791Swdenk## MIPS32 AU1X00
136369459791Swdenk#########################################################################
136469459791Swdenkdbau1000_config		: 	unconfig
136569459791Swdenk	@ >include/config.h
136669459791Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
136769459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
136869459791Swdenk
136969459791Swdenkdbau1100_config		: 	unconfig
137069459791Swdenk	@ >include/config.h
137169459791Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
137269459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
137369459791Swdenk
137469459791Swdenkdbau1500_config		: 	unconfig
137569459791Swdenk	@ >include/config.h
137669459791Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
137769459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
137869459791Swdenk
137969459791Swdenk#########################################################################
1380e0ac62d7Swdenk## MIPS64 5Kc
1381e0ac62d7Swdenk#########################################################################
138243d9616cSwdenk
13833e38691eSwdenkpurple_config :		unconfig
13843e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
138543d9616cSwdenk
13864a551709Swdenk#========================================================================
13874a551709Swdenk# Nios
13884a551709Swdenk#========================================================================
13894a551709Swdenk#########################################################################
13904a551709Swdenk## Nios32
13914a551709Swdenk#########################################################################
13924a551709Swdenk
1393c935d3bdSwdenkDK1C20_safe_32_config		\
1394c935d3bdSwdenkDK1C20_standard_32_config	\
13954a551709SwdenkDK1C20_config:	unconfig
1396c935d3bdSwdenk	@ >include/config.h
1397c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1398c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1399c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1400c935d3bdSwdenk		}
1401c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1402c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1403c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1404c935d3bdSwdenk		}
1405c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1406c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1407c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1408c935d3bdSwdenk		}
1409c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1410c935d3bdSwdenk
1411c935d3bdSwdenkDK1S10_safe_32_config		\
1412c935d3bdSwdenkDK1S10_standard_32_config	\
1413ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1414c935d3bdSwdenkDK1S10_config:	unconfig
1415c935d3bdSwdenk	@ >include/config.h
1416c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1417c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1418c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1419c935d3bdSwdenk		}
1420c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1421c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1422c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1423c935d3bdSwdenk		}
1424ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1425ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1426ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1427ec4c544bSwdenk		}
1428c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1429c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1430c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1431c935d3bdSwdenk		}
1432c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
14334a551709Swdenk
1434aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1435aaf224abSwdenkADNPESC1_base_32_config		\
1436aaf224abSwdenkADNPESC1_config: unconfig
1437aaf224abSwdenk	@ >include/config.h
1438aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1439aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1440aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1441aaf224abSwdenk		}
1442aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1443aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1444aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1445aaf224abSwdenk		}
1446aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1447aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1448aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1449aaf224abSwdenk		}
1450aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1451aaf224abSwdenk
14524a551709Swdenk
1453507bbe3eSwdenk#========================================================================
1454507bbe3eSwdenk# MicroBlaze
1455507bbe3eSwdenk#========================================================================
1456507bbe3eSwdenk#########################################################################
1457507bbe3eSwdenk## Microblaze
1458507bbe3eSwdenk#########################################################################
1459507bbe3eSwdenksuzaku_config:	unconfig
1460507bbe3eSwdenk	@ >include/config.h
1461507bbe3eSwdenk	@echo "#define CONFIG_SUZAKU 1" >> include/config.h
1462507bbe3eSwdenk	@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1463507bbe3eSwdenk
14643e38691eSwdenk#########################################################################
14653e38691eSwdenk#########################################################################
14667ebf7443Swdenk
14677ebf7443Swdenkclean:
14687ebf7443Swdenk	find . -type f \
14697ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
14707ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
14717ebf7443Swdenk		| xargs rm -f
147285ec0bccSwdenk	rm -f examples/hello_world examples/timer \
14733e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
14747a8e9bedSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom
14757ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1476*eedcd078Swdenk	rm -f tools/mpc86x_clk tools/ncb
14777ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
14787ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1479228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
14807f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
14817e780369Swdenk	rm -f board/trab/trab_fkt
14827ebf7443Swdenk
14837ebf7443Swdenkclobber:	clean
14844c0d4c3bSwdenk	find . -type f \( -name .depend \
14854c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
14864c0d4c3bSwdenk		-print0 \
14874c0d4c3bSwdenk		| xargs -0 rm -f
14887ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
14897ebf7443Swdenk	rm -fr *.*~
1490bdccc4feSwdenk	rm -f u-boot u-boot.map $(ALL)
1491228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
14923e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1493b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
14947ebf7443Swdenk
14957ebf7443Swdenkmrproper \
14967ebf7443Swdenkdistclean:	clobber unconfig
14977ebf7443Swdenk
14987ebf7443Swdenkbackup:
14997ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
15007ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
15017ebf7443Swdenk
15027ebf7443Swdenk#########################################################################
1503