17ebf7443Swdenk# 27ebf7443Swdenk# (C) Copyright 2000, 2001, 2002 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 757ebf7443Swdenkendif 767ebf7443Swdenkendif 777ebf7443Swdenk 787ebf7443Swdenkexport CROSS_COMPILE 797ebf7443Swdenk 807ebf7443Swdenk# The "tools" are needed early, so put this first 817ebf7443SwdenkSUBDIRS = tools \ 82f5300ab2Swdenk examples \ 837ebf7443Swdenk lib_generic \ 847ebf7443Swdenk lib_$(ARCH) \ 857ebf7443Swdenk cpu/$(CPU) \ 867ebf7443Swdenk board/$(BOARDDIR) \ 877ebf7443Swdenk common \ 887ebf7443Swdenk disk \ 897ebf7443Swdenk fs \ 907ebf7443Swdenk net \ 917ebf7443Swdenk rtc \ 927ebf7443Swdenk dtt \ 937ebf7443Swdenk drivers \ 947152b1d0Swdenk drivers/sk98lin \ 957ebf7443Swdenk post \ 96f5300ab2Swdenk post/cpu 977ebf7443Swdenk 987ebf7443Swdenk######################################################################### 997ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1007ebf7443Swdenk 1017ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 1022262cfeeSwdenkifeq ($(CPU),i386) 1032262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 1042262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 1052262cfeeSwdenkendif 1067ebf7443Swdenkifeq ($(CPU),ppc4xx) 1077ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 1087ebf7443Swdenkendif 10942d1f039Swdenkifeq ($(CPU),mpc85xx) 11042d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 11142d1f039Swdenkendif 1127ebf7443Swdenk 1137ebf7443SwdenkLIBS = board/$(BOARDDIR)/lib$(BOARD).a 1147ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1157ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 11671f95118SwdenkLIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a 1177ebf7443SwdenkLIBS += net/libnet.a 1187ebf7443SwdenkLIBS += disk/libdisk.a 1197ebf7443SwdenkLIBS += rtc/librtc.a 1207ebf7443SwdenkLIBS += dtt/libdtt.a 1217ebf7443SwdenkLIBS += drivers/libdrivers.a 1227152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a 1237ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a 1247ebf7443SwdenkLIBS += common/libcommon.a 1257ebf7443SwdenkLIBS += lib_generic/libgeneric.a 1264f7cb08eSwdenk# Add GCC lib 127fc3e2165SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 1287ebf7443Swdenk 1297ebf7443Swdenk######################################################################### 130bdccc4feSwdenk######################################################################### 1317ebf7443Swdenk 132bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map 1337ebf7443Swdenk 134bdccc4feSwdenkall: $(ALL) 1357ebf7443Swdenk 1367ebf7443Swdenku-boot.srec: u-boot 1377ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 1387ebf7443Swdenk 1397ebf7443Swdenku-boot.bin: u-boot 1407ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 1417ebf7443Swdenk 142bdccc4feSwdenku-boot.img: u-boot.bin 143bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 144bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 145bdccc4feSwdenk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ 146bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 147bdccc4feSwdenk -d $< $@ 148bdccc4feSwdenk 1497ebf7443Swdenku-boot.dis: u-boot 1507ebf7443Swdenk $(OBJDUMP) -d $< > $@ 1517ebf7443Swdenk 1527ebf7443Swdenku-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT) 1538bde7f77Swdenk UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 1548bde7f77Swdenk $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ 1557152b1d0Swdenk --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \ 156b2184c31Swdenk -Map u-boot.map -o u-boot 1577ebf7443Swdenk 1587ebf7443Swdenksubdirs: 1597ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done 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 \ 1697ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1707ebf7443Swdenk 1717ebf7443Swdenketags: 1727ebf7443Swdenk etags -a `find $(SUBDIRS) include \ 1737ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1747ebf7443Swdenk 1757ebf7443SwdenkSystem.map: u-boot 1767ebf7443Swdenk @$(NM) $< | \ 1777ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 1787ebf7443Swdenk sort > System.map 1797ebf7443Swdenk 1807ebf7443Swdenk######################################################################### 1817ebf7443Swdenkelse 1827ebf7443Swdenkall install u-boot u-boot.srec depend dep: 1837ebf7443Swdenk @echo "System not configured - see README" >&2 1847ebf7443Swdenk @ exit 1 1857ebf7443Swdenkendif 1867ebf7443Swdenk 1877ebf7443Swdenk######################################################################### 1887ebf7443Swdenk 1897ebf7443Swdenkunconfig: 1907ebf7443Swdenk rm -f include/config.h include/config.mk 1917ebf7443Swdenk 1927ebf7443Swdenk#======================================================================== 1937ebf7443Swdenk# PowerPC 1947ebf7443Swdenk#======================================================================== 1950db5bca8Swdenk 1960db5bca8Swdenk######################################################################### 1970db5bca8Swdenk## MPC5xx Systems 1980db5bca8Swdenk######################################################################### 1990db5bca8Swdenk 2000db5bca8Swdenkcmi_mpc5xx_config: unconfig 2010db5bca8Swdenk @./mkconfig $(@:_config=) ppc mpc5xx cmi 2020db5bca8Swdenk 2037ebf7443Swdenk######################################################################### 204945af8d7Swdenk## MPC5xxx Systems 205945af8d7Swdenk######################################################################### 206*a0f2fe52SwdenkMPC5200LITE \ 207*a0f2fe52Swdenkicecube_5200_config \ 208945af8d7SwdenkIceCube_5200_config \ 209945af8d7SwdenkIceCube_5100_config: unconfig 210945af8d7Swdenk @ >include/config.h 211*a0f2fe52Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 212945af8d7Swdenk { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 213945af8d7Swdenk echo "... with MPC5200 processor" ; \ 214945af8d7Swdenk } 215*a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 216945af8d7Swdenk { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 217945af8d7Swdenk echo "... with MGT5100 processor" ; \ 218945af8d7Swdenk } 219945af8d7Swdenk @./mkconfig -a IceCube ppc mpc5xxx icecube 220945af8d7Swdenk 221945af8d7Swdenk######################################################################### 2227ebf7443Swdenk## MPC8xx Systems 2237ebf7443Swdenk######################################################################### 2247ebf7443Swdenk 2250cb61d7dSwdenkAdderII_config: unconfig 2260cb61d7dSwdenk @./mkconfig $(@:_config=) ppc mpc8xx adderII 2270cb61d7dSwdenk 2287ebf7443SwdenkADS860_config: unconfig 2297ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 2307ebf7443Swdenk 2317ebf7443SwdenkAMX860_config : unconfig 2327ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel 2337ebf7443Swdenk 2347ebf7443Swdenkc2mon_config: unconfig 2357ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx c2mon 2367ebf7443Swdenk 2377ebf7443SwdenkCCM_config: unconfig 2387ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens 2397ebf7443Swdenk 2407ebf7443Swdenkcogent_mpc8xx_config: unconfig 2417ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx cogent 2427ebf7443Swdenk 2433bac3513SwdenkELPT860_config: unconfig 2443bac3513Swdenk @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX 2453bac3513Swdenk 2467ebf7443SwdenkESTEEM192E_config: unconfig 2477ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx esteem192e 2487ebf7443Swdenk 2497ebf7443SwdenkETX094_config : unconfig 2507ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx etx094 2517ebf7443Swdenk 2527ebf7443SwdenkFADS823_config \ 2537ebf7443SwdenkFADS850SAR_config \ 2542535d602SwdenkMPC86xADS_config \ 2557ebf7443SwdenkFADS860T_config: unconfig 2567ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 2577ebf7443Swdenk 2587ebf7443SwdenkFLAGADM_config: unconfig 2597ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx flagadm 2607ebf7443Swdenk 2617aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 2627aa78614Swdenk 2637aa78614SwdenkGEN860T_SC_config \ 2647ebf7443SwdenkGEN860T_config: unconfig 2657aa78614Swdenk @ >include/config.h 2667aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 2677aa78614Swdenk { echo "#define CONFIG_SC" >>include/config.h ; \ 2687aa78614Swdenk echo "With reduced H/W feature set (SC)..." ; \ 2697aa78614Swdenk } 2707aa78614Swdenk @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 2717ebf7443Swdenk 2727ebf7443SwdenkGENIETV_config: unconfig 2737ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx genietv 2747ebf7443Swdenk 2757ebf7443SwdenkGTH_config: unconfig 2767ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx gth 2777ebf7443Swdenk 2787ebf7443Swdenkhermes_config : unconfig 2797ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx hermes 2807ebf7443Swdenk 2817ebf7443SwdenkIAD210_config: unconfig 2827ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens 2837ebf7443Swdenk 2847ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 2857ebf7443Swdenk 2867ebf7443SwdenkICU862_100MHz_config \ 2877ebf7443SwdenkICU862_config: unconfig 2887ebf7443Swdenk @ >include/config.h 2897ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2907ebf7443Swdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 2917ebf7443Swdenk echo "... with 100MHz system clock" ; \ 2927ebf7443Swdenk } 2937ebf7443Swdenk @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 2947ebf7443Swdenk 2957ebf7443SwdenkIP860_config : unconfig 2967ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx ip860 2977ebf7443Swdenk 2987ebf7443SwdenkIVML24_256_config \ 2997ebf7443SwdenkIVML24_128_config \ 3007ebf7443SwdenkIVML24_config: unconfig 3017ebf7443Swdenk @ >include/config.h 3027ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 3037ebf7443Swdenk { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ 3047ebf7443Swdenk } 3057ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 3067ebf7443Swdenk { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ 3077ebf7443Swdenk } 3087ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 3097ebf7443Swdenk { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ 3107ebf7443Swdenk } 3117ebf7443Swdenk @./mkconfig -a IVML24 ppc mpc8xx ivm 3127ebf7443Swdenk 3137ebf7443SwdenkIVMS8_256_config \ 3147ebf7443SwdenkIVMS8_128_config \ 3157ebf7443SwdenkIVMS8_config: unconfig 3167ebf7443Swdenk @ >include/config.h 3177ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 3187ebf7443Swdenk { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ 3197ebf7443Swdenk } 3207ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 3217ebf7443Swdenk { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ 3227ebf7443Swdenk } 3237ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 3247ebf7443Swdenk { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ 3257ebf7443Swdenk } 3267ebf7443Swdenk @./mkconfig -a IVMS8 ppc mpc8xx ivm 3277ebf7443Swdenk 32856f94be3SwdenkKUP4K_config : unconfig 32956f94be3Swdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4k 33056f94be3Swdenk 3317ebf7443SwdenkLANTEC_config : unconfig 3327ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lantec 3337ebf7443Swdenk 3347ebf7443Swdenklwmon_config: unconfig 3357ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lwmon 3367ebf7443Swdenk 3377ebf7443SwdenkMBX_config \ 3387ebf7443SwdenkMBX860T_config: unconfig 3397ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx 3407ebf7443Swdenk 3417ebf7443SwdenkMHPC_config: unconfig 3427ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec 3437ebf7443Swdenk 3447ebf7443SwdenkMVS1_config : unconfig 3457ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mvs1 3467ebf7443Swdenk 347993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 348993cad93Swdenk 349993cad93SwdenkNETVIA_V2_config \ 3507ebf7443SwdenkNETVIA_config: unconfig 351993cad93Swdenk @ >include/config.h 352993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 353993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ 354993cad93Swdenk echo "... Version 1" ; \ 355993cad93Swdenk } 356993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 357993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ 358993cad93Swdenk echo "... Version 2" ; \ 359993cad93Swdenk } 360993cad93Swdenk @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 3617ebf7443Swdenk 3627ebf7443SwdenkNX823_config: unconfig 3637ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nx823 3647ebf7443Swdenk 3657ebf7443Swdenkpcu_e_config: unconfig 3667ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens 3677ebf7443Swdenk 3687ebf7443SwdenkR360MPI_config: unconfig 3697ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx r360mpi 3707ebf7443Swdenk 371682011ffSwdenkRBC823_config: unconfig 372682011ffSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rbc823 373682011ffSwdenk 3747ebf7443SwdenkRPXClassic_config: unconfig 3757ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic 3767ebf7443Swdenk 3777ebf7443SwdenkRPXlite_config: unconfig 3787ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXlite 3797ebf7443Swdenk 38073a8b27cSwdenkrmu_config: unconfig 38173a8b27cSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rmu 38273a8b27cSwdenk 3837ebf7443SwdenkRRvision_config: unconfig 3847ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RRvision 3857ebf7443Swdenk 3867ebf7443SwdenkRRvision_LCD_config: unconfig 3877ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 3887ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 3897ebf7443Swdenk @./mkconfig -a RRvision ppc mpc8xx RRvision 3907ebf7443Swdenk 3917ebf7443SwdenkSM850_config : unconfig 3927ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 3937ebf7443Swdenk 3947ebf7443SwdenkSPD823TS_config: unconfig 3957ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx spd8xx 3967ebf7443Swdenk 397dc7c9a1aSwdenksvm_sc8xx_config: unconfig 398dc7c9a1aSwdenk @ >include/config.h 399dc7c9a1aSwdenk @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx 400dc7c9a1aSwdenk 4017ebf7443SwdenkSXNI855T_config: unconfig 4027ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx sixnet 4037ebf7443Swdenk 404db2f721fSwdenk# EMK MPC8xx based modules 405db2f721fSwdenkTOP860_config: unconfig 406db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx top860 emk 407db2f721fSwdenk 4087ebf7443Swdenk# Play some tricks for configuration selection 40973a8b27cSwdenk# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock, 4107ebf7443Swdenk# but only 855 and 860 boards may come with FEC 4117ebf7443Swdenk# and 823 boards may have LCD support 41273a8b27cSwdenkxtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1))))) 4137ebf7443Swdenk 4147ebf7443SwdenkFPS850L_config \ 415384ae025SwdenkFPS860L_config \ 416f12e568cSwdenkNSCU_config \ 4177ebf7443SwdenkTQM823L_config \ 4187ebf7443SwdenkTQM823L_66MHz_config \ 4197ebf7443SwdenkTQM823L_80MHz_config \ 4207ebf7443SwdenkTQM823L_LCD_config \ 4217ebf7443SwdenkTQM823L_LCD_66MHz_config \ 4227ebf7443SwdenkTQM823L_LCD_80MHz_config \ 4237ebf7443SwdenkTQM850L_config \ 4247ebf7443SwdenkTQM850L_66MHz_config \ 4257ebf7443SwdenkTQM850L_80MHz_config \ 4267ebf7443SwdenkTQM855L_config \ 4277ebf7443SwdenkTQM855L_66MHz_config \ 4287ebf7443SwdenkTQM855L_80MHz_config \ 4297ebf7443SwdenkTQM860L_config \ 4307ebf7443SwdenkTQM860L_66MHz_config \ 4317ebf7443SwdenkTQM860L_80MHz_config \ 432d126bfbdSwdenkTQM862L_config \ 433d126bfbdSwdenkTQM862L_66MHz_config \ 43473a8b27cSwdenkTQM862L_80MHz_config \ 435ae3af05eSwdenkTQM823M_config \ 436ae3af05eSwdenkTQM823M_66MHz_config \ 437ae3af05eSwdenkTQM823M_80MHz_config \ 438ae3af05eSwdenkTQM850M_config \ 439ae3af05eSwdenkTQM850M_66MHz_config \ 440ae3af05eSwdenkTQM850M_80MHz_config \ 441f12e568cSwdenkTQM855M_config \ 442f12e568cSwdenkTQM855M_66MHz_config \ 443f12e568cSwdenkTQM855M_80MHz_config \ 444f12e568cSwdenkTQM860M_config \ 445f12e568cSwdenkTQM860M_66MHz_config \ 446f12e568cSwdenkTQM860M_80MHz_config \ 447f12e568cSwdenkTQM862M_config \ 448f12e568cSwdenkTQM862M_66MHz_config \ 449f12e568cSwdenkTQM862M_80MHz_config \ 45071f95118SwdenkTQM862M_100MHz_config: unconfig 4517ebf7443Swdenk @ >include/config.h 4527ebf7443Swdenk @[ -z "$(findstring _66MHz,$@)" ] || \ 4537ebf7443Swdenk { echo "#define CONFIG_66MHz" >>include/config.h ; \ 4547ebf7443Swdenk echo "... with 66MHz system clock" ; \ 4557ebf7443Swdenk } 4567ebf7443Swdenk @[ -z "$(findstring _80MHz,$@)" ] || \ 4577ebf7443Swdenk { echo "#define CONFIG_80MHz" >>include/config.h ; \ 4587ebf7443Swdenk echo "... with 80MHz system clock" ; \ 4597ebf7443Swdenk } 46073a8b27cSwdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 46173a8b27cSwdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 46273a8b27cSwdenk echo "... with 100MHz system clock" ; \ 46373a8b27cSwdenk } 4647ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 4657ebf7443Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 4667ebf7443Swdenk echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \ 4677ebf7443Swdenk echo "... with LCD display" ; \ 4687ebf7443Swdenk } 4697ebf7443Swdenk @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 4707ebf7443Swdenk 4717ebf7443SwdenkTTTech_config: unconfig 4727ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 4737ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 4747ebf7443Swdenk @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 4757ebf7443Swdenk 476608c9146Swdenkv37_config: unconfig 477608c9146Swdenk @echo "#define CONFIG_LCD" >include/config.h 478608c9146Swdenk @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h 479608c9146Swdenk @./mkconfig $(@:_config=) ppc mpc8xx v37 480608c9146Swdenk 48191e940d9Sdzuwtk_config: unconfig 48291e940d9Sdzu @echo "#define CONFIG_LCD" >include/config.h 48391e940d9Sdzu @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h 48491e940d9Sdzu @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 48591e940d9Sdzu 4867ebf7443Swdenk######################################################################### 4877ebf7443Swdenk## PPC4xx Systems 4887ebf7443Swdenk######################################################################### 489fbe4b5cbSwdenkxtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1)))) 4907ebf7443Swdenk 4917ebf7443SwdenkADCIOP_config: unconfig 4927ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx adciop esd 4937ebf7443Swdenk 4947ebf7443SwdenkAR405_config: unconfig 4957ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd 4967ebf7443Swdenk 497549826eaSstroeseASH405_config: unconfig 498549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd 499549826eaSstroese 500549826eaSstroeseBUBINGA405EP_config:unconfig 501549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep 502549826eaSstroese 5037ebf7443SwdenkCANBT_config: unconfig 5047ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx canbt esd 5057ebf7443Swdenk 5067ebf7443SwdenkCPCI405_config \ 507549826eaSstroeseCPCI4052_config \ 508549826eaSstroeseCPCI405AB_config: unconfig 5097ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd 5107ebf7443Swdenk @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk 5117ebf7443Swdenk 5127ebf7443SwdenkCPCI440_config: unconfig 5137ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd 5147ebf7443Swdenk 5157ebf7443SwdenkCPCIISER4_config: unconfig 5167ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd 5177ebf7443Swdenk 5187ebf7443SwdenkCRAYL1_config:unconfig 5197ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx L1 cray 5207ebf7443Swdenk 5217ebf7443SwdenkDASA_SIM_config: unconfig 5227ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd 5237ebf7443Swdenk 52472cd5aa7SstroeseDP405_config: unconfig 52572cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd 52672cd5aa7Sstroese 5277ebf7443SwdenkDU405_config: unconfig 5287ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx du405 esd 5297ebf7443Swdenk 5307ebf7443SwdenkEBONY_config:unconfig 5317ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ebony 5327ebf7443Swdenk 5337ebf7443SwdenkERIC_config:unconfig 5347ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx eric 5357ebf7443Swdenk 536d1cbe85bSwdenkEXBITGEN_config:unconfig 537d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc ppc4xx exbitgen 538d1cbe85bSwdenk 53972cd5aa7SstroeseHUB405_config: unconfig 54072cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd 54172cd5aa7Sstroese 5427ebf7443SwdenkMIP405_config:unconfig 5437ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl 5447ebf7443Swdenk 545f3e0de60SwdenkMIP405T_config:unconfig 546f3e0de60Swdenk @echo "#define CONFIG_MIP405T" >include/config.h 547f3e0de60Swdenk @echo "Enable subset config for MIP405T" 548f3e0de60Swdenk @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl 549f3e0de60Swdenk 5507ebf7443SwdenkML2_config:unconfig 5517ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml2 5527ebf7443Swdenk 5537ebf7443SwdenkOCRTC_config \ 5547ebf7443SwdenkORSG_config: unconfig 5557ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd 5567ebf7443Swdenk 5577ebf7443SwdenkPCI405_config: unconfig 5587ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd 5597ebf7443Swdenk 5607ebf7443SwdenkPIP405_config:unconfig 5617ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl 5627ebf7443Swdenk 56372cd5aa7SstroesePLU405_config: unconfig 56472cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd 56572cd5aa7Sstroese 566549826eaSstroesePMC405_config: unconfig 567549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd 568549826eaSstroese 569fbe4b5cbSwdenkPPChameleonEVB_MODEL_BA_config \ 570fbe4b5cbSwdenkPPChameleonEVB_MODEL_ME_config \ 571fbe4b5cbSwdenkPPChameleonEVB_MODEL_HI_config \ 57212f34241SwdenkPPChameleonEVB_config: unconfig 573fbe4b5cbSwdenk @ >include/config.h 574fbe4b5cbSwdenk @[ -z "$(findstring _MODEL_BA,$@)" ] || \ 575fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \ 576fbe4b5cbSwdenk echo "... BASIC model" ; \ 577fbe4b5cbSwdenk } 578fbe4b5cbSwdenk @[ -z "$(findstring _MODEL_ME,$@)" ] || \ 579fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \ 580fbe4b5cbSwdenk echo "... MEDIUM model" ; \ 581fbe4b5cbSwdenk } 582fbe4b5cbSwdenk @[ -z "$(findstring _MODEL_HI,$@)" ] || \ 583fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \ 584fbe4b5cbSwdenk echo "... HIGH-END model" ; \ 585fbe4b5cbSwdenk } 586fbe4b5cbSwdenk @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 58712f34241Swdenk 58872cd5aa7SstroeseVOH405_config: unconfig 58972cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd 59072cd5aa7Sstroese 5917ebf7443SwdenkW7OLMC_config \ 5927ebf7443SwdenkW7OLMG_config: unconfig 5937ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx w7o 5947ebf7443Swdenk 5957ebf7443SwdenkWALNUT405_config:unconfig 5967ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx walnut405 5977ebf7443Swdenk 5987ebf7443Swdenk######################################################################### 5997ebf7443Swdenk## MPC824x Systems 6007ebf7443Swdenk######################################################################### 6013bac3513Swdenkxtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) 6023bac3513Swdenk 6030332990bSwdenkA3000_config: unconfig 6040332990bSwdenk @./mkconfig $(@:_config=) ppc mpc824x a3000 6050332990bSwdenk 6067ebf7443SwdenkBMW_config: unconfig 6077ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x bmw 6087ebf7443Swdenk 6093bac3513SwdenkCPC45_config \ 6103bac3513SwdenkCPC45_ROMBOOT_config: unconfig 6113bac3513Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 6123bac3513Swdenk @cd ./include ; \ 6133bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 6143bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 6153bac3513Swdenk echo "... booting from 8-bit flash" ; \ 6163bac3513Swdenk else \ 6173bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 6183bac3513Swdenk echo "... booting from 64-bit flash" ; \ 6193bac3513Swdenk fi; \ 6203bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 6213bac3513Swdenk 6227ebf7443SwdenkCU824_config: unconfig 6237ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x cu824 6247ebf7443Swdenk 6257ebf7443SwdenkMOUSSE_config: unconfig 6267ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x mousse 6277ebf7443Swdenk 6287ebf7443SwdenkMUSENKI_config: unconfig 6297ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x musenki 6307ebf7443Swdenk 6317ebf7443SwdenkOXC_config: unconfig 6327ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x oxc 6337ebf7443Swdenk 6347ebf7443SwdenkPN62_config: unconfig 6357ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x pn62 6367ebf7443Swdenk 6377ebf7443SwdenkSandpoint8240_config: unconfig 6387ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 6397ebf7443Swdenk 6407ebf7443SwdenkSandpoint8245_config: unconfig 6417ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 6427ebf7443Swdenk 643d1cbe85bSwdenkSL8245_config: unconfig 644d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc mpc824x sl8245 645d1cbe85bSwdenk 6467ebf7443Swdenkutx8245_config: unconfig 6477ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x utx8245 6487ebf7443Swdenk 6497ebf7443Swdenk######################################################################### 6507ebf7443Swdenk## MPC8260 Systems 6517ebf7443Swdenk######################################################################### 6527ebf7443Swdenk 65354387ac9Swdenkatc_config: unconfig 65454387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 atc 65554387ac9Swdenk 6567ebf7443Swdenkcogent_mpc8260_config: unconfig 6577ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 cogent 6587ebf7443Swdenk 6597ebf7443SwdenkCPU86_config \ 6607ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 6617ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 6627ebf7443Swdenk @cd ./include ; \ 6637ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 6647ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 6657ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 6667ebf7443Swdenk else \ 6677ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 6687ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 6697ebf7443Swdenk fi; \ 6707ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 6717ebf7443Swdenk 6727ebf7443Swdenkep8260_config: unconfig 6737ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ep8260 6747ebf7443Swdenk 6757ebf7443Swdenkgw8260_config: unconfig 6767ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 gw8260 6777ebf7443Swdenk 6787ebf7443Swdenkhymod_config: unconfig 6797ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 hymod 6807ebf7443Swdenk 6817ebf7443SwdenkIPHASE4539_config: unconfig 6827ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 6837ebf7443Swdenk 6847ebf7443SwdenkMPC8260ADS_config: unconfig 6857ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads 6867ebf7443Swdenk 687db2f721fSwdenkMPC8266ADS_config: unconfig 688db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads 689db2f721fSwdenk 69010f67017SwdenkPM825_config \ 69110f67017SwdenkPM825_ROMBOOT_config: unconfig 69210f67017Swdenk @echo "#define CONFIG_PCI" >include/config.h 69310f67017Swdenk @./mkconfig -a PM826 ppc mpc8260 pm826 69410f67017Swdenk @cd ./include ; \ 69510f67017Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 69610f67017Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 69710f67017Swdenk echo "... booting from 8-bit flash" ; \ 69810f67017Swdenk else \ 69910f67017Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 70010f67017Swdenk echo "... booting from 64-bit flash" ; \ 70110f67017Swdenk fi; \ 70210f67017Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; \ 70310f67017Swdenk 7047ebf7443SwdenkPM826_config \ 7057ebf7443SwdenkPM826_ROMBOOT_config: unconfig 7067ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 7077ebf7443Swdenk @cd ./include ; \ 7087ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 7097ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 7107ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 7117ebf7443Swdenk else \ 7127ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 7137ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 7147ebf7443Swdenk fi; \ 7157ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; \ 7167ebf7443Swdenk 7177ebf7443Swdenkppmc8260_config: unconfig 7187ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 7197ebf7443Swdenk 7207ebf7443SwdenkRPXsuper_config: unconfig 7217ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper 7227ebf7443Swdenk 7237ebf7443Swdenkrsdproto_config: unconfig 7247ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rsdproto 7257ebf7443Swdenk 7267ebf7443Swdenksacsng_config: unconfig 7277ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sacsng 7287ebf7443Swdenk 7297ebf7443Swdenksbc8260_config: unconfig 7307ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 7317ebf7443Swdenk 7327ebf7443SwdenkSCM_config: unconfig 7337ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens 7347ebf7443Swdenk 73527b207fdSwdenkTQM8255_AA_config \ 73627b207fdSwdenkTQM8260_AA_config \ 73727b207fdSwdenkTQM8260_AB_config \ 73827b207fdSwdenkTQM8260_AC_config \ 73927b207fdSwdenkTQM8260_AD_config \ 74027b207fdSwdenkTQM8260_AE_config \ 74127b207fdSwdenkTQM8260_AF_config \ 74227b207fdSwdenkTQM8260_AG_config \ 74327b207fdSwdenkTQM8260_AH_config \ 74427b207fdSwdenkTQM8265_AA_config: unconfig 74527b207fdSwdenk @case "$@" in \ 74627b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 74727b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 74827b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 74927b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 75027b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 75127b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 75227b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 75327b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 75427b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 75527b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 75627b207fdSwdenk esac; \ 75727b207fdSwdenk >include/config.h ; \ 75827b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 75927b207fdSwdenk echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ 76027b207fdSwdenk fi; \ 76127b207fdSwdenk echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ 76227b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 76327b207fdSwdenk if [ "$${CACHE}" == "yes" ] ; then \ 7647ebf7443Swdenk echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ 76527b207fdSwdenk echo "... with L2 Cache support" ; \ 7667ebf7443Swdenk else \ 7677ebf7443Swdenk echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ 7687ebf7443Swdenk echo "... without L2 Cache support" ; \ 76927b207fdSwdenk fi; \ 77027b207fdSwdenk if [ "$${BMODE}" == "60x" ] ; then \ 77127b207fdSwdenk echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ 77227b207fdSwdenk echo "... with 60x Bus Mode" ; \ 77327b207fdSwdenk else \ 77427b207fdSwdenk echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ 77527b207fdSwdenk echo "... without 60x Bus Mode" ; \ 7767ebf7443Swdenk fi 7774532cb69Swdenk @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 7787ebf7443Swdenk 77954387ac9SwdenkZPC1900_config: unconfig 78054387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 zpc1900 7817aa78614Swdenk 7827ebf7443Swdenk######################################################################### 78342d1f039Swdenk## MPC85xx Systems 78442d1f039Swdenk######################################################################### 78542d1f039Swdenk 78642d1f039SwdenkMPC8540ADS_config: unconfig 78742d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads 78842d1f039Swdenk 78942d1f039SwdenkMPC8560ADS_config: unconfig 79042d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads 79142d1f039Swdenk 79242d1f039Swdenk######################################################################### 7937ebf7443Swdenk## 74xx/7xx Systems 7947ebf7443Swdenk######################################################################### 7957ebf7443Swdenk 796c7de829cSwdenkAmigaOneG3SE_config: unconfig 797c7de829cSwdenk @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 798c7de829cSwdenk 79915647dc7SwdenkBAB7xx_config: unconfig 80015647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec 80115647dc7Swdenk 80215647dc7Swdenkdebris_config: unconfig 80315647dc7Swdenk @./mkconfig $(@:_config=) ppc mpc824x debris etin 80415647dc7Swdenk 80515647dc7SwdenkELPPC_config: unconfig 80615647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec 80715647dc7Swdenk 8087ebf7443SwdenkEVB64260_config \ 8097ebf7443SwdenkEVB64260_750CX_config: unconfig 8107ebf7443Swdenk @./mkconfig EVB64260 ppc 74xx_7xx evb64260 8117ebf7443Swdenk 81215647dc7SwdenkP3G4_config: unconfig 8137ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 8147ebf7443Swdenk 8157ebf7443SwdenkPCIPPC2_config \ 8167ebf7443SwdenkPCIPPC6_config: unconfig 8177ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 8187ebf7443Swdenk 81915647dc7SwdenkZUMA_config: unconfig 82012f34241Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 82112f34241Swdenk 8227ebf7443Swdenk#======================================================================== 8237ebf7443Swdenk# ARM 8247ebf7443Swdenk#======================================================================== 8257ebf7443Swdenk######################################################################### 8267ebf7443Swdenk## StrongARM Systems 8277ebf7443Swdenk######################################################################### 8287ebf7443Swdenk 829dc7c9a1aSwdenkat91rm9200dk_config : unconfig 830dc7c9a1aSwdenk @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk 831dc7c9a1aSwdenk 8327ebf7443Swdenklart_config : unconfig 8337ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 lart 8347ebf7443Swdenk 8357ebf7443Swdenkdnp1110_config : unconfig 8367ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 dnp1110 8377ebf7443Swdenk 8387ebf7443Swdenkshannon_config : unconfig 8397ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 shannon 8407ebf7443Swdenk 8417ebf7443Swdenk######################################################################### 8422e5983d2Swdenk## ARM92xT Systems 8437ebf7443Swdenk######################################################################### 8447ebf7443Swdenk 845b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 84643d9616cSwdenk 8472e5983d2Swdenkomap1510inn_config : unconfig 8482e5983d2Swdenk @./mkconfig $(@:_config=) arm arm925t omap1510inn 8492e5983d2Swdenk 8506f21347dSwdenkomap1610inn_config : unconfig 8516f21347dSwdenk @./mkconfig $(@:_config=) arm arm926ejs omap1610inn 8526f21347dSwdenk 8537ebf7443Swdenksmdk2400_config : unconfig 8547ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2400 8557ebf7443Swdenk 8567ebf7443Swdenksmdk2410_config : unconfig 8577ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2410 8587ebf7443Swdenk 85943d9616cSwdenktrab_config \ 860b0639ca3Swdenktrab_bigram_config \ 861b0639ca3Swdenktrab_bigflash_config \ 862f54ebdfaSwdenktrab_old_config: unconfig 86343d9616cSwdenk @ >include/config.h 864b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 865b0639ca3Swdenk { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 866b0639ca3Swdenk echo "... with 8 MB Flash, 32 MB RAM" ; \ 867b0639ca3Swdenk } 868b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 869b0639ca3Swdenk { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 870b0639ca3Swdenk echo "... with 16 MB Flash, 16 MB RAM" ; \ 871b0639ca3Swdenk echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \ 872b0639ca3Swdenk } 873f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 874f54ebdfaSwdenk { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \ 875f54ebdfaSwdenk echo "... with small memory configuration" ; \ 876b0639ca3Swdenk echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \ 87743d9616cSwdenk } 87843d9616cSwdenk @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab 8797ebf7443Swdenk 8801cb8e980SwdenkVCMA9_config : unconfig 8811cb8e980Swdenk @./mkconfig $(@:_config=) arm arm920t vcma9 mpl 8821cb8e980Swdenk 8837ebf7443Swdenk######################################################################### 8847ebf7443Swdenk## ARM720T Systems 8857ebf7443Swdenk######################################################################### 8867ebf7443Swdenk 8877ebf7443Swdenkimpa7_config : unconfig 8887ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t impa7 8897ebf7443Swdenk 8907ebf7443Swdenkep7312_config : unconfig 8917ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t ep7312 8927ebf7443Swdenk 8937ebf7443Swdenk######################################################################### 89443d9616cSwdenk## XScale Systems 8957ebf7443Swdenk######################################################################### 8967ebf7443Swdenk 8977ebf7443Swdenkcradle_config : unconfig 8984c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa cradle 8997ebf7443Swdenk 9007ebf7443Swdenkcsb226_config : unconfig 9014c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa csb226 9027ebf7443Swdenk 90343d9616cSwdenkinnokom_config : unconfig 9044c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa innokom 90543d9616cSwdenk 9062d5b561eSwdenkixdp425_config : unconfig 9072d5b561eSwdenk @./mkconfig $(@:_config=) arm ixp ixdp425 9082d5b561eSwdenk 90943d9616cSwdenklubbock_config : unconfig 9104c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa lubbock 91143d9616cSwdenk 91252f52c14Swdenklogodl_config : unconfig 91352f52c14Swdenk @./mkconfig $(@:_config=) arm pxa logodl 91452f52c14Swdenk 9153e38691eSwdenkwepep250_config : unconfig 9164c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa wepep250 9173e38691eSwdenk 9182262cfeeSwdenk#======================================================================== 9192262cfeeSwdenk# i386 9202262cfeeSwdenk#======================================================================== 9212262cfeeSwdenk######################################################################### 9222262cfeeSwdenk## AMD SC520 CDP 9232262cfeeSwdenk######################################################################### 9242262cfeeSwdenksc520_cdp_config : unconfig 9252262cfeeSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_cdp 9262262cfeeSwdenk 9277a8e9bedSwdenksc520_spunk_config : unconfig 9287a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 9297a8e9bedSwdenk 9307a8e9bedSwdenksc520_spunk_rel_config : unconfig 9317a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 9327a8e9bedSwdenk 93343d9616cSwdenk#======================================================================== 93443d9616cSwdenk# MIPS 93543d9616cSwdenk#======================================================================== 9367ebf7443Swdenk######################################################################### 93743d9616cSwdenk## MIPS32 4Kc 93843d9616cSwdenk######################################################################### 93943d9616cSwdenk 940e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 941e0ac62d7Swdenk 942e0ac62d7Swdenkincaip_100MHz_config \ 943e0ac62d7Swdenkincaip_133MHz_config \ 944e0ac62d7Swdenkincaip_150MHz_config \ 94543d9616cSwdenkincaip_config: unconfig 946e0ac62d7Swdenk @ >include/config.h 947e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 948e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ 949e0ac62d7Swdenk echo "... with 100MHz system clock" ; \ 950e0ac62d7Swdenk } 951e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 952e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ 953e0ac62d7Swdenk echo "... with 133MHz system clock" ; \ 954e0ac62d7Swdenk } 955e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 956e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ 957e0ac62d7Swdenk echo "... with 150MHz system clock" ; \ 958e0ac62d7Swdenk } 959e0ac62d7Swdenk @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip 960e0ac62d7Swdenk 961e0ac62d7Swdenk######################################################################### 962e0ac62d7Swdenk## MIPS64 5Kc 963e0ac62d7Swdenk######################################################################### 96443d9616cSwdenk 9653e38691eSwdenkpurple_config : unconfig 9663e38691eSwdenk @./mkconfig $(@:_config=) mips mips purple 96743d9616cSwdenk 9684a551709Swdenk#======================================================================== 9694a551709Swdenk# Nios 9704a551709Swdenk#======================================================================== 9714a551709Swdenk######################################################################### 9724a551709Swdenk## Nios32 9734a551709Swdenk######################################################################### 9744a551709Swdenk 9754a551709SwdenkDK1C20_config: unconfig 9764a551709Swdenk @./mkconfig $(@:_config=) nios nios dk1c20 9774a551709Swdenk 9784a551709Swdenk 9793e38691eSwdenk######################################################################### 9805da627a4Swdenk## MIPS32 AU1000 9815da627a4Swdenk######################################################################### 9825da627a4Swdenkdbau1x00_config : unconfig 9835da627a4Swdenk @./mkconfig $(@:_config=) mips mips dbau1x00 9845da627a4Swdenk 9855da627a4Swdenk######################################################################### 9863e38691eSwdenk######################################################################### 9877ebf7443Swdenk 9887ebf7443Swdenkclean: 9897ebf7443Swdenk find . -type f \ 9907ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 9917ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 9927ebf7443Swdenk | xargs rm -f 99385ec0bccSwdenk rm -f examples/hello_world examples/timer \ 9943e38691eSwdenk examples/eepro100_eeprom examples/sched \ 9957a8e9bedSwdenk examples/mem_to_mem_idma2intr examples/82559_eeprom 9967a8e9bedSwdenk 9977ebf7443Swdenk rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr 9987ebf7443Swdenk rm -f tools/easylogo/easylogo tools/bmp_logo 9997ebf7443Swdenk rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend 1000228f29acSwdenk rm -f tools/env/fw_printenv tools/env/fw_setenv 10017f70e853Swdenk rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image 1002b0639ca3Swdenk rm -f board/trab/trab_fkt board/trab/config.tmp 10037ebf7443Swdenk 10047ebf7443Swdenkclobber: clean 10057ebf7443Swdenk find . -type f \ 10067ebf7443Swdenk \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \ 10077ebf7443Swdenk -print \ 10087ebf7443Swdenk | xargs rm -f 10097ebf7443Swdenk rm -f $(OBJS) *.bak tags TAGS 10107ebf7443Swdenk rm -fr *.*~ 1011bdccc4feSwdenk rm -f u-boot u-boot.map $(ALL) 1012228f29acSwdenk rm -f tools/crc32.c tools/environment.c tools/env/crc32.c 10133e38691eSwdenk rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c 1014b783edaeSwdenk rm -f include/asm/proc include/asm/arch include/asm 10157ebf7443Swdenk 10167ebf7443Swdenkmrproper \ 10177ebf7443Swdenkdistclean: clobber unconfig 10187ebf7443Swdenk 10197ebf7443Swdenkbackup: 10207ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 10217ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 10227ebf7443Swdenk 10237ebf7443Swdenk######################################################################### 1024