17ebf7443Swdenk# 2d4ca31c4Swdenk# (C) Copyright 2000-2004 37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 47ebf7443Swdenk# 57ebf7443Swdenk# See file CREDITS for list of people who contributed to this 67ebf7443Swdenk# project. 77ebf7443Swdenk# 87ebf7443Swdenk# This program is free software; you can redistribute it and/or 97ebf7443Swdenk# modify it under the terms of the GNU General Public License as 107ebf7443Swdenk# published by the Free Software Foundation; either version 2 of 117ebf7443Swdenk# the License, or (at your option) any later version. 127ebf7443Swdenk# 137ebf7443Swdenk# This program is distributed in the hope that it will be useful, 147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 167ebf7443Swdenk# GNU General Public License for more details. 177ebf7443Swdenk# 187ebf7443Swdenk# You should have received a copy of the GNU General Public License 197ebf7443Swdenk# along with this program; if not, write to the Free Software 207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 217ebf7443Swdenk# MA 02111-1307 USA 227ebf7443Swdenk# 237ebf7443Swdenk 247ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 257ebf7443Swdenk sed -e s/i.86/i386/ \ 267ebf7443Swdenk -e s/sun4u/sparc64/ \ 277ebf7443Swdenk -e s/arm.*/arm/ \ 287ebf7443Swdenk -e s/sa110/arm/ \ 297ebf7443Swdenk -e s/powerpc/ppc/ \ 307ebf7443Swdenk -e s/macppc/ppc/) 317ebf7443Swdenk 327ebf7443SwdenkHOSTOS := $(shell uname -s | tr A-Z a-z | \ 337ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 347ebf7443Swdenk 357ebf7443Swdenkexport HOSTARCH 367ebf7443Swdenk 377ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 387ebf7443SwdenkVENDOR= 397ebf7443Swdenk 407ebf7443Swdenk######################################################################### 417ebf7443Swdenk 427ebf7443SwdenkTOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) 437ebf7443Swdenkexport TOPDIR 447ebf7443Swdenk 457ebf7443Swdenkifeq (include/config.mk,$(wildcard include/config.mk)) 467ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 477ebf7443Swdenkinclude include/config.mk 487ebf7443Swdenkexport ARCH CPU BOARD VENDOR 497ebf7443Swdenk# load other configuration 507ebf7443Swdenkinclude $(TOPDIR)/config.mk 517ebf7443Swdenk 527ebf7443Swdenkifndef CROSS_COMPILE 537ebf7443Swdenkifeq ($(HOSTARCH),ppc) 547ebf7443SwdenkCROSS_COMPILE = 557ebf7443Swdenkelse 567ebf7443Swdenkifeq ($(ARCH),ppc) 577ebf7443SwdenkCROSS_COMPILE = ppc_8xx- 587ebf7443Swdenkendif 597ebf7443Swdenkifeq ($(ARCH),arm) 60dc7c9a1aSwdenkCROSS_COMPILE = arm-linux- 617ebf7443Swdenkendif 622262cfeeSwdenkifeq ($(ARCH),i386) 637a8e9bedSwdenkifeq ($(HOSTARCH),i386) 647a8e9bedSwdenkCROSS_COMPILE = 657a8e9bedSwdenkelse 667a8e9bedSwdenkCROSS_COMPILE = i386-linux- 677a8e9bedSwdenkendif 682262cfeeSwdenkendif 6943d9616cSwdenkifeq ($(ARCH),mips) 7043d9616cSwdenkCROSS_COMPILE = mips_4KC- 7143d9616cSwdenkendif 724a551709Swdenkifeq ($(ARCH),nios) 734a551709SwdenkCROSS_COMPILE = nios-elf- 744a551709Swdenkendif 754e5ca3ebSwdenkifeq ($(ARCH),m68k) 764e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 774e5ca3ebSwdenkendif 787ebf7443Swdenkendif 797ebf7443Swdenkendif 807ebf7443Swdenk 817ebf7443Swdenkexport CROSS_COMPILE 827ebf7443Swdenk 837ebf7443Swdenk######################################################################### 847ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 857ebf7443Swdenk 867ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 872262cfeeSwdenkifeq ($(CPU),i386) 882262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 892262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 902262cfeeSwdenkendif 917ebf7443Swdenkifeq ($(CPU),ppc4xx) 927ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 937ebf7443Swdenkendif 9442d1f039Swdenkifeq ($(CPU),mpc85xx) 9542d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 9642d1f039Swdenkendif 977ebf7443Swdenk 989fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 999fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 1007ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1017ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 102180d3f74SwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a 1037ebf7443SwdenkLIBS += net/libnet.a 1047ebf7443SwdenkLIBS += disk/libdisk.a 1057ebf7443SwdenkLIBS += rtc/librtc.a 1067ebf7443SwdenkLIBS += dtt/libdtt.a 1077ebf7443SwdenkLIBS += drivers/libdrivers.a 1087152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a 1097ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a 1107ebf7443SwdenkLIBS += common/libcommon.a 1119fd5e31fSwdenk.PHONY : $(LIBS) 112a8c7c708Swdenk 1134f7cb08eSwdenk# Add GCC lib 114fc3e2165SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 1157ebf7443Swdenk 116a8c7c708Swdenk# The "tools" are needed early, so put this first 117a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 118a8c7c708SwdenkSUBDIRS = tools \ 119a8c7c708Swdenk examples \ 120a8c7c708Swdenk post \ 121a8c7c708Swdenk post/cpu 122b028f715Swdenk.PHONY : $(SUBDIRS) 123a8c7c708Swdenk 1247ebf7443Swdenk######################################################################### 125bdccc4feSwdenk######################################################################### 1267ebf7443Swdenk 127bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map 1287ebf7443Swdenk 129bdccc4feSwdenkall: $(ALL) 1307ebf7443Swdenk 1317ebf7443Swdenku-boot.srec: u-boot 1327ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 1337ebf7443Swdenk 1347ebf7443Swdenku-boot.bin: u-boot 1357ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 1367ebf7443Swdenk 137bdccc4feSwdenku-boot.img: u-boot.bin 138bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 139bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 140bdccc4feSwdenk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ 141bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 142bdccc4feSwdenk -d $< $@ 143bdccc4feSwdenk 1447ebf7443Swdenku-boot.dis: u-boot 1457ebf7443Swdenk $(OBJDUMP) -d $< > $@ 1467ebf7443Swdenk 147a8c7c708Swdenku-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 1488bde7f77Swdenk UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 1498bde7f77Swdenk $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ 1507152b1d0Swdenk --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \ 151b2184c31Swdenk -Map u-boot.map -o u-boot 1527ebf7443Swdenk 153a8c7c708Swdenk$(LIBS): 154a8c7c708Swdenk $(MAKE) -C `dirname $@` 155a8c7c708Swdenk 156a8c7c708Swdenk$(SUBDIRS): 157b028f715Swdenk $(MAKE) -C $@ all 1587ebf7443Swdenk 1598f713fdfSdzugdbtools: 1608f713fdfSdzu $(MAKE) -C tools/gdb || exit 1 1618f713fdfSdzu 1627ebf7443Swdenkdepend dep: 1637ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done 1647ebf7443Swdenk 1657ebf7443Swdenktags: 1667ebf7443Swdenk ctags -w `find $(SUBDIRS) include \ 1677ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1687ebf7443Swdenk 1697ebf7443Swdenketags: 1707ebf7443Swdenk etags -a `find $(SUBDIRS) include \ 1717ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1727ebf7443Swdenk 1737ebf7443SwdenkSystem.map: u-boot 1747ebf7443Swdenk @$(NM) $< | \ 1757ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 1767ebf7443Swdenk sort > System.map 1777ebf7443Swdenk 1787ebf7443Swdenk######################################################################### 1797ebf7443Swdenkelse 1807ebf7443Swdenkall install u-boot u-boot.srec depend dep: 1817ebf7443Swdenk @echo "System not configured - see README" >&2 1827ebf7443Swdenk @ exit 1 1837ebf7443Swdenkendif 1847ebf7443Swdenk 1857ebf7443Swdenk######################################################################### 1867ebf7443Swdenk 1877ebf7443Swdenkunconfig: 1887ebf7443Swdenk rm -f include/config.h include/config.mk 1897ebf7443Swdenk 1907ebf7443Swdenk#======================================================================== 1917ebf7443Swdenk# PowerPC 1927ebf7443Swdenk#======================================================================== 1930db5bca8Swdenk 1940db5bca8Swdenk######################################################################### 1950db5bca8Swdenk## MPC5xx Systems 1960db5bca8Swdenk######################################################################### 1970db5bca8Swdenk 1980db5bca8Swdenkcmi_mpc5xx_config: unconfig 1990db5bca8Swdenk @./mkconfig $(@:_config=) ppc mpc5xx cmi 2000db5bca8Swdenk 201b6e4c403SwdenkPATI_config:unconfig 202b6e4c403Swdenk @./mkconfig $(@:_config=) ppc mpc5xx pati mpl 203b6e4c403Swdenk 2047ebf7443Swdenk######################################################################### 205945af8d7Swdenk## MPC5xxx Systems 206945af8d7Swdenk######################################################################### 2075cf9da48SwdenkMPC5200LITE_config \ 2085cf9da48SwdenkMPC5200LITE_LOWBOOT_config \ 2095cf9da48SwdenkMPC5200LITE_LOWBOOT08_config \ 210d4ca31c4Swdenkicecube_5200_DDR_LOWBOOT_config \ 211b2001f27Swdenkicecube_5200_DDR_config \ 212b2001f27SwdenkIceCube_5200_DDR_config \ 213a0f2fe52Swdenkicecube_5200_config \ 214945af8d7SwdenkIceCube_5200_config \ 215945af8d7SwdenkIceCube_5100_config: unconfig 216945af8d7Swdenk @ >include/config.h 2175cf9da48Swdenk @[ -z "$(findstring LOWBOOT,$@)" ] || \ 2185cf9da48Swdenk { echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \ 2195cf9da48Swdenk echo "... with LOWBOOT configuration" ; \ 2205cf9da48Swdenk } 2215cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 2225cf9da48Swdenk { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \ 2235cf9da48Swdenk echo "... with 8 MB flash only" ; \ 2245cf9da48Swdenk } 225b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 226b2001f27Swdenk { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \ 227b2001f27Swdenk echo "... DDR memory revision" ; \ 228b2001f27Swdenk } 229d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 230d4ca31c4Swdenk { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 231d4ca31c4Swdenk echo "... with MPC5200 processor" ; \ 232d4ca31c4Swdenk } 233a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 234945af8d7Swdenk { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 235945af8d7Swdenk echo "... with MGT5100 processor" ; \ 236945af8d7Swdenk } 237945af8d7Swdenk @./mkconfig -a IceCube ppc mpc5xxx icecube 238945af8d7Swdenk 239d4ca31c4SwdenkMINI5200_config \ 240d4ca31c4SwdenkEVAL5200_config \ 241d4ca31c4SwdenkTOP5200_config: unconfig 242d4ca31c4Swdenk @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h 243d4ca31c4Swdenk @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk 244d4ca31c4Swdenk 245945af8d7Swdenk######################################################################### 2467ebf7443Swdenk## MPC8xx Systems 2477ebf7443Swdenk######################################################################### 2487ebf7443Swdenk 2490cb61d7dSwdenkAdderII_config: unconfig 2500cb61d7dSwdenk @./mkconfig $(@:_config=) ppc mpc8xx adderII 2510cb61d7dSwdenk 252180d3f74SwdenkADS860_config \ 253180d3f74SwdenkDUET_ADS_config \ 254180d3f74SwdenkFADS823_config \ 255180d3f74SwdenkFADS850SAR_config \ 256180d3f74SwdenkMPC86xADS_config \ 257180d3f74SwdenkFADS860T_config: unconfig 2587ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 2597ebf7443Swdenk 2607ebf7443SwdenkAMX860_config : unconfig 2617ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel 2627ebf7443Swdenk 263fd3103bbSwdenkbms2003_config : unconfig 264a522fa0eSwdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 265fd3103bbSwdenk 2667ebf7443Swdenkc2mon_config: unconfig 2677ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx c2mon 2687ebf7443Swdenk 2697ebf7443SwdenkCCM_config: unconfig 2707ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens 2717ebf7443Swdenk 2727ebf7443Swdenkcogent_mpc8xx_config: unconfig 2737ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx cogent 2747ebf7443Swdenk 2753bac3513SwdenkELPT860_config: unconfig 2763bac3513Swdenk @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX 2773bac3513Swdenk 2787ebf7443SwdenkESTEEM192E_config: unconfig 2797ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx esteem192e 2807ebf7443Swdenk 2817ebf7443SwdenkETX094_config : unconfig 2827ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx etx094 2837ebf7443Swdenk 2847ebf7443SwdenkFLAGADM_config: unconfig 2857ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx flagadm 2867ebf7443Swdenk 2877aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 2887aa78614Swdenk 2897aa78614SwdenkGEN860T_SC_config \ 2907ebf7443SwdenkGEN860T_config: unconfig 2917aa78614Swdenk @ >include/config.h 2927aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 2937aa78614Swdenk { echo "#define CONFIG_SC" >>include/config.h ; \ 2947aa78614Swdenk echo "With reduced H/W feature set (SC)..." ; \ 2957aa78614Swdenk } 2967aa78614Swdenk @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 2977ebf7443Swdenk 2987ebf7443SwdenkGENIETV_config: unconfig 2997ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx genietv 3007ebf7443Swdenk 3017ebf7443SwdenkGTH_config: unconfig 3027ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx gth 3037ebf7443Swdenk 3047ebf7443Swdenkhermes_config : unconfig 3057ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx hermes 3067ebf7443Swdenk 3077ebf7443SwdenkIAD210_config: unconfig 3087ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens 3097ebf7443Swdenk 3107ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 3117ebf7443Swdenk 3127ebf7443SwdenkICU862_100MHz_config \ 3137ebf7443SwdenkICU862_config: unconfig 3147ebf7443Swdenk @ >include/config.h 3157ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 3167ebf7443Swdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 3177ebf7443Swdenk echo "... with 100MHz system clock" ; \ 3187ebf7443Swdenk } 3197ebf7443Swdenk @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 3207ebf7443Swdenk 3217ebf7443SwdenkIP860_config : unconfig 3227ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx ip860 3237ebf7443Swdenk 3247ebf7443SwdenkIVML24_256_config \ 3257ebf7443SwdenkIVML24_128_config \ 3267ebf7443SwdenkIVML24_config: unconfig 3277ebf7443Swdenk @ >include/config.h 3287ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 3297ebf7443Swdenk { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ 3307ebf7443Swdenk } 3317ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 3327ebf7443Swdenk { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ 3337ebf7443Swdenk } 3347ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 3357ebf7443Swdenk { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ 3367ebf7443Swdenk } 3377ebf7443Swdenk @./mkconfig -a IVML24 ppc mpc8xx ivm 3387ebf7443Swdenk 3397ebf7443SwdenkIVMS8_256_config \ 3407ebf7443SwdenkIVMS8_128_config \ 3417ebf7443SwdenkIVMS8_config: unconfig 3427ebf7443Swdenk @ >include/config.h 3437ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 3447ebf7443Swdenk { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ 3457ebf7443Swdenk } 3467ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 3477ebf7443Swdenk { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ 3487ebf7443Swdenk } 3497ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 3507ebf7443Swdenk { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ 3517ebf7443Swdenk } 3527ebf7443Swdenk @./mkconfig -a IVMS8 ppc mpc8xx ivm 3537ebf7443Swdenk 35456f94be3SwdenkKUP4K_config : unconfig 35556f94be3Swdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4k 35656f94be3Swdenk 3577ebf7443SwdenkLANTEC_config : unconfig 3587ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lantec 3597ebf7443Swdenk 3607ebf7443Swdenklwmon_config: unconfig 3617ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lwmon 3627ebf7443Swdenk 3637ebf7443SwdenkMBX_config \ 3647ebf7443SwdenkMBX860T_config: unconfig 3657ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx 3667ebf7443Swdenk 3677ebf7443SwdenkMHPC_config: unconfig 3687ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec 3697ebf7443Swdenk 3707ebf7443SwdenkMVS1_config : unconfig 3717ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mvs1 3727ebf7443Swdenk 373993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 374993cad93Swdenk 375993cad93SwdenkNETVIA_V2_config \ 3767ebf7443SwdenkNETVIA_config: unconfig 377993cad93Swdenk @ >include/config.h 378993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 379993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ 380993cad93Swdenk echo "... Version 1" ; \ 381993cad93Swdenk } 382993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 383993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ 384993cad93Swdenk echo "... Version 2" ; \ 385993cad93Swdenk } 386993cad93Swdenk @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 3877ebf7443Swdenk 3887ebf7443SwdenkNX823_config: unconfig 3897ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nx823 3907ebf7443Swdenk 3917ebf7443Swdenkpcu_e_config: unconfig 3927ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens 3937ebf7443Swdenk 3943bbc899fSwdenkQS850_config: unconfig 3953bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 3963bbc899fSwdenk 3973bbc899fSwdenkQS823_config: unconfig 3983bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 3993bbc899fSwdenk 4003bbc899fSwdenkQS860T_config: unconfig 4013bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc 4023bbc899fSwdenk 4037ebf7443SwdenkR360MPI_config: unconfig 4047ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx r360mpi 4057ebf7443Swdenk 406682011ffSwdenkRBC823_config: unconfig 407682011ffSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rbc823 408682011ffSwdenk 4097ebf7443SwdenkRPXClassic_config: unconfig 4107ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic 4117ebf7443Swdenk 4127ebf7443SwdenkRPXlite_config: unconfig 4137ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXlite 4147ebf7443Swdenk 41573a8b27cSwdenkrmu_config: unconfig 41673a8b27cSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rmu 41773a8b27cSwdenk 4187ebf7443SwdenkRRvision_config: unconfig 4197ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RRvision 4207ebf7443Swdenk 4217ebf7443SwdenkRRvision_LCD_config: unconfig 4227ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 4237ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 4247ebf7443Swdenk @./mkconfig -a RRvision ppc mpc8xx RRvision 4257ebf7443Swdenk 4267ebf7443SwdenkSM850_config : unconfig 4277ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 4287ebf7443Swdenk 4297ebf7443SwdenkSPD823TS_config: unconfig 4307ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx spd8xx 4317ebf7443Swdenk 432dc7c9a1aSwdenksvm_sc8xx_config: unconfig 433dc7c9a1aSwdenk @ >include/config.h 434dc7c9a1aSwdenk @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx 435dc7c9a1aSwdenk 4367ebf7443SwdenkSXNI855T_config: unconfig 4377ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx sixnet 4387ebf7443Swdenk 439db2f721fSwdenk# EMK MPC8xx based modules 440db2f721fSwdenkTOP860_config: unconfig 441db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx top860 emk 442db2f721fSwdenk 4437ebf7443Swdenk# Play some tricks for configuration selection 44473a8b27cSwdenk# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock, 4457ebf7443Swdenk# but only 855 and 860 boards may come with FEC 4467ebf7443Swdenk# and 823 boards may have LCD support 447d4ca31c4Swdenkxtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _133MHz,,$(subst _LCD,,$(subst _config,,$1)))))) 4487ebf7443Swdenk 4497ebf7443SwdenkFPS850L_config \ 450384ae025SwdenkFPS860L_config \ 451f12e568cSwdenkNSCU_config \ 4527ebf7443SwdenkTQM823L_config \ 4537ebf7443SwdenkTQM823L_66MHz_config \ 4547ebf7443SwdenkTQM823L_80MHz_config \ 4557ebf7443SwdenkTQM823L_LCD_config \ 4567ebf7443SwdenkTQM823L_LCD_66MHz_config \ 4577ebf7443SwdenkTQM823L_LCD_80MHz_config \ 4587ebf7443SwdenkTQM850L_config \ 4597ebf7443SwdenkTQM850L_66MHz_config \ 4607ebf7443SwdenkTQM850L_80MHz_config \ 4617ebf7443SwdenkTQM855L_config \ 4627ebf7443SwdenkTQM855L_66MHz_config \ 4637ebf7443SwdenkTQM855L_80MHz_config \ 4647ebf7443SwdenkTQM860L_config \ 4657ebf7443SwdenkTQM860L_66MHz_config \ 4667ebf7443SwdenkTQM860L_80MHz_config \ 467d126bfbdSwdenkTQM862L_config \ 468d126bfbdSwdenkTQM862L_66MHz_config \ 46973a8b27cSwdenkTQM862L_80MHz_config \ 470ae3af05eSwdenkTQM823M_config \ 471ae3af05eSwdenkTQM823M_66MHz_config \ 472ae3af05eSwdenkTQM823M_80MHz_config \ 473ae3af05eSwdenkTQM850M_config \ 474ae3af05eSwdenkTQM850M_66MHz_config \ 475ae3af05eSwdenkTQM850M_80MHz_config \ 476f12e568cSwdenkTQM855M_config \ 477f12e568cSwdenkTQM855M_66MHz_config \ 478f12e568cSwdenkTQM855M_80MHz_config \ 479f12e568cSwdenkTQM860M_config \ 480f12e568cSwdenkTQM860M_66MHz_config \ 481f12e568cSwdenkTQM860M_80MHz_config \ 482f12e568cSwdenkTQM862M_config \ 483f12e568cSwdenkTQM862M_66MHz_config \ 484f12e568cSwdenkTQM862M_80MHz_config \ 485d4ca31c4SwdenkTQM862M_100MHz_config \ 486c178d3daSwdenkTQM866M_config: unconfig 4877ebf7443Swdenk @ >include/config.h 4887ebf7443Swdenk @[ -z "$(findstring _66MHz,$@)" ] || \ 4897ebf7443Swdenk { echo "#define CONFIG_66MHz" >>include/config.h ; \ 4907ebf7443Swdenk echo "... with 66MHz system clock" ; \ 4917ebf7443Swdenk } 4927ebf7443Swdenk @[ -z "$(findstring _80MHz,$@)" ] || \ 4937ebf7443Swdenk { echo "#define CONFIG_80MHz" >>include/config.h ; \ 4947ebf7443Swdenk echo "... with 80MHz system clock" ; \ 4957ebf7443Swdenk } 49673a8b27cSwdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 49773a8b27cSwdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 49873a8b27cSwdenk echo "... with 100MHz system clock" ; \ 49973a8b27cSwdenk } 500d4ca31c4Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 501d4ca31c4Swdenk { echo "#define CONFIG_133MHz" >>include/config.h ; \ 502d4ca31c4Swdenk echo "... with 133MHz system clock" ; \ 503d4ca31c4Swdenk } 5047ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 5057ebf7443Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 506fd3103bbSwdenk echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \ 5077ebf7443Swdenk echo "... with LCD display" ; \ 5087ebf7443Swdenk } 5097ebf7443Swdenk @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 5107ebf7443Swdenk 5117ebf7443SwdenkTTTech_config: unconfig 5127ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 5137ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 5147ebf7443Swdenk @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 5157ebf7443Swdenk 516608c9146Swdenkv37_config: unconfig 517608c9146Swdenk @echo "#define CONFIG_LCD" >include/config.h 518608c9146Swdenk @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h 519608c9146Swdenk @./mkconfig $(@:_config=) ppc mpc8xx v37 520608c9146Swdenk 52191e940d9Sdzuwtk_config: unconfig 52291e940d9Sdzu @echo "#define CONFIG_LCD" >include/config.h 52391e940d9Sdzu @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h 52491e940d9Sdzu @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 52591e940d9Sdzu 5267ebf7443Swdenk######################################################################### 5277ebf7443Swdenk## PPC4xx Systems 5287ebf7443Swdenk######################################################################### 529fbe4b5cbSwdenkxtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1)))) 5307ebf7443Swdenk 5317ebf7443SwdenkADCIOP_config: unconfig 5327ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx adciop esd 5337ebf7443Swdenk 5347ebf7443SwdenkAR405_config: unconfig 5357ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd 5367ebf7443Swdenk 537549826eaSstroeseASH405_config: unconfig 538549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd 539549826eaSstroese 540549826eaSstroeseBUBINGA405EP_config:unconfig 541549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep 542549826eaSstroese 5437ebf7443SwdenkCANBT_config: unconfig 5447ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx canbt esd 5457ebf7443Swdenk 5467ebf7443SwdenkCPCI405_config \ 547549826eaSstroeseCPCI4052_config \ 548549826eaSstroeseCPCI405AB_config: unconfig 5497ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd 5507ebf7443Swdenk @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk 5517ebf7443Swdenk 5527ebf7443SwdenkCPCI440_config: unconfig 5537ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd 5547ebf7443Swdenk 5557ebf7443SwdenkCPCIISER4_config: unconfig 5567ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd 5577ebf7443Swdenk 5587ebf7443SwdenkCRAYL1_config:unconfig 5597ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx L1 cray 5607ebf7443Swdenk 561cd0a9de6Swdenkcsb272_config: unconfig 562cd0a9de6Swdenk @./mkconfig $(@:_config=) ppc ppc4xx csb272 563cd0a9de6Swdenk 5647ebf7443SwdenkDASA_SIM_config: unconfig 5657ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd 5667ebf7443Swdenk 56772cd5aa7SstroeseDP405_config: unconfig 56872cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd 56972cd5aa7Sstroese 5707ebf7443SwdenkDU405_config: unconfig 5717ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx du405 esd 5727ebf7443Swdenk 5737ebf7443SwdenkEBONY_config:unconfig 5747ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ebony 5757ebf7443Swdenk 5767ebf7443SwdenkERIC_config:unconfig 5777ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx eric 5787ebf7443Swdenk 579d1cbe85bSwdenkEXBITGEN_config:unconfig 580d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc ppc4xx exbitgen 581d1cbe85bSwdenk 58272cd5aa7SstroeseHUB405_config: unconfig 58372cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd 58472cd5aa7Sstroese 5857ebf7443SwdenkMIP405_config:unconfig 5867ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl 5877ebf7443Swdenk 588f3e0de60SwdenkMIP405T_config:unconfig 589f3e0de60Swdenk @echo "#define CONFIG_MIP405T" >include/config.h 590f3e0de60Swdenk @echo "Enable subset config for MIP405T" 591f3e0de60Swdenk @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl 592f3e0de60Swdenk 5937ebf7443SwdenkML2_config:unconfig 5947ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml2 5957ebf7443Swdenk 596*028ab6b5Swdenkml300_config:unconfig 597*028ab6b5Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx 598*028ab6b5Swdenk 5997ebf7443SwdenkOCRTC_config \ 6007ebf7443SwdenkORSG_config: unconfig 6017ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd 6027ebf7443Swdenk 6037ebf7443SwdenkPCI405_config: unconfig 6047ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd 6057ebf7443Swdenk 6067ebf7443SwdenkPIP405_config:unconfig 6077ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl 6087ebf7443Swdenk 60972cd5aa7SstroesePLU405_config: unconfig 61072cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd 61172cd5aa7Sstroese 612549826eaSstroesePMC405_config: unconfig 613549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd 614549826eaSstroese 615fbe4b5cbSwdenkPPChameleonEVB_MODEL_BA_config \ 616fbe4b5cbSwdenkPPChameleonEVB_MODEL_ME_config \ 617fbe4b5cbSwdenkPPChameleonEVB_MODEL_HI_config \ 61812f34241SwdenkPPChameleonEVB_config: unconfig 619fbe4b5cbSwdenk @ >include/config.h 620fbe4b5cbSwdenk @[ -z "$(findstring _MODEL_BA,$@)" ] || \ 621fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \ 622fbe4b5cbSwdenk echo "... BASIC model" ; \ 623fbe4b5cbSwdenk } 624fbe4b5cbSwdenk @[ -z "$(findstring _MODEL_ME,$@)" ] || \ 625fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \ 626fbe4b5cbSwdenk echo "... MEDIUM model" ; \ 627fbe4b5cbSwdenk } 628fbe4b5cbSwdenk @[ -z "$(findstring _MODEL_HI,$@)" ] || \ 629fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \ 630fbe4b5cbSwdenk echo "... HIGH-END model" ; \ 631fbe4b5cbSwdenk } 632fbe4b5cbSwdenk @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 63312f34241Swdenk 63472cd5aa7SstroeseVOH405_config: unconfig 63572cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd 63672cd5aa7Sstroese 6377ebf7443SwdenkW7OLMC_config \ 6387ebf7443SwdenkW7OLMG_config: unconfig 6397ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx w7o 6407ebf7443Swdenk 6417ebf7443SwdenkWALNUT405_config:unconfig 6427ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx walnut405 6437ebf7443Swdenk 644ba56f625SwdenkXPEDITE1K_config:unconfig 645ba56f625Swdenk @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k 646ba56f625Swdenk 6477ebf7443Swdenk######################################################################### 6487ebf7443Swdenk## MPC824x Systems 6497ebf7443Swdenk######################################################################### 6503bac3513Swdenkxtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) 6513bac3513Swdenk 6520332990bSwdenkA3000_config: unconfig 6530332990bSwdenk @./mkconfig $(@:_config=) ppc mpc824x a3000 6540332990bSwdenk 6557ebf7443SwdenkBMW_config: unconfig 6567ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x bmw 6577ebf7443Swdenk 6583bac3513SwdenkCPC45_config \ 6593bac3513SwdenkCPC45_ROMBOOT_config: unconfig 6603bac3513Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 6613bac3513Swdenk @cd ./include ; \ 6623bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 6633bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 6643bac3513Swdenk echo "... booting from 8-bit flash" ; \ 6653bac3513Swdenk else \ 6663bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 6673bac3513Swdenk echo "... booting from 64-bit flash" ; \ 6683bac3513Swdenk fi; \ 6693bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 6703bac3513Swdenk 6717ebf7443SwdenkCU824_config: unconfig 6727ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x cu824 6737ebf7443Swdenk 6747ebf7443SwdenkMOUSSE_config: unconfig 6757ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x mousse 6767ebf7443Swdenk 6777ebf7443SwdenkMUSENKI_config: unconfig 6787ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x musenki 6797ebf7443Swdenk 680b4676a25SwdenkMVBLUE_config: unconfig 681b4676a25Swdenk @./mkconfig $(@:_config=) ppc mpc824x mvblue 682b4676a25Swdenk 6837ebf7443SwdenkOXC_config: unconfig 6847ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x oxc 6857ebf7443Swdenk 6867ebf7443SwdenkPN62_config: unconfig 6877ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x pn62 6887ebf7443Swdenk 6897ebf7443SwdenkSandpoint8240_config: unconfig 6907ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 6917ebf7443Swdenk 6927ebf7443SwdenkSandpoint8245_config: unconfig 6937ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 6947ebf7443Swdenk 695d1cbe85bSwdenkSL8245_config: unconfig 696d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc mpc824x sl8245 697d1cbe85bSwdenk 6987ebf7443Swdenkutx8245_config: unconfig 6997ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x utx8245 7007ebf7443Swdenk 7017ebf7443Swdenk######################################################################### 7027ebf7443Swdenk## MPC8260 Systems 7037ebf7443Swdenk######################################################################### 7047ebf7443Swdenk 70554387ac9Swdenkatc_config: unconfig 70654387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 atc 70754387ac9Swdenk 7087ebf7443Swdenkcogent_mpc8260_config: unconfig 7097ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 cogent 7107ebf7443Swdenk 7117ebf7443SwdenkCPU86_config \ 7127ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 7137ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 7147ebf7443Swdenk @cd ./include ; \ 7157ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 7167ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 7177ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 7187ebf7443Swdenk else \ 7197ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 7207ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 7217ebf7443Swdenk fi; \ 7227ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 7237ebf7443Swdenk 7247ebf7443Swdenkep8260_config: unconfig 7257ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ep8260 7267ebf7443Swdenk 7277ebf7443Swdenkgw8260_config: unconfig 7287ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 gw8260 7297ebf7443Swdenk 7307ebf7443Swdenkhymod_config: unconfig 7317ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 hymod 7327ebf7443Swdenk 7337ebf7443SwdenkIPHASE4539_config: unconfig 7347ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 7357ebf7443Swdenk 7367ebf7443SwdenkMPC8260ADS_config: unconfig 7377ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads 7387ebf7443Swdenk 739db2f721fSwdenkMPC8266ADS_config: unconfig 740db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads 741db2f721fSwdenk 74210f67017SwdenkPM825_config \ 74310f67017SwdenkPM825_ROMBOOT_config: unconfig 74410f67017Swdenk @echo "#define CONFIG_PCI" >include/config.h 74510f67017Swdenk @./mkconfig -a PM826 ppc mpc8260 pm826 74610f67017Swdenk @cd ./include ; \ 74710f67017Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 74810f67017Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 74910f67017Swdenk echo "... booting from 8-bit flash" ; \ 75010f67017Swdenk else \ 75110f67017Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 75210f67017Swdenk echo "... booting from 64-bit flash" ; \ 75310f67017Swdenk fi; \ 75410f67017Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; \ 75510f67017Swdenk 7567ebf7443SwdenkPM826_config \ 7577ebf7443SwdenkPM826_ROMBOOT_config: unconfig 7587ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 7597ebf7443Swdenk @cd ./include ; \ 7607ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 7617ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 7627ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 7637ebf7443Swdenk else \ 7647ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 7657ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 7667ebf7443Swdenk fi; \ 7677ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; \ 7687ebf7443Swdenk 7697ebf7443Swdenkppmc8260_config: unconfig 7707ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 7717ebf7443Swdenk 7727ebf7443SwdenkRPXsuper_config: unconfig 7737ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper 7747ebf7443Swdenk 7757ebf7443Swdenkrsdproto_config: unconfig 7767ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rsdproto 7777ebf7443Swdenk 7787ebf7443Swdenksacsng_config: unconfig 7797ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sacsng 7807ebf7443Swdenk 7817ebf7443Swdenksbc8260_config: unconfig 7827ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 7837ebf7443Swdenk 7847ebf7443SwdenkSCM_config: unconfig 7857ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens 7867ebf7443Swdenk 78727b207fdSwdenkTQM8255_AA_config \ 78827b207fdSwdenkTQM8260_AA_config \ 78927b207fdSwdenkTQM8260_AB_config \ 79027b207fdSwdenkTQM8260_AC_config \ 79127b207fdSwdenkTQM8260_AD_config \ 79227b207fdSwdenkTQM8260_AE_config \ 79327b207fdSwdenkTQM8260_AF_config \ 79427b207fdSwdenkTQM8260_AG_config \ 79527b207fdSwdenkTQM8260_AH_config \ 79627b207fdSwdenkTQM8265_AA_config: unconfig 79727b207fdSwdenk @case "$@" in \ 79827b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 79927b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 80027b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 80127b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 80227b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 80327b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 80427b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 80527b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 80627b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 80727b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 80827b207fdSwdenk esac; \ 80927b207fdSwdenk >include/config.h ; \ 81027b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 81127b207fdSwdenk echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ 81227b207fdSwdenk fi; \ 81327b207fdSwdenk echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ 81427b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 81527b207fdSwdenk if [ "$${CACHE}" == "yes" ] ; then \ 8167ebf7443Swdenk echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ 81727b207fdSwdenk echo "... with L2 Cache support" ; \ 8187ebf7443Swdenk else \ 8197ebf7443Swdenk echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ 8207ebf7443Swdenk echo "... without L2 Cache support" ; \ 82127b207fdSwdenk fi; \ 82227b207fdSwdenk if [ "$${BMODE}" == "60x" ] ; then \ 82327b207fdSwdenk echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ 82427b207fdSwdenk echo "... with 60x Bus Mode" ; \ 82527b207fdSwdenk else \ 82627b207fdSwdenk echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ 82727b207fdSwdenk echo "... without 60x Bus Mode" ; \ 8287ebf7443Swdenk fi 8294532cb69Swdenk @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 8307ebf7443Swdenk 83154387ac9SwdenkZPC1900_config: unconfig 83254387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 zpc1900 8337aa78614Swdenk 8344e5ca3ebSwdenk#======================================================================== 8354e5ca3ebSwdenk# M68K 8364e5ca3ebSwdenk#======================================================================== 8374e5ca3ebSwdenk######################################################################### 8384e5ca3ebSwdenk## Coldfire 8394e5ca3ebSwdenk######################################################################### 8404e5ca3ebSwdenk 8414e5ca3ebSwdenkM5272C3_config : unconfig 842bf9e3b38Swdenk @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3 8434e5ca3ebSwdenk 8444e5ca3ebSwdenkM5282EVB_config : unconfig 845bf9e3b38Swdenk @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb 8464e5ca3ebSwdenk 8477ebf7443Swdenk######################################################################### 84842d1f039Swdenk## MPC85xx Systems 84942d1f039Swdenk######################################################################### 85042d1f039Swdenk 85142d1f039SwdenkMPC8540ADS_config: unconfig 85242d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads 85342d1f039Swdenk 85442d1f039SwdenkMPC8560ADS_config: unconfig 85542d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads 85642d1f039Swdenk 85742d1f039Swdenk######################################################################### 8587ebf7443Swdenk## 74xx/7xx Systems 8597ebf7443Swdenk######################################################################### 8607ebf7443Swdenk 861c7de829cSwdenkAmigaOneG3SE_config: unconfig 862c7de829cSwdenk @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 863c7de829cSwdenk 86415647dc7SwdenkBAB7xx_config: unconfig 86515647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec 86615647dc7Swdenk 8673a473b2aSwdenkDB64360_config: unconfig 8683a473b2aSwdenk @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell 8693a473b2aSwdenk 8703a473b2aSwdenkDB64460_config: unconfig 8713a473b2aSwdenk @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell 8723a473b2aSwdenk 87315647dc7Swdenkdebris_config: unconfig 87415647dc7Swdenk @./mkconfig $(@:_config=) ppc mpc824x debris etin 87515647dc7Swdenk 87615647dc7SwdenkELPPC_config: unconfig 87715647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec 87815647dc7Swdenk 8797ebf7443SwdenkEVB64260_config \ 8807ebf7443SwdenkEVB64260_750CX_config: unconfig 8817ebf7443Swdenk @./mkconfig EVB64260 ppc 74xx_7xx evb64260 8827ebf7443Swdenk 88315647dc7SwdenkP3G4_config: unconfig 8847ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 8857ebf7443Swdenk 8867ebf7443SwdenkPCIPPC2_config \ 8877ebf7443SwdenkPCIPPC6_config: unconfig 8887ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 8897ebf7443Swdenk 89015647dc7SwdenkZUMA_config: unconfig 89112f34241Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 89212f34241Swdenk 8937ebf7443Swdenk#======================================================================== 8947ebf7443Swdenk# ARM 8957ebf7443Swdenk#======================================================================== 8967ebf7443Swdenk######################################################################### 8977ebf7443Swdenk## StrongARM Systems 8987ebf7443Swdenk######################################################################### 8997ebf7443Swdenk 900dc7c9a1aSwdenkat91rm9200dk_config : unconfig 901dc7c9a1aSwdenk @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk 902dc7c9a1aSwdenk 9037ebf7443Swdenklart_config : unconfig 9047ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 lart 9057ebf7443Swdenk 9067ebf7443Swdenkdnp1110_config : unconfig 9077ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 dnp1110 9087ebf7443Swdenk 9097ebf7443Swdenkshannon_config : unconfig 9107ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 shannon 9117ebf7443Swdenk 9127ebf7443Swdenk######################################################################### 9132e5983d2Swdenk## ARM92xT Systems 9147ebf7443Swdenk######################################################################### 9157ebf7443Swdenk 916b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 91743d9616cSwdenk 91863e73c9aSwdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 91963e73c9aSwdenk 9202e5983d2Swdenkomap1510inn_config : unconfig 9212e5983d2Swdenk @./mkconfig $(@:_config=) arm arm925t omap1510inn 9222e5983d2Swdenk 92363e73c9aSwdenkomap1610inn_config \ 92463e73c9aSwdenkomap1610inn_cs0boot_config \ 92563e73c9aSwdenkomap1610inn_cs3boot_config \ 92663e73c9aSwdenkomap1610h2_config \ 92763e73c9aSwdenkomap1610h2_cs0boot_config \ 92863e73c9aSwdenkomap1610h2_cs3boot_config : unconfig 92963e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 93063e73c9aSwdenk echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ 93163e73c9aSwdenk echo "Configured for CS0 boot"; \ 93263e73c9aSwdenk else \ 93363e73c9aSwdenk echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ 93463e73c9aSwdenk echo "Configured for CS3 boot"; \ 93563e73c9aSwdenk fi; 93663e73c9aSwdenk @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn 9376f21347dSwdenk 9387ebf7443Swdenksmdk2400_config : unconfig 9397ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2400 9407ebf7443Swdenk 9417ebf7443Swdenksmdk2410_config : unconfig 9427ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2410 9437ebf7443Swdenk 944b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 94543d9616cSwdenktrab_config \ 946b0639ca3Swdenktrab_bigram_config \ 947b0639ca3Swdenktrab_bigflash_config \ 948f54ebdfaSwdenktrab_old_config: unconfig 94943d9616cSwdenk @ >include/config.h 950b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 951b0639ca3Swdenk { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 952b2001f27Swdenk echo "#define CONFIG_RAM_32MB" >>include/config.h ; \ 953b0639ca3Swdenk echo "... with 8 MB Flash, 32 MB RAM" ; \ 954b0639ca3Swdenk } 955b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 956b2001f27Swdenk { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \ 957b2001f27Swdenk echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 958b0639ca3Swdenk echo "... with 16 MB Flash, 16 MB RAM" ; \ 959a8c7c708Swdenk echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 960b0639ca3Swdenk } 961f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 962b2001f27Swdenk { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 963b2001f27Swdenk echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 964b2001f27Swdenk echo "... with 8 MB Flash, 16 MB RAM" ; \ 965a8c7c708Swdenk echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 96643d9616cSwdenk } 96743d9616cSwdenk @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab 9687ebf7443Swdenk 9691cb8e980SwdenkVCMA9_config : unconfig 9701cb8e980Swdenk @./mkconfig $(@:_config=) arm arm920t vcma9 mpl 9711cb8e980Swdenk 9727ebf7443Swdenk######################################################################### 9737ebf7443Swdenk## ARM720T Systems 9747ebf7443Swdenk######################################################################### 9757ebf7443Swdenk 9767ebf7443Swdenkimpa7_config : unconfig 9777ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t impa7 9787ebf7443Swdenk 9797ebf7443Swdenkep7312_config : unconfig 9807ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t ep7312 9817ebf7443Swdenk 9822d1a537dSwdenkmodnet50_config : unconfig 9832d1a537dSwdenk @./mkconfig $(@:_config=) arm arm720t modnet50 9842d1a537dSwdenk 9857ebf7443Swdenk######################################################################### 98643d9616cSwdenk## XScale Systems 9877ebf7443Swdenk######################################################################### 9887ebf7443Swdenk 9897ebf7443Swdenkcradle_config : unconfig 9904c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa cradle 9917ebf7443Swdenk 9927ebf7443Swdenkcsb226_config : unconfig 9934c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa csb226 9947ebf7443Swdenk 99543d9616cSwdenkinnokom_config : unconfig 9964c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa innokom 99743d9616cSwdenk 9982d5b561eSwdenkixdp425_config : unconfig 9992d5b561eSwdenk @./mkconfig $(@:_config=) arm ixp ixdp425 10002d5b561eSwdenk 100143d9616cSwdenklubbock_config : unconfig 10024c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa lubbock 100343d9616cSwdenk 100452f52c14Swdenklogodl_config : unconfig 100552f52c14Swdenk @./mkconfig $(@:_config=) arm pxa logodl 100652f52c14Swdenk 10073e38691eSwdenkwepep250_config : unconfig 10084c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa wepep250 10093e38691eSwdenk 10102262cfeeSwdenk#======================================================================== 10112262cfeeSwdenk# i386 10122262cfeeSwdenk#======================================================================== 10132262cfeeSwdenk######################################################################### 10142262cfeeSwdenk## AMD SC520 CDP 10152262cfeeSwdenk######################################################################### 10162262cfeeSwdenksc520_cdp_config : unconfig 10172262cfeeSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_cdp 10182262cfeeSwdenk 10197a8e9bedSwdenksc520_spunk_config : unconfig 10207a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 10217a8e9bedSwdenk 10227a8e9bedSwdenksc520_spunk_rel_config : unconfig 10237a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 10247a8e9bedSwdenk 102543d9616cSwdenk#======================================================================== 102643d9616cSwdenk# MIPS 102743d9616cSwdenk#======================================================================== 10287ebf7443Swdenk######################################################################### 102943d9616cSwdenk## MIPS32 4Kc 103043d9616cSwdenk######################################################################### 103143d9616cSwdenk 1032e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 1033e0ac62d7Swdenk 1034e0ac62d7Swdenkincaip_100MHz_config \ 1035e0ac62d7Swdenkincaip_133MHz_config \ 1036e0ac62d7Swdenkincaip_150MHz_config \ 103743d9616cSwdenkincaip_config: unconfig 1038e0ac62d7Swdenk @ >include/config.h 1039e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 1040e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ 1041e0ac62d7Swdenk echo "... with 100MHz system clock" ; \ 1042e0ac62d7Swdenk } 1043e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 1044e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ 1045e0ac62d7Swdenk echo "... with 133MHz system clock" ; \ 1046e0ac62d7Swdenk } 1047e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 1048e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ 1049e0ac62d7Swdenk echo "... with 150MHz system clock" ; \ 1050e0ac62d7Swdenk } 1051e0ac62d7Swdenk @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip 1052e0ac62d7Swdenk 1053f4863a7aSwdenktb0229_config: unconfig 1054f4863a7aSwdenk @./mkconfig $(@:_config=) mips mips tb0229 1055f4863a7aSwdenk 1056e0ac62d7Swdenk######################################################################### 1057e0ac62d7Swdenk## MIPS64 5Kc 1058e0ac62d7Swdenk######################################################################### 105943d9616cSwdenk 10603e38691eSwdenkpurple_config : unconfig 10613e38691eSwdenk @./mkconfig $(@:_config=) mips mips purple 106243d9616cSwdenk 10634a551709Swdenk#======================================================================== 10644a551709Swdenk# Nios 10654a551709Swdenk#======================================================================== 10664a551709Swdenk######################################################################### 10674a551709Swdenk## Nios32 10684a551709Swdenk######################################################################### 10694a551709Swdenk 1070c935d3bdSwdenkDK1C20_safe_32_config \ 1071c935d3bdSwdenkDK1C20_standard_32_config \ 10724a551709SwdenkDK1C20_config: unconfig 1073c935d3bdSwdenk @ >include/config.h 1074c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 1075c935d3bdSwdenk { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1076c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 1077c935d3bdSwdenk } 1078c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 1079c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1080c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 1081c935d3bdSwdenk } 1082c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 1083c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1084c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1085c935d3bdSwdenk } 1086c935d3bdSwdenk @./mkconfig -a DK1C20 nios nios dk1c20 altera 1087c935d3bdSwdenk 1088c935d3bdSwdenkDK1S10_safe_32_config \ 1089c935d3bdSwdenkDK1S10_standard_32_config \ 1090ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 1091c935d3bdSwdenkDK1S10_config: unconfig 1092c935d3bdSwdenk @ >include/config.h 1093c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 1094c935d3bdSwdenk { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1095c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 1096c935d3bdSwdenk } 1097c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 1098c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1099c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 1100c935d3bdSwdenk } 1101ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 1102ec4c544bSwdenk { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \ 1103ec4c544bSwdenk echo "... NIOS 'mtx_ldk_20' configuration" ; \ 1104ec4c544bSwdenk } 1105c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 1106c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1107c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1108c935d3bdSwdenk } 1109c935d3bdSwdenk @./mkconfig -a DK1S10 nios nios dk1s10 altera 11104a551709Swdenk 11114a551709Swdenk 11123e38691eSwdenk######################################################################### 1113a2663ea4Swdenk## MIPS32 AU1X00 11145da627a4Swdenk######################################################################### 1115a2663ea4Swdenkdbau1000_config : unconfig 1116a2663ea4Swdenk @ >include/config.h 1117a2663ea4Swdenk @echo "#define CONFIG_DBAU1000 1" >>include/config.h 1118a2663ea4Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 1119a2663ea4Swdenk 1120a2663ea4Swdenkdbau1100_config : unconfig 1121a2663ea4Swdenk @ >include/config.h 1122a2663ea4Swdenk @echo "#define CONFIG_DBAU1100 1" >>include/config.h 1123a2663ea4Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 1124a2663ea4Swdenk 1125a2663ea4Swdenkdbau1500_config : unconfig 1126a2663ea4Swdenk @ >include/config.h 1127a2663ea4Swdenk @echo "#define CONFIG_DBAU1500 1" >>include/config.h 1128a2663ea4Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 11295da627a4Swdenk 11305da627a4Swdenk######################################################################### 11313e38691eSwdenk######################################################################### 11327ebf7443Swdenk 11337ebf7443Swdenkclean: 11347ebf7443Swdenk find . -type f \ 11357ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 11367ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 11377ebf7443Swdenk | xargs rm -f 113885ec0bccSwdenk rm -f examples/hello_world examples/timer \ 11393e38691eSwdenk examples/eepro100_eeprom examples/sched \ 11407a8e9bedSwdenk examples/mem_to_mem_idma2intr examples/82559_eeprom 11417a8e9bedSwdenk 11427ebf7443Swdenk rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr 11437ebf7443Swdenk rm -f tools/easylogo/easylogo tools/bmp_logo 11447ebf7443Swdenk rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend 1145228f29acSwdenk rm -f tools/env/fw_printenv tools/env/fw_setenv 11467f70e853Swdenk rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image 11475cf9da48Swdenk rm -f board/trab/trab_fkt board/*/config.tmp 11487ebf7443Swdenk 11497ebf7443Swdenkclobber: clean 11507ebf7443Swdenk find . -type f \ 11517ebf7443Swdenk \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \ 11527ebf7443Swdenk -print \ 11537ebf7443Swdenk | xargs rm -f 11547ebf7443Swdenk rm -f $(OBJS) *.bak tags TAGS 11557ebf7443Swdenk rm -fr *.*~ 1156bdccc4feSwdenk rm -f u-boot u-boot.map $(ALL) 1157228f29acSwdenk rm -f tools/crc32.c tools/environment.c tools/env/crc32.c 11583e38691eSwdenk rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c 1159b783edaeSwdenk rm -f include/asm/proc include/asm/arch include/asm 11607ebf7443Swdenk 11617ebf7443Swdenkmrproper \ 11627ebf7443Swdenkdistclean: clobber unconfig 11637ebf7443Swdenk 11647ebf7443Swdenkbackup: 11657ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 11667ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 11677ebf7443Swdenk 11687ebf7443Swdenk######################################################################### 1169