xref: /openbmc/u-boot/Makefile (revision efa329cb)
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
787ebf7443Swdenkendif
797ebf7443Swdenkendif
807ebf7443Swdenk
817ebf7443Swdenkexport	CROSS_COMPILE
827ebf7443Swdenk
837ebf7443Swdenk#########################################################################
847ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
857ebf7443Swdenk
867ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
872262cfeeSwdenkifeq ($(CPU),i386)
882262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
892262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
902262cfeeSwdenkendif
917ebf7443Swdenkifeq ($(CPU),ppc4xx)
927ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
937ebf7443Swdenkendif
9442d1f039Swdenkifeq ($(CPU),mpc85xx)
9542d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
9642d1f039Swdenkendif
977ebf7443Swdenk
989fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
999fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1007ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1017ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
102180d3f74SwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a
1037ebf7443SwdenkLIBS += net/libnet.a
1047ebf7443SwdenkLIBS += disk/libdisk.a
1057ebf7443SwdenkLIBS += rtc/librtc.a
1067ebf7443SwdenkLIBS += dtt/libdtt.a
1077ebf7443SwdenkLIBS += drivers/libdrivers.a
1087152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1097ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1107ebf7443SwdenkLIBS += common/libcommon.a
1119fd5e31fSwdenk.PHONY : $(LIBS)
112a8c7c708Swdenk
1134f7cb08eSwdenk# Add GCC lib
1143d3befa7SwdenkPLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1153d3befa7Swdenk
1167ebf7443Swdenk
117a8c7c708Swdenk# The "tools" are needed early, so put this first
118a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
119a8c7c708SwdenkSUBDIRS	= tools \
120a8c7c708Swdenk	  examples \
121a8c7c708Swdenk	  post \
122a8c7c708Swdenk	  post/cpu
123b028f715Swdenk.PHONY : $(SUBDIRS)
124a8c7c708Swdenk
1257ebf7443Swdenk#########################################################################
126bdccc4feSwdenk#########################################################################
1277ebf7443Swdenk
128bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1297ebf7443Swdenk
130bdccc4feSwdenkall:		$(ALL)
1317ebf7443Swdenk
1327ebf7443Swdenku-boot.srec:	u-boot
1337ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1347ebf7443Swdenk
1357ebf7443Swdenku-boot.bin:	u-boot
1367ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1377ebf7443Swdenk
138bdccc4feSwdenku-boot.img:	u-boot.bin
139bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
140bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
141bdccc4feSwdenk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
142bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
143bdccc4feSwdenk		-d $< $@
144bdccc4feSwdenk
1457ebf7443Swdenku-boot.dis:	u-boot
1467ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1477ebf7443Swdenk
148a8c7c708Swdenku-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1498bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1508bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1517152b1d0Swdenk			--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
152b2184c31Swdenk			-Map u-boot.map -o u-boot
1537ebf7443Swdenk
154a8c7c708Swdenk$(LIBS):
155a8c7c708Swdenk		$(MAKE) -C `dirname $@`
156a8c7c708Swdenk
157a8c7c708Swdenk$(SUBDIRS):
158b028f715Swdenk		$(MAKE) -C $@ all
1597ebf7443Swdenk
1608f713fdfSdzugdbtools:
1618f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
1628f713fdfSdzu
1637ebf7443Swdenkdepend dep:
1647ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
1657ebf7443Swdenk
1667ebf7443Swdenktags:
1677ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
1687ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1697ebf7443Swdenk
1707ebf7443Swdenketags:
1717ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
1727ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1737ebf7443Swdenk
1747ebf7443SwdenkSystem.map:	u-boot
1757ebf7443Swdenk		@$(NM) $< | \
1767ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1777ebf7443Swdenk		sort > System.map
1787ebf7443Swdenk
1797ebf7443Swdenk#########################################################################
1807ebf7443Swdenkelse
1817ebf7443Swdenkall install u-boot u-boot.srec depend dep:
1827ebf7443Swdenk	@echo "System not configured - see README" >&2
1837ebf7443Swdenk	@ exit 1
1847ebf7443Swdenkendif
1857ebf7443Swdenk
1867ebf7443Swdenk#########################################################################
1877ebf7443Swdenk
1887ebf7443Swdenkunconfig:
1897ebf7443Swdenk	rm -f include/config.h include/config.mk
1907ebf7443Swdenk
1917ebf7443Swdenk#========================================================================
1927ebf7443Swdenk# PowerPC
1937ebf7443Swdenk#========================================================================
1940db5bca8Swdenk
1950db5bca8Swdenk#########################################################################
1960db5bca8Swdenk## MPC5xx Systems
1970db5bca8Swdenk#########################################################################
1980db5bca8Swdenk
1990db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2000db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2010db5bca8Swdenk
202b6e4c403SwdenkPATI_config:unconfig
203b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
204b6e4c403Swdenk
2057ebf7443Swdenk#########################################################################
206945af8d7Swdenk## MPC5xxx Systems
207945af8d7Swdenk#########################################################################
2085cf9da48SwdenkMPC5200LITE_config		\
2095cf9da48SwdenkMPC5200LITE_LOWBOOT_config	\
2105cf9da48SwdenkMPC5200LITE_LOWBOOT08_config	\
211b2001f27Swdenkicecube_5200_DDR_config		\
212b2001f27SwdenkIceCube_5200_DDR_config		\
21379d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \
21479d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \
215a0f2fe52Swdenkicecube_5200_config		\
216945af8d7SwdenkIceCube_5200_config		\
217945af8d7SwdenkIceCube_5100_config:		unconfig
218945af8d7Swdenk	@ >include/config.h
2195cf9da48Swdenk	@[ -z "$(findstring LOWBOOT,$@)" ] || \
2205cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
2215cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2225cf9da48Swdenk		}
2235cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2245cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2255cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
2265cf9da48Swdenk		}
227b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
228b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
229b2001f27Swdenk		  echo "... DDR memory revision" ; \
230b2001f27Swdenk		}
231d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
232d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
233d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
234d4ca31c4Swdenk		}
235a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
236945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
237945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
238945af8d7Swdenk		}
239945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
240945af8d7Swdenk
241d4ca31c4SwdenkMINI5200_config	\
242d4ca31c4SwdenkEVAL5200_config	\
243d4ca31c4SwdenkTOP5200_config:	unconfig
244d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
245d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
246d4ca31c4Swdenk
247*efa329cbSwdenkPM520_config:	unconfig
248*efa329cbSwdenk	@./mkconfig $(@:_config=) ppc mpc5xxx pm520
249*efa329cbSwdenk
250945af8d7Swdenk#########################################################################
2517ebf7443Swdenk## MPC8xx Systems
2527ebf7443Swdenk#########################################################################
2537ebf7443Swdenk
2540cb61d7dSwdenkAdderII_config:	unconfig
2550cb61d7dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx adderII
2560cb61d7dSwdenk
257180d3f74SwdenkADS860_config     \
258180d3f74SwdenkDUET_ADS_config   \
259180d3f74SwdenkFADS823_config    \
260180d3f74SwdenkFADS850SAR_config \
261180d3f74SwdenkMPC86xADS_config  \
262180d3f74SwdenkFADS860T_config:	unconfig
2637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
2647ebf7443Swdenk
2657ebf7443SwdenkAMX860_config	:	unconfig
2667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
2677ebf7443Swdenk
2687ebf7443Swdenkc2mon_config:		unconfig
2697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
2707ebf7443Swdenk
2717ebf7443SwdenkCCM_config:		unconfig
2727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
2737ebf7443Swdenk
2747ebf7443Swdenkcogent_mpc8xx_config:	unconfig
2757ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
2767ebf7443Swdenk
2773bac3513SwdenkELPT860_config:		unconfig
2783bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
2793bac3513Swdenk
2807ebf7443SwdenkESTEEM192E_config:	unconfig
2817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
2827ebf7443Swdenk
2837ebf7443SwdenkETX094_config	:	unconfig
2847ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
2857ebf7443Swdenk
2867ebf7443SwdenkFLAGADM_config:	unconfig
2877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
2887ebf7443Swdenk
2897aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
2907aa78614Swdenk
2917aa78614SwdenkGEN860T_SC_config	\
2927ebf7443SwdenkGEN860T_config: unconfig
2937aa78614Swdenk	@ >include/config.h
2947aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
2957aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
2967aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
2977aa78614Swdenk		}
2987aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
2997ebf7443Swdenk
3007ebf7443SwdenkGENIETV_config:	unconfig
3017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
3027ebf7443Swdenk
3037ebf7443SwdenkGTH_config:	unconfig
3047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
3057ebf7443Swdenk
3067ebf7443Swdenkhermes_config	:	unconfig
3077ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
3087ebf7443Swdenk
309c40b2956SwdenkHMI10_config	:	unconfig
310c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
311c40b2956Swdenk
3127ebf7443SwdenkIAD210_config: unconfig
3137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
3147ebf7443Swdenk
3157ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
3167ebf7443Swdenk
3177ebf7443SwdenkICU862_100MHz_config	\
3187ebf7443SwdenkICU862_config: unconfig
3197ebf7443Swdenk	@ >include/config.h
3207ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
3217ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
3227ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
3237ebf7443Swdenk		}
3247ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
3257ebf7443Swdenk
3267ebf7443SwdenkIP860_config	:	unconfig
3277ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
3287ebf7443Swdenk
3297ebf7443SwdenkIVML24_256_config \
3307ebf7443SwdenkIVML24_128_config \
3317ebf7443SwdenkIVML24_config:	unconfig
3327ebf7443Swdenk	@ >include/config.h
3337ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
3347ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
3357ebf7443Swdenk		 }
3367ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
3377ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
3387ebf7443Swdenk		 }
3397ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
3407ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
3417ebf7443Swdenk		 }
3427ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
3437ebf7443Swdenk
3447ebf7443SwdenkIVMS8_256_config \
3457ebf7443SwdenkIVMS8_128_config \
3467ebf7443SwdenkIVMS8_config:	unconfig
3477ebf7443Swdenk	@ >include/config.h
3487ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
3497ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
3507ebf7443Swdenk		 }
3517ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
3527ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
3537ebf7443Swdenk		 }
3547ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
3557ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
3567ebf7443Swdenk		 }
3577ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
3587ebf7443Swdenk
35956f94be3SwdenkKUP4K_config	:	unconfig
36056f94be3Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k
36156f94be3Swdenk
3627ebf7443SwdenkLANTEC_config	:	unconfig
3637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
3647ebf7443Swdenk
3657ebf7443Swdenklwmon_config:		unconfig
3667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
3677ebf7443Swdenk
3687ebf7443SwdenkMBX_config	\
3697ebf7443SwdenkMBX860T_config:	unconfig
3707ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
3717ebf7443Swdenk
3727ebf7443SwdenkMHPC_config:		unconfig
3737ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
3747ebf7443Swdenk
3757ebf7443SwdenkMVS1_config :		unconfig
3767ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
3777ebf7443Swdenk
378993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
379993cad93Swdenk
380993cad93SwdenkNETVIA_V2_config \
3817ebf7443SwdenkNETVIA_config:		unconfig
382993cad93Swdenk	@ >include/config.h
383993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
384993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
385993cad93Swdenk		  echo "... Version 1" ; \
386993cad93Swdenk		 }
387993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
388993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
389993cad93Swdenk		  echo "... Version 2" ; \
390993cad93Swdenk		 }
391993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
3927ebf7443Swdenk
3937ebf7443SwdenkNX823_config:		unconfig
3947ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
3957ebf7443Swdenk
3967ebf7443Swdenkpcu_e_config:		unconfig
3977ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
3987ebf7443Swdenk
3993bbc899fSwdenkQS850_config:	unconfig
4003bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
4013bbc899fSwdenk
4023bbc899fSwdenkQS823_config:	unconfig
4033bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
4043bbc899fSwdenk
4053bbc899fSwdenkQS860T_config:	unconfig
4063bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
4073bbc899fSwdenk
4087ebf7443SwdenkR360MPI_config:	unconfig
4097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
4107ebf7443Swdenk
411682011ffSwdenkRBC823_config:	unconfig
412682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
413682011ffSwdenk
4147ebf7443SwdenkRPXClassic_config:	unconfig
4157ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
4167ebf7443Swdenk
4177ebf7443SwdenkRPXlite_config:		unconfig
4187ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
4197ebf7443Swdenk
42073a8b27cSwdenkrmu_config:	unconfig
42173a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
42273a8b27cSwdenk
4237ebf7443SwdenkRRvision_config:	unconfig
4247ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
4257ebf7443Swdenk
4267ebf7443SwdenkRRvision_LCD_config:	unconfig
4277ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
4287ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
4297ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
4307ebf7443Swdenk
4317ebf7443SwdenkSM850_config	:	unconfig
4327ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
4337ebf7443Swdenk
4347ebf7443SwdenkSPD823TS_config:	unconfig
4357ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
4367ebf7443Swdenk
437dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
438dc7c9a1aSwdenk	@ >include/config.h
439dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
440dc7c9a1aSwdenk
4417ebf7443SwdenkSXNI855T_config:	unconfig
4427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
4437ebf7443Swdenk
444db2f721fSwdenk# EMK MPC8xx based modules
445db2f721fSwdenkTOP860_config:		unconfig
446db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
447db2f721fSwdenk
4487ebf7443Swdenk# Play some tricks for configuration selection
44973a8b27cSwdenk# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
4507ebf7443Swdenk# but only 855 and 860 boards may come with FEC
4517ebf7443Swdenk# and 823 boards may have LCD support
452d4ca31c4Swdenkxtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _133MHz,,$(subst _LCD,,$(subst _config,,$1))))))
4537ebf7443Swdenk
4547ebf7443SwdenkFPS850L_config		\
455384ae025SwdenkFPS860L_config		\
456f12e568cSwdenkNSCU_config		\
4577ebf7443SwdenkTQM823L_config		\
4587ebf7443SwdenkTQM823L_66MHz_config	\
4597ebf7443SwdenkTQM823L_80MHz_config	\
4607ebf7443SwdenkTQM823L_LCD_config	\
4617ebf7443SwdenkTQM823L_LCD_66MHz_config \
4627ebf7443SwdenkTQM823L_LCD_80MHz_config \
4637ebf7443SwdenkTQM850L_config		\
4647ebf7443SwdenkTQM850L_66MHz_config	\
4657ebf7443SwdenkTQM850L_80MHz_config	\
4667ebf7443SwdenkTQM855L_config		\
4677ebf7443SwdenkTQM855L_66MHz_config	\
4687ebf7443SwdenkTQM855L_80MHz_config	\
4697ebf7443SwdenkTQM860L_config		\
4707ebf7443SwdenkTQM860L_66MHz_config	\
4717ebf7443SwdenkTQM860L_80MHz_config	\
472d126bfbdSwdenkTQM862L_config		\
473d126bfbdSwdenkTQM862L_66MHz_config	\
47473a8b27cSwdenkTQM862L_80MHz_config	\
475ae3af05eSwdenkTQM823M_config		\
476ae3af05eSwdenkTQM823M_66MHz_config	\
477ae3af05eSwdenkTQM823M_80MHz_config	\
478ae3af05eSwdenkTQM850M_config		\
479ae3af05eSwdenkTQM850M_66MHz_config	\
480ae3af05eSwdenkTQM850M_80MHz_config	\
481f12e568cSwdenkTQM855M_config		\
482f12e568cSwdenkTQM855M_66MHz_config	\
483f12e568cSwdenkTQM855M_80MHz_config	\
484f12e568cSwdenkTQM860M_config		\
485f12e568cSwdenkTQM860M_66MHz_config	\
486f12e568cSwdenkTQM860M_80MHz_config	\
487f12e568cSwdenkTQM862M_config		\
488f12e568cSwdenkTQM862M_66MHz_config	\
489f12e568cSwdenkTQM862M_80MHz_config	\
490d4ca31c4SwdenkTQM862M_100MHz_config	\
491c178d3daSwdenkTQM866M_config:		unconfig
4927ebf7443Swdenk	@ >include/config.h
4937ebf7443Swdenk	@[ -z "$(findstring _66MHz,$@)" ] || \
4947ebf7443Swdenk		{ echo "#define CONFIG_66MHz"		>>include/config.h ; \
4957ebf7443Swdenk		  echo "... with 66MHz system clock" ; \
4967ebf7443Swdenk		}
4977ebf7443Swdenk	@[ -z "$(findstring _80MHz,$@)" ] || \
4987ebf7443Swdenk		{ echo "#define CONFIG_80MHz"		>>include/config.h ; \
4997ebf7443Swdenk		  echo "... with 80MHz system clock" ; \
5007ebf7443Swdenk		}
50173a8b27cSwdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
50273a8b27cSwdenk		{ echo "#define CONFIG_100MHz"		>>include/config.h ; \
50373a8b27cSwdenk		  echo "... with 100MHz system clock" ; \
50473a8b27cSwdenk		}
505d4ca31c4Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
506d4ca31c4Swdenk		{ echo "#define CONFIG_133MHz"		>>include/config.h ; \
507d4ca31c4Swdenk		  echo "... with 133MHz system clock" ; \
508d4ca31c4Swdenk		}
5097ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
5107ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
511fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
5127ebf7443Swdenk		  echo "... with LCD display" ; \
5137ebf7443Swdenk		}
5147ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
5157ebf7443Swdenk
5167ebf7443SwdenkTTTech_config:	unconfig
5177ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
5187ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
5197ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
5207ebf7443Swdenk
521608c9146Swdenkv37_config:	unconfig
522608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
523608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
524608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
525608c9146Swdenk
52691e940d9Sdzuwtk_config:	unconfig
52791e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
52891e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
52991e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
53091e940d9Sdzu
5317ebf7443Swdenk#########################################################################
5327ebf7443Swdenk## PPC4xx Systems
5337ebf7443Swdenk#########################################################################
534fbe4b5cbSwdenkxtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
5357ebf7443Swdenk
5367ebf7443SwdenkADCIOP_config:	unconfig
5377ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
5387ebf7443Swdenk
5397ebf7443SwdenkAR405_config:	unconfig
5407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
5417ebf7443Swdenk
542549826eaSstroeseASH405_config:	unconfig
543549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
544549826eaSstroese
545549826eaSstroeseBUBINGA405EP_config:unconfig
546549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
547549826eaSstroese
5487ebf7443SwdenkCANBT_config:	unconfig
5497ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
5507ebf7443Swdenk
5517ebf7443SwdenkCPCI405_config	\
552549826eaSstroeseCPCI4052_config	\
553549826eaSstroeseCPCI405AB_config:	unconfig
5547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
5557ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
5567ebf7443Swdenk
5577ebf7443SwdenkCPCI440_config:	unconfig
5587ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
5597ebf7443Swdenk
5607ebf7443SwdenkCPCIISER4_config:	unconfig
5617ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
5627ebf7443Swdenk
5637ebf7443SwdenkCRAYL1_config:unconfig
5647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
5657ebf7443Swdenk
566cd0a9de6Swdenkcsb272_config:	unconfig
567cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
568cd0a9de6Swdenk
5697ebf7443SwdenkDASA_SIM_config: unconfig
5707ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
5717ebf7443Swdenk
57272cd5aa7SstroeseDP405_config:	unconfig
57372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
57472cd5aa7Sstroese
5757ebf7443SwdenkDU405_config:	unconfig
5767ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
5777ebf7443Swdenk
5787ebf7443SwdenkEBONY_config:unconfig
5797ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ebony
5807ebf7443Swdenk
5817ebf7443SwdenkERIC_config:unconfig
5827ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
5837ebf7443Swdenk
584d1cbe85bSwdenkEXBITGEN_config:unconfig
585d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
586d1cbe85bSwdenk
58772cd5aa7SstroeseHUB405_config:	unconfig
58872cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
58972cd5aa7Sstroese
5907ebf7443SwdenkMIP405_config:unconfig
5917ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
5927ebf7443Swdenk
593f3e0de60SwdenkMIP405T_config:unconfig
594f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
595f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
596f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
597f3e0de60Swdenk
5987ebf7443SwdenkML2_config:unconfig
5997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
6007ebf7443Swdenk
601028ab6b5Swdenkml300_config:unconfig
602028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
603028ab6b5Swdenk
6040e6d798cSwdenkOCOTEA_config:unconfig
6050e6d798cSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocotea
6060e6d798cSwdenk
6077ebf7443SwdenkOCRTC_config		\
6087ebf7443SwdenkORSG_config:	unconfig
6097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
6107ebf7443Swdenk
6117ebf7443SwdenkPCI405_config:	unconfig
6127ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
6137ebf7443Swdenk
6147ebf7443SwdenkPIP405_config:unconfig
6157ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
6167ebf7443Swdenk
61772cd5aa7SstroesePLU405_config:	unconfig
61872cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
61972cd5aa7Sstroese
620549826eaSstroesePMC405_config:	unconfig
621549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
622549826eaSstroese
623fbe4b5cbSwdenkPPChameleonEVB_MODEL_BA_config	\
624fbe4b5cbSwdenkPPChameleonEVB_MODEL_ME_config	\
625fbe4b5cbSwdenkPPChameleonEVB_MODEL_HI_config	\
62612f34241SwdenkPPChameleonEVB_config:	unconfig
627fbe4b5cbSwdenk	@ >include/config.h
628fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_BA,$@)" ] || \
629fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
630fbe4b5cbSwdenk		  echo "... BASIC model" ; \
631fbe4b5cbSwdenk		}
632fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_ME,$@)" ] || \
633fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
634fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
635fbe4b5cbSwdenk		}
636fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_HI,$@)" ] || \
637fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
638fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
639fbe4b5cbSwdenk		}
640fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
64112f34241Swdenk
64272cd5aa7SstroeseVOH405_config:	unconfig
64372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
64472cd5aa7Sstroese
6457ebf7443SwdenkW7OLMC_config	\
6467ebf7443SwdenkW7OLMG_config: unconfig
6477ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
6487ebf7443Swdenk
6497ebf7443SwdenkWALNUT405_config:unconfig
6507ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx walnut405
6517ebf7443Swdenk
652ba56f625SwdenkXPEDITE1K_config:unconfig
653ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
654ba56f625Swdenk
6557ebf7443Swdenk#########################################################################
6567ebf7443Swdenk## MPC824x Systems
6577ebf7443Swdenk#########################################################################
658*efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
6593bac3513Swdenk
6600332990bSwdenkA3000_config: unconfig
6610332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
6620332990bSwdenk
6637ebf7443SwdenkBMW_config: unconfig
6647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
6657ebf7443Swdenk
6663bac3513SwdenkCPC45_config	\
6673bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
6683bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
6693bac3513Swdenk	@cd ./include ;				\
6703bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
6713bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
6723bac3513Swdenk		echo "... booting from 8-bit flash" ; \
6733bac3513Swdenk	else \
6743bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
6753bac3513Swdenk		echo "... booting from 64-bit flash" ; \
6763bac3513Swdenk	fi; \
6773bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
6783bac3513Swdenk
6797ebf7443SwdenkCU824_config: unconfig
6807ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
6817ebf7443Swdenk
68280885a9dSwdenkeXalion_config: unconfig
68380885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
68480885a9dSwdenk
6857ebf7443SwdenkMOUSSE_config: unconfig
6867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
6877ebf7443Swdenk
6887ebf7443SwdenkMUSENKI_config: unconfig
6897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
6907ebf7443Swdenk
691b4676a25SwdenkMVBLUE_config:	unconfig
692b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
693b4676a25Swdenk
6947ebf7443SwdenkOXC_config: unconfig
6957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
6967ebf7443Swdenk
6977ebf7443SwdenkPN62_config: unconfig
6987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
6997ebf7443Swdenk
7007ebf7443SwdenkSandpoint8240_config: unconfig
7017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
7027ebf7443Swdenk
7037ebf7443SwdenkSandpoint8245_config: unconfig
7047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
7057ebf7443Swdenk
706d1cbe85bSwdenkSL8245_config: unconfig
707d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
708d1cbe85bSwdenk
7097ebf7443Swdenkutx8245_config: unconfig
7107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
7117ebf7443Swdenk
7127ebf7443Swdenk#########################################################################
7137ebf7443Swdenk## MPC8260 Systems
7147ebf7443Swdenk#########################################################################
7157ebf7443Swdenk
71654387ac9Swdenkatc_config:	unconfig
71754387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
71854387ac9Swdenk
7197ebf7443Swdenkcogent_mpc8260_config:	unconfig
7207ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
7217ebf7443Swdenk
7227ebf7443SwdenkCPU86_config	\
7237ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
7247ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
7257ebf7443Swdenk	@cd ./include ;				\
7267ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
7277ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
7287ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
7297ebf7443Swdenk	else \
7307ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
7317ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
7327ebf7443Swdenk	fi; \
7337ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
7347ebf7443Swdenk
7357ebf7443Swdenkep8260_config:	unconfig
7367ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
7377ebf7443Swdenk
7387ebf7443Swdenkgw8260_config:	unconfig
7397ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
7407ebf7443Swdenk
7417ebf7443Swdenkhymod_config:	unconfig
7427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
7437ebf7443Swdenk
7447ebf7443SwdenkIPHASE4539_config:	unconfig
7457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
7467ebf7443Swdenk
7477ebf7443SwdenkMPC8260ADS_config:	unconfig
7487ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
7497ebf7443Swdenk
750db2f721fSwdenkMPC8266ADS_config:	unconfig
751db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
752db2f721fSwdenk
753*efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
75410f67017SwdenkPM825_config	\
755*efa329cbSwdenkPM825_ROMBOOT_config	\
756*efa329cbSwdenkPM825_BIGFLASH_config	\
757*efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
7587ebf7443SwdenkPM826_config	\
759*efa329cbSwdenkPM826_ROMBOOT_config	\
760*efa329cbSwdenkPM826_BIGFLASH_config	\
761*efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
762*efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
763*efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
7647ebf7443Swdenk	else \
765*efa329cbSwdenk		>include/config.h ; \
766*efa329cbSwdenk	fi
767*efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
768*efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
769*efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
770*efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
771*efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
772*efa329cbSwdenk			echo "... with 32 MB Flash" ; \
773*efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
7747ebf7443Swdenk		fi; \
775*efa329cbSwdenk	else \
776*efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
777*efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
778*efa329cbSwdenk			echo "... with 32 MB Flash" ; \
779*efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
780*efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
781*efa329cbSwdenk		else \
782*efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
783*efa329cbSwdenk		fi; \
784*efa329cbSwdenk	fi
785*efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
786*efa329cbSwdenk
787*efa329cbSwdenkPM828_config	\
788*efa329cbSwdenkPM828_PCI_config	\
789*efa329cbSwdenkPM828_ROMBOOT_config	\
790*efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
791*efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
792*efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
793*efa329cbSwdenk		echo "... with PCI enabled" ; \
794*efa329cbSwdenk	else \
795*efa329cbSwdenk		>include/config.h ; \
796*efa329cbSwdenk	fi
797*efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
798*efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
799*efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
800*efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
801*efa329cbSwdenk	fi
802*efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
8037ebf7443Swdenk
8047ebf7443Swdenkppmc8260_config:	unconfig
8057ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
8067ebf7443Swdenk
8077ebf7443SwdenkRPXsuper_config:	unconfig
8087ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
8097ebf7443Swdenk
8107ebf7443Swdenkrsdproto_config:	unconfig
8117ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
8127ebf7443Swdenk
8137ebf7443Swdenksacsng_config:	unconfig
8147ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
8157ebf7443Swdenk
8167ebf7443Swdenksbc8260_config:	unconfig
8177ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
8187ebf7443Swdenk
8197ebf7443SwdenkSCM_config:		unconfig
8207ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
8217ebf7443Swdenk
82227b207fdSwdenkTQM8255_AA_config \
82327b207fdSwdenkTQM8260_AA_config \
82427b207fdSwdenkTQM8260_AB_config \
82527b207fdSwdenkTQM8260_AC_config \
82627b207fdSwdenkTQM8260_AD_config \
82727b207fdSwdenkTQM8260_AE_config \
82827b207fdSwdenkTQM8260_AF_config \
82927b207fdSwdenkTQM8260_AG_config \
83027b207fdSwdenkTQM8260_AH_config \
83127b207fdSwdenkTQM8265_AA_config:  unconfig
83227b207fdSwdenk	@case "$@" in \
83327b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
83427b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
83527b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
83627b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
83727b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
83827b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
83927b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
84027b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
84127b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
84227b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
84327b207fdSwdenk	esac; \
84427b207fdSwdenk	>include/config.h ; \
84527b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
84627b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
84727b207fdSwdenk	fi; \
84827b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
84927b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
85027b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
8517ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
85227b207fdSwdenk		echo "... with L2 Cache support" ; \
8537ebf7443Swdenk	else \
8547ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
8557ebf7443Swdenk		echo "... without L2 Cache support" ; \
85627b207fdSwdenk	fi; \
85727b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
85827b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
85927b207fdSwdenk		echo "... with 60x Bus Mode" ; \
86027b207fdSwdenk	else \
86127b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
86227b207fdSwdenk		echo "... without 60x Bus Mode" ; \
8637ebf7443Swdenk	fi
8644532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
8657ebf7443Swdenk
86654387ac9SwdenkZPC1900_config: unconfig
86754387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
8687aa78614Swdenk
8694e5ca3ebSwdenk#========================================================================
8704e5ca3ebSwdenk# M68K
8714e5ca3ebSwdenk#========================================================================
8724e5ca3ebSwdenk#########################################################################
8734e5ca3ebSwdenk## Coldfire
8744e5ca3ebSwdenk#########################################################################
8754e5ca3ebSwdenk
8764e5ca3ebSwdenkM5272C3_config :		unconfig
877bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
8784e5ca3ebSwdenk
8794e5ca3ebSwdenkM5282EVB_config :		unconfig
880bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
8814e5ca3ebSwdenk
8827ebf7443Swdenk#########################################################################
88342d1f039Swdenk## MPC85xx Systems
88442d1f039Swdenk#########################################################################
88542d1f039Swdenk
88642d1f039SwdenkMPC8540ADS_config:      unconfig
88742d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
88842d1f039Swdenk
88942d1f039SwdenkMPC8560ADS_config:      unconfig
89042d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
89142d1f039Swdenk
89242d1f039Swdenk#########################################################################
8937ebf7443Swdenk## 74xx/7xx Systems
8947ebf7443Swdenk#########################################################################
8957ebf7443Swdenk
896c7de829cSwdenkAmigaOneG3SE_config:	unconfig
897c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
898c7de829cSwdenk
89915647dc7SwdenkBAB7xx_config: unconfig
90015647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
90115647dc7Swdenk
9023a473b2aSwdenkDB64360_config:  unconfig
9033a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
9043a473b2aSwdenk
9053a473b2aSwdenkDB64460_config:  unconfig
9063a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
9073a473b2aSwdenk
90815647dc7Swdenkdebris_config: unconfig
90915647dc7Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
91015647dc7Swdenk
91115647dc7SwdenkELPPC_config: unconfig
91215647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
91315647dc7Swdenk
9147ebf7443SwdenkEVB64260_config	\
9157ebf7443SwdenkEVB64260_750CX_config:	unconfig
9167ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
9177ebf7443Swdenk
91815647dc7SwdenkP3G4_config: unconfig
9197ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
9207ebf7443Swdenk
9217ebf7443SwdenkPCIPPC2_config \
9227ebf7443SwdenkPCIPPC6_config: unconfig
9237ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
9247ebf7443Swdenk
92515647dc7SwdenkZUMA_config:	unconfig
92612f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
92712f34241Swdenk
9287ebf7443Swdenk#========================================================================
9297ebf7443Swdenk# ARM
9307ebf7443Swdenk#========================================================================
9317ebf7443Swdenk#########################################################################
9327ebf7443Swdenk## StrongARM Systems
9337ebf7443Swdenk#########################################################################
9347ebf7443Swdenk
9357ebf7443Swdenkdnp1110_config	:	unconfig
9367ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
9377ebf7443Swdenk
938855a496fSwdenkgcplus_config	:	unconfig
939855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
940855a496fSwdenk
941855a496fSwdenklart_config	:	unconfig
942855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
943855a496fSwdenk
9447ebf7443Swdenkshannon_config	:	unconfig
9457ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
9467ebf7443Swdenk
9477ebf7443Swdenk#########################################################################
9482e5983d2Swdenk## ARM92xT Systems
9497ebf7443Swdenk#########################################################################
9507ebf7443Swdenk
951b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
95243d9616cSwdenk
95363e73c9aSwdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
95463e73c9aSwdenk
955232c150aSwdenkSX1_config :		unconfig
956232c150aSwdenk	@./mkconfig $(@:_config=) arm arm925t sx1
957232c150aSwdenk
9583d3befa7Swdenkintegratorcp_config :	unconfig
9593d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorcp
9603d3befa7Swdenk
9613d3befa7Swdenkintegratorap_config :	unconfig
9623d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorap
9633d3befa7Swdenk
9643d3befa7Swdenkversatile_config :	unconfig
9653d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs versatile
9663d3befa7Swdenk
9672e5983d2Swdenkomap1510inn_config :	unconfig
9682e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
9692e5983d2Swdenk
97063e73c9aSwdenkomap1610inn_config \
97163e73c9aSwdenkomap1610inn_cs0boot_config \
97263e73c9aSwdenkomap1610inn_cs3boot_config \
97363e73c9aSwdenkomap1610h2_config \
97463e73c9aSwdenkomap1610h2_cs0boot_config \
97563e73c9aSwdenkomap1610h2_cs3boot_config :	unconfig
97663e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
97763e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
97863e73c9aSwdenk		echo "Configured for CS0 boot"; \
97963e73c9aSwdenk	else \
98063e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
98163e73c9aSwdenk		echo "Configured for CS3 boot"; \
98263e73c9aSwdenk	fi;
98363e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
9846f21347dSwdenk
9857ebf7443Swdenksmdk2400_config	:	unconfig
9867ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400
9877ebf7443Swdenk
9887ebf7443Swdenksmdk2410_config	:	unconfig
9897ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410
9907ebf7443Swdenk
991b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
99243d9616cSwdenktrab_config \
993b0639ca3Swdenktrab_bigram_config \
994b0639ca3Swdenktrab_bigflash_config \
995f54ebdfaSwdenktrab_old_config:	unconfig
99643d9616cSwdenk	@ >include/config.h
997b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
998b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
999b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1000b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1001b0639ca3Swdenk		}
1002b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1003b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1004b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1005b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1006a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1007b0639ca3Swdenk		}
1008f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1009b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1010b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1011b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1012a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
101343d9616cSwdenk		}
101443d9616cSwdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
10157ebf7443Swdenk
10161cb8e980SwdenkVCMA9_config	:	unconfig
10171cb8e980Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl
10181cb8e980Swdenk
1019074cff0dSwdenk
1020074cff0dSwdenk#########################################################################
1021074cff0dSwdenk## S3C44B0 Systems
1022074cff0dSwdenk#########################################################################
1023074cff0dSwdenk
1024074cff0dSwdenkB2_config	:	unconfig
1025074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1026074cff0dSwdenk
10277ebf7443Swdenk#########################################################################
10287ebf7443Swdenk## ARM720T Systems
10297ebf7443Swdenk#########################################################################
10307ebf7443Swdenk
10317ebf7443Swdenkimpa7_config	:	unconfig
10327ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
10337ebf7443Swdenk
10347ebf7443Swdenkep7312_config	:	unconfig
10357ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
10367ebf7443Swdenk
10372d1a537dSwdenkmodnet50_config :	unconfig
10382d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
10392d1a537dSwdenk
10407ebf7443Swdenk#########################################################################
1041d9df1f4eSwdenk## AT91RM9200 Systems
1042d9df1f4eSwdenk#########################################################################
1043d9df1f4eSwdenk
1044d9df1f4eSwdenkat91rm9200dk_config	:	unconfig
1045d9df1f4eSwdenk	@./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
1046d9df1f4eSwdenk
1047d9df1f4eSwdenk#########################################################################
104843d9616cSwdenk## XScale Systems
10497ebf7443Swdenk#########################################################################
10507ebf7443Swdenk
10517ebf7443Swdenkcradle_config	:	unconfig
10524c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
10537ebf7443Swdenk
10547ebf7443Swdenkcsb226_config	:	unconfig
10554c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
10567ebf7443Swdenk
105743d9616cSwdenkinnokom_config	:	unconfig
10584c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
105943d9616cSwdenk
10602d5b561eSwdenkixdp425_config	:	unconfig
10612d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
10622d5b561eSwdenk
106343d9616cSwdenklubbock_config	:	unconfig
10644c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
106543d9616cSwdenk
106652f52c14Swdenklogodl_config	:	unconfig
106752f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
106852f52c14Swdenk
10693e38691eSwdenkwepep250_config	:	unconfig
10704c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
10713e38691eSwdenk
1072*efa329cbSwdenkxm250_config	:	unconfig
1073*efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1074*efa329cbSwdenk
10752262cfeeSwdenk#========================================================================
10762262cfeeSwdenk# i386
10772262cfeeSwdenk#========================================================================
10782262cfeeSwdenk#########################################################################
10792262cfeeSwdenk## AMD SC520 CDP
10802262cfeeSwdenk#########################################################################
10812262cfeeSwdenksc520_cdp_config	:	unconfig
10822262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
10832262cfeeSwdenk
10847a8e9bedSwdenksc520_spunk_config	:	unconfig
10857a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
10867a8e9bedSwdenk
10877a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
10887a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
10897a8e9bedSwdenk
109043d9616cSwdenk#========================================================================
109143d9616cSwdenk# MIPS
109243d9616cSwdenk#========================================================================
10937ebf7443Swdenk#########################################################################
109443d9616cSwdenk## MIPS32 4Kc
109543d9616cSwdenk#########################################################################
109643d9616cSwdenk
1097e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1098e0ac62d7Swdenk
1099e0ac62d7Swdenkincaip_100MHz_config	\
1100e0ac62d7Swdenkincaip_133MHz_config	\
1101e0ac62d7Swdenkincaip_150MHz_config	\
110243d9616cSwdenkincaip_config: unconfig
1103e0ac62d7Swdenk	@ >include/config.h
1104e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1105e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1106e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1107e0ac62d7Swdenk		}
1108e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1109e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1110e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1111e0ac62d7Swdenk		}
1112e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1113e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1114e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1115e0ac62d7Swdenk		}
1116e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1117e0ac62d7Swdenk
1118f4863a7aSwdenktb0229_config: unconfig
1119f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1120f4863a7aSwdenk
1121e0ac62d7Swdenk#########################################################################
1122e0ac62d7Swdenk## MIPS64 5Kc
1123e0ac62d7Swdenk#########################################################################
112443d9616cSwdenk
11253e38691eSwdenkpurple_config :		unconfig
11263e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
112743d9616cSwdenk
11284a551709Swdenk#========================================================================
11294a551709Swdenk# Nios
11304a551709Swdenk#========================================================================
11314a551709Swdenk#########################################################################
11324a551709Swdenk## Nios32
11334a551709Swdenk#########################################################################
11344a551709Swdenk
1135c935d3bdSwdenkDK1C20_safe_32_config		\
1136c935d3bdSwdenkDK1C20_standard_32_config	\
11374a551709SwdenkDK1C20_config:	unconfig
1138c935d3bdSwdenk	@ >include/config.h
1139c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1140c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1141c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1142c935d3bdSwdenk		}
1143c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1144c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1145c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1146c935d3bdSwdenk		}
1147c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1148c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1149c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1150c935d3bdSwdenk		}
1151c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1152c935d3bdSwdenk
1153c935d3bdSwdenkDK1S10_safe_32_config		\
1154c935d3bdSwdenkDK1S10_standard_32_config	\
1155ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1156c935d3bdSwdenkDK1S10_config:	unconfig
1157c935d3bdSwdenk	@ >include/config.h
1158c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1159c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1160c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1161c935d3bdSwdenk		}
1162c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1163c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1164c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1165c935d3bdSwdenk		}
1166ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1167ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1168ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1169ec4c544bSwdenk		}
1170c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1171c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1172c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1173c935d3bdSwdenk		}
1174c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
11754a551709Swdenk
1176aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1177aaf224abSwdenkADNPESC1_base_32_config		\
1178aaf224abSwdenkADNPESC1_config: unconfig
1179aaf224abSwdenk	@ >include/config.h
1180aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1181aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1182aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1183aaf224abSwdenk		}
1184aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1185aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1186aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1187aaf224abSwdenk		}
1188aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1189aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1190aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1191aaf224abSwdenk		}
1192aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1193aaf224abSwdenk
11944a551709Swdenk
11953e38691eSwdenk#########################################################################
1196a2663ea4Swdenk## MIPS32 AU1X00
11975da627a4Swdenk#########################################################################
1198a2663ea4Swdenkdbau1000_config		: 	unconfig
1199a2663ea4Swdenk	@ >include/config.h
1200a2663ea4Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
1201a2663ea4Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1202a2663ea4Swdenk
1203a2663ea4Swdenkdbau1100_config		: 	unconfig
1204a2663ea4Swdenk	@ >include/config.h
1205a2663ea4Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
1206a2663ea4Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1207a2663ea4Swdenk
1208a2663ea4Swdenkdbau1500_config		: 	unconfig
1209a2663ea4Swdenk	@ >include/config.h
1210a2663ea4Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
1211a2663ea4Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
12125da627a4Swdenk
12135da627a4Swdenk#########################################################################
12143e38691eSwdenk#########################################################################
12157ebf7443Swdenk
12167ebf7443Swdenkclean:
12177ebf7443Swdenk	find . -type f \
12187ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
12197ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
12207ebf7443Swdenk		| xargs rm -f
122185ec0bccSwdenk	rm -f examples/hello_world examples/timer \
12223e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
12237a8e9bedSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom
12247a8e9bedSwdenk
12257ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
12267ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
12277ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1228228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
12297f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
12305cf9da48Swdenk	rm -f board/trab/trab_fkt board/*/config.tmp
12317ebf7443Swdenk
12327ebf7443Swdenkclobber:	clean
12337ebf7443Swdenk	find . -type f \
12347ebf7443Swdenk		\( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
12357ebf7443Swdenk		-print \
12367ebf7443Swdenk		| xargs rm -f
12377ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
12387ebf7443Swdenk	rm -fr *.*~
1239bdccc4feSwdenk	rm -f u-boot u-boot.map $(ALL)
1240228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
12413e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1242b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
12437ebf7443Swdenk
12447ebf7443Swdenkmrproper \
12457ebf7443Swdenkdistclean:	clobber unconfig
12467ebf7443Swdenk
12477ebf7443Swdenkbackup:
12487ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
12497ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
12507ebf7443Swdenk
12517ebf7443Swdenk#########################################################################
1252