xref: /openbmc/u-boot/Makefile (revision 03f5c550)
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
481d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
497ebf7443Swdenk# load other configuration
507ebf7443Swdenkinclude $(TOPDIR)/config.mk
517ebf7443Swdenk
527ebf7443Swdenkifndef CROSS_COMPILE
537ebf7443Swdenkifeq ($(HOSTARCH),ppc)
547ebf7443SwdenkCROSS_COMPILE =
557ebf7443Swdenkelse
567ebf7443Swdenkifeq ($(ARCH),ppc)
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
1041d9f4105Swdenkifdef SOC
1051d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1061d9f4105Swdenkendif
1077ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
108518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
109518e2e1aSwdenk	fs/reiserfs/libreiserfs.a
1107ebf7443SwdenkLIBS += net/libnet.a
1117ebf7443SwdenkLIBS += disk/libdisk.a
1127ebf7443SwdenkLIBS += rtc/librtc.a
1137ebf7443SwdenkLIBS += dtt/libdtt.a
1147ebf7443SwdenkLIBS += drivers/libdrivers.a
1157152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1167ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1177ebf7443SwdenkLIBS += common/libcommon.a
1189fd5e31fSwdenk.PHONY : $(LIBS)
119a8c7c708Swdenk
1204f7cb08eSwdenk# Add GCC lib
1213d3befa7SwdenkPLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1223d3befa7Swdenk
1237ebf7443Swdenk
124a8c7c708Swdenk# The "tools" are needed early, so put this first
125a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
126a8c7c708SwdenkSUBDIRS	= tools \
127a8c7c708Swdenk	  examples \
128a8c7c708Swdenk	  post \
129a8c7c708Swdenk	  post/cpu
130b028f715Swdenk.PHONY : $(SUBDIRS)
131a8c7c708Swdenk
1327ebf7443Swdenk#########################################################################
133bdccc4feSwdenk#########################################################################
1347ebf7443Swdenk
135bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1367ebf7443Swdenk
137bdccc4feSwdenkall:		$(ALL)
1387ebf7443Swdenk
1397ebf7443Swdenku-boot.srec:	u-boot
1407ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1417ebf7443Swdenk
1427ebf7443Swdenku-boot.bin:	u-boot
1437ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1447ebf7443Swdenk
145bdccc4feSwdenku-boot.img:	u-boot.bin
146bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
147bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
148bdccc4feSwdenk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
149bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
150bdccc4feSwdenk		-d $< $@
151bdccc4feSwdenk
1527ebf7443Swdenku-boot.dis:	u-boot
1537ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1547ebf7443Swdenk
155a8c7c708Swdenku-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1568bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1578bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1587152b1d0Swdenk			--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
159b2184c31Swdenk			-Map u-boot.map -o u-boot
1607ebf7443Swdenk
161a8c7c708Swdenk$(LIBS):
162a8c7c708Swdenk		$(MAKE) -C `dirname $@`
163a8c7c708Swdenk
164a8c7c708Swdenk$(SUBDIRS):
165b028f715Swdenk		$(MAKE) -C $@ all
1667ebf7443Swdenk
1678f713fdfSdzugdbtools:
1688f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
1698f713fdfSdzu
1707ebf7443Swdenkdepend dep:
1717ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
1727ebf7443Swdenk
1737ebf7443Swdenktags:
1747ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
175bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
176bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
177bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
1787ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1797ebf7443Swdenk
1807ebf7443Swdenketags:
1817ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
182eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
183eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
184eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
1857ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1867ebf7443Swdenk
1877ebf7443SwdenkSystem.map:	u-boot
1887ebf7443Swdenk		@$(NM) $< | \
1897ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1907ebf7443Swdenk		sort > System.map
1917ebf7443Swdenk
1927ebf7443Swdenk#########################################################################
1937ebf7443Swdenkelse
1947ebf7443Swdenkall install u-boot u-boot.srec depend dep:
1957ebf7443Swdenk	@echo "System not configured - see README" >&2
1967ebf7443Swdenk	@ exit 1
1977ebf7443Swdenkendif
1987ebf7443Swdenk
1997ebf7443Swdenk#########################################################################
2007ebf7443Swdenk
2017ebf7443Swdenkunconfig:
20217d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
2037ebf7443Swdenk
2047ebf7443Swdenk#========================================================================
2057ebf7443Swdenk# PowerPC
2067ebf7443Swdenk#========================================================================
2070db5bca8Swdenk
2080db5bca8Swdenk#########################################################################
2090db5bca8Swdenk## MPC5xx Systems
2100db5bca8Swdenk#########################################################################
2110db5bca8Swdenk
2120db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2130db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2140db5bca8Swdenk
215b6e4c403SwdenkPATI_config:		unconfig
216b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
217b6e4c403Swdenk
2187ebf7443Swdenk#########################################################################
219945af8d7Swdenk## MPC5xxx Systems
220945af8d7Swdenk#########################################################################
221e35745bbSwdenkLite5200_config				\
222e35745bbSwdenkLite5200_LOWBOOT_config			\
223e35745bbSwdenkLite5200_LOWBOOT08_config		\
224e35745bbSwdenkicecube_5200_config			\
225e35745bbSwdenkicecube_5200_LOWBOOT_config		\
226e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
227b2001f27Swdenkicecube_5200_DDR_config 		\
22879d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
22979d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
230e35745bbSwdenkicecube_5100_config:			unconfig
231945af8d7Swdenk	@ >include/config.h
23217d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
23317d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
23417d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
23517d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
23617d704ebSwdenk		  fi ; \
2375cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2385cf9da48Swdenk		}
2395cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2405cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2415cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
24217d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2435cf9da48Swdenk		}
244b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
245b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
246b2001f27Swdenk		  echo "... DDR memory revision" ; \
247b2001f27Swdenk		}
248d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
249d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
250d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
251d4ca31c4Swdenk		}
252a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
253945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
254945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
255945af8d7Swdenk		}
256945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
257945af8d7Swdenk
25889394047SwdenkPM520_config \
25989394047SwdenkPM520_DDR_config \
26089394047SwdenkPM520_ROMBOOT_config \
26189394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
26289394047Swdenk	@ >include/config.h
26389394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
26489394047Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
26589394047Swdenk		  echo "... DDR memory revision" ; \
26689394047Swdenk		}
26789394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
26889394047Swdenk		{ echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
26989394047Swdenk		  echo "... booting from 8-bit flash" ; \
27089394047Swdenk		}
27189394047Swdenk	@./mkconfig -a PM520 ppc mpc5xxx pm520
27289394047Swdenk
273d4ca31c4SwdenkMINI5200_config	\
274d4ca31c4SwdenkEVAL5200_config	\
275d4ca31c4SwdenkTOP5200_config:	unconfig
276d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
277d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
278d4ca31c4Swdenk
2796c7a1408SwdenkTotal5100_config		\
2806c7a1408SwdenkTotal5200_config		\
2816c7a1408SwdenkTotal5200_lowboot_config	\
2826c7a1408SwdenkTotal5200_Rev2_config		\
2836c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
2846c7a1408Swdenk	@ >include/config.h
2856c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
2866c7a1408Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
2876c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
2886c7a1408Swdenk		}
2896c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
2906c7a1408Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
2916c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
2926c7a1408Swdenk		}
2936c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
2946c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>include/config.h ; \
2956c7a1408Swdenk		  echo "... revision 1 board" ; \
2966c7a1408Swdenk		}
2976c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
2986c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>include/config.h ; \
2996c7a1408Swdenk		  echo "... revision 2 board" ; \
3006c7a1408Swdenk		}
3016c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
3026c7a1408Swdenk		{ echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
3036c7a1408Swdenk		  echo "... with lowboot configuration" ; \
3046c7a1408Swdenk		}
3056c7a1408Swdenk	@./mkconfig -a Total5200 ppc mpc5xxx total5200
3066c7a1408Swdenk
30756523f12SwdenkTQM5200_AA_config	\
30856523f12SwdenkTQM5200_AB_config	\
30956523f12SwdenkTQM5200_AC_config	\
31056523f12SwdenkMiniFAP_config:	unconfig
31156523f12Swdenk	@ >include/config.h
31289394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
31356523f12Swdenk		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
31456523f12Swdenk		  echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
31589394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
31656523f12Swdenk		}
31756523f12Swdenk	@[ -z "$(findstring AA,$@)" ] || \
31856523f12Swdenk		{ echo "#define CONFIG_TQM5200_AA"	>>include/config.h ; \
31956523f12Swdenk		  echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
32056523f12Swdenk		}
32156523f12Swdenk	@[ -z "$(findstring AB,$@)" ] || \
32256523f12Swdenk		{ echo "#define CONFIG_TQM5200_AB"	>>include/config.h ; \
32356523f12Swdenk		  echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
32431a64923Swdenk		  echo "... with Graphics Controller"; \
32556523f12Swdenk		}
32656523f12Swdenk	@[ -z "$(findstring AC,$@)" ] || \
32756523f12Swdenk		{ echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
32856523f12Swdenk		  echo "... with 4 MB Flash, 128 MB SDRAM" ; \
32931a64923Swdenk		  echo "... with Graphics Controller"; \
33056523f12Swdenk		}
33156523f12Swdenk	@./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
33256523f12Swdenk
333945af8d7Swdenk#########################################################################
3347ebf7443Swdenk## MPC8xx Systems
3357ebf7443Swdenk#########################################################################
3367ebf7443Swdenk
3372d24a3a7SwdenkAdder_config    \
3382d24a3a7SwdenkAdder87x_config \
33926238132SwdenkAdderII_config  \
3402d24a3a7Swdenk	:		unconfig
34126238132Swdenk	$(if $(findstring AdderII,$@), \
3422d24a3a7Swdenk	@echo "#define CONFIG_MPC852T" > include/config.h)
3432d24a3a7Swdenk	@./mkconfig -a Adder ppc mpc8xx adder
3442d24a3a7Swdenk
345180d3f74SwdenkADS860_config     \
346180d3f74SwdenkFADS823_config    \
347180d3f74SwdenkFADS850SAR_config \
348180d3f74SwdenkMPC86xADS_config  \
3491114257cSwdenkMPC885ADS_config  \
350180d3f74SwdenkFADS860T_config:	unconfig
3517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
3527ebf7443Swdenk
3537ebf7443SwdenkAMX860_config	:	unconfig
3547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
3557ebf7443Swdenk
3567ebf7443Swdenkc2mon_config:		unconfig
3577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
3587ebf7443Swdenk
3597ebf7443SwdenkCCM_config:		unconfig
3607ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
3617ebf7443Swdenk
3627ebf7443Swdenkcogent_mpc8xx_config:	unconfig
3637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
3647ebf7443Swdenk
3653bac3513SwdenkELPT860_config:		unconfig
3663bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
3673bac3513Swdenk
3687ebf7443SwdenkESTEEM192E_config:	unconfig
3697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
3707ebf7443Swdenk
3717ebf7443SwdenkETX094_config	:	unconfig
3727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
3737ebf7443Swdenk
3747ebf7443SwdenkFLAGADM_config:	unconfig
3757ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
3767ebf7443Swdenk
3777aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
3787aa78614Swdenk
3797aa78614SwdenkGEN860T_SC_config	\
3807ebf7443SwdenkGEN860T_config: unconfig
3817aa78614Swdenk	@ >include/config.h
3827aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
3837aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
3847aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
3857aa78614Swdenk		}
3867aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
3877ebf7443Swdenk
3887ebf7443SwdenkGENIETV_config:	unconfig
3897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
3907ebf7443Swdenk
3917ebf7443SwdenkGTH_config:	unconfig
3927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
3937ebf7443Swdenk
3947ebf7443Swdenkhermes_config	:	unconfig
3957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
3967ebf7443Swdenk
397c40b2956SwdenkHMI10_config	:	unconfig
398c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
399c40b2956Swdenk
4007ebf7443SwdenkIAD210_config: unconfig
4017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
4027ebf7443Swdenk
4037ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
4047ebf7443Swdenk
4057ebf7443SwdenkICU862_100MHz_config	\
4067ebf7443SwdenkICU862_config: unconfig
4077ebf7443Swdenk	@ >include/config.h
4087ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
4097ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
4107ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
4117ebf7443Swdenk		}
4127ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
4137ebf7443Swdenk
4147ebf7443SwdenkIP860_config	:	unconfig
4157ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
4167ebf7443Swdenk
4177ebf7443SwdenkIVML24_256_config \
4187ebf7443SwdenkIVML24_128_config \
4197ebf7443SwdenkIVML24_config:	unconfig
4207ebf7443Swdenk	@ >include/config.h
4217ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
4227ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
4237ebf7443Swdenk		 }
4247ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
4257ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
4267ebf7443Swdenk		 }
4277ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
4287ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
4297ebf7443Swdenk		 }
4307ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
4317ebf7443Swdenk
4327ebf7443SwdenkIVMS8_256_config \
4337ebf7443SwdenkIVMS8_128_config \
4347ebf7443SwdenkIVMS8_config:	unconfig
4357ebf7443Swdenk	@ >include/config.h
4367ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
4377ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
4387ebf7443Swdenk		 }
4397ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
4407ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
4417ebf7443Swdenk		 }
4427ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
4437ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
4447ebf7443Swdenk		 }
4457ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
4467ebf7443Swdenk
44756f94be3SwdenkKUP4K_config	:	unconfig
4480608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
4490608e04dSwdenk
4500608e04dSwdenkKUP4X_config    :       unconfig
4510608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
45256f94be3Swdenk
4537ebf7443SwdenkLANTEC_config	:	unconfig
4547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
4557ebf7443Swdenk
4567ebf7443Swdenklwmon_config:		unconfig
4577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
4587ebf7443Swdenk
4597ebf7443SwdenkMBX_config	\
4607ebf7443SwdenkMBX860T_config:	unconfig
4617ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
4627ebf7443Swdenk
4637ebf7443SwdenkMHPC_config:		unconfig
4647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
4657ebf7443Swdenk
4667ebf7443SwdenkMVS1_config :		unconfig
4677ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
4687ebf7443Swdenk
469993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
470993cad93Swdenk
471993cad93SwdenkNETVIA_V2_config \
4727ebf7443SwdenkNETVIA_config:		unconfig
473993cad93Swdenk	@ >include/config.h
474993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
475993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
476993cad93Swdenk		  echo "... Version 1" ; \
477993cad93Swdenk		 }
478993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
479993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
480993cad93Swdenk		  echo "... Version 2" ; \
481993cad93Swdenk		 }
482993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
4837ebf7443Swdenk
484c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
485c26e454dSwdenk
486c26e454dSwdenkNETPHONE_V2_config \
48704a85b3bSwdenkNETPHONE_config:	unconfig
488c26e454dSwdenk	@ >include/config.h
489c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
490c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
491c26e454dSwdenk		 }
492c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
493c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
494c26e454dSwdenk		 }
495c26e454dSwdenk	@./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
49604a85b3bSwdenk
49779fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
49804a85b3bSwdenk
49979fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
50079fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
50179fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
50279fa88f3SwdenkNETTA_SWAPHOOK_config \
50379fa88f3SwdenkNETTA_ISDN_6412_config \
50404a85b3bSwdenkNETTA_ISDN_config \
50579fa88f3SwdenkNETTA_6412_config \
50604a85b3bSwdenkNETTA_config:		unconfig
50704a85b3bSwdenk	@ >include/config.h
50879fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
50904a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
51004a85b3bSwdenk		 }
51179fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
51279fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
51379fa88f3Swdenk		 }
51479fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
51579fa88f3Swdenk		 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
51679fa88f3Swdenk		 }
51779fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
51879fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
51979fa88f3Swdenk		 }
52079fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
52179fa88f3Swdenk		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
52279fa88f3Swdenk		 }
52379fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
52479fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
52579fa88f3Swdenk		 }
52604a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
52704a85b3bSwdenk
52879fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
52979fa88f3Swdenk
53079fa88f3SwdenkNETTA2_V2_config \
53179fa88f3SwdenkNETTA2_config:		unconfig
53279fa88f3Swdenk	@ >include/config.h
53379fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
53479fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
53579fa88f3Swdenk		 }
53679fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
53779fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
53879fa88f3Swdenk		 }
53979fa88f3Swdenk	@./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
54079fa88f3Swdenk
5417ca202f5SwdenkNC650_config:	unconfig
5427ca202f5Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nc650
5437ca202f5Swdenk
5447ebf7443SwdenkNX823_config:		unconfig
5457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
5467ebf7443Swdenk
5477ebf7443Swdenkpcu_e_config:		unconfig
5487ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
5497ebf7443Swdenk
5503bbc899fSwdenkQS850_config:	unconfig
5513bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5523bbc899fSwdenk
5533bbc899fSwdenkQS823_config:	unconfig
5543bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5553bbc899fSwdenk
5563bbc899fSwdenkQS860T_config:	unconfig
5573bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
5583bbc899fSwdenk
559da93ed81Swdenkquantum_config:	unconfig
560da93ed81Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx quantum
561da93ed81Swdenk
5627ebf7443SwdenkR360MPI_config:	unconfig
5637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
5647ebf7443Swdenk
565682011ffSwdenkRBC823_config:	unconfig
566682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
567682011ffSwdenk
5687ebf7443SwdenkRPXClassic_config:	unconfig
5697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
5707ebf7443Swdenk
5717ebf7443SwdenkRPXlite_config:		unconfig
5727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
5737ebf7443Swdenk
574e63c8ee3SwdenkRPXlite_DW_64_config  		\
575e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
576e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
577e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
578e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
579e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
580e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
581e63c8ee3SwdenkRPXlite_DW_config:         unconfig
582e63c8ee3Swdenk	@ >include/config.h
583e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
584e63c8ee3Swdenk		{ echo "#define RPXlite_64MHz"		>>include/config.h ; \
585e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
586e63c8ee3Swdenk		}
587e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
588e63c8ee3Swdenk		{ echo "#define CONFIG_LCD"          	>>include/config.h ; \
589e63c8ee3Swdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
590e63c8ee3Swdenk		  echo "... with LCD display ..."; \
591e63c8ee3Swdenk		}
592e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
593e63c8ee3Swdenk		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>include/config.h ; \
594e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
595e63c8ee3Swdenk		}
596e63c8ee3Swdenk	@./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
597e63c8ee3Swdenk
59873a8b27cSwdenkrmu_config:	unconfig
59973a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
60073a8b27cSwdenk
6017ebf7443SwdenkRRvision_config:	unconfig
6027ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
6037ebf7443Swdenk
6047ebf7443SwdenkRRvision_LCD_config:	unconfig
6057ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6067ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6077ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
6087ebf7443Swdenk
6097ebf7443SwdenkSM850_config	:	unconfig
6107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
6117ebf7443Swdenk
6127ebf7443SwdenkSPD823TS_config:	unconfig
6137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
6147ebf7443Swdenk
615dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
616dc7c9a1aSwdenk	@ >include/config.h
617dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
618dc7c9a1aSwdenk
6197ebf7443SwdenkSXNI855T_config:	unconfig
6207ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
6217ebf7443Swdenk
622db2f721fSwdenk# EMK MPC8xx based modules
623db2f721fSwdenkTOP860_config:		unconfig
624db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
625db2f721fSwdenk
6267ebf7443Swdenk# Play some tricks for configuration selection
627e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
628e9132ea9Swdenk# and only 823 boards may have LCD support
629e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
6307ebf7443Swdenk
6317ebf7443SwdenkFPS850L_config		\
632384ae025SwdenkFPS860L_config		\
633f12e568cSwdenkNSCU_config		\
6347ebf7443SwdenkTQM823L_config		\
6357ebf7443SwdenkTQM823L_LCD_config	\
6367ebf7443SwdenkTQM850L_config		\
6377ebf7443SwdenkTQM855L_config		\
6387ebf7443SwdenkTQM860L_config		\
639d126bfbdSwdenkTQM862L_config		\
640ae3af05eSwdenkTQM823M_config		\
641ae3af05eSwdenkTQM850M_config		\
642f12e568cSwdenkTQM855M_config		\
643f12e568cSwdenkTQM860M_config		\
644f12e568cSwdenkTQM862M_config		\
645c178d3daSwdenkTQM866M_config:		unconfig
6467ebf7443Swdenk	@ >include/config.h
6477ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
6487ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
649fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
6507ebf7443Swdenk		  echo "... with LCD display" ; \
6517ebf7443Swdenk		}
6527ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
6537ebf7443Swdenk
6547ebf7443SwdenkTTTech_config:	unconfig
6557ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6567ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6577ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
6587ebf7443Swdenk
659608c9146Swdenkv37_config:	unconfig
660608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
661608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
662608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
663608c9146Swdenk
66491e940d9Sdzuwtk_config:	unconfig
66591e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
66691e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
66791e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
66891e940d9Sdzu
6697ebf7443Swdenk#########################################################################
6707ebf7443Swdenk## PPC4xx Systems
6717ebf7443Swdenk#########################################################################
672e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
6737ebf7443Swdenk
6747ebf7443SwdenkADCIOP_config:	unconfig
6757ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
6767ebf7443Swdenk
6777ebf7443SwdenkAR405_config:	unconfig
6787ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
6797ebf7443Swdenk
680549826eaSstroeseASH405_config:	unconfig
681549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
682549826eaSstroese
683549826eaSstroeseBUBINGA405EP_config:	unconfig
684549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
685549826eaSstroese
6867ebf7443SwdenkCANBT_config:	unconfig
6877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
6887ebf7443Swdenk
6891d6f9720SwdenkCATcenter_config	\
6901d6f9720SwdenkCATcenter_25_config	\
6911d6f9720SwdenkCATcenter_33_config:	unconfig
69210767ccbSwdenk	@ echo "/* CATcenter uses PPChameleon Model ME */"  > include/config.h
69310767ccbSwdenk	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
6941d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
6951d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
6961d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
6971d6f9720Swdenk		}
6981d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
6991d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
7001d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
7011d6f9720Swdenk		}
70210767ccbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
70310767ccbSwdenk
7047ebf7443SwdenkCPCI405_config	\
705549826eaSstroeseCPCI4052_config	\
706549826eaSstroeseCPCI405AB_config:	unconfig
7077ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
7087ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
7097ebf7443Swdenk
7107ebf7443SwdenkCPCI440_config:	unconfig
7117ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
7127ebf7443Swdenk
7137ebf7443SwdenkCPCIISER4_config:	unconfig
7147ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
7157ebf7443Swdenk
7167ebf7443SwdenkCRAYL1_config:	unconfig
7177ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
7187ebf7443Swdenk
719cd0a9de6Swdenkcsb272_config:	unconfig
720cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
721cd0a9de6Swdenk
722aa245090Swdenkcsb472_config:	unconfig
723aa245090Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb472
724aa245090Swdenk
7257ebf7443SwdenkDASA_SIM_config: unconfig
7267ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
7277ebf7443Swdenk
72872cd5aa7SstroeseDP405_config:	unconfig
72972cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
73072cd5aa7Sstroese
7317ebf7443SwdenkDU405_config:	unconfig
7327ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
7337ebf7443Swdenk
7347ebf7443SwdenkEBONY_config:	unconfig
7357ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ebony
7367ebf7443Swdenk
7377ebf7443SwdenkERIC_config:	unconfig
7387ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
7397ebf7443Swdenk
740d1cbe85bSwdenkEXBITGEN_config:	unconfig
741d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
742d1cbe85bSwdenk
74372cd5aa7SstroeseHUB405_config:	unconfig
74472cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
74572cd5aa7Sstroese
746db01a2eaSwdenkJSE_config:	unconfig
747db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
748db01a2eaSwdenk
7497ebf7443SwdenkMIP405_config:	unconfig
7507ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
7517ebf7443Swdenk
752f3e0de60SwdenkMIP405T_config:	unconfig
753f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
754f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
755f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
756f3e0de60Swdenk
7577ebf7443SwdenkML2_config:	unconfig
7587ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
7597ebf7443Swdenk
760028ab6b5Swdenkml300_config:	unconfig
761028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
762028ab6b5Swdenk
7630e6d798cSwdenkOCOTEA_config:	unconfig
7640e6d798cSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocotea
7650e6d798cSwdenk
7667ebf7443SwdenkOCRTC_config		\
7677ebf7443SwdenkORSG_config:	unconfig
7687ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
7697ebf7443Swdenk
7707ebf7443SwdenkPCI405_config:	unconfig
7717ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
7727ebf7443Swdenk
7737ebf7443SwdenkPIP405_config:	unconfig
7747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
7757ebf7443Swdenk
77672cd5aa7SstroesePLU405_config:	unconfig
77772cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
77872cd5aa7Sstroese
779549826eaSstroesePMC405_config:	unconfig
780549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
781549826eaSstroese
782281e00a3SwdenkPPChameleonEVB_config		\
783e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
784e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
785e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
786e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
787e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
788e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
789fbe4b5cbSwdenk	@ >include/config.h
7901d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
791fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
792fbe4b5cbSwdenk		  echo "... BASIC model" ; \
793fbe4b5cbSwdenk		}
7941d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
795fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
796fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
797fbe4b5cbSwdenk		}
7981d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
799fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
800fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
801fbe4b5cbSwdenk		}
802e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
803e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
804e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
805e55ca7e2Swdenk		}
806e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
807e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
808e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
809e55ca7e2Swdenk		}
810fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
81112f34241Swdenk
81272cd5aa7SstroeseVOH405_config:	unconfig
81372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
81472cd5aa7Sstroese
8157ebf7443SwdenkW7OLMC_config	\
8167ebf7443SwdenkW7OLMG_config: unconfig
8177ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
8187ebf7443Swdenk
8197ebf7443SwdenkWALNUT405_config:	unconfig
8207ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx walnut405
8217ebf7443Swdenk
822ba56f625SwdenkXPEDITE1K_config:	unconfig
823ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
824ba56f625Swdenk
8257ebf7443Swdenk#########################################################################
8267ebf7443Swdenk## MPC824x Systems
8277ebf7443Swdenk#########################################################################
828efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
8293bac3513Swdenk
8300332990bSwdenkA3000_config: unconfig
8310332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
8320332990bSwdenk
8337ebf7443SwdenkBMW_config: unconfig
8347ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
8357ebf7443Swdenk
8363bac3513SwdenkCPC45_config	\
8373bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
8383bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
8393bac3513Swdenk	@cd ./include ;				\
8403bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
8413bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
8423bac3513Swdenk		echo "... booting from 8-bit flash" ; \
8433bac3513Swdenk	else \
8443bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
8453bac3513Swdenk		echo "... booting from 64-bit flash" ; \
8463bac3513Swdenk	fi; \
8473bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
8483bac3513Swdenk
8497ebf7443SwdenkCU824_config: unconfig
8507ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
8517ebf7443Swdenk
8527abf0c58Swdenkdebris_config: unconfig
8537abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
8547abf0c58Swdenk
85580885a9dSwdenkeXalion_config: unconfig
85680885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
85780885a9dSwdenk
8587ebf7443SwdenkMOUSSE_config: unconfig
8597ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
8607ebf7443Swdenk
8617ebf7443SwdenkMUSENKI_config: unconfig
8627ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
8637ebf7443Swdenk
864b4676a25SwdenkMVBLUE_config:	unconfig
865b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
866b4676a25Swdenk
8677ebf7443SwdenkOXC_config: unconfig
8687ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
8697ebf7443Swdenk
8707ebf7443SwdenkPN62_config: unconfig
8717ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
8727ebf7443Swdenk
8737ebf7443SwdenkSandpoint8240_config: unconfig
8747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
8757ebf7443Swdenk
8767ebf7443SwdenkSandpoint8245_config: unconfig
8777ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
8787ebf7443Swdenk
879466b7410Swdenksbc8240_config: unconfig
880466b7410Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sbc8240
881466b7410Swdenk
882d1cbe85bSwdenkSL8245_config: unconfig
883d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
884d1cbe85bSwdenk
8857ebf7443Swdenkutx8245_config: unconfig
8867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
8877ebf7443Swdenk
8887ebf7443Swdenk#########################################################################
8897ebf7443Swdenk## MPC8260 Systems
8907ebf7443Swdenk#########################################################################
8917ebf7443Swdenk
89254387ac9Swdenkatc_config:	unconfig
89354387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
89454387ac9Swdenk
8957ebf7443Swdenkcogent_mpc8260_config:	unconfig
8967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
8977ebf7443Swdenk
8987ebf7443SwdenkCPU86_config	\
8997ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
9007ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
9017ebf7443Swdenk	@cd ./include ;				\
9027ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
9037ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
9047ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
9057ebf7443Swdenk	else \
9067ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
9077ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
9087ebf7443Swdenk	fi; \
9097ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
9107ebf7443Swdenk
9117ebf7443Swdenkep8260_config:	unconfig
9127ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
9137ebf7443Swdenk
9147ebf7443Swdenkgw8260_config:	unconfig
9157ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
9167ebf7443Swdenk
9177ebf7443Swdenkhymod_config:	unconfig
9187ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
9197ebf7443Swdenk
9207ebf7443SwdenkIPHASE4539_config:	unconfig
9217ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
9227ebf7443Swdenk
923c3c7f861SwdenkISPAN_config		\
924c3c7f861SwdenkISPAN_REVB_config:	unconfig
925c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
926c3c7f861Swdenk		echo "#define CFG_REV_B" > include/config.h ; \
927c3c7f861Swdenk	fi
928c3c7f861Swdenk	@./mkconfig -a ISPAN ppc mpc8260 ispan
929c3c7f861Swdenk
93004a85b3bSwdenkMPC8260ADS_config	\
93104a85b3bSwdenkMPC8260ADS_33MHz_config	\
93204a85b3bSwdenkMPC8260ADS_40MHz_config	\
93304a85b3bSwdenkMPC8272ADS_config	\
93404a85b3bSwdenkPQ2FADS_config		\
93504a85b3bSwdenkPQ2FADS-VR_config	\
93604a85b3bSwdenkPQ2FADS-ZU_config	\
93704a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
93804a85b3bSwdenk	:		unconfig
93904a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
94004a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
94104a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
94204a85b3bSwdenk	$(if $(findstring MHz,$@), \
94304a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
94404a85b3bSwdenk	$(if $(findstring VR,$@), \
94504a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
94604a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
9477ebf7443Swdenk
948db2f721fSwdenkMPC8266ADS_config:	unconfig
949db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
950db2f721fSwdenk
951efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
95210f67017SwdenkPM825_config	\
953efa329cbSwdenkPM825_ROMBOOT_config	\
954efa329cbSwdenkPM825_BIGFLASH_config	\
955efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
9567ebf7443SwdenkPM826_config	\
957efa329cbSwdenkPM826_ROMBOOT_config	\
958efa329cbSwdenkPM826_BIGFLASH_config	\
959efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
960efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
961efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
9627ebf7443Swdenk	else \
963efa329cbSwdenk		>include/config.h ; \
964efa329cbSwdenk	fi
965efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
966efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
967efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
968efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
969efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
970efa329cbSwdenk			echo "... with 32 MB Flash" ; \
971efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
9727ebf7443Swdenk		fi; \
973efa329cbSwdenk	else \
974efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
975efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
976efa329cbSwdenk			echo "... with 32 MB Flash" ; \
977efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
978efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
979efa329cbSwdenk		else \
980efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
981efa329cbSwdenk		fi; \
982efa329cbSwdenk	fi
983efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
984efa329cbSwdenk
985efa329cbSwdenkPM828_config	\
986efa329cbSwdenkPM828_PCI_config	\
987efa329cbSwdenkPM828_ROMBOOT_config	\
988efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
989efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
990efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
991efa329cbSwdenk		echo "... with PCI enabled" ; \
992efa329cbSwdenk	else \
993efa329cbSwdenk		>include/config.h ; \
994efa329cbSwdenk	fi
995efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
996efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
997efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
998efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
999efa329cbSwdenk	fi
1000efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
10017ebf7443Swdenk
10027ebf7443Swdenkppmc8260_config:	unconfig
10037ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
10047ebf7443Swdenk
10057ebf7443SwdenkRPXsuper_config:	unconfig
10067ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
10077ebf7443Swdenk
10087ebf7443Swdenkrsdproto_config:	unconfig
10097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
10107ebf7443Swdenk
10117ebf7443Swdenksacsng_config:	unconfig
10127ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
10137ebf7443Swdenk
10147ebf7443Swdenksbc8260_config:	unconfig
10157ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
10167ebf7443Swdenk
10177ebf7443SwdenkSCM_config:		unconfig
10187ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
10197ebf7443Swdenk
102027b207fdSwdenkTQM8255_AA_config \
102127b207fdSwdenkTQM8260_AA_config \
102227b207fdSwdenkTQM8260_AB_config \
102327b207fdSwdenkTQM8260_AC_config \
102427b207fdSwdenkTQM8260_AD_config \
102527b207fdSwdenkTQM8260_AE_config \
102627b207fdSwdenkTQM8260_AF_config \
102727b207fdSwdenkTQM8260_AG_config \
102827b207fdSwdenkTQM8260_AH_config \
102927b207fdSwdenkTQM8265_AA_config:  unconfig
103027b207fdSwdenk	@case "$@" in \
103127b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
103227b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
103327b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
103427b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
103527b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
103627b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
103727b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
103827b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
103927b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
104027b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
104127b207fdSwdenk	esac; \
104227b207fdSwdenk	>include/config.h ; \
104327b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
104427b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
104527b207fdSwdenk	fi; \
104627b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
104727b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
104827b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
10497ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
105027b207fdSwdenk		echo "... with L2 Cache support" ; \
10517ebf7443Swdenk	else \
10527ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
10537ebf7443Swdenk		echo "... without L2 Cache support" ; \
105427b207fdSwdenk	fi; \
105527b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
105627b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
105727b207fdSwdenk		echo "... with 60x Bus Mode" ; \
105827b207fdSwdenk	else \
105927b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
106027b207fdSwdenk		echo "... without 60x Bus Mode" ; \
10617ebf7443Swdenk	fi
10624532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
10637ebf7443Swdenk
106454387ac9SwdenkZPC1900_config: unconfig
106554387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
10667aa78614Swdenk
10674e5ca3ebSwdenk#========================================================================
10684e5ca3ebSwdenk# M68K
10694e5ca3ebSwdenk#========================================================================
10704e5ca3ebSwdenk#########################################################################
10714e5ca3ebSwdenk## Coldfire
10724e5ca3ebSwdenk#########################################################################
10734e5ca3ebSwdenk
10744e5ca3ebSwdenkM5272C3_config :		unconfig
1075bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
10764e5ca3ebSwdenk
10774e5ca3ebSwdenkM5282EVB_config :		unconfig
1078bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
10794e5ca3ebSwdenk
10807ebf7443Swdenk#########################################################################
108142d1f039Swdenk## MPC85xx Systems
108242d1f039Swdenk#########################################################################
108342d1f039Swdenk
108442d1f039SwdenkMPC8540ADS_config:	unconfig
108542d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
108642d1f039Swdenk
108742d1f039SwdenkMPC8560ADS_config:	unconfig
108842d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
108942d1f039Swdenk
1090*03f5c550SwdenkMPC8541CDS_config:	unconfig
1091*03f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
1092*03f5c550Swdenk
1093*03f5c550SwdenkMPC8555CDS_config:	unconfig
1094*03f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
10957abf0c58Swdenk
1096466b7410Swdenksbc8560_config \
1097466b7410Swdenksbc8560_33_config \
1098466b7410Swdenksbc8560_66_config:      unconfig
10998b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
11008b07a110Swdenk		echo "#define CONFIG_PCI_66"  >>include/config.h ; \
11018b07a110Swdenk		echo "... 66 MHz PCI" ; \
11028b07a110Swdenk	else \
11038b07a110Swdenk		>include/config.h ; \
11048b07a110Swdenk		echo "... 33 MHz PCI" ; \
11058b07a110Swdenk	fi
1106466b7410Swdenk	@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
11078b07a110Swdenk
1108*03f5c550Swdenkstxgp3_config:		unconfig
1109*03f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
1110*03f5c550Swdenk
111142d1f039Swdenk#########################################################################
11127ebf7443Swdenk## 74xx/7xx Systems
11137ebf7443Swdenk#########################################################################
11147ebf7443Swdenk
1115c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1116c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1117c7de829cSwdenk
111815647dc7SwdenkBAB7xx_config: unconfig
111915647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
112015647dc7Swdenk
11213a473b2aSwdenkDB64360_config:  unconfig
11223a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
11233a473b2aSwdenk
11243a473b2aSwdenkDB64460_config:  unconfig
11253a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
11263a473b2aSwdenk
112715647dc7SwdenkELPPC_config: unconfig
112815647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
112915647dc7Swdenk
11307ebf7443SwdenkEVB64260_config	\
11317ebf7443SwdenkEVB64260_750CX_config:	unconfig
11327ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
11337ebf7443Swdenk
113415647dc7SwdenkP3G4_config: unconfig
11357ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
11367ebf7443Swdenk
11377ebf7443SwdenkPCIPPC2_config \
11387ebf7443SwdenkPCIPPC6_config: unconfig
11397ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
11407ebf7443Swdenk
114115647dc7SwdenkZUMA_config:	unconfig
114212f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
114312f34241Swdenk
11447ebf7443Swdenk#========================================================================
11457ebf7443Swdenk# ARM
11467ebf7443Swdenk#========================================================================
11477ebf7443Swdenk#########################################################################
11487ebf7443Swdenk## StrongARM Systems
11497ebf7443Swdenk#########################################################################
11507ebf7443Swdenk
1151ea66bc88Swdenkassabet_config	:	unconfig
1152ea66bc88Swdenk	@./mkconfig $(@:_config=) arm sa1100 assabet
1153ea66bc88Swdenk
11547ebf7443Swdenkdnp1110_config	:	unconfig
11557ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
11567ebf7443Swdenk
1157855a496fSwdenkgcplus_config	:	unconfig
1158855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
1159855a496fSwdenk
1160855a496fSwdenklart_config	:	unconfig
1161855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
1162855a496fSwdenk
11637ebf7443Swdenkshannon_config	:	unconfig
11647ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
11657ebf7443Swdenk
11667ebf7443Swdenk#########################################################################
11672e5983d2Swdenk## ARM92xT Systems
11687ebf7443Swdenk#########################################################################
11697ebf7443Swdenk
1170b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
117143d9616cSwdenk
11723ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
117363e73c9aSwdenk
1174a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1175a56bd922Swdenk
11763d3befa7Swdenkintegratorcp_config :	unconfig
11773d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorcp
11783d3befa7Swdenk
11793d3befa7Swdenkintegratorap_config :	unconfig
11803d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorap
11813d3befa7Swdenk
1182f832d8a1Swdenklpd7a400_config \
1183f832d8a1Swdenklpd7a404_config:	unconfig
11842d24a3a7Swdenk	@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
11853d3befa7Swdenk
1186281e00a3Swdenkmx1ads_config	:	unconfig
11871d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
1188281e00a3Swdenk
1189281e00a3Swdenkmx1fs2_config	:	unconfig
11901d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
1191281e00a3Swdenk
11922e5983d2Swdenkomap1510inn_config :	unconfig
11932e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
11942e5983d2Swdenk
11951eaeb58eSwdenkomap5912osk_config :	unconfig
11961eaeb58eSwdenk	@./mkconfig $(@:_config=) arm arm926ejs omap5912osk
11971eaeb58eSwdenk
119863e73c9aSwdenkomap1610inn_config \
119963e73c9aSwdenkomap1610inn_cs0boot_config \
120063e73c9aSwdenkomap1610inn_cs3boot_config \
12013ff02c27Swdenkomap1610inn_cs_autoboot_config \
120263e73c9aSwdenkomap1610h2_config \
120363e73c9aSwdenkomap1610h2_cs0boot_config \
12043ff02c27Swdenkomap1610h2_cs3boot_config \
12053ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
120663e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
120763e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1208b79a11ccSwdenk		echo "... configured for CS0 boot"; \
12093ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
12103ff02c27Swdenk		echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
12113ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
121263e73c9aSwdenk	else \
121363e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1214b79a11ccSwdenk		echo "... configured for CS3 boot"; \
121563e73c9aSwdenk	fi;
121663e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
12176f21347dSwdenk
1218a56bd922Swdenkomap730p2_config \
1219a56bd922Swdenkomap730p2_cs0boot_config \
1220a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1221a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1222a56bd922Swdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1223a56bd922Swdenk		echo "... configured for CS0 boot"; \
1224a56bd922Swdenk	else \
1225a56bd922Swdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1226a56bd922Swdenk		echo "... configured for CS3 boot"; \
1227a56bd922Swdenk	fi;
1228a56bd922Swdenk	@./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1229a56bd922Swdenk
1230281e00a3Swdenkscb9328_config	:	unconfig
12311d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
1232281e00a3Swdenk
12337ebf7443Swdenksmdk2400_config	:	unconfig
12341d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
12357ebf7443Swdenk
12367ebf7443Swdenksmdk2410_config	:	unconfig
12371d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
12387ebf7443Swdenk
12392d24a3a7SwdenkSX1_config :		unconfig
12402d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm925t sx1
12412d24a3a7Swdenk
1242b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
124343d9616cSwdenktrab_config \
1244b0639ca3Swdenktrab_bigram_config \
1245b0639ca3Swdenktrab_bigflash_config \
1246f54ebdfaSwdenktrab_old_config:	unconfig
124743d9616cSwdenk	@ >include/config.h
1248b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1249b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1250b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1251b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1252b0639ca3Swdenk		}
1253b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1254b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1255b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1256b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1257a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1258b0639ca3Swdenk		}
1259f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1260b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1261b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1262b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1263a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
126443d9616cSwdenk		}
12651d9f4105Swdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
12667ebf7443Swdenk
12671cb8e980SwdenkVCMA9_config	:	unconfig
12681d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
12691cb8e980Swdenk
12702d24a3a7Swdenkversatile_config :	unconfig
12712d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs versatile
1272074cff0dSwdenk
1273074cff0dSwdenk#########################################################################
1274074cff0dSwdenk## S3C44B0 Systems
1275074cff0dSwdenk#########################################################################
1276074cff0dSwdenk
1277074cff0dSwdenkB2_config	:	unconfig
1278074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1279074cff0dSwdenk
12807ebf7443Swdenk#########################################################################
12817ebf7443Swdenk## ARM720T Systems
12827ebf7443Swdenk#########################################################################
12837ebf7443Swdenk
12847ebf7443Swdenkep7312_config	:	unconfig
12857ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
12867ebf7443Swdenk
12872d24a3a7Swdenkimpa7_config	:	unconfig
12882d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
12892d24a3a7Swdenk
12902d1a537dSwdenkmodnet50_config :	unconfig
12912d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
12922d1a537dSwdenk
129339539887Swdenkevb4510_config :	unconfig
129439539887Swdenk	@./mkconfig $(@:_config=) arm arm720t evb4510
129539539887Swdenk
12967ebf7443Swdenk#########################################################################
1297d9df1f4eSwdenk## AT91RM9200 Systems
1298d9df1f4eSwdenk#########################################################################
1299d9df1f4eSwdenk
1300d9df1f4eSwdenkat91rm9200dk_config	:	unconfig
1301d9df1f4eSwdenk	@./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
1302d9df1f4eSwdenk
13032cbe571aSwdenkcmc_pu2_config	:	unconfig
13042cbe571aSwdenk	@./mkconfig $(@:_config=) arm at91rm9200 cmc_pu2
13052cbe571aSwdenk
1306d9df1f4eSwdenk#########################################################################
130743d9616cSwdenk## XScale Systems
13087ebf7443Swdenk#########################################################################
13097ebf7443Swdenk
1310fabd46acSwdenkcerf250_config :	unconfig
1311fabd46acSwdenk	@./mkconfig $(@:_config=) arm pxa cerf250
1312fabd46acSwdenk
13137ebf7443Swdenkcradle_config	:	unconfig
13144c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
13157ebf7443Swdenk
13167ebf7443Swdenkcsb226_config	:	unconfig
13174c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
13187ebf7443Swdenk
131943d9616cSwdenkinnokom_config	:	unconfig
13204c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
132143d9616cSwdenk
13222d5b561eSwdenkixdp425_config	:	unconfig
13232d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
13242d5b561eSwdenk
132543d9616cSwdenklubbock_config	:	unconfig
13264c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
132743d9616cSwdenk
132852f52c14Swdenklogodl_config	:	unconfig
132952f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
133052f52c14Swdenk
13313e38691eSwdenkwepep250_config	:	unconfig
13324c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
13333e38691eSwdenk
13344ec3a7f0Swdenkxaeniax_config	:	unconfig
13354ec3a7f0Swdenk	@./mkconfig $(@:_config=) arm pxa xaeniax
13364ec3a7f0Swdenk
1337efa329cbSwdenkxm250_config	:	unconfig
1338efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1339efa329cbSwdenk
1340ca0e7748Swdenkxsengine_config :	unconfig
1341ca0e7748Swdenk	@./mkconfig $(@:_config=) arm pxa xsengine
1342ca0e7748Swdenk
13432262cfeeSwdenk#========================================================================
13442262cfeeSwdenk# i386
13452262cfeeSwdenk#========================================================================
13462262cfeeSwdenk#########################################################################
13472262cfeeSwdenk## AMD SC520 CDP
13482262cfeeSwdenk#########################################################################
13492262cfeeSwdenksc520_cdp_config	:	unconfig
13502262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
13512262cfeeSwdenk
13527a8e9bedSwdenksc520_spunk_config	:	unconfig
13537a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
13547a8e9bedSwdenk
13557a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
13567a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
13577a8e9bedSwdenk
135843d9616cSwdenk#========================================================================
135943d9616cSwdenk# MIPS
136043d9616cSwdenk#========================================================================
13617ebf7443Swdenk#########################################################################
136243d9616cSwdenk## MIPS32 4Kc
136343d9616cSwdenk#########################################################################
136443d9616cSwdenk
1365e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1366e0ac62d7Swdenk
1367e0ac62d7Swdenkincaip_100MHz_config	\
1368e0ac62d7Swdenkincaip_133MHz_config	\
1369e0ac62d7Swdenkincaip_150MHz_config	\
137043d9616cSwdenkincaip_config: unconfig
1371e0ac62d7Swdenk	@ >include/config.h
1372e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1373e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1374e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1375e0ac62d7Swdenk		}
1376e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1377e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1378e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1379e0ac62d7Swdenk		}
1380e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1381e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1382e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1383e0ac62d7Swdenk		}
1384e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1385e0ac62d7Swdenk
1386f4863a7aSwdenktb0229_config: unconfig
1387f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1388f4863a7aSwdenk
1389e0ac62d7Swdenk#########################################################################
139069459791Swdenk## MIPS32 AU1X00
139169459791Swdenk#########################################################################
139269459791Swdenkdbau1000_config		: 	unconfig
139369459791Swdenk	@ >include/config.h
139469459791Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
139569459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
139669459791Swdenk
139769459791Swdenkdbau1100_config		: 	unconfig
139869459791Swdenk	@ >include/config.h
139969459791Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
140069459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
140169459791Swdenk
140269459791Swdenkdbau1500_config		: 	unconfig
140369459791Swdenk	@ >include/config.h
140469459791Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
140569459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
140669459791Swdenk
140769459791Swdenk#########################################################################
1408e0ac62d7Swdenk## MIPS64 5Kc
1409e0ac62d7Swdenk#########################################################################
141043d9616cSwdenk
14113e38691eSwdenkpurple_config :		unconfig
14123e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
141343d9616cSwdenk
14144a551709Swdenk#========================================================================
14154a551709Swdenk# Nios
14164a551709Swdenk#========================================================================
14174a551709Swdenk#########################################################################
14184a551709Swdenk## Nios32
14194a551709Swdenk#########################################################################
14204a551709Swdenk
1421c935d3bdSwdenkDK1C20_safe_32_config		\
1422c935d3bdSwdenkDK1C20_standard_32_config	\
14234a551709SwdenkDK1C20_config:	unconfig
1424c935d3bdSwdenk	@ >include/config.h
1425c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1426c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1427c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1428c935d3bdSwdenk		}
1429c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1430c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1431c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1432c935d3bdSwdenk		}
1433c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1434c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1435c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1436c935d3bdSwdenk		}
1437c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1438c935d3bdSwdenk
1439c935d3bdSwdenkDK1S10_safe_32_config		\
1440c935d3bdSwdenkDK1S10_standard_32_config	\
1441ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1442c935d3bdSwdenkDK1S10_config:	unconfig
1443c935d3bdSwdenk	@ >include/config.h
1444c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1445c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1446c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1447c935d3bdSwdenk		}
1448c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1449c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1450c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1451c935d3bdSwdenk		}
1452ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1453ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1454ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1455ec4c544bSwdenk		}
1456c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1457c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1458c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1459c935d3bdSwdenk		}
1460c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
14614a551709Swdenk
1462aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1463aaf224abSwdenkADNPESC1_base_32_config		\
1464aaf224abSwdenkADNPESC1_config: unconfig
1465aaf224abSwdenk	@ >include/config.h
1466aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1467aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1468aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1469aaf224abSwdenk		}
1470aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1471aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1472aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1473aaf224abSwdenk		}
1474aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1475aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1476aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1477aaf224abSwdenk		}
1478aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1479aaf224abSwdenk
14804a551709Swdenk
1481507bbe3eSwdenk#========================================================================
1482507bbe3eSwdenk# MicroBlaze
1483507bbe3eSwdenk#========================================================================
1484507bbe3eSwdenk#########################################################################
1485507bbe3eSwdenk## Microblaze
1486507bbe3eSwdenk#########################################################################
1487507bbe3eSwdenksuzaku_config:	unconfig
1488507bbe3eSwdenk	@ >include/config.h
1489507bbe3eSwdenk	@echo "#define CONFIG_SUZAKU 1" >> include/config.h
1490507bbe3eSwdenk	@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1491507bbe3eSwdenk
14923e38691eSwdenk#########################################################################
14933e38691eSwdenk#########################################################################
14947ebf7443Swdenk
14957ebf7443Swdenkclean:
14967ebf7443Swdenk	find . -type f \
14977ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
14987ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
14997ebf7443Swdenk		| xargs rm -f
150085ec0bccSwdenk	rm -f examples/hello_world examples/timer \
15013e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
15027a8e9bedSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom
15037ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1504eedcd078Swdenk	rm -f tools/mpc86x_clk tools/ncb
15057ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
15067ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1507228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
15087f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
15097e780369Swdenk	rm -f board/trab/trab_fkt
15107ebf7443Swdenk
15117ebf7443Swdenkclobber:	clean
15124c0d4c3bSwdenk	find . -type f \( -name .depend \
15134c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
15144c0d4c3bSwdenk		-print0 \
15154c0d4c3bSwdenk		| xargs -0 rm -f
15167ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
15177ebf7443Swdenk	rm -fr *.*~
1518bdccc4feSwdenk	rm -f u-boot u-boot.map $(ALL)
1519228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
15203e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1521b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
15227ebf7443Swdenk
15237ebf7443Swdenkmrproper \
15247ebf7443Swdenkdistclean:	clobber unconfig
15257ebf7443Swdenk
15267ebf7443Swdenkbackup:
15277ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
15287ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
15297ebf7443Swdenk
15307ebf7443Swdenk#########################################################################
1531