xref: /openbmc/u-boot/Makefile (revision db01a2ea)
17ebf7443Swdenk#
2d4ca31c4Swdenk# (C) Copyright 2000-2004
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
107ebf7443Swdenk# published by the Free Software Foundation; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
247ebf7443SwdenkHOSTARCH := $(shell uname -m | \
257ebf7443Swdenk	sed -e s/i.86/i386/ \
267ebf7443Swdenk	    -e s/sun4u/sparc64/ \
277ebf7443Swdenk	    -e s/arm.*/arm/ \
287ebf7443Swdenk	    -e s/sa110/arm/ \
297ebf7443Swdenk	    -e s/powerpc/ppc/ \
307ebf7443Swdenk	    -e s/macppc/ppc/)
317ebf7443Swdenk
327ebf7443SwdenkHOSTOS := $(shell uname -s | tr A-Z a-z | \
337ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
347ebf7443Swdenk
357ebf7443Swdenkexport	HOSTARCH
367ebf7443Swdenk
377ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
387ebf7443SwdenkVENDOR=
397ebf7443Swdenk
407ebf7443Swdenk#########################################################################
417ebf7443Swdenk
427ebf7443SwdenkTOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
437ebf7443Swdenkexport	TOPDIR
447ebf7443Swdenk
457ebf7443Swdenkifeq (include/config.mk,$(wildcard include/config.mk))
467ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
477ebf7443Swdenkinclude include/config.mk
487ebf7443Swdenkexport	ARCH CPU BOARD VENDOR
497ebf7443Swdenk# load other configuration
507ebf7443Swdenkinclude $(TOPDIR)/config.mk
517ebf7443Swdenk
527ebf7443Swdenkifndef CROSS_COMPILE
537ebf7443Swdenkifeq ($(HOSTARCH),ppc)
547ebf7443SwdenkCROSS_COMPILE =
557ebf7443Swdenkelse
567ebf7443Swdenkifeq ($(ARCH),ppc)
577ebf7443SwdenkCROSS_COMPILE = ppc_8xx-
587ebf7443Swdenkendif
597ebf7443Swdenkifeq ($(ARCH),arm)
60dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
617ebf7443Swdenkendif
622262cfeeSwdenkifeq ($(ARCH),i386)
637a8e9bedSwdenkifeq ($(HOSTARCH),i386)
647a8e9bedSwdenkCROSS_COMPILE =
657a8e9bedSwdenkelse
667a8e9bedSwdenkCROSS_COMPILE = i386-linux-
677a8e9bedSwdenkendif
682262cfeeSwdenkendif
6943d9616cSwdenkifeq ($(ARCH),mips)
7043d9616cSwdenkCROSS_COMPILE = mips_4KC-
7143d9616cSwdenkendif
724a551709Swdenkifeq ($(ARCH),nios)
734a551709SwdenkCROSS_COMPILE = nios-elf-
744a551709Swdenkendif
754e5ca3ebSwdenkifeq ($(ARCH),m68k)
764e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
774e5ca3ebSwdenkendif
787ebf7443Swdenkendif
797ebf7443Swdenkendif
807ebf7443Swdenk
817ebf7443Swdenkexport	CROSS_COMPILE
827ebf7443Swdenk
837ebf7443Swdenk#########################################################################
847ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
857ebf7443Swdenk
867ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
872262cfeeSwdenkifeq ($(CPU),i386)
882262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
892262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
902262cfeeSwdenkendif
917ebf7443Swdenkifeq ($(CPU),ppc4xx)
927ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
937ebf7443Swdenkendif
9442d1f039Swdenkifeq ($(CPU),mpc85xx)
9542d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
9642d1f039Swdenkendif
977ebf7443Swdenk
989fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
999fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1007ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1017ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
102518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
103518e2e1aSwdenk	fs/reiserfs/libreiserfs.a
1047ebf7443SwdenkLIBS += net/libnet.a
1057ebf7443SwdenkLIBS += disk/libdisk.a
1067ebf7443SwdenkLIBS += rtc/librtc.a
1077ebf7443SwdenkLIBS += dtt/libdtt.a
1087ebf7443SwdenkLIBS += drivers/libdrivers.a
1097152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1107ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1117ebf7443SwdenkLIBS += common/libcommon.a
1129fd5e31fSwdenk.PHONY : $(LIBS)
113a8c7c708Swdenk
1144f7cb08eSwdenk# Add GCC lib
1153d3befa7SwdenkPLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1163d3befa7Swdenk
1177ebf7443Swdenk
118a8c7c708Swdenk# The "tools" are needed early, so put this first
119a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
120a8c7c708SwdenkSUBDIRS	= tools \
121a8c7c708Swdenk	  examples \
122a8c7c708Swdenk	  post \
123a8c7c708Swdenk	  post/cpu
124b028f715Swdenk.PHONY : $(SUBDIRS)
125a8c7c708Swdenk
1267ebf7443Swdenk#########################################################################
127bdccc4feSwdenk#########################################################################
1287ebf7443Swdenk
129bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1307ebf7443Swdenk
131bdccc4feSwdenkall:		$(ALL)
1327ebf7443Swdenk
1337ebf7443Swdenku-boot.srec:	u-boot
1347ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1357ebf7443Swdenk
1367ebf7443Swdenku-boot.bin:	u-boot
1377ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1387ebf7443Swdenk
139bdccc4feSwdenku-boot.img:	u-boot.bin
140bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
141bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
142bdccc4feSwdenk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
143bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
144bdccc4feSwdenk		-d $< $@
145bdccc4feSwdenk
1467ebf7443Swdenku-boot.dis:	u-boot
1477ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1487ebf7443Swdenk
149a8c7c708Swdenku-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1508bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1518bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1527152b1d0Swdenk			--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
153b2184c31Swdenk			-Map u-boot.map -o u-boot
1547ebf7443Swdenk
155a8c7c708Swdenk$(LIBS):
156a8c7c708Swdenk		$(MAKE) -C `dirname $@`
157a8c7c708Swdenk
158a8c7c708Swdenk$(SUBDIRS):
159b028f715Swdenk		$(MAKE) -C $@ all
1607ebf7443Swdenk
1618f713fdfSdzugdbtools:
1628f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
1638f713fdfSdzu
1647ebf7443Swdenkdepend dep:
1657ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
1667ebf7443Swdenk
1677ebf7443Swdenktags:
1687ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
169bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
170bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
171bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
1727ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1737ebf7443Swdenk
1747ebf7443Swdenketags:
1757ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
1767ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1777ebf7443Swdenk
1787ebf7443SwdenkSystem.map:	u-boot
1797ebf7443Swdenk		@$(NM) $< | \
1807ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1817ebf7443Swdenk		sort > System.map
1827ebf7443Swdenk
1837ebf7443Swdenk#########################################################################
1847ebf7443Swdenkelse
1857ebf7443Swdenkall install u-boot u-boot.srec depend dep:
1867ebf7443Swdenk	@echo "System not configured - see README" >&2
1877ebf7443Swdenk	@ exit 1
1887ebf7443Swdenkendif
1897ebf7443Swdenk
1907ebf7443Swdenk#########################################################################
1917ebf7443Swdenk
1927ebf7443Swdenkunconfig:
19317d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
1947ebf7443Swdenk
1957ebf7443Swdenk#========================================================================
1967ebf7443Swdenk# PowerPC
1977ebf7443Swdenk#========================================================================
1980db5bca8Swdenk
1990db5bca8Swdenk#########################################################################
2000db5bca8Swdenk## MPC5xx Systems
2010db5bca8Swdenk#########################################################################
2020db5bca8Swdenk
2030db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2040db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2050db5bca8Swdenk
206b6e4c403SwdenkPATI_config:		unconfig
207b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
208b6e4c403Swdenk
2097ebf7443Swdenk#########################################################################
210945af8d7Swdenk## MPC5xxx Systems
211945af8d7Swdenk#########################################################################
2125cf9da48SwdenkMPC5200LITE_config		\
2135cf9da48SwdenkMPC5200LITE_LOWBOOT_config	\
2145cf9da48SwdenkMPC5200LITE_LOWBOOT08_config	\
215b2001f27Swdenkicecube_5200_DDR_config		\
216b2001f27SwdenkIceCube_5200_DDR_config		\
21779d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \
21879d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \
219a0f2fe52Swdenkicecube_5200_config		\
220945af8d7SwdenkIceCube_5200_config		\
221945af8d7SwdenkIceCube_5100_config:		unconfig
222945af8d7Swdenk	@ >include/config.h
22317d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
22417d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
22517d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
22617d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
22717d704ebSwdenk		  fi ; \
2285cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2295cf9da48Swdenk		}
2305cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2315cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2325cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
23317d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2345cf9da48Swdenk		}
235b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
236b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
237b2001f27Swdenk		  echo "... DDR memory revision" ; \
238b2001f27Swdenk		}
239d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
240d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
241d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
242d4ca31c4Swdenk		}
243a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
244945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
245945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
246945af8d7Swdenk		}
247945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
248945af8d7Swdenk
249d4ca31c4SwdenkMINI5200_config	\
250d4ca31c4SwdenkEVAL5200_config	\
251d4ca31c4SwdenkTOP5200_config:	unconfig
252d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
253d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
254d4ca31c4Swdenk
255efa329cbSwdenkPM520_config:	unconfig
256efa329cbSwdenk	@./mkconfig $(@:_config=) ppc mpc5xxx pm520
257efa329cbSwdenk
258945af8d7Swdenk#########################################################################
2597ebf7443Swdenk## MPC8xx Systems
2607ebf7443Swdenk#########################################################################
2617ebf7443Swdenk
2620cb61d7dSwdenkAdderII_config:	unconfig
2630cb61d7dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx adderII
2640cb61d7dSwdenk
265180d3f74SwdenkADS860_config     \
266180d3f74SwdenkDUET_ADS_config   \
267180d3f74SwdenkFADS823_config    \
268180d3f74SwdenkFADS850SAR_config \
269180d3f74SwdenkMPC86xADS_config  \
270180d3f74SwdenkFADS860T_config:	unconfig
2717ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
2727ebf7443Swdenk
2737ebf7443SwdenkAMX860_config	:	unconfig
2747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
2757ebf7443Swdenk
2767ebf7443Swdenkc2mon_config:		unconfig
2777ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
2787ebf7443Swdenk
2797ebf7443SwdenkCCM_config:		unconfig
2807ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
2817ebf7443Swdenk
2827ebf7443Swdenkcogent_mpc8xx_config:	unconfig
2837ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
2847ebf7443Swdenk
2853bac3513SwdenkELPT860_config:		unconfig
2863bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
2873bac3513Swdenk
2887ebf7443SwdenkESTEEM192E_config:	unconfig
2897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
2907ebf7443Swdenk
2917ebf7443SwdenkETX094_config	:	unconfig
2927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
2937ebf7443Swdenk
2947ebf7443SwdenkFLAGADM_config:	unconfig
2957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
2967ebf7443Swdenk
2977aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
2987aa78614Swdenk
2997aa78614SwdenkGEN860T_SC_config	\
3007ebf7443SwdenkGEN860T_config: unconfig
3017aa78614Swdenk	@ >include/config.h
3027aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
3037aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
3047aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
3057aa78614Swdenk		}
3067aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
3077ebf7443Swdenk
3087ebf7443SwdenkGENIETV_config:	unconfig
3097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
3107ebf7443Swdenk
3117ebf7443SwdenkGTH_config:	unconfig
3127ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
3137ebf7443Swdenk
3147ebf7443Swdenkhermes_config	:	unconfig
3157ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
3167ebf7443Swdenk
317c40b2956SwdenkHMI10_config	:	unconfig
318c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
319c40b2956Swdenk
3207ebf7443SwdenkIAD210_config: unconfig
3217ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
3227ebf7443Swdenk
3237ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
3247ebf7443Swdenk
3257ebf7443SwdenkICU862_100MHz_config	\
3267ebf7443SwdenkICU862_config: unconfig
3277ebf7443Swdenk	@ >include/config.h
3287ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
3297ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
3307ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
3317ebf7443Swdenk		}
3327ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
3337ebf7443Swdenk
3347ebf7443SwdenkIP860_config	:	unconfig
3357ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
3367ebf7443Swdenk
3377ebf7443SwdenkIVML24_256_config \
3387ebf7443SwdenkIVML24_128_config \
3397ebf7443SwdenkIVML24_config:	unconfig
3407ebf7443Swdenk	@ >include/config.h
3417ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
3427ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
3437ebf7443Swdenk		 }
3447ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
3457ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
3467ebf7443Swdenk		 }
3477ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
3487ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
3497ebf7443Swdenk		 }
3507ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
3517ebf7443Swdenk
3527ebf7443SwdenkIVMS8_256_config \
3537ebf7443SwdenkIVMS8_128_config \
3547ebf7443SwdenkIVMS8_config:	unconfig
3557ebf7443Swdenk	@ >include/config.h
3567ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
3577ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
3587ebf7443Swdenk		 }
3597ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
3607ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
3617ebf7443Swdenk		 }
3627ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
3637ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
3647ebf7443Swdenk		 }
3657ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
3667ebf7443Swdenk
36756f94be3SwdenkKUP4K_config	:	unconfig
3680608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
3690608e04dSwdenk
3700608e04dSwdenkKUP4X_config    :       unconfig
3710608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
37256f94be3Swdenk
3737ebf7443SwdenkLANTEC_config	:	unconfig
3747ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
3757ebf7443Swdenk
3767ebf7443Swdenklwmon_config:		unconfig
3777ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
3787ebf7443Swdenk
3797ebf7443SwdenkMBX_config	\
3807ebf7443SwdenkMBX860T_config:	unconfig
3817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
3827ebf7443Swdenk
3837ebf7443SwdenkMHPC_config:		unconfig
3847ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
3857ebf7443Swdenk
3867ebf7443SwdenkMVS1_config :		unconfig
3877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
3887ebf7443Swdenk
389993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
390993cad93Swdenk
391993cad93SwdenkNETVIA_V2_config \
3927ebf7443SwdenkNETVIA_config:		unconfig
393993cad93Swdenk	@ >include/config.h
394993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
395993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
396993cad93Swdenk		  echo "... Version 1" ; \
397993cad93Swdenk		 }
398993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
399993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
400993cad93Swdenk		  echo "... Version 2" ; \
401993cad93Swdenk		 }
402993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
4037ebf7443Swdenk
40404a85b3bSwdenkNETPHONE_config:	unconfig
40504a85b3bSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx netphone
40604a85b3bSwdenk
40704a85b3bSwdenkxtract_NETTA = $(subst _ISDN,,$(subst _config,,$1))
40804a85b3bSwdenk
40904a85b3bSwdenkNETTA_ISDN_config \
41004a85b3bSwdenkNETTA_config:		unconfig
41104a85b3bSwdenk	@ >include/config.h
41204a85b3bSwdenk	@[ -z "$(findstring NETTA_config,$@)" ] || \
41304a85b3bSwdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
41404a85b3bSwdenk		 }
41504a85b3bSwdenk	@[ -z "$(findstring NETTA_ISDN_config,$@)" ] || \
41604a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
41704a85b3bSwdenk		 }
41804a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
41904a85b3bSwdenk
4207ebf7443SwdenkNX823_config:		unconfig
4217ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
4227ebf7443Swdenk
4237ebf7443Swdenkpcu_e_config:		unconfig
4247ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
4257ebf7443Swdenk
4263bbc899fSwdenkQS850_config:	unconfig
4273bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
4283bbc899fSwdenk
4293bbc899fSwdenkQS823_config:	unconfig
4303bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
4313bbc899fSwdenk
4323bbc899fSwdenkQS860T_config:	unconfig
4333bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
4343bbc899fSwdenk
4357ebf7443SwdenkR360MPI_config:	unconfig
4367ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
4377ebf7443Swdenk
438682011ffSwdenkRBC823_config:	unconfig
439682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
440682011ffSwdenk
4417ebf7443SwdenkRPXClassic_config:	unconfig
4427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
4437ebf7443Swdenk
4447ebf7443SwdenkRPXlite_config:		unconfig
4457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
4467ebf7443Swdenk
44773a8b27cSwdenkrmu_config:	unconfig
44873a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
44973a8b27cSwdenk
4507ebf7443SwdenkRRvision_config:	unconfig
4517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
4527ebf7443Swdenk
4537ebf7443SwdenkRRvision_LCD_config:	unconfig
4547ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
4557ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
4567ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
4577ebf7443Swdenk
4587ebf7443SwdenkSM850_config	:	unconfig
4597ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
4607ebf7443Swdenk
4617ebf7443SwdenkSPD823TS_config:	unconfig
4627ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
4637ebf7443Swdenk
464dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
465dc7c9a1aSwdenk	@ >include/config.h
466dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
467dc7c9a1aSwdenk
4687ebf7443SwdenkSXNI855T_config:	unconfig
4697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
4707ebf7443Swdenk
471db2f721fSwdenk# EMK MPC8xx based modules
472db2f721fSwdenkTOP860_config:		unconfig
473db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
474db2f721fSwdenk
4757ebf7443Swdenk# Play some tricks for configuration selection
47673a8b27cSwdenk# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
4777ebf7443Swdenk# but only 855 and 860 boards may come with FEC
4787ebf7443Swdenk# and 823 boards may have LCD support
479d4ca31c4Swdenkxtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _133MHz,,$(subst _LCD,,$(subst _config,,$1))))))
4807ebf7443Swdenk
4817ebf7443SwdenkFPS850L_config		\
482384ae025SwdenkFPS860L_config		\
483f12e568cSwdenkNSCU_config		\
4847ebf7443SwdenkTQM823L_config		\
4857ebf7443SwdenkTQM823L_66MHz_config	\
4867ebf7443SwdenkTQM823L_80MHz_config	\
4877ebf7443SwdenkTQM823L_LCD_config	\
4887ebf7443SwdenkTQM823L_LCD_66MHz_config \
4897ebf7443SwdenkTQM823L_LCD_80MHz_config \
4907ebf7443SwdenkTQM850L_config		\
4917ebf7443SwdenkTQM850L_66MHz_config	\
4927ebf7443SwdenkTQM850L_80MHz_config	\
4937ebf7443SwdenkTQM855L_config		\
4947ebf7443SwdenkTQM855L_66MHz_config	\
4957ebf7443SwdenkTQM855L_80MHz_config	\
4967ebf7443SwdenkTQM860L_config		\
4977ebf7443SwdenkTQM860L_66MHz_config	\
4987ebf7443SwdenkTQM860L_80MHz_config	\
499d126bfbdSwdenkTQM862L_config		\
500d126bfbdSwdenkTQM862L_66MHz_config	\
50173a8b27cSwdenkTQM862L_80MHz_config	\
502ae3af05eSwdenkTQM823M_config		\
503ae3af05eSwdenkTQM823M_66MHz_config	\
504ae3af05eSwdenkTQM823M_80MHz_config	\
505ae3af05eSwdenkTQM850M_config		\
506ae3af05eSwdenkTQM850M_66MHz_config	\
507ae3af05eSwdenkTQM850M_80MHz_config	\
508f12e568cSwdenkTQM855M_config		\
509f12e568cSwdenkTQM855M_66MHz_config	\
510f12e568cSwdenkTQM855M_80MHz_config	\
511f12e568cSwdenkTQM860M_config		\
512f12e568cSwdenkTQM860M_66MHz_config	\
513f12e568cSwdenkTQM860M_80MHz_config	\
514f12e568cSwdenkTQM862M_config		\
515f12e568cSwdenkTQM862M_66MHz_config	\
516f12e568cSwdenkTQM862M_80MHz_config	\
517d4ca31c4SwdenkTQM862M_100MHz_config	\
518c178d3daSwdenkTQM866M_config:		unconfig
5197ebf7443Swdenk	@ >include/config.h
5207ebf7443Swdenk	@[ -z "$(findstring _66MHz,$@)" ] || \
5217ebf7443Swdenk		{ echo "#define CONFIG_66MHz"		>>include/config.h ; \
5227ebf7443Swdenk		  echo "... with 66MHz system clock" ; \
5237ebf7443Swdenk		}
5247ebf7443Swdenk	@[ -z "$(findstring _80MHz,$@)" ] || \
5257ebf7443Swdenk		{ echo "#define CONFIG_80MHz"		>>include/config.h ; \
5267ebf7443Swdenk		  echo "... with 80MHz system clock" ; \
5277ebf7443Swdenk		}
52873a8b27cSwdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
52973a8b27cSwdenk		{ echo "#define CONFIG_100MHz"		>>include/config.h ; \
53073a8b27cSwdenk		  echo "... with 100MHz system clock" ; \
53173a8b27cSwdenk		}
532d4ca31c4Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
533d4ca31c4Swdenk		{ echo "#define CONFIG_133MHz"		>>include/config.h ; \
534d4ca31c4Swdenk		  echo "... with 133MHz system clock" ; \
535d4ca31c4Swdenk		}
5367ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
5377ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
538fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
5397ebf7443Swdenk		  echo "... with LCD display" ; \
5407ebf7443Swdenk		}
5417ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
5427ebf7443Swdenk
5437ebf7443SwdenkTTTech_config:	unconfig
5447ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
5457ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
5467ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
5477ebf7443Swdenk
548608c9146Swdenkv37_config:	unconfig
549608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
550608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
551608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
552608c9146Swdenk
55391e940d9Sdzuwtk_config:	unconfig
55491e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
55591e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
55691e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
55791e940d9Sdzu
5587ebf7443Swdenk#########################################################################
5597ebf7443Swdenk## PPC4xx Systems
5607ebf7443Swdenk#########################################################################
561fbe4b5cbSwdenkxtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
5627ebf7443Swdenk
5637ebf7443SwdenkADCIOP_config:	unconfig
5647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
5657ebf7443Swdenk
5667ebf7443SwdenkAR405_config:	unconfig
5677ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
5687ebf7443Swdenk
569549826eaSstroeseASH405_config:	unconfig
570549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
571549826eaSstroese
572549826eaSstroeseBUBINGA405EP_config:	unconfig
573549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
574549826eaSstroese
5757ebf7443SwdenkCANBT_config:	unconfig
5767ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
5777ebf7443Swdenk
5787ebf7443SwdenkCPCI405_config	\
579549826eaSstroeseCPCI4052_config	\
580549826eaSstroeseCPCI405AB_config:	unconfig
5817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
5827ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
5837ebf7443Swdenk
5847ebf7443SwdenkCPCI440_config:	unconfig
5857ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
5867ebf7443Swdenk
5877ebf7443SwdenkCPCIISER4_config:	unconfig
5887ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
5897ebf7443Swdenk
5907ebf7443SwdenkCRAYL1_config:	unconfig
5917ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
5927ebf7443Swdenk
593cd0a9de6Swdenkcsb272_config:	unconfig
594cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
595cd0a9de6Swdenk
5967ebf7443SwdenkDASA_SIM_config: unconfig
5977ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
5987ebf7443Swdenk
59972cd5aa7SstroeseDP405_config:	unconfig
60072cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
60172cd5aa7Sstroese
6027ebf7443SwdenkDU405_config:	unconfig
6037ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
6047ebf7443Swdenk
6057ebf7443SwdenkEBONY_config:	unconfig
6067ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ebony
6077ebf7443Swdenk
6087ebf7443SwdenkERIC_config:	unconfig
6097ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
6107ebf7443Swdenk
611d1cbe85bSwdenkEXBITGEN_config:	unconfig
612d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
613d1cbe85bSwdenk
61472cd5aa7SstroeseHUB405_config:	unconfig
61572cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
61672cd5aa7Sstroese
617*db01a2eaSwdenkJSE_config:	unconfig
618*db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
619*db01a2eaSwdenk
6207ebf7443SwdenkMIP405_config:	unconfig
6217ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
6227ebf7443Swdenk
623f3e0de60SwdenkMIP405T_config:	unconfig
624f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
625f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
626f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
627f3e0de60Swdenk
6287ebf7443SwdenkML2_config:	unconfig
6297ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
6307ebf7443Swdenk
631028ab6b5Swdenkml300_config:	unconfig
632028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
633028ab6b5Swdenk
6340e6d798cSwdenkOCOTEA_config:	unconfig
6350e6d798cSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocotea
6360e6d798cSwdenk
6377ebf7443SwdenkOCRTC_config		\
6387ebf7443SwdenkORSG_config:	unconfig
6397ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
6407ebf7443Swdenk
6417ebf7443SwdenkPCI405_config:	unconfig
6427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
6437ebf7443Swdenk
6447ebf7443SwdenkPIP405_config:	unconfig
6457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
6467ebf7443Swdenk
64772cd5aa7SstroesePLU405_config:	unconfig
64872cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
64972cd5aa7Sstroese
650549826eaSstroesePMC405_config:	unconfig
651549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
652549826eaSstroese
653fbe4b5cbSwdenkPPChameleonEVB_MODEL_BA_config	\
654fbe4b5cbSwdenkPPChameleonEVB_MODEL_ME_config	\
655fbe4b5cbSwdenkPPChameleonEVB_MODEL_HI_config	\
65612f34241SwdenkPPChameleonEVB_config:	unconfig
657fbe4b5cbSwdenk	@ >include/config.h
658fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_BA,$@)" ] || \
659fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
660fbe4b5cbSwdenk		  echo "... BASIC model" ; \
661fbe4b5cbSwdenk		}
662fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_ME,$@)" ] || \
663fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
664fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
665fbe4b5cbSwdenk		}
666fbe4b5cbSwdenk	@[ -z "$(findstring _MODEL_HI,$@)" ] || \
667fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
668fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
669fbe4b5cbSwdenk		}
670fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
67112f34241Swdenk
67272cd5aa7SstroeseVOH405_config:	unconfig
67372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
67472cd5aa7Sstroese
6757ebf7443SwdenkW7OLMC_config	\
6767ebf7443SwdenkW7OLMG_config: unconfig
6777ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
6787ebf7443Swdenk
6797ebf7443SwdenkWALNUT405_config:	unconfig
6807ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx walnut405
6817ebf7443Swdenk
682ba56f625SwdenkXPEDITE1K_config:	unconfig
683ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
684ba56f625Swdenk
6857ebf7443Swdenk#########################################################################
6867ebf7443Swdenk## MPC824x Systems
6877ebf7443Swdenk#########################################################################
688efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
6893bac3513Swdenk
6900332990bSwdenkA3000_config: unconfig
6910332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
6920332990bSwdenk
6937ebf7443SwdenkBMW_config: unconfig
6947ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
6957ebf7443Swdenk
6963bac3513SwdenkCPC45_config	\
6973bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
6983bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
6993bac3513Swdenk	@cd ./include ;				\
7003bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
7013bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
7023bac3513Swdenk		echo "... booting from 8-bit flash" ; \
7033bac3513Swdenk	else \
7043bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
7053bac3513Swdenk		echo "... booting from 64-bit flash" ; \
7063bac3513Swdenk	fi; \
7073bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
7083bac3513Swdenk
7097ebf7443SwdenkCU824_config: unconfig
7107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
7117ebf7443Swdenk
71280885a9dSwdenkeXalion_config: unconfig
71380885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
71480885a9dSwdenk
7157ebf7443SwdenkMOUSSE_config: unconfig
7167ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
7177ebf7443Swdenk
7187ebf7443SwdenkMUSENKI_config: unconfig
7197ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
7207ebf7443Swdenk
721b4676a25SwdenkMVBLUE_config:	unconfig
722b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
723b4676a25Swdenk
7247ebf7443SwdenkOXC_config: unconfig
7257ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
7267ebf7443Swdenk
7277ebf7443SwdenkPN62_config: unconfig
7287ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
7297ebf7443Swdenk
7307ebf7443SwdenkSandpoint8240_config: unconfig
7317ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
7327ebf7443Swdenk
7337ebf7443SwdenkSandpoint8245_config: unconfig
7347ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
7357ebf7443Swdenk
736d1cbe85bSwdenkSL8245_config: unconfig
737d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
738d1cbe85bSwdenk
7397ebf7443Swdenkutx8245_config: unconfig
7407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
7417ebf7443Swdenk
7427ebf7443Swdenk#########################################################################
7437ebf7443Swdenk## MPC8260 Systems
7447ebf7443Swdenk#########################################################################
7457ebf7443Swdenk
74654387ac9Swdenkatc_config:	unconfig
74754387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
74854387ac9Swdenk
7497ebf7443Swdenkcogent_mpc8260_config:	unconfig
7507ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
7517ebf7443Swdenk
7527ebf7443SwdenkCPU86_config	\
7537ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
7547ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
7557ebf7443Swdenk	@cd ./include ;				\
7567ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
7577ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
7587ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
7597ebf7443Swdenk	else \
7607ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
7617ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
7627ebf7443Swdenk	fi; \
7637ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
7647ebf7443Swdenk
7657ebf7443Swdenkep8260_config:	unconfig
7667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
7677ebf7443Swdenk
7687ebf7443Swdenkgw8260_config:	unconfig
7697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
7707ebf7443Swdenk
7717ebf7443Swdenkhymod_config:	unconfig
7727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
7737ebf7443Swdenk
7747ebf7443SwdenkIPHASE4539_config:	unconfig
7757ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
7767ebf7443Swdenk
77704a85b3bSwdenkMPC8260ADS_config	\
77804a85b3bSwdenkMPC8260ADS_33MHz_config	\
77904a85b3bSwdenkMPC8260ADS_40MHz_config	\
78004a85b3bSwdenkMPC8272ADS_config	\
78104a85b3bSwdenkPQ2FADS_config		\
78204a85b3bSwdenkPQ2FADS-VR_config	\
78304a85b3bSwdenkPQ2FADS-ZU_config	\
78404a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
78504a85b3bSwdenk	:		unconfig
78604a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
78704a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
78804a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
78904a85b3bSwdenk	$(if $(findstring MHz,$@), \
79004a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
79104a85b3bSwdenk	$(if $(findstring VR,$@), \
79204a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
79304a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
7947ebf7443Swdenk
795db2f721fSwdenkMPC8266ADS_config:	unconfig
796db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
797db2f721fSwdenk
798efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
79910f67017SwdenkPM825_config	\
800efa329cbSwdenkPM825_ROMBOOT_config	\
801efa329cbSwdenkPM825_BIGFLASH_config	\
802efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
8037ebf7443SwdenkPM826_config	\
804efa329cbSwdenkPM826_ROMBOOT_config	\
805efa329cbSwdenkPM826_BIGFLASH_config	\
806efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
807efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
808efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
8097ebf7443Swdenk	else \
810efa329cbSwdenk		>include/config.h ; \
811efa329cbSwdenk	fi
812efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
813efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
814efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
815efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
816efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
817efa329cbSwdenk			echo "... with 32 MB Flash" ; \
818efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
8197ebf7443Swdenk		fi; \
820efa329cbSwdenk	else \
821efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
822efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
823efa329cbSwdenk			echo "... with 32 MB Flash" ; \
824efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
825efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
826efa329cbSwdenk		else \
827efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
828efa329cbSwdenk		fi; \
829efa329cbSwdenk	fi
830efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
831efa329cbSwdenk
832efa329cbSwdenkPM828_config	\
833efa329cbSwdenkPM828_PCI_config	\
834efa329cbSwdenkPM828_ROMBOOT_config	\
835efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
836efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
837efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
838efa329cbSwdenk		echo "... with PCI enabled" ; \
839efa329cbSwdenk	else \
840efa329cbSwdenk		>include/config.h ; \
841efa329cbSwdenk	fi
842efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
843efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
844efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
845efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
846efa329cbSwdenk	fi
847efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
8487ebf7443Swdenk
8497ebf7443Swdenkppmc8260_config:	unconfig
8507ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
8517ebf7443Swdenk
8527ebf7443SwdenkRPXsuper_config:	unconfig
8537ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
8547ebf7443Swdenk
8557ebf7443Swdenkrsdproto_config:	unconfig
8567ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
8577ebf7443Swdenk
8587ebf7443Swdenksacsng_config:	unconfig
8597ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
8607ebf7443Swdenk
8617ebf7443Swdenksbc8260_config:	unconfig
8627ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
8637ebf7443Swdenk
8647ebf7443SwdenkSCM_config:		unconfig
8657ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
8667ebf7443Swdenk
86727b207fdSwdenkTQM8255_AA_config \
86827b207fdSwdenkTQM8260_AA_config \
86927b207fdSwdenkTQM8260_AB_config \
87027b207fdSwdenkTQM8260_AC_config \
87127b207fdSwdenkTQM8260_AD_config \
87227b207fdSwdenkTQM8260_AE_config \
87327b207fdSwdenkTQM8260_AF_config \
87427b207fdSwdenkTQM8260_AG_config \
87527b207fdSwdenkTQM8260_AH_config \
87627b207fdSwdenkTQM8265_AA_config:  unconfig
87727b207fdSwdenk	@case "$@" in \
87827b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
87927b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
88027b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
88127b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
88227b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
88327b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
88427b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
88527b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
88627b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
88727b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
88827b207fdSwdenk	esac; \
88927b207fdSwdenk	>include/config.h ; \
89027b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
89127b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
89227b207fdSwdenk	fi; \
89327b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
89427b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
89527b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
8967ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
89727b207fdSwdenk		echo "... with L2 Cache support" ; \
8987ebf7443Swdenk	else \
8997ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
9007ebf7443Swdenk		echo "... without L2 Cache support" ; \
90127b207fdSwdenk	fi; \
90227b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
90327b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
90427b207fdSwdenk		echo "... with 60x Bus Mode" ; \
90527b207fdSwdenk	else \
90627b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
90727b207fdSwdenk		echo "... without 60x Bus Mode" ; \
9087ebf7443Swdenk	fi
9094532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
9107ebf7443Swdenk
91154387ac9SwdenkZPC1900_config: unconfig
91254387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
9137aa78614Swdenk
9144e5ca3ebSwdenk#========================================================================
9154e5ca3ebSwdenk# M68K
9164e5ca3ebSwdenk#========================================================================
9174e5ca3ebSwdenk#########################################################################
9184e5ca3ebSwdenk## Coldfire
9194e5ca3ebSwdenk#########################################################################
9204e5ca3ebSwdenk
9214e5ca3ebSwdenkM5272C3_config :		unconfig
922bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
9234e5ca3ebSwdenk
9244e5ca3ebSwdenkM5282EVB_config :		unconfig
925bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
9264e5ca3ebSwdenk
9277ebf7443Swdenk#########################################################################
92842d1f039Swdenk## MPC85xx Systems
92942d1f039Swdenk#########################################################################
93042d1f039Swdenk
93142d1f039SwdenkMPC8540ADS_config:      unconfig
93242d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
93342d1f039Swdenk
93442d1f039SwdenkMPC8560ADS_config:      unconfig
93542d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
93642d1f039Swdenk
93742d1f039Swdenk#########################################################################
9387ebf7443Swdenk## 74xx/7xx Systems
9397ebf7443Swdenk#########################################################################
9407ebf7443Swdenk
941c7de829cSwdenkAmigaOneG3SE_config:	unconfig
942c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
943c7de829cSwdenk
94415647dc7SwdenkBAB7xx_config: unconfig
94515647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
94615647dc7Swdenk
9473a473b2aSwdenkDB64360_config:  unconfig
9483a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
9493a473b2aSwdenk
9503a473b2aSwdenkDB64460_config:  unconfig
9513a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
9523a473b2aSwdenk
95315647dc7Swdenkdebris_config: unconfig
95415647dc7Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
95515647dc7Swdenk
95615647dc7SwdenkELPPC_config: unconfig
95715647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
95815647dc7Swdenk
9597ebf7443SwdenkEVB64260_config	\
9607ebf7443SwdenkEVB64260_750CX_config:	unconfig
9617ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
9627ebf7443Swdenk
96315647dc7SwdenkP3G4_config: unconfig
9647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
9657ebf7443Swdenk
9667ebf7443SwdenkPCIPPC2_config \
9677ebf7443SwdenkPCIPPC6_config: unconfig
9687ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
9697ebf7443Swdenk
97015647dc7SwdenkZUMA_config:	unconfig
97112f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
97212f34241Swdenk
9737ebf7443Swdenk#========================================================================
9747ebf7443Swdenk# ARM
9757ebf7443Swdenk#========================================================================
9767ebf7443Swdenk#########################################################################
9777ebf7443Swdenk## StrongARM Systems
9787ebf7443Swdenk#########################################################################
9797ebf7443Swdenk
9807ebf7443Swdenkdnp1110_config	:	unconfig
9817ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
9827ebf7443Swdenk
983855a496fSwdenkgcplus_config	:	unconfig
984855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
985855a496fSwdenk
986855a496fSwdenklart_config	:	unconfig
987855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
988855a496fSwdenk
9897ebf7443Swdenkshannon_config	:	unconfig
9907ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
9917ebf7443Swdenk
9927ebf7443Swdenk#########################################################################
9932e5983d2Swdenk## ARM92xT Systems
9947ebf7443Swdenk#########################################################################
9957ebf7443Swdenk
996b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
99743d9616cSwdenk
99863e73c9aSwdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
99963e73c9aSwdenk
1000232c150aSwdenkSX1_config :		unconfig
1001232c150aSwdenk	@./mkconfig $(@:_config=) arm arm925t sx1
1002232c150aSwdenk
10033d3befa7Swdenkintegratorcp_config :	unconfig
10043d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorcp
10053d3befa7Swdenk
10063d3befa7Swdenkintegratorap_config :	unconfig
10073d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorap
10083d3befa7Swdenk
10093d3befa7Swdenkversatile_config :	unconfig
10103d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs versatile
10113d3befa7Swdenk
10122e5983d2Swdenkomap1510inn_config :	unconfig
10132e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
10142e5983d2Swdenk
101563e73c9aSwdenkomap1610inn_config \
101663e73c9aSwdenkomap1610inn_cs0boot_config \
101763e73c9aSwdenkomap1610inn_cs3boot_config \
101863e73c9aSwdenkomap1610h2_config \
101963e73c9aSwdenkomap1610h2_cs0boot_config \
102063e73c9aSwdenkomap1610h2_cs3boot_config :	unconfig
102163e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
102263e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1023b79a11ccSwdenk		echo "... configured for CS0 boot"; \
102463e73c9aSwdenk	else \
102563e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1026b79a11ccSwdenk		echo "... configured for CS3 boot"; \
102763e73c9aSwdenk	fi;
102863e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
10296f21347dSwdenk
10307ebf7443Swdenksmdk2400_config	:	unconfig
10317ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400
10327ebf7443Swdenk
10337ebf7443Swdenksmdk2410_config	:	unconfig
10347ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410
10357ebf7443Swdenk
1036b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
103743d9616cSwdenktrab_config \
1038b0639ca3Swdenktrab_bigram_config \
1039b0639ca3Swdenktrab_bigflash_config \
1040f54ebdfaSwdenktrab_old_config:	unconfig
104143d9616cSwdenk	@ >include/config.h
1042b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1043b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1044b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1045b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1046b0639ca3Swdenk		}
1047b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1048b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1049b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1050b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1051a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1052b0639ca3Swdenk		}
1053f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1054b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1055b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1056b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1057a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
105843d9616cSwdenk		}
105943d9616cSwdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
10607ebf7443Swdenk
10611cb8e980SwdenkVCMA9_config	:	unconfig
10621cb8e980Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl
10631cb8e980Swdenk
1064074cff0dSwdenk
1065074cff0dSwdenk#########################################################################
1066074cff0dSwdenk## S3C44B0 Systems
1067074cff0dSwdenk#########################################################################
1068074cff0dSwdenk
1069074cff0dSwdenkB2_config	:	unconfig
1070074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1071074cff0dSwdenk
10727ebf7443Swdenk#########################################################################
10737ebf7443Swdenk## ARM720T Systems
10747ebf7443Swdenk#########################################################################
10757ebf7443Swdenk
10767ebf7443Swdenkimpa7_config	:	unconfig
10777ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
10787ebf7443Swdenk
10797ebf7443Swdenkep7312_config	:	unconfig
10807ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
10817ebf7443Swdenk
10822d1a537dSwdenkmodnet50_config :	unconfig
10832d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
10842d1a537dSwdenk
10857ebf7443Swdenk#########################################################################
1086d9df1f4eSwdenk## AT91RM9200 Systems
1087d9df1f4eSwdenk#########################################################################
1088d9df1f4eSwdenk
1089d9df1f4eSwdenkat91rm9200dk_config	:	unconfig
1090d9df1f4eSwdenk	@./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
1091d9df1f4eSwdenk
1092d9df1f4eSwdenk#########################################################################
109343d9616cSwdenk## XScale Systems
10947ebf7443Swdenk#########################################################################
10957ebf7443Swdenk
10967ebf7443Swdenkcradle_config	:	unconfig
10974c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
10987ebf7443Swdenk
10997ebf7443Swdenkcsb226_config	:	unconfig
11004c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
11017ebf7443Swdenk
110243d9616cSwdenkinnokom_config	:	unconfig
11034c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
110443d9616cSwdenk
11052d5b561eSwdenkixdp425_config	:	unconfig
11062d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
11072d5b561eSwdenk
110843d9616cSwdenklubbock_config	:	unconfig
11094c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
111043d9616cSwdenk
111152f52c14Swdenklogodl_config	:	unconfig
111252f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
111352f52c14Swdenk
11143e38691eSwdenkwepep250_config	:	unconfig
11154c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
11163e38691eSwdenk
1117efa329cbSwdenkxm250_config	:	unconfig
1118efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1119efa329cbSwdenk
11202262cfeeSwdenk#========================================================================
11212262cfeeSwdenk# i386
11222262cfeeSwdenk#========================================================================
11232262cfeeSwdenk#########################################################################
11242262cfeeSwdenk## AMD SC520 CDP
11252262cfeeSwdenk#########################################################################
11262262cfeeSwdenksc520_cdp_config	:	unconfig
11272262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
11282262cfeeSwdenk
11297a8e9bedSwdenksc520_spunk_config	:	unconfig
11307a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
11317a8e9bedSwdenk
11327a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
11337a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
11347a8e9bedSwdenk
113543d9616cSwdenk#========================================================================
113643d9616cSwdenk# MIPS
113743d9616cSwdenk#========================================================================
11387ebf7443Swdenk#########################################################################
113943d9616cSwdenk## MIPS32 4Kc
114043d9616cSwdenk#########################################################################
114143d9616cSwdenk
1142e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1143e0ac62d7Swdenk
1144e0ac62d7Swdenkincaip_100MHz_config	\
1145e0ac62d7Swdenkincaip_133MHz_config	\
1146e0ac62d7Swdenkincaip_150MHz_config	\
114743d9616cSwdenkincaip_config: unconfig
1148e0ac62d7Swdenk	@ >include/config.h
1149e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1150e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1151e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1152e0ac62d7Swdenk		}
1153e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1154e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1155e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1156e0ac62d7Swdenk		}
1157e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1158e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1159e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1160e0ac62d7Swdenk		}
1161e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1162e0ac62d7Swdenk
1163f4863a7aSwdenktb0229_config: unconfig
1164f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1165f4863a7aSwdenk
1166e0ac62d7Swdenk#########################################################################
1167e0ac62d7Swdenk## MIPS64 5Kc
1168e0ac62d7Swdenk#########################################################################
116943d9616cSwdenk
11703e38691eSwdenkpurple_config :		unconfig
11713e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
117243d9616cSwdenk
11734a551709Swdenk#========================================================================
11744a551709Swdenk# Nios
11754a551709Swdenk#========================================================================
11764a551709Swdenk#########################################################################
11774a551709Swdenk## Nios32
11784a551709Swdenk#########################################################################
11794a551709Swdenk
1180c935d3bdSwdenkDK1C20_safe_32_config		\
1181c935d3bdSwdenkDK1C20_standard_32_config	\
11824a551709SwdenkDK1C20_config:	unconfig
1183c935d3bdSwdenk	@ >include/config.h
1184c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1185c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1186c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1187c935d3bdSwdenk		}
1188c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1189c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1190c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1191c935d3bdSwdenk		}
1192c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1193c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1194c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1195c935d3bdSwdenk		}
1196c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1197c935d3bdSwdenk
1198c935d3bdSwdenkDK1S10_safe_32_config		\
1199c935d3bdSwdenkDK1S10_standard_32_config	\
1200ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1201c935d3bdSwdenkDK1S10_config:	unconfig
1202c935d3bdSwdenk	@ >include/config.h
1203c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1204c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1205c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1206c935d3bdSwdenk		}
1207c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1208c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1209c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1210c935d3bdSwdenk		}
1211ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1212ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1213ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1214ec4c544bSwdenk		}
1215c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1216c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1217c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1218c935d3bdSwdenk		}
1219c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
12204a551709Swdenk
1221aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1222aaf224abSwdenkADNPESC1_base_32_config		\
1223aaf224abSwdenkADNPESC1_config: unconfig
1224aaf224abSwdenk	@ >include/config.h
1225aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1226aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1227aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1228aaf224abSwdenk		}
1229aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1230aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1231aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1232aaf224abSwdenk		}
1233aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1234aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1235aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1236aaf224abSwdenk		}
1237aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1238aaf224abSwdenk
12394a551709Swdenk
12403e38691eSwdenk#########################################################################
1241a2663ea4Swdenk## MIPS32 AU1X00
12425da627a4Swdenk#########################################################################
1243a2663ea4Swdenkdbau1000_config		: 	unconfig
1244a2663ea4Swdenk	@ >include/config.h
1245a2663ea4Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
1246a2663ea4Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1247a2663ea4Swdenk
1248a2663ea4Swdenkdbau1100_config		: 	unconfig
1249a2663ea4Swdenk	@ >include/config.h
1250a2663ea4Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
1251a2663ea4Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1252a2663ea4Swdenk
1253a2663ea4Swdenkdbau1500_config		: 	unconfig
1254a2663ea4Swdenk	@ >include/config.h
1255a2663ea4Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
1256a2663ea4Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
12575da627a4Swdenk
12585da627a4Swdenk#########################################################################
12593e38691eSwdenk#########################################################################
12607ebf7443Swdenk
12617ebf7443Swdenkclean:
12627ebf7443Swdenk	find . -type f \
12637ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
12647ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
12657ebf7443Swdenk		| xargs rm -f
126685ec0bccSwdenk	rm -f examples/hello_world examples/timer \
12673e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
12687a8e9bedSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom
12697ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1270bda6c8aeSwdenk	rm -f tools/mpc86x_clk
12717ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
12727ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1273228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
12747f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
12757e780369Swdenk	rm -f board/trab/trab_fkt
12767ebf7443Swdenk
12777ebf7443Swdenkclobber:	clean
12787ebf7443Swdenk	find . -type f \
12797ebf7443Swdenk		\( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
12807ebf7443Swdenk		-print \
12817ebf7443Swdenk		| xargs rm -f
12827ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
12837ebf7443Swdenk	rm -fr *.*~
1284bdccc4feSwdenk	rm -f u-boot u-boot.map $(ALL)
1285228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
12863e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1287b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
12887ebf7443Swdenk
12897ebf7443Swdenkmrproper \
12907ebf7443Swdenkdistclean:	clobber unconfig
12917ebf7443Swdenk
12927ebf7443Swdenkbackup:
12937ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
12947ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
12957ebf7443Swdenk
12967ebf7443Swdenk#########################################################################
1297