xref: /openbmc/u-boot/Makefile (revision 16b013e7)
17ebf7443Swdenk#
25e5f9ed2Swdenk# (C) Copyright 2000-2005
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
107ebf7443Swdenk# published by the Free Software Foundation; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
247ebf7443SwdenkHOSTARCH := $(shell uname -m | \
257ebf7443Swdenk	sed -e s/i.86/i386/ \
267ebf7443Swdenk	    -e s/sun4u/sparc64/ \
277ebf7443Swdenk	    -e s/arm.*/arm/ \
287ebf7443Swdenk	    -e s/sa110/arm/ \
297ebf7443Swdenk	    -e s/powerpc/ppc/ \
307ebf7443Swdenk	    -e s/macppc/ppc/)
317ebf7443Swdenk
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
755c952cf0Swdenkifeq ($(ARCH),nios2)
765c952cf0SwdenkCROSS_COMPILE = nios2-elf-
775c952cf0Swdenkendif
784e5ca3ebSwdenkifeq ($(ARCH),m68k)
794e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
804e5ca3ebSwdenkendif
81507bbe3eSwdenkifeq ($(ARCH),microblaze)
82507bbe3eSwdenkCROSS_COMPILE = mb-
83507bbe3eSwdenkendif
847ebf7443Swdenkendif
857ebf7443Swdenkendif
867ebf7443Swdenk
877ebf7443Swdenkexport	CROSS_COMPILE
887ebf7443Swdenk
897ebf7443Swdenk#########################################################################
907ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
917ebf7443Swdenk
927ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
932262cfeeSwdenkifeq ($(CPU),i386)
942262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
952262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
962262cfeeSwdenkendif
977ebf7443Swdenkifeq ($(CPU),ppc4xx)
987ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
997ebf7443Swdenkendif
10042d1f039Swdenkifeq ($(CPU),mpc85xx)
10142d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
10242d1f039Swdenkendif
1037ebf7443Swdenk
1049fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1059fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1067ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1071d9f4105Swdenkifdef SOC
1081d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1091d9f4105Swdenkendif
1107ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
111518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
112c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
1137ebf7443SwdenkLIBS += net/libnet.a
1147ebf7443SwdenkLIBS += disk/libdisk.a
1157ebf7443SwdenkLIBS += rtc/librtc.a
1167ebf7443SwdenkLIBS += dtt/libdtt.a
1177ebf7443SwdenkLIBS += drivers/libdrivers.a
1187152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1197ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1207ebf7443SwdenkLIBS += common/libcommon.a
1219fd5e31fSwdenk.PHONY : $(LIBS)
122a8c7c708Swdenk
1234f7cb08eSwdenk# Add GCC lib
1241a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1253d3befa7Swdenk
1267ebf7443Swdenk
127a8c7c708Swdenk# The "tools" are needed early, so put this first
128a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
129a8c7c708SwdenkSUBDIRS	= tools \
130a8c7c708Swdenk	  examples \
131a8c7c708Swdenk	  post \
132a8c7c708Swdenk	  post/cpu
133b028f715Swdenk.PHONY : $(SUBDIRS)
134a8c7c708Swdenk
1357ebf7443Swdenk#########################################################################
136bdccc4feSwdenk#########################################################################
1377ebf7443Swdenk
138bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1397ebf7443Swdenk
140bdccc4feSwdenkall:		$(ALL)
1417ebf7443Swdenk
1426310eb9dSwdenku-boot.hex:	u-boot
1436310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
1446310eb9dSwdenk
1457ebf7443Swdenku-boot.srec:	u-boot
1467ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1477ebf7443Swdenk
1487ebf7443Swdenku-boot.bin:	u-boot
1497ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1507ebf7443Swdenk
151bdccc4feSwdenku-boot.img:	u-boot.bin
152bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
153bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
154bdccc4feSwdenk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
155bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
156bdccc4feSwdenk		-d $< $@
157bdccc4feSwdenk
1587ebf7443Swdenku-boot.dis:	u-boot
1597ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1607ebf7443Swdenk
161a8c7c708Swdenku-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1628bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1638bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1641a344f29Swdenk			--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
165b2184c31Swdenk			-Map u-boot.map -o u-boot
1667ebf7443Swdenk
167a8c7c708Swdenk$(LIBS):
168a8c7c708Swdenk		$(MAKE) -C `dirname $@`
169a8c7c708Swdenk
170a8c7c708Swdenk$(SUBDIRS):
171b028f715Swdenk		$(MAKE) -C $@ all
1727ebf7443Swdenk
1738f713fdfSdzugdbtools:
1748f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
1758f713fdfSdzu
1767ebf7443Swdenkdepend dep:
1777ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
1787ebf7443Swdenk
1797ebf7443Swdenktags:
1807ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
181bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
182bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
183bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
1847ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1857ebf7443Swdenk
1867ebf7443Swdenketags:
1877ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
188eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
189eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
190eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
1917ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1927ebf7443Swdenk
1937ebf7443SwdenkSystem.map:	u-boot
1947ebf7443Swdenk		@$(NM) $< | \
1957ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1967ebf7443Swdenk		sort > System.map
1977ebf7443Swdenk
1987ebf7443Swdenk#########################################################################
1997ebf7443Swdenkelse
2007ebf7443Swdenkall install u-boot u-boot.srec depend dep:
2017ebf7443Swdenk	@echo "System not configured - see README" >&2
2027ebf7443Swdenk	@ exit 1
2037ebf7443Swdenkendif
2047ebf7443Swdenk
2057ebf7443Swdenk#########################################################################
2067ebf7443Swdenk
2077ebf7443Swdenkunconfig:
20817d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
2097ebf7443Swdenk
2107ebf7443Swdenk#========================================================================
2117ebf7443Swdenk# PowerPC
2127ebf7443Swdenk#========================================================================
2130db5bca8Swdenk
2140db5bca8Swdenk#########################################################################
2150db5bca8Swdenk## MPC5xx Systems
2160db5bca8Swdenk#########################################################################
2170db5bca8Swdenk
2185e5f9ed2Swdenkcanmb_config:	unconfig
2195e5f9ed2Swdenk	@./mkconfig -a canmb ppc mpc5xxx canmb
2205e5f9ed2Swdenk
2210db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2220db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2230db5bca8Swdenk
224b6e4c403SwdenkPATI_config:		unconfig
225b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
226b6e4c403Swdenk
2277ebf7443Swdenk#########################################################################
228945af8d7Swdenk## MPC5xxx Systems
229945af8d7Swdenk#########################################################################
230e35745bbSwdenkLite5200_config				\
231e35745bbSwdenkLite5200_LOWBOOT_config			\
232e35745bbSwdenkLite5200_LOWBOOT08_config		\
233e35745bbSwdenkicecube_5200_config			\
234e35745bbSwdenkicecube_5200_LOWBOOT_config		\
235e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
236b2001f27Swdenkicecube_5200_DDR_config 		\
23779d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
23879d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
239e35745bbSwdenkicecube_5100_config:			unconfig
240945af8d7Swdenk	@ >include/config.h
24117d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
24217d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
24317d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
24417d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
24517d704ebSwdenk		  fi ; \
2465cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2475cf9da48Swdenk		}
2485cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2495cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2505cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
25117d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2525cf9da48Swdenk		}
253b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
254b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
255b2001f27Swdenk		  echo "... DDR memory revision" ; \
256b2001f27Swdenk		}
257d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
258d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
259d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
260d4ca31c4Swdenk		}
261a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
262945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
263945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
264945af8d7Swdenk		}
265945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
266945af8d7Swdenk
267138ff60cSwdenkinka4x0_config:		unconfig
268138ff60cSwdenk	@./mkconfig inka4x0 ppc mpc5xxx inka4x0
269138ff60cSwdenk
27089394047SwdenkPM520_config \
27189394047SwdenkPM520_DDR_config \
27289394047SwdenkPM520_ROMBOOT_config \
27389394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
27489394047Swdenk	@ >include/config.h
27589394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
27689394047Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
27789394047Swdenk		  echo "... DDR memory revision" ; \
27889394047Swdenk		}
27989394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
28089394047Swdenk		{ echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
28189394047Swdenk		  echo "... booting from 8-bit flash" ; \
28289394047Swdenk		}
28389394047Swdenk	@./mkconfig -a PM520 ppc mpc5xxx pm520
28489394047Swdenk
285d4ca31c4SwdenkMINI5200_config	\
286d4ca31c4SwdenkEVAL5200_config	\
287d4ca31c4SwdenkTOP5200_config:	unconfig
288d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
289d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
290d4ca31c4Swdenk
2916c7a1408SwdenkTotal5100_config		\
2926c7a1408SwdenkTotal5200_config		\
2936c7a1408SwdenkTotal5200_lowboot_config	\
2946c7a1408SwdenkTotal5200_Rev2_config		\
2956c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
2966c7a1408Swdenk	@ >include/config.h
2976c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
2986c7a1408Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
2996c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
3006c7a1408Swdenk		}
3016c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
3026c7a1408Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
3036c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
3046c7a1408Swdenk		}
3056c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
3066c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>include/config.h ; \
3076c7a1408Swdenk		  echo "... revision 1 board" ; \
3086c7a1408Swdenk		}
3096c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
3106c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>include/config.h ; \
3116c7a1408Swdenk		  echo "... revision 2 board" ; \
3126c7a1408Swdenk		}
3136c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
3146c7a1408Swdenk		{ echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
3156c7a1408Swdenk		  echo "... with lowboot configuration" ; \
3166c7a1408Swdenk		}
3176c7a1408Swdenk	@./mkconfig -a Total5200 ppc mpc5xxx total5200
3186c7a1408Swdenk
3197e6bf358SwdenkTQM5200_auto_config		\
32056523f12SwdenkTQM5200_AA_config	\
32156523f12SwdenkTQM5200_AB_config	\
32256523f12SwdenkTQM5200_AC_config	\
32356523f12SwdenkMiniFAP_config:	unconfig
32456523f12Swdenk	@ >include/config.h
32589394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
32656523f12Swdenk		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
32756523f12Swdenk		  echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
32889394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
32956523f12Swdenk		}
33056523f12Swdenk	@[ -z "$(findstring AA,$@)" ] || \
33156523f12Swdenk		{ echo "#define CONFIG_TQM5200_AA"	>>include/config.h ; \
33256523f12Swdenk		  echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
33356523f12Swdenk		}
33456523f12Swdenk	@[ -z "$(findstring AB,$@)" ] || \
33556523f12Swdenk		{ echo "#define CONFIG_TQM5200_AB"	>>include/config.h ; \
33656523f12Swdenk		  echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
33731a64923Swdenk		  echo "... with Graphics Controller"; \
33856523f12Swdenk		}
33956523f12Swdenk	@[ -z "$(findstring AC,$@)" ] || \
34056523f12Swdenk		{ echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
34156523f12Swdenk		  echo "... with 4 MB Flash, 128 MB SDRAM" ; \
34231a64923Swdenk		  echo "... with Graphics Controller"; \
34356523f12Swdenk		}
3447e6bf358Swdenk	@[ -z "$(findstring auto,$@)" ] || \
3457e6bf358Swdenk		{ echo "#define CONFIG_CS_AUTOCONF"	>>include/config.h ; \
3467e6bf358Swdenk		  echo "... with automatic CS configuration" ; \
3477e6bf358Swdenk		}
34856523f12Swdenk	@./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
34956523f12Swdenk
350945af8d7Swdenk#########################################################################
3517ebf7443Swdenk## MPC8xx Systems
3527ebf7443Swdenk#########################################################################
3537ebf7443Swdenk
3542d24a3a7SwdenkAdder_config    \
3552d24a3a7SwdenkAdder87x_config \
35626238132SwdenkAdderII_config  \
3572d24a3a7Swdenk	:		unconfig
35826238132Swdenk	$(if $(findstring AdderII,$@), \
3592d24a3a7Swdenk	@echo "#define CONFIG_MPC852T" > include/config.h)
3602d24a3a7Swdenk	@./mkconfig -a Adder ppc mpc8xx adder
3612d24a3a7Swdenk
362180d3f74SwdenkADS860_config     \
363180d3f74SwdenkFADS823_config    \
364180d3f74SwdenkFADS850SAR_config \
365180d3f74SwdenkMPC86xADS_config  \
3661114257cSwdenkMPC885ADS_config  \
367180d3f74SwdenkFADS860T_config:	unconfig
3687ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
3697ebf7443Swdenk
3707ebf7443SwdenkAMX860_config	:	unconfig
3717ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
3727ebf7443Swdenk
3737ebf7443Swdenkc2mon_config:		unconfig
3747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
3757ebf7443Swdenk
3767ebf7443SwdenkCCM_config:		unconfig
3777ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
3787ebf7443Swdenk
3797ebf7443Swdenkcogent_mpc8xx_config:	unconfig
3807ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
3817ebf7443Swdenk
3823bac3513SwdenkELPT860_config:		unconfig
3833bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
3843bac3513Swdenk
3857ebf7443SwdenkESTEEM192E_config:	unconfig
3867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
3877ebf7443Swdenk
3887ebf7443SwdenkETX094_config	:	unconfig
3897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
3907ebf7443Swdenk
3917ebf7443SwdenkFLAGADM_config:	unconfig
3927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
3937ebf7443Swdenk
3947aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
3957aa78614Swdenk
3967aa78614SwdenkGEN860T_SC_config	\
3977ebf7443SwdenkGEN860T_config: unconfig
3987aa78614Swdenk	@ >include/config.h
3997aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
4007aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
4017aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
4027aa78614Swdenk		}
4037aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
4047ebf7443Swdenk
4057ebf7443SwdenkGENIETV_config:	unconfig
4067ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
4077ebf7443Swdenk
4087ebf7443SwdenkGTH_config:	unconfig
4097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
4107ebf7443Swdenk
4117ebf7443Swdenkhermes_config	:	unconfig
4127ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
4137ebf7443Swdenk
414c40b2956SwdenkHMI10_config	:	unconfig
415c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
416c40b2956Swdenk
4177ebf7443SwdenkIAD210_config: unconfig
4187ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
4197ebf7443Swdenk
4207ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
4217ebf7443Swdenk
4227ebf7443SwdenkICU862_100MHz_config	\
4237ebf7443SwdenkICU862_config: unconfig
4247ebf7443Swdenk	@ >include/config.h
4257ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
4267ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
4277ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
4287ebf7443Swdenk		}
4297ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
4307ebf7443Swdenk
4317ebf7443SwdenkIP860_config	:	unconfig
4327ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
4337ebf7443Swdenk
4347ebf7443SwdenkIVML24_256_config \
4357ebf7443SwdenkIVML24_128_config \
4367ebf7443SwdenkIVML24_config:	unconfig
4377ebf7443Swdenk	@ >include/config.h
4387ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
4397ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
4407ebf7443Swdenk		 }
4417ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
4427ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
4437ebf7443Swdenk		 }
4447ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
4457ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
4467ebf7443Swdenk		 }
4477ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
4487ebf7443Swdenk
4497ebf7443SwdenkIVMS8_256_config \
4507ebf7443SwdenkIVMS8_128_config \
4517ebf7443SwdenkIVMS8_config:	unconfig
4527ebf7443Swdenk	@ >include/config.h
4537ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
4547ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
4557ebf7443Swdenk		 }
4567ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
4577ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
4587ebf7443Swdenk		 }
4597ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
4607ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
4617ebf7443Swdenk		 }
4627ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
4637ebf7443Swdenk
46456f94be3SwdenkKUP4K_config	:	unconfig
4650608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
4660608e04dSwdenk
4670608e04dSwdenkKUP4X_config    :       unconfig
4680608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
46956f94be3Swdenk
4707ebf7443SwdenkLANTEC_config	:	unconfig
4717ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
4727ebf7443Swdenk
4737ebf7443Swdenklwmon_config:		unconfig
4747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
4757ebf7443Swdenk
4767ebf7443SwdenkMBX_config	\
4777ebf7443SwdenkMBX860T_config:	unconfig
4787ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
4797ebf7443Swdenk
4807ebf7443SwdenkMHPC_config:		unconfig
4817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
4827ebf7443Swdenk
4837ebf7443SwdenkMVS1_config :		unconfig
4847ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
4857ebf7443Swdenk
486993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
487993cad93Swdenk
488993cad93SwdenkNETVIA_V2_config \
4897ebf7443SwdenkNETVIA_config:		unconfig
490993cad93Swdenk	@ >include/config.h
491993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
492993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
493993cad93Swdenk		  echo "... Version 1" ; \
494993cad93Swdenk		 }
495993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
496993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
497993cad93Swdenk		  echo "... Version 2" ; \
498993cad93Swdenk		 }
499993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
5007ebf7443Swdenk
501c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
502c26e454dSwdenk
503c26e454dSwdenkNETPHONE_V2_config \
50404a85b3bSwdenkNETPHONE_config:	unconfig
505c26e454dSwdenk	@ >include/config.h
506c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
507c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
508c26e454dSwdenk		 }
509c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
510c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
511c26e454dSwdenk		 }
512c26e454dSwdenk	@./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
51304a85b3bSwdenk
51479fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
51504a85b3bSwdenk
51679fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
51779fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
51879fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
51979fa88f3SwdenkNETTA_SWAPHOOK_config \
52079fa88f3SwdenkNETTA_ISDN_6412_config \
52104a85b3bSwdenkNETTA_ISDN_config \
52279fa88f3SwdenkNETTA_6412_config \
52304a85b3bSwdenkNETTA_config:		unconfig
52404a85b3bSwdenk	@ >include/config.h
52579fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
52604a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
52704a85b3bSwdenk		 }
52879fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
52979fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
53079fa88f3Swdenk		 }
53179fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
53279fa88f3Swdenk		 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
53379fa88f3Swdenk		 }
53479fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
53579fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
53679fa88f3Swdenk		 }
53779fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
53879fa88f3Swdenk		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
53979fa88f3Swdenk		 }
54079fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
54179fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
54279fa88f3Swdenk		 }
54304a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
54404a85b3bSwdenk
54579fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
54679fa88f3Swdenk
54779fa88f3SwdenkNETTA2_V2_config \
54879fa88f3SwdenkNETTA2_config:		unconfig
54979fa88f3Swdenk	@ >include/config.h
55079fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
55179fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
55279fa88f3Swdenk		 }
55379fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
55479fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
55579fa88f3Swdenk		 }
55679fa88f3Swdenk	@./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
55779fa88f3Swdenk
5587ca202f5SwdenkNC650_config:	unconfig
5597ca202f5Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nc650
5607ca202f5Swdenk
5617ebf7443SwdenkNX823_config:		unconfig
5627ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
5637ebf7443Swdenk
5647ebf7443Swdenkpcu_e_config:		unconfig
5657ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
5667ebf7443Swdenk
5673bbc899fSwdenkQS850_config:	unconfig
5683bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5693bbc899fSwdenk
5703bbc899fSwdenkQS823_config:	unconfig
5713bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5723bbc899fSwdenk
5733bbc899fSwdenkQS860T_config:	unconfig
5743bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
5753bbc899fSwdenk
576da93ed81Swdenkquantum_config:	unconfig
577da93ed81Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx quantum
578da93ed81Swdenk
5797ebf7443SwdenkR360MPI_config:	unconfig
5807ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
5817ebf7443Swdenk
582682011ffSwdenkRBC823_config:	unconfig
583682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
584682011ffSwdenk
5857ebf7443SwdenkRPXClassic_config:	unconfig
5867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
5877ebf7443Swdenk
5887ebf7443SwdenkRPXlite_config:		unconfig
5897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
5907ebf7443Swdenk
591e63c8ee3SwdenkRPXlite_DW_64_config  		\
592e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
593e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
594e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
595e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
596e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
597e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
598e63c8ee3SwdenkRPXlite_DW_config:         unconfig
599e63c8ee3Swdenk	@ >include/config.h
600e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
601e63c8ee3Swdenk		{ echo "#define RPXlite_64MHz"		>>include/config.h ; \
602e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
603e63c8ee3Swdenk		}
604e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
605e63c8ee3Swdenk		{ echo "#define CONFIG_LCD"          	>>include/config.h ; \
606e63c8ee3Swdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
607e63c8ee3Swdenk		  echo "... with LCD display ..."; \
608e63c8ee3Swdenk		}
609e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
610e63c8ee3Swdenk		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>include/config.h ; \
611e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
612e63c8ee3Swdenk		}
613e63c8ee3Swdenk	@./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
614e63c8ee3Swdenk
61573a8b27cSwdenkrmu_config:	unconfig
61673a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
61773a8b27cSwdenk
6187ebf7443SwdenkRRvision_config:	unconfig
6197ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
6207ebf7443Swdenk
6217ebf7443SwdenkRRvision_LCD_config:	unconfig
6227ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6237ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6247ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
6257ebf7443Swdenk
6267ebf7443SwdenkSM850_config	:	unconfig
6277ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
6287ebf7443Swdenk
6297ebf7443SwdenkSPD823TS_config:	unconfig
6307ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
6317ebf7443Swdenk
632dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
633dc7c9a1aSwdenk	@ >include/config.h
634dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
635dc7c9a1aSwdenk
6367ebf7443SwdenkSXNI855T_config:	unconfig
6377ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
6387ebf7443Swdenk
639db2f721fSwdenk# EMK MPC8xx based modules
640db2f721fSwdenkTOP860_config:		unconfig
641db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
642db2f721fSwdenk
6437ebf7443Swdenk# Play some tricks for configuration selection
644e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
645e9132ea9Swdenk# and only 823 boards may have LCD support
646e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
6477ebf7443Swdenk
6487ebf7443SwdenkFPS850L_config		\
649384ae025SwdenkFPS860L_config		\
650f12e568cSwdenkNSCU_config		\
6517ebf7443SwdenkTQM823L_config		\
6527ebf7443SwdenkTQM823L_LCD_config	\
6537ebf7443SwdenkTQM850L_config		\
6547ebf7443SwdenkTQM855L_config		\
6557ebf7443SwdenkTQM860L_config		\
656d126bfbdSwdenkTQM862L_config		\
657ae3af05eSwdenkTQM823M_config		\
658ae3af05eSwdenkTQM850M_config		\
659f12e568cSwdenkTQM855M_config		\
660f12e568cSwdenkTQM860M_config		\
661f12e568cSwdenkTQM862M_config		\
662c178d3daSwdenkTQM866M_config:		unconfig
6637ebf7443Swdenk	@ >include/config.h
6647ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
6657ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
666fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
6677ebf7443Swdenk		  echo "... with LCD display" ; \
6687ebf7443Swdenk		}
6697ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
6707ebf7443Swdenk
6717ebf7443SwdenkTTTech_config:	unconfig
6727ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6737ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6747ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
6757ebf7443Swdenk
676ec0aee7bSwdenkuc100_config	:	unconfig
677f7d1572bSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx uc100
678f7d1572bSwdenk
679608c9146Swdenkv37_config:	unconfig
680608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
681608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
682608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
683608c9146Swdenk
68491e940d9Sdzuwtk_config:	unconfig
68591e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
68691e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
68791e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
68891e940d9Sdzu
6897ebf7443Swdenk#########################################################################
6907ebf7443Swdenk## PPC4xx Systems
6917ebf7443Swdenk#########################################################################
692e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
6937ebf7443Swdenk
6947ebf7443SwdenkADCIOP_config:	unconfig
6957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
6967ebf7443Swdenk
697c419d1d6SstroeseAPC405_config:	unconfig
698c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
699c419d1d6Sstroese
7007ebf7443SwdenkAR405_config:	unconfig
7017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
7027ebf7443Swdenk
703549826eaSstroeseASH405_config:	unconfig
704549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
705549826eaSstroese
706549826eaSstroeseBUBINGA405EP_config:	unconfig
707549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
708549826eaSstroese
7097ebf7443SwdenkCANBT_config:	unconfig
7107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
7117ebf7443Swdenk
7121d6f9720SwdenkCATcenter_config	\
7131d6f9720SwdenkCATcenter_25_config	\
7141d6f9720SwdenkCATcenter_33_config:	unconfig
71510767ccbSwdenk	@ echo "/* CATcenter uses PPChameleon Model ME */"  > include/config.h
71610767ccbSwdenk	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
7171d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
7181d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
7191d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
7201d6f9720Swdenk		}
7211d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
7221d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
7231d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
7241d6f9720Swdenk		}
72510767ccbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
72610767ccbSwdenk
7277ebf7443SwdenkCPCI405_config	\
728549826eaSstroeseCPCI4052_config	\
729c419d1d6SstroeseCPCI405DT_config	\
730549826eaSstroeseCPCI405AB_config:	unconfig
7317ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
7327ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
7337ebf7443Swdenk
7347ebf7443SwdenkCPCI440_config:	unconfig
7357ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
7367ebf7443Swdenk
7377ebf7443SwdenkCPCIISER4_config:	unconfig
7387ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
7397ebf7443Swdenk
7407ebf7443SwdenkCRAYL1_config:	unconfig
7417ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
7427ebf7443Swdenk
743cd0a9de6Swdenkcsb272_config:	unconfig
744cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
745cd0a9de6Swdenk
746aa245090Swdenkcsb472_config:	unconfig
747aa245090Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb472
748aa245090Swdenk
7497ebf7443SwdenkDASA_SIM_config: unconfig
7507ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
7517ebf7443Swdenk
75272cd5aa7SstroeseDP405_config:	unconfig
75372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
75472cd5aa7Sstroese
7557ebf7443SwdenkDU405_config:	unconfig
7567ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
7577ebf7443Swdenk
7587ebf7443SwdenkEBONY_config:	unconfig
7597ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ebony
7607ebf7443Swdenk
7617ebf7443SwdenkERIC_config:	unconfig
7627ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
7637ebf7443Swdenk
764d1cbe85bSwdenkEXBITGEN_config:	unconfig
765d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
766d1cbe85bSwdenk
767c419d1d6SstroeseG2000_config:	unconfig
768c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx g2000
769c419d1d6Sstroese
770c419d1d6SstroeseHH405_config:	unconfig
771c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
772c419d1d6Sstroese
77372cd5aa7SstroeseHUB405_config:	unconfig
77472cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
77572cd5aa7Sstroese
776db01a2eaSwdenkJSE_config:	unconfig
777db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
778db01a2eaSwdenk
7797ebf7443SwdenkMIP405_config:	unconfig
7807ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
7817ebf7443Swdenk
782f3e0de60SwdenkMIP405T_config:	unconfig
783f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
784f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
785f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
786f3e0de60Swdenk
7877ebf7443SwdenkML2_config:	unconfig
7887ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
7897ebf7443Swdenk
790028ab6b5Swdenkml300_config:	unconfig
791028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
792028ab6b5Swdenk
7930e6d798cSwdenkOCOTEA_config:	unconfig
7940e6d798cSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocotea
7950e6d798cSwdenk
7967ebf7443SwdenkOCRTC_config		\
7977ebf7443SwdenkORSG_config:	unconfig
7987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
7997ebf7443Swdenk
8007ebf7443SwdenkPCI405_config:	unconfig
8017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
8027ebf7443Swdenk
8037ebf7443SwdenkPIP405_config:	unconfig
8047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
8057ebf7443Swdenk
80672cd5aa7SstroesePLU405_config:	unconfig
80772cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
80872cd5aa7Sstroese
809549826eaSstroesePMC405_config:	unconfig
810549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
811549826eaSstroese
812281e00a3SwdenkPPChameleonEVB_config		\
813e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
814e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
815e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
816e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
817e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
818e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
819fbe4b5cbSwdenk	@ >include/config.h
8201d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
821fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
822fbe4b5cbSwdenk		  echo "... BASIC model" ; \
823fbe4b5cbSwdenk		}
8241d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
825fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
826fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
827fbe4b5cbSwdenk		}
8281d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
829fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
830fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
831fbe4b5cbSwdenk		}
832e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
833e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
834e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
835e55ca7e2Swdenk		}
836e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
837e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
838e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
839e55ca7e2Swdenk		}
840fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
84112f34241Swdenk
842652a10c0Swdenksbc405_config:	unconfig
843652a10c0Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx sbc405
844652a10c0Swdenk
84572cd5aa7SstroeseVOH405_config:	unconfig
84672cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
84772cd5aa7Sstroese
848c419d1d6SstroeseVOM405_config:	unconfig
849c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
850c419d1d6Sstroese
8517ebf7443SwdenkW7OLMC_config	\
8527ebf7443SwdenkW7OLMG_config: unconfig
8537ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
8547ebf7443Swdenk
8557ebf7443SwdenkWALNUT405_config:	unconfig
8567ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx walnut405
8577ebf7443Swdenk
858c419d1d6SstroeseWUH405_config:	unconfig
859c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
860c419d1d6Sstroese
861ba56f625SwdenkXPEDITE1K_config:	unconfig
862ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
863ba56f625Swdenk
8647ebf7443Swdenk#########################################################################
865983fda83Swdenk## MPC8220 Systems
866983fda83Swdenk#########################################################################
867983fda83SwdenkAlaska8220_config:	unconfig
868983fda83Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 alaska
869983fda83Swdenk
87012b43d51Swdenksorcery_config:		unconfig
87112b43d51Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 sorcery
87212b43d51Swdenk
873983fda83SwdenkYukon8220_config:	unconfig
874983fda83Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 yukon
875983fda83Swdenk
876983fda83Swdenk#########################################################################
8777ebf7443Swdenk## MPC824x Systems
8787ebf7443Swdenk#########################################################################
879efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
8803bac3513Swdenk
8810332990bSwdenkA3000_config: unconfig
8820332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
8830332990bSwdenk
8847ebf7443SwdenkBMW_config: unconfig
8857ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
8867ebf7443Swdenk
8873bac3513SwdenkCPC45_config	\
8883bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
8893bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
8903bac3513Swdenk	@cd ./include ;				\
8913bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
8923bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
8933bac3513Swdenk		echo "... booting from 8-bit flash" ; \
8943bac3513Swdenk	else \
8953bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
8963bac3513Swdenk		echo "... booting from 64-bit flash" ; \
8973bac3513Swdenk	fi; \
8983bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
8993bac3513Swdenk
9007ebf7443SwdenkCU824_config: unconfig
9017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
9027ebf7443Swdenk
9037abf0c58Swdenkdebris_config: unconfig
9047abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
9057abf0c58Swdenk
90680885a9dSwdenkeXalion_config: unconfig
90780885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
90880885a9dSwdenk
909756f586aSwdenkHIDDEN_DRAGON_config: unconfig
910756f586aSwdenk	@./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
911756f586aSwdenk
9127ebf7443SwdenkMOUSSE_config: unconfig
9137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
9147ebf7443Swdenk
9157ebf7443SwdenkMUSENKI_config: unconfig
9167ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
9177ebf7443Swdenk
918b4676a25SwdenkMVBLUE_config:	unconfig
919b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
920b4676a25Swdenk
9217ebf7443SwdenkOXC_config: unconfig
9227ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
9237ebf7443Swdenk
9247ebf7443SwdenkPN62_config: unconfig
9257ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
9267ebf7443Swdenk
9277ebf7443SwdenkSandpoint8240_config: unconfig
9287ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
9297ebf7443Swdenk
9307ebf7443SwdenkSandpoint8245_config: unconfig
9317ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
9327ebf7443Swdenk
933466b7410Swdenksbc8240_config: unconfig
934466b7410Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sbc8240
935466b7410Swdenk
936d1cbe85bSwdenkSL8245_config: unconfig
937d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
938d1cbe85bSwdenk
9397ebf7443Swdenkutx8245_config: unconfig
9407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
9417ebf7443Swdenk
942a562e1bdSwdenkcobra5272_config :		unconfig
943a562e1bdSwdenk	@./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
944a562e1bdSwdenk
9457ebf7443Swdenk#########################################################################
9467ebf7443Swdenk## MPC8260 Systems
9477ebf7443Swdenk#########################################################################
9487ebf7443Swdenk
94954387ac9Swdenkatc_config:	unconfig
95054387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
95154387ac9Swdenk
9527ebf7443Swdenkcogent_mpc8260_config:	unconfig
9537ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
9547ebf7443Swdenk
9557ebf7443SwdenkCPU86_config	\
9567ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
9577ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
9587ebf7443Swdenk	@cd ./include ;				\
9597ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
9607ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
9617ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
9627ebf7443Swdenk	else \
9637ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
9647ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
9657ebf7443Swdenk	fi; \
9667ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
9677ebf7443Swdenk
968384cc687SwdenkCPU87_config	\
969384cc687SwdenkCPU87_ROMBOOT_config: unconfig
970384cc687Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
971384cc687Swdenk	@cd ./include ;				\
972384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
973384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
974384cc687Swdenk		echo "... booting from 8-bit flash" ; \
975384cc687Swdenk	else \
976384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
977384cc687Swdenk		echo "... booting from 64-bit flash" ; \
978384cc687Swdenk	fi; \
979384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
980384cc687Swdenk
9817ebf7443Swdenkep8260_config:	unconfig
9827ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
9837ebf7443Swdenk
9847ebf7443Swdenkgw8260_config:	unconfig
9857ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
9867ebf7443Swdenk
9877ebf7443Swdenkhymod_config:	unconfig
9887ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
9897ebf7443Swdenk
9909dd41a7bSwdenkIDS8247_config:	unconfig
9919dd41a7bSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 ids8247
9929dd41a7bSwdenk
9937ebf7443SwdenkIPHASE4539_config:	unconfig
9947ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
9957ebf7443Swdenk
996c3c7f861SwdenkISPAN_config		\
997c3c7f861SwdenkISPAN_REVB_config:	unconfig
998c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
999c3c7f861Swdenk		echo "#define CFG_REV_B" > include/config.h ; \
1000c3c7f861Swdenk	fi
1001c3c7f861Swdenk	@./mkconfig -a ISPAN ppc mpc8260 ispan
1002c3c7f861Swdenk
100304a85b3bSwdenkMPC8260ADS_config	\
1004901787d6SwdenkMPC8260ADS_lowboot_config	\
100504a85b3bSwdenkMPC8260ADS_33MHz_config	\
1006901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
100704a85b3bSwdenkMPC8260ADS_40MHz_config	\
1008901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
100904a85b3bSwdenkMPC8272ADS_config	\
1010901787d6SwdenkMPC8272ADS_lowboot_config	\
101104a85b3bSwdenkPQ2FADS_config		\
1012901787d6SwdenkPQ2FADS_lowboot_config		\
101304a85b3bSwdenkPQ2FADS-VR_config	\
1014901787d6SwdenkPQ2FADS-VR_lowboot_config	\
101504a85b3bSwdenkPQ2FADS-ZU_config	\
1016901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
101704a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1018901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
101904a85b3bSwdenk	:		unconfig
102004a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
102104a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
102204a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
102304a85b3bSwdenk	$(if $(findstring MHz,$@), \
102404a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
102504a85b3bSwdenk	$(if $(findstring VR,$@), \
102604a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
1027901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1028901787d6Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
1029901787d6Swdenk		  echo "... with lowboot configuration" ; \
1030901787d6Swdenk		}
103104a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
10327ebf7443Swdenk
1033db2f721fSwdenkMPC8266ADS_config:	unconfig
1034db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
1035db2f721fSwdenk
1036efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
103710f67017SwdenkPM825_config	\
1038efa329cbSwdenkPM825_ROMBOOT_config	\
1039efa329cbSwdenkPM825_BIGFLASH_config	\
1040efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
10417ebf7443SwdenkPM826_config	\
1042efa329cbSwdenkPM826_ROMBOOT_config	\
1043efa329cbSwdenkPM826_BIGFLASH_config	\
1044efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1045efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1046efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
10477ebf7443Swdenk	else \
1048efa329cbSwdenk		>include/config.h ; \
1049efa329cbSwdenk	fi
1050efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1051efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1052efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1053efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1054efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1055efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1056efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
10577ebf7443Swdenk		fi; \
1058efa329cbSwdenk	else \
1059efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1060efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1061efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1062efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1063efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
1064efa329cbSwdenk		else \
1065efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
1066efa329cbSwdenk		fi; \
1067efa329cbSwdenk	fi
1068efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
1069efa329cbSwdenk
1070efa329cbSwdenkPM828_config	\
1071efa329cbSwdenkPM828_PCI_config	\
1072efa329cbSwdenkPM828_ROMBOOT_config	\
1073efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1074efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
1075efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
1076efa329cbSwdenk		echo "... with PCI enabled" ; \
1077efa329cbSwdenk	else \
1078efa329cbSwdenk		>include/config.h ; \
1079efa329cbSwdenk	fi
1080efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1081efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1082efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1083efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1084efa329cbSwdenk	fi
1085efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
10867ebf7443Swdenk
10877ebf7443Swdenkppmc8260_config:	unconfig
10887ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
10897ebf7443Swdenk
10908b0bfc68SwdenkRattler8248_config	\
10918b0bfc68SwdenkRattler_config:		unconfig
10928b0bfc68Swdenk	$(if $(findstring 8248,$@), \
10938b0bfc68Swdenk	@echo "#define CONFIG_MPC8248" > include/config.h)
10948b0bfc68Swdenk	@./mkconfig -a Rattler ppc mpc8260 rattler
10958b0bfc68Swdenk
10967ebf7443SwdenkRPXsuper_config:	unconfig
10977ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
10987ebf7443Swdenk
10997ebf7443Swdenkrsdproto_config:	unconfig
11007ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
11017ebf7443Swdenk
11027ebf7443Swdenksacsng_config:	unconfig
11037ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
11047ebf7443Swdenk
11057ebf7443Swdenksbc8260_config:	unconfig
11067ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
11077ebf7443Swdenk
11087ebf7443SwdenkSCM_config:		unconfig
11097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
11107ebf7443Swdenk
111127b207fdSwdenkTQM8255_AA_config \
111227b207fdSwdenkTQM8260_AA_config \
111327b207fdSwdenkTQM8260_AB_config \
111427b207fdSwdenkTQM8260_AC_config \
111527b207fdSwdenkTQM8260_AD_config \
111627b207fdSwdenkTQM8260_AE_config \
111727b207fdSwdenkTQM8260_AF_config \
111827b207fdSwdenkTQM8260_AG_config \
111927b207fdSwdenkTQM8260_AH_config \
112027b207fdSwdenkTQM8265_AA_config:  unconfig
112127b207fdSwdenk	@case "$@" in \
112227b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
112327b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
112427b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
112527b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
112627b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
112727b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
112827b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
112927b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
113027b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
113127b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
113227b207fdSwdenk	esac; \
113327b207fdSwdenk	>include/config.h ; \
113427b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
113527b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
113627b207fdSwdenk	fi; \
113727b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
113827b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
113927b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
11407ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
114127b207fdSwdenk		echo "... with L2 Cache support" ; \
11427ebf7443Swdenk	else \
11437ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
11447ebf7443Swdenk		echo "... without L2 Cache support" ; \
114527b207fdSwdenk	fi; \
114627b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
114727b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
114827b207fdSwdenk		echo "... with 60x Bus Mode" ; \
114927b207fdSwdenk	else \
115027b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
115127b207fdSwdenk		echo "... without 60x Bus Mode" ; \
11527ebf7443Swdenk	fi
11534532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
11547ebf7443Swdenk
115554387ac9SwdenkZPC1900_config: unconfig
115654387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
11577aa78614Swdenk
11584e5ca3ebSwdenk#========================================================================
11594e5ca3ebSwdenk# M68K
11604e5ca3ebSwdenk#========================================================================
11614e5ca3ebSwdenk#########################################################################
11624e5ca3ebSwdenk## Coldfire
11634e5ca3ebSwdenk#########################################################################
11644e5ca3ebSwdenk
11654e5ca3ebSwdenkM5272C3_config :		unconfig
1166bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
11674e5ca3ebSwdenk
11684e5ca3ebSwdenkM5282EVB_config :		unconfig
1169bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
11704e5ca3ebSwdenk
1171c419d1d6SstroeseTASREG_config :		unconfig
1172c419d1d6Sstroese	@./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
1173c419d1d6Sstroese
11747ebf7443Swdenk#########################################################################
117542d1f039Swdenk## MPC85xx Systems
117642d1f039Swdenk#########################################################################
117742d1f039Swdenk
117842d1f039SwdenkMPC8540ADS_config:	unconfig
117942d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
118042d1f039Swdenk
118142d1f039SwdenkMPC8560ADS_config:	unconfig
118242d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
118342d1f039Swdenk
118403f5c550SwdenkMPC8541CDS_config:	unconfig
118503f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
118603f5c550Swdenk
118703f5c550SwdenkMPC8555CDS_config:	unconfig
118803f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
11897abf0c58Swdenk
1190384cc687SwdenkPM854_config:	unconfig
1191384cc687Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx pm854
1192384cc687Swdenk
1193c15f3120Swdenksbc8540_config \
1194c15f3120Swdenksbc8540_33_config \
1195c15f3120Swdenksbc8540_66_config:	unconfig
1196c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1197c15f3120Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
1198c15f3120Swdenk		echo "... 66 MHz PCI" ; \
1199c15f3120Swdenk	else \
1200c15f3120Swdenk		>include/config.h ; \
1201c15f3120Swdenk		echo "... 33 MHz PCI" ; \
1202c15f3120Swdenk	fi
1203c15f3120Swdenk	@./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1204c15f3120Swdenk
1205466b7410Swdenksbc8560_config \
1206466b7410Swdenksbc8560_33_config \
1207466b7410Swdenksbc8560_66_config:      unconfig
12088b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
12098b07a110Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
12108b07a110Swdenk		echo "... 66 MHz PCI" ; \
12118b07a110Swdenk	else \
12128b07a110Swdenk		>include/config.h ; \
12138b07a110Swdenk		echo "... 33 MHz PCI" ; \
12148b07a110Swdenk	fi
1215466b7410Swdenk	@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
12168b07a110Swdenk
121703f5c550Swdenkstxgp3_config:		unconfig
121803f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
121903f5c550Swdenk
12209d46ea4aSwdenkTQM8540_config:      unconfig
12219d46ea4aSwdenk	@./mkconfig $(@:_config=) ppc mpc85xx tqm8540
12229d46ea4aSwdenk
1223f5c5ef4aSwdenkTQM8560_config:      unconfig
1224f5c5ef4aSwdenk	@./mkconfig $(@:_config=) ppc mpc85xx tqm8560
1225f5c5ef4aSwdenk
122642d1f039Swdenk#########################################################################
12277ebf7443Swdenk## 74xx/7xx Systems
12287ebf7443Swdenk#########################################################################
12297ebf7443Swdenk
1230c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1231c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1232c7de829cSwdenk
123315647dc7SwdenkBAB7xx_config: unconfig
123415647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
123515647dc7Swdenk
1236c419d1d6SstroeseCPCI750_config:        unconfig
1237c419d1d6Sstroese	@./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
1238c419d1d6Sstroese
12393a473b2aSwdenkDB64360_config:  unconfig
12403a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
12413a473b2aSwdenk
12423a473b2aSwdenkDB64460_config:  unconfig
12433a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
12443a473b2aSwdenk
124515647dc7SwdenkELPPC_config: unconfig
124615647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
124715647dc7Swdenk
12487ebf7443SwdenkEVB64260_config	\
12497ebf7443SwdenkEVB64260_750CX_config:	unconfig
12507ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
12517ebf7443Swdenk
125215647dc7SwdenkP3G4_config: unconfig
12537ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
12547ebf7443Swdenk
12557ebf7443SwdenkPCIPPC2_config \
12567ebf7443SwdenkPCIPPC6_config: unconfig
12577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
12587ebf7443Swdenk
125915647dc7SwdenkZUMA_config:	unconfig
126012f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
126112f34241Swdenk
12627ebf7443Swdenk#========================================================================
12637ebf7443Swdenk# ARM
12647ebf7443Swdenk#========================================================================
12657ebf7443Swdenk#########################################################################
12667ebf7443Swdenk## StrongARM Systems
12677ebf7443Swdenk#########################################################################
12687ebf7443Swdenk
1269ea66bc88Swdenkassabet_config	:	unconfig
1270ea66bc88Swdenk	@./mkconfig $(@:_config=) arm sa1100 assabet
1271ea66bc88Swdenk
12727ebf7443Swdenkdnp1110_config	:	unconfig
12737ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
12747ebf7443Swdenk
1275855a496fSwdenkgcplus_config	:	unconfig
1276855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
1277855a496fSwdenk
1278855a496fSwdenklart_config	:	unconfig
1279855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
1280855a496fSwdenk
12817ebf7443Swdenkshannon_config	:	unconfig
12827ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
12837ebf7443Swdenk
12847ebf7443Swdenk#########################################################################
12852e5983d2Swdenk## ARM92xT Systems
12867ebf7443Swdenk#########################################################################
12877ebf7443Swdenk
1288b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
128943d9616cSwdenk
12903ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
129163e73c9aSwdenk
1292a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1293a56bd922Swdenk
1294a85f9f21Swdenkat91rm9200dk_config	:	unconfig
1295a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1296a85f9f21Swdenk
1297a85f9f21Swdenkcmc_pu2_config	:	unconfig
1298a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1299a85f9f21Swdenk
13003d3befa7Swdenkintegratorap_config :	unconfig
13013d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorap
13023d3befa7Swdenk
130325d6712aSwdenkintegratorcp_config :	unconfig
130425d6712aSwdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorcp
130525d6712aSwdenk
1306f832d8a1Swdenklpd7a400_config \
1307f832d8a1Swdenklpd7a404_config:	unconfig
13082d24a3a7Swdenk	@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
13093d3befa7Swdenk
1310281e00a3Swdenkmx1ads_config	:	unconfig
13111d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
1312281e00a3Swdenk
1313281e00a3Swdenkmx1fs2_config	:	unconfig
13141d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
1315281e00a3Swdenk
13162e5983d2Swdenkomap1510inn_config :	unconfig
13172e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
13182e5983d2Swdenk
13191eaeb58eSwdenkomap5912osk_config :	unconfig
13201eaeb58eSwdenk	@./mkconfig $(@:_config=) arm arm926ejs omap5912osk
13211eaeb58eSwdenk
132263e73c9aSwdenkomap1610inn_config \
132363e73c9aSwdenkomap1610inn_cs0boot_config \
132463e73c9aSwdenkomap1610inn_cs3boot_config \
13253ff02c27Swdenkomap1610inn_cs_autoboot_config \
132663e73c9aSwdenkomap1610h2_config \
132763e73c9aSwdenkomap1610h2_cs0boot_config \
13283ff02c27Swdenkomap1610h2_cs3boot_config \
13293ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
133063e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
133163e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1332b79a11ccSwdenk		echo "... configured for CS0 boot"; \
13333ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
13343ff02c27Swdenk		echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
13353ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
133663e73c9aSwdenk	else \
133763e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1338b79a11ccSwdenk		echo "... configured for CS3 boot"; \
133963e73c9aSwdenk	fi;
134063e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
13416f21347dSwdenk
1342a56bd922Swdenkomap730p2_config \
1343a56bd922Swdenkomap730p2_cs0boot_config \
1344a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1345a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1346a56bd922Swdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1347a56bd922Swdenk		echo "... configured for CS0 boot"; \
1348a56bd922Swdenk	else \
1349a56bd922Swdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1350a56bd922Swdenk		echo "... configured for CS3 boot"; \
1351a56bd922Swdenk	fi;
1352a56bd922Swdenk	@./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1353a56bd922Swdenk
1354281e00a3Swdenkscb9328_config	:	unconfig
13551d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
1356281e00a3Swdenk
13577ebf7443Swdenksmdk2400_config	:	unconfig
13581d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
13597ebf7443Swdenk
13607ebf7443Swdenksmdk2410_config	:	unconfig
13611d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
13627ebf7443Swdenk
13632d24a3a7SwdenkSX1_config :		unconfig
13642d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm925t sx1
13652d24a3a7Swdenk
1366b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
136743d9616cSwdenktrab_config \
1368b0639ca3Swdenktrab_bigram_config \
1369b0639ca3Swdenktrab_bigflash_config \
1370f54ebdfaSwdenktrab_old_config:	unconfig
137143d9616cSwdenk	@ >include/config.h
1372b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1373b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1374b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1375b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1376b0639ca3Swdenk		}
1377b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1378b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1379b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1380b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1381a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1382b0639ca3Swdenk		}
1383f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1384b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1385b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1386b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1387a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
138843d9616cSwdenk		}
13891d9f4105Swdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
13907ebf7443Swdenk
13911cb8e980SwdenkVCMA9_config	:	unconfig
13921d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
13931cb8e980Swdenk
13942d24a3a7Swdenkversatile_config :	unconfig
13952d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs versatile
1396074cff0dSwdenk
13973c2b3d45Swdenkvoiceblue_smallflash_config	\
13983c2b3d45Swdenkvoiceblue_config:	unconfig
13993c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
14003c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
14013c2b3d45Swdenk		echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
14023c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
14033c2b3d45Swdenk	else \
14043c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
14053c2b3d45Swdenk		>include/config.h ; \
14063c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
14073c2b3d45Swdenk	fi
14083c2b3d45Swdenk	@./mkconfig -a voiceblue arm arm925t voiceblue
14093c2b3d45Swdenk
1410*16b013e7Swdenkcm4008_config	:	unconfig
1411*16b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
1412*16b013e7Swdenk
1413*16b013e7Swdenkcm41xx_config	:	unconfig
1414*16b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
1415*16b013e7Swdenk
1416074cff0dSwdenk#########################################################################
1417074cff0dSwdenk## S3C44B0 Systems
1418074cff0dSwdenk#########################################################################
1419074cff0dSwdenk
1420074cff0dSwdenkB2_config	:	unconfig
1421074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1422074cff0dSwdenk
14237ebf7443Swdenk#########################################################################
14247ebf7443Swdenk## ARM720T Systems
14257ebf7443Swdenk#########################################################################
14267ebf7443Swdenk
14277ebf7443Swdenkep7312_config	:	unconfig
14287ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
14297ebf7443Swdenk
14302d24a3a7Swdenkimpa7_config	:	unconfig
14312d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
14322d24a3a7Swdenk
14332d1a537dSwdenkmodnet50_config :	unconfig
14342d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
14352d1a537dSwdenk
143639539887Swdenkevb4510_config :	unconfig
143739539887Swdenk	@./mkconfig $(@:_config=) arm arm720t evb4510
143839539887Swdenk
14397ebf7443Swdenk#########################################################################
144043d9616cSwdenk## XScale Systems
14417ebf7443Swdenk#########################################################################
14427ebf7443Swdenk
144320787e23Swdenkadsvix_config	:	unconfig
144420787e23Swdenk	@./mkconfig $(@:_config=) arm pxa adsvix
144520787e23Swdenk
1446fabd46acSwdenkcerf250_config :	unconfig
1447fabd46acSwdenk	@./mkconfig $(@:_config=) arm pxa cerf250
1448fabd46acSwdenk
14497ebf7443Swdenkcradle_config	:	unconfig
14504c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
14517ebf7443Swdenk
14527ebf7443Swdenkcsb226_config	:	unconfig
14534c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
14547ebf7443Swdenk
145543d9616cSwdenkinnokom_config	:	unconfig
14564c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
145743d9616cSwdenk
14582d5b561eSwdenkixdp425_config	:	unconfig
14592d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
14602d5b561eSwdenk
146143d9616cSwdenklubbock_config	:	unconfig
14624c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
146343d9616cSwdenk
146452f52c14Swdenklogodl_config	:	unconfig
146552f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
146652f52c14Swdenk
14673e38691eSwdenkwepep250_config	:	unconfig
14684c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
14693e38691eSwdenk
14704ec3a7f0Swdenkxaeniax_config	:	unconfig
14714ec3a7f0Swdenk	@./mkconfig $(@:_config=) arm pxa xaeniax
14724ec3a7f0Swdenk
1473efa329cbSwdenkxm250_config	:	unconfig
1474efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1475efa329cbSwdenk
1476ca0e7748Swdenkxsengine_config :	unconfig
1477ca0e7748Swdenk	@./mkconfig $(@:_config=) arm pxa xsengine
1478ca0e7748Swdenk
14798ed96046Swdenk#########################################################################
14808ed96046Swdenk## ARM1136 Systems
14818ed96046Swdenk#########################################################################
14828ed96046Swdenkomap2420h4_config :    unconfig
14838ed96046Swdenk	@./mkconfig $(@:_config=) arm arm1136 omap2420h4
14848ed96046Swdenk
14852262cfeeSwdenk#========================================================================
14862262cfeeSwdenk# i386
14872262cfeeSwdenk#========================================================================
14882262cfeeSwdenk#########################################################################
14892262cfeeSwdenk## AMD SC520 CDP
14902262cfeeSwdenk#########################################################################
14912262cfeeSwdenksc520_cdp_config	:	unconfig
14922262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
14932262cfeeSwdenk
14947a8e9bedSwdenksc520_spunk_config	:	unconfig
14957a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
14967a8e9bedSwdenk
14977a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
14987a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
14997a8e9bedSwdenk
150043d9616cSwdenk#========================================================================
150143d9616cSwdenk# MIPS
150243d9616cSwdenk#========================================================================
15037ebf7443Swdenk#########################################################################
150443d9616cSwdenk## MIPS32 4Kc
150543d9616cSwdenk#########################################################################
150643d9616cSwdenk
1507e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1508e0ac62d7Swdenk
1509e0ac62d7Swdenkincaip_100MHz_config	\
1510e0ac62d7Swdenkincaip_133MHz_config	\
1511e0ac62d7Swdenkincaip_150MHz_config	\
151243d9616cSwdenkincaip_config: unconfig
1513e0ac62d7Swdenk	@ >include/config.h
1514e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1515e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1516e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1517e0ac62d7Swdenk		}
1518e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1519e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1520e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1521e0ac62d7Swdenk		}
1522e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1523e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1524e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1525e0ac62d7Swdenk		}
1526e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1527e0ac62d7Swdenk
1528f4863a7aSwdenktb0229_config: unconfig
1529f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1530f4863a7aSwdenk
1531e0ac62d7Swdenk#########################################################################
153269459791Swdenk## MIPS32 AU1X00
153369459791Swdenk#########################################################################
153469459791Swdenkdbau1000_config		: 	unconfig
153569459791Swdenk	@ >include/config.h
153669459791Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
153769459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
153869459791Swdenk
153969459791Swdenkdbau1100_config		: 	unconfig
154069459791Swdenk	@ >include/config.h
154169459791Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
154269459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
154369459791Swdenk
154469459791Swdenkdbau1500_config		: 	unconfig
154569459791Swdenk	@ >include/config.h
154669459791Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
154769459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
154869459791Swdenk
1549ff36fd85Swdenkdbau1550_config		:	unconfig
1550ff36fd85Swdenk	@ >include/config.h
1551ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
1552ff36fd85Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1553ff36fd85Swdenk
1554ff36fd85Swdenkdbau1550_el_config	:	unconfig
1555ff36fd85Swdenk	@ >include/config.h
1556ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
1557ff36fd85Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00 "" little
1558ff36fd85Swdenk
155969459791Swdenk#########################################################################
1560e0ac62d7Swdenk## MIPS64 5Kc
1561e0ac62d7Swdenk#########################################################################
156243d9616cSwdenk
15633e38691eSwdenkpurple_config :		unconfig
15643e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
156543d9616cSwdenk
15664a551709Swdenk#========================================================================
15674a551709Swdenk# Nios
15684a551709Swdenk#========================================================================
15694a551709Swdenk#########################################################################
15704a551709Swdenk## Nios32
15714a551709Swdenk#########################################################################
15724a551709Swdenk
1573c935d3bdSwdenkDK1C20_safe_32_config		\
1574c935d3bdSwdenkDK1C20_standard_32_config	\
15754a551709SwdenkDK1C20_config:	unconfig
1576c935d3bdSwdenk	@ >include/config.h
1577c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1578c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1579c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1580c935d3bdSwdenk		}
1581c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1582c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1583c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1584c935d3bdSwdenk		}
1585c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1586c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1587c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1588c935d3bdSwdenk		}
1589c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1590c935d3bdSwdenk
1591c935d3bdSwdenkDK1S10_safe_32_config		\
1592c935d3bdSwdenkDK1S10_standard_32_config	\
1593ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1594c935d3bdSwdenkDK1S10_config:	unconfig
1595c935d3bdSwdenk	@ >include/config.h
1596c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1597c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1598c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1599c935d3bdSwdenk		}
1600c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1601c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1602c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1603c935d3bdSwdenk		}
1604ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1605ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1606ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1607ec4c544bSwdenk		}
1608c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1609c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1610c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1611c935d3bdSwdenk		}
1612c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
16134a551709Swdenk
1614aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1615aaf224abSwdenkADNPESC1_base_32_config		\
1616aaf224abSwdenkADNPESC1_config: unconfig
1617aaf224abSwdenk	@ >include/config.h
1618aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1619aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1620aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1621aaf224abSwdenk		}
1622aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1623aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1624aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1625aaf224abSwdenk		}
1626aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1627aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1628aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1629aaf224abSwdenk		}
1630aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1631aaf224abSwdenk
16325c952cf0Swdenk#########################################################################
16335c952cf0Swdenk## Nios-II
16345c952cf0Swdenk#########################################################################
16355c952cf0Swdenk
16365c952cf0SwdenkPK1C20_config : unconfig
16375c952cf0Swdenk	@./mkconfig  PK1C20 nios2 nios2 pk1c20 psyent
16385c952cf0Swdenk
16395c952cf0SwdenkPCI5441_config : unconfig
16405c952cf0Swdenk	@./mkconfig  PCI5441 nios2 nios2 pci5441 psyent
16414a551709Swdenk
1642507bbe3eSwdenk#========================================================================
1643507bbe3eSwdenk# MicroBlaze
1644507bbe3eSwdenk#========================================================================
1645507bbe3eSwdenk#########################################################################
1646507bbe3eSwdenk## Microblaze
1647507bbe3eSwdenk#########################################################################
1648507bbe3eSwdenksuzaku_config:	unconfig
1649507bbe3eSwdenk	@ >include/config.h
1650507bbe3eSwdenk	@echo "#define CONFIG_SUZAKU 1" >> include/config.h
1651507bbe3eSwdenk	@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1652507bbe3eSwdenk
16533e38691eSwdenk#########################################################################
16543e38691eSwdenk#########################################################################
16557ebf7443Swdenk
16567ebf7443Swdenkclean:
16577ebf7443Swdenk	find . -type f \
16587ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
16597ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
16607ebf7443Swdenk		| xargs rm -f
166185ec0bccSwdenk	rm -f examples/hello_world examples/timer \
16623e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
1663ed16fefcSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom \
1664ed16fefcSwdenk	      examples/test_burst
16657ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1666eedcd078Swdenk	rm -f tools/mpc86x_clk tools/ncb
16677ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
16687ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1669228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
16707f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
16717e780369Swdenk	rm -f board/trab/trab_fkt
16727ebf7443Swdenk
16737ebf7443Swdenkclobber:	clean
16744c0d4c3bSwdenk	find . -type f \( -name .depend \
16754c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
16764c0d4c3bSwdenk		-print0 \
16774c0d4c3bSwdenk		| xargs -0 rm -f
16787ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
16797ebf7443Swdenk	rm -fr *.*~
16806310eb9dSwdenk	rm -f u-boot u-boot.map u-boot.hex $(ALL)
1681228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
16823e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1683b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
16847ebf7443Swdenk
16857ebf7443Swdenkmrproper \
16867ebf7443Swdenkdistclean:	clobber unconfig
16877ebf7443Swdenk
16887ebf7443Swdenkbackup:
16897ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
16907ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
16917ebf7443Swdenk
16927ebf7443Swdenk#########################################################################
1693