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 727ebf7443Swdenkendif 737ebf7443Swdenkendif 747ebf7443Swdenk 757ebf7443Swdenkexport CROSS_COMPILE 767ebf7443Swdenk 777ebf7443Swdenk# The "tools" are needed early, so put this first 787ebf7443SwdenkSUBDIRS = tools \ 797ebf7443Swdenk lib_generic \ 807ebf7443Swdenk lib_$(ARCH) \ 817ebf7443Swdenk cpu/$(CPU) \ 827ebf7443Swdenk board/$(BOARDDIR) \ 837ebf7443Swdenk common \ 847ebf7443Swdenk disk \ 857ebf7443Swdenk fs \ 867ebf7443Swdenk net \ 877ebf7443Swdenk rtc \ 887ebf7443Swdenk dtt \ 897ebf7443Swdenk drivers \ 907ebf7443Swdenk post \ 917ebf7443Swdenk post/cpu \ 927ebf7443Swdenk examples 937ebf7443Swdenk 947ebf7443Swdenk######################################################################### 957ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 967ebf7443Swdenk 977ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 982262cfeeSwdenkifeq ($(CPU),i386) 992262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 1002262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 1012262cfeeSwdenkendif 1027ebf7443Swdenkifeq ($(CPU),ppc4xx) 1037ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 1047ebf7443Swdenkendif 1057ebf7443Swdenk 1067ebf7443SwdenkLIBS = board/$(BOARDDIR)/lib$(BOARD).a 1077ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1087ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 10971f95118SwdenkLIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a 1107ebf7443SwdenkLIBS += net/libnet.a 1117ebf7443SwdenkLIBS += disk/libdisk.a 1127ebf7443SwdenkLIBS += rtc/librtc.a 1137ebf7443SwdenkLIBS += dtt/libdtt.a 1147ebf7443SwdenkLIBS += drivers/libdrivers.a 1157ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a 1167ebf7443SwdenkLIBS += common/libcommon.a 1177ebf7443SwdenkLIBS += lib_generic/libgeneric.a 1187ebf7443Swdenk 1197ebf7443Swdenk######################################################################### 120bdccc4feSwdenk######################################################################### 1217ebf7443Swdenk 122bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map 1237ebf7443Swdenk 124bdccc4feSwdenkall: $(ALL) 1257ebf7443Swdenk 1267ebf7443Swdenku-boot.srec: u-boot 1277ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 1287ebf7443Swdenk 1297ebf7443Swdenku-boot.bin: u-boot 1307ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 1317ebf7443Swdenk 132bdccc4feSwdenku-boot.img: u-boot.bin 133bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 134bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 135bdccc4feSwdenk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ 136bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 137bdccc4feSwdenk -d $< $@ 138bdccc4feSwdenk 1397ebf7443Swdenku-boot.dis: u-boot 1407ebf7443Swdenk $(OBJDUMP) -d $< > $@ 1417ebf7443Swdenk 1427ebf7443Swdenku-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT) 1438bde7f77Swdenk UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 1448bde7f77Swdenk $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ 145b2184c31Swdenk --start-group $(LIBS) --end-group \ 146b2184c31Swdenk -Map u-boot.map -o u-boot 1477ebf7443Swdenk 1487ebf7443Swdenksubdirs: 1497ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done 1507ebf7443Swdenk 1518f713fdfSdzugdbtools: 1528f713fdfSdzu $(MAKE) -C tools/gdb || exit 1 1538f713fdfSdzu 1547ebf7443Swdenkdepend dep: 1557ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done 1567ebf7443Swdenk 1577ebf7443Swdenktags: 1587ebf7443Swdenk ctags -w `find $(SUBDIRS) include \ 1597ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1607ebf7443Swdenk 1617ebf7443Swdenketags: 1627ebf7443Swdenk etags -a `find $(SUBDIRS) include \ 1637ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1647ebf7443Swdenk 1657ebf7443SwdenkSystem.map: u-boot 1667ebf7443Swdenk @$(NM) $< | \ 1677ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 1687ebf7443Swdenk sort > System.map 1697ebf7443Swdenk 1707ebf7443Swdenk######################################################################### 1717ebf7443Swdenkelse 1727ebf7443Swdenkall install u-boot u-boot.srec depend dep: 1737ebf7443Swdenk @echo "System not configured - see README" >&2 1747ebf7443Swdenk @ exit 1 1757ebf7443Swdenkendif 1767ebf7443Swdenk 1777ebf7443Swdenk######################################################################### 1787ebf7443Swdenk 1797ebf7443Swdenkunconfig: 1807ebf7443Swdenk rm -f include/config.h include/config.mk 1817ebf7443Swdenk 1827ebf7443Swdenk#======================================================================== 1837ebf7443Swdenk# PowerPC 1847ebf7443Swdenk#======================================================================== 1850db5bca8Swdenk 1860db5bca8Swdenk######################################################################### 1870db5bca8Swdenk## MPC5xx Systems 1880db5bca8Swdenk######################################################################### 1890db5bca8Swdenk 1900db5bca8Swdenkcmi_mpc5xx_config: unconfig 1910db5bca8Swdenk @./mkconfig $(@:_config=) ppc mpc5xx cmi 1920db5bca8Swdenk 1937ebf7443Swdenk######################################################################### 194945af8d7Swdenk## MPC5xxx Systems 195945af8d7Swdenk######################################################################### 196945af8d7SwdenkIceCube_5200_config \ 197945af8d7SwdenkIceCube_5100_config: unconfig 198945af8d7Swdenk @ >include/config.h 199945af8d7Swdenk @[ -z "$(findstring _5200,$@)" ] || \ 200945af8d7Swdenk { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 201945af8d7Swdenk echo "... with MPC5200 processor" ; \ 202945af8d7Swdenk } 203945af8d7Swdenk @[ -z "$(findstring _5100,$@)" ] || \ 204945af8d7Swdenk { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 205945af8d7Swdenk echo "... with MGT5100 processor" ; \ 206945af8d7Swdenk } 207945af8d7Swdenk @./mkconfig -a IceCube ppc mpc5xxx icecube 208945af8d7Swdenk 209945af8d7Swdenk######################################################################### 2107ebf7443Swdenk## MPC8xx Systems 2117ebf7443Swdenk######################################################################### 2127ebf7443Swdenk 2137ebf7443SwdenkADS860_config: unconfig 2147ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 2157ebf7443Swdenk 2167ebf7443SwdenkAMX860_config : unconfig 2177ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel 2187ebf7443Swdenk 2197ebf7443Swdenkc2mon_config: unconfig 2207ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx c2mon 2217ebf7443Swdenk 2227ebf7443SwdenkCCM_config: unconfig 2237ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens 2247ebf7443Swdenk 2257ebf7443Swdenkcogent_mpc8xx_config: unconfig 2267ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx cogent 2277ebf7443Swdenk 2283bac3513SwdenkELPT860_config: unconfig 2293bac3513Swdenk @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX 2303bac3513Swdenk 2317ebf7443SwdenkESTEEM192E_config: unconfig 2327ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx esteem192e 2337ebf7443Swdenk 2347ebf7443SwdenkETX094_config : unconfig 2357ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx etx094 2367ebf7443Swdenk 2377ebf7443SwdenkFADS823_config \ 2387ebf7443SwdenkFADS850SAR_config \ 2392535d602SwdenkMPC86xADS_config \ 2407ebf7443SwdenkFADS860T_config: unconfig 2417ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 2427ebf7443Swdenk 2437ebf7443SwdenkFLAGADM_config: unconfig 2447ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx flagadm 2457ebf7443Swdenk 2467aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 2477aa78614Swdenk 2487aa78614SwdenkGEN860T_SC_config \ 2497ebf7443SwdenkGEN860T_config: unconfig 2507aa78614Swdenk @ >include/config.h 2517aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 2527aa78614Swdenk { echo "#define CONFIG_SC" >>include/config.h ; \ 2537aa78614Swdenk echo "With reduced H/W feature set (SC)..." ; \ 2547aa78614Swdenk } 2557aa78614Swdenk @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 2567ebf7443Swdenk 2577ebf7443SwdenkGENIETV_config: unconfig 2587ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx genietv 2597ebf7443Swdenk 2607ebf7443SwdenkGTH_config: unconfig 2617ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx gth 2627ebf7443Swdenk 2637ebf7443Swdenkhermes_config : unconfig 2647ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx hermes 2657ebf7443Swdenk 2667ebf7443SwdenkIAD210_config: unconfig 2677ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens 2687ebf7443Swdenk 2697ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 2707ebf7443Swdenk 2717ebf7443SwdenkICU862_100MHz_config \ 2727ebf7443SwdenkICU862_config: unconfig 2737ebf7443Swdenk @ >include/config.h 2747ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2757ebf7443Swdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 2767ebf7443Swdenk echo "... with 100MHz system clock" ; \ 2777ebf7443Swdenk } 2787ebf7443Swdenk @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 2797ebf7443Swdenk 2807ebf7443SwdenkIP860_config : unconfig 2817ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx ip860 2827ebf7443Swdenk 2837ebf7443SwdenkIVML24_256_config \ 2847ebf7443SwdenkIVML24_128_config \ 2857ebf7443SwdenkIVML24_config: unconfig 2867ebf7443Swdenk @ >include/config.h 2877ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 2887ebf7443Swdenk { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ 2897ebf7443Swdenk } 2907ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 2917ebf7443Swdenk { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ 2927ebf7443Swdenk } 2937ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 2947ebf7443Swdenk { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ 2957ebf7443Swdenk } 2967ebf7443Swdenk @./mkconfig -a IVML24 ppc mpc8xx ivm 2977ebf7443Swdenk 2987ebf7443SwdenkIVMS8_256_config \ 2997ebf7443SwdenkIVMS8_128_config \ 3007ebf7443SwdenkIVMS8_config: unconfig 3017ebf7443Swdenk @ >include/config.h 3027ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 3037ebf7443Swdenk { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ 3047ebf7443Swdenk } 3057ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 3067ebf7443Swdenk { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ 3077ebf7443Swdenk } 3087ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 3097ebf7443Swdenk { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ 3107ebf7443Swdenk } 3117ebf7443Swdenk @./mkconfig -a IVMS8 ppc mpc8xx ivm 3127ebf7443Swdenk 31356f94be3SwdenkKUP4K_config : unconfig 31456f94be3Swdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4k 31556f94be3Swdenk 3167ebf7443SwdenkLANTEC_config : unconfig 3177ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lantec 3187ebf7443Swdenk 3197ebf7443Swdenklwmon_config: unconfig 3207ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lwmon 3217ebf7443Swdenk 3227ebf7443SwdenkMBX_config \ 3237ebf7443SwdenkMBX860T_config: unconfig 3247ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx 3257ebf7443Swdenk 3267ebf7443SwdenkMHPC_config: unconfig 3277ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec 3287ebf7443Swdenk 3297ebf7443SwdenkMVS1_config : unconfig 3307ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mvs1 3317ebf7443Swdenk 332993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 333993cad93Swdenk 334993cad93SwdenkNETVIA_V2_config \ 3357ebf7443SwdenkNETVIA_config: unconfig 336993cad93Swdenk @ >include/config.h 337993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 338993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ 339993cad93Swdenk echo "... Version 1" ; \ 340993cad93Swdenk } 341993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 342993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ 343993cad93Swdenk echo "... Version 2" ; \ 344993cad93Swdenk } 345993cad93Swdenk @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 3467ebf7443Swdenk 3477ebf7443SwdenkNX823_config: unconfig 3487ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nx823 3497ebf7443Swdenk 3507ebf7443Swdenkpcu_e_config: unconfig 3517ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens 3527ebf7443Swdenk 3537ebf7443SwdenkR360MPI_config: unconfig 3547ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx r360mpi 3557ebf7443Swdenk 356682011ffSwdenkRBC823_config: unconfig 357682011ffSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rbc823 358682011ffSwdenk 3597ebf7443SwdenkRPXClassic_config: unconfig 3607ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic 3617ebf7443Swdenk 3627ebf7443SwdenkRPXlite_config: unconfig 3637ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXlite 3647ebf7443Swdenk 36573a8b27cSwdenkrmu_config: unconfig 36673a8b27cSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rmu 36773a8b27cSwdenk 3687ebf7443SwdenkRRvision_config: unconfig 3697ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RRvision 3707ebf7443Swdenk 3717ebf7443SwdenkRRvision_LCD_config: unconfig 3727ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 3737ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 3747ebf7443Swdenk @./mkconfig -a RRvision ppc mpc8xx RRvision 3757ebf7443Swdenk 3767ebf7443SwdenkSM850_config : unconfig 3777ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 3787ebf7443Swdenk 3797ebf7443SwdenkSPD823TS_config: unconfig 3807ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx spd8xx 3817ebf7443Swdenk 382dc7c9a1aSwdenksvm_sc8xx_config: unconfig 383dc7c9a1aSwdenk @ >include/config.h 384dc7c9a1aSwdenk @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx 385dc7c9a1aSwdenk 3867ebf7443SwdenkSXNI855T_config: unconfig 3877ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx sixnet 3887ebf7443Swdenk 389db2f721fSwdenk# EMK MPC8xx based modules 390db2f721fSwdenkTOP860_config: unconfig 391db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx top860 emk 392db2f721fSwdenk 3937ebf7443Swdenk# Play some tricks for configuration selection 39473a8b27cSwdenk# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock, 3957ebf7443Swdenk# but only 855 and 860 boards may come with FEC 3967ebf7443Swdenk# and 823 boards may have LCD support 39773a8b27cSwdenkxtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1))))) 3987ebf7443Swdenk 3997ebf7443SwdenkFPS850L_config \ 400384ae025SwdenkFPS860L_config \ 401f12e568cSwdenkNSCU_config \ 4027ebf7443SwdenkTQM823L_config \ 4037ebf7443SwdenkTQM823L_66MHz_config \ 4047ebf7443SwdenkTQM823L_80MHz_config \ 4057ebf7443SwdenkTQM823L_LCD_config \ 4067ebf7443SwdenkTQM823L_LCD_66MHz_config \ 4077ebf7443SwdenkTQM823L_LCD_80MHz_config \ 4087ebf7443SwdenkTQM850L_config \ 4097ebf7443SwdenkTQM850L_66MHz_config \ 4107ebf7443SwdenkTQM850L_80MHz_config \ 4117ebf7443SwdenkTQM855L_config \ 4127ebf7443SwdenkTQM855L_66MHz_config \ 4137ebf7443SwdenkTQM855L_80MHz_config \ 4147ebf7443SwdenkTQM860L_config \ 4157ebf7443SwdenkTQM860L_66MHz_config \ 4167ebf7443SwdenkTQM860L_80MHz_config \ 417d126bfbdSwdenkTQM862L_config \ 418d126bfbdSwdenkTQM862L_66MHz_config \ 41973a8b27cSwdenkTQM862L_80MHz_config \ 420ae3af05eSwdenkTQM823M_config \ 421ae3af05eSwdenkTQM823M_66MHz_config \ 422ae3af05eSwdenkTQM823M_80MHz_config \ 423ae3af05eSwdenkTQM850M_config \ 424ae3af05eSwdenkTQM850M_66MHz_config \ 425ae3af05eSwdenkTQM850M_80MHz_config \ 426f12e568cSwdenkTQM855M_config \ 427f12e568cSwdenkTQM855M_66MHz_config \ 428f12e568cSwdenkTQM855M_80MHz_config \ 429f12e568cSwdenkTQM860M_config \ 430f12e568cSwdenkTQM860M_66MHz_config \ 431f12e568cSwdenkTQM860M_80MHz_config \ 432f12e568cSwdenkTQM862M_config \ 433f12e568cSwdenkTQM862M_66MHz_config \ 434f12e568cSwdenkTQM862M_80MHz_config \ 43571f95118SwdenkTQM862M_100MHz_config: unconfig 4367ebf7443Swdenk @ >include/config.h 4377ebf7443Swdenk @[ -z "$(findstring _66MHz,$@)" ] || \ 4387ebf7443Swdenk { echo "#define CONFIG_66MHz" >>include/config.h ; \ 4397ebf7443Swdenk echo "... with 66MHz system clock" ; \ 4407ebf7443Swdenk } 4417ebf7443Swdenk @[ -z "$(findstring _80MHz,$@)" ] || \ 4427ebf7443Swdenk { echo "#define CONFIG_80MHz" >>include/config.h ; \ 4437ebf7443Swdenk echo "... with 80MHz system clock" ; \ 4447ebf7443Swdenk } 44573a8b27cSwdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 44673a8b27cSwdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 44773a8b27cSwdenk echo "... with 100MHz system clock" ; \ 44873a8b27cSwdenk } 4497ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 4507ebf7443Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 4517ebf7443Swdenk echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \ 4527ebf7443Swdenk echo "... with LCD display" ; \ 4537ebf7443Swdenk } 4547ebf7443Swdenk @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 4557ebf7443Swdenk 4567ebf7443SwdenkTTTech_config: unconfig 4577ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 4587ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 4597ebf7443Swdenk @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 4607ebf7443Swdenk 461608c9146Swdenkv37_config: unconfig 462608c9146Swdenk @echo "#define CONFIG_LCD" >include/config.h 463608c9146Swdenk @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h 464608c9146Swdenk @./mkconfig $(@:_config=) ppc mpc8xx v37 465608c9146Swdenk 4667ebf7443Swdenk######################################################################### 4677ebf7443Swdenk## PPC4xx Systems 4687ebf7443Swdenk######################################################################### 4697ebf7443Swdenk 4707ebf7443SwdenkADCIOP_config: unconfig 4717ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx adciop esd 4727ebf7443Swdenk 4737ebf7443SwdenkAR405_config: unconfig 4747ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd 4757ebf7443Swdenk 476549826eaSstroeseASH405_config: unconfig 477549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd 478549826eaSstroese 479549826eaSstroeseBUBINGA405EP_config:unconfig 480549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep 481549826eaSstroese 4827ebf7443SwdenkCANBT_config: unconfig 4837ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx canbt esd 4847ebf7443Swdenk 4857ebf7443SwdenkCPCI405_config \ 486549826eaSstroeseCPCI4052_config \ 487549826eaSstroeseCPCI405AB_config: unconfig 4887ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd 4897ebf7443Swdenk @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk 4907ebf7443Swdenk 4917ebf7443SwdenkCPCI440_config: unconfig 4927ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd 4937ebf7443Swdenk 4947ebf7443SwdenkCPCIISER4_config: unconfig 4957ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd 4967ebf7443Swdenk 4977ebf7443SwdenkCRAYL1_config:unconfig 4987ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx L1 cray 4997ebf7443Swdenk 5007ebf7443SwdenkDASA_SIM_config: unconfig 5017ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd 5027ebf7443Swdenk 5037ebf7443SwdenkDU405_config: unconfig 5047ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx du405 esd 5057ebf7443Swdenk 5067ebf7443SwdenkEBONY_config:unconfig 5077ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ebony 5087ebf7443Swdenk 5097ebf7443SwdenkERIC_config:unconfig 5107ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx eric 5117ebf7443Swdenk 512d1cbe85bSwdenkEXBITGEN_config:unconfig 513d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc ppc4xx exbitgen 514d1cbe85bSwdenk 5157ebf7443SwdenkMIP405_config:unconfig 5167ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl 5177ebf7443Swdenk 518f3e0de60SwdenkMIP405T_config:unconfig 519f3e0de60Swdenk @echo "#define CONFIG_MIP405T" >include/config.h 520f3e0de60Swdenk @echo "Enable subset config for MIP405T" 521f3e0de60Swdenk @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl 522f3e0de60Swdenk 5237ebf7443SwdenkML2_config:unconfig 5247ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml2 5257ebf7443Swdenk 5267ebf7443SwdenkOCRTC_config \ 5277ebf7443SwdenkORSG_config: unconfig 5287ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd 5297ebf7443Swdenk 5307ebf7443SwdenkPCI405_config: unconfig 5317ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd 5327ebf7443Swdenk 5337ebf7443SwdenkPIP405_config:unconfig 5347ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl 5357ebf7443Swdenk 536549826eaSstroesePMC405_config: unconfig 537549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd 538549826eaSstroese 5397ebf7443SwdenkW7OLMC_config \ 5407ebf7443SwdenkW7OLMG_config: unconfig 5417ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx w7o 5427ebf7443Swdenk 5437ebf7443SwdenkWALNUT405_config:unconfig 5447ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx walnut405 5457ebf7443Swdenk 5467ebf7443Swdenk######################################################################### 5477ebf7443Swdenk## MPC824x Systems 5487ebf7443Swdenk######################################################################### 5493bac3513Swdenkxtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) 5503bac3513Swdenk 5510332990bSwdenkA3000_config: unconfig 5520332990bSwdenk @./mkconfig $(@:_config=) ppc mpc824x a3000 5530332990bSwdenk 5547ebf7443SwdenkBMW_config: unconfig 5557ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x bmw 5567ebf7443Swdenk 5573bac3513SwdenkCPC45_config \ 5583bac3513SwdenkCPC45_ROMBOOT_config: unconfig 5593bac3513Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 5603bac3513Swdenk @cd ./include ; \ 5613bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 5623bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 5633bac3513Swdenk echo "... booting from 8-bit flash" ; \ 5643bac3513Swdenk else \ 5653bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 5663bac3513Swdenk echo "... booting from 64-bit flash" ; \ 5673bac3513Swdenk fi; \ 5683bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 5693bac3513Swdenk 5707ebf7443SwdenkCU824_config: unconfig 5717ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x cu824 5727ebf7443Swdenk 5737ebf7443SwdenkMOUSSE_config: unconfig 5747ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x mousse 5757ebf7443Swdenk 5767ebf7443SwdenkMUSENKI_config: unconfig 5777ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x musenki 5787ebf7443Swdenk 5797ebf7443SwdenkOXC_config: unconfig 5807ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x oxc 5817ebf7443Swdenk 5827ebf7443SwdenkPN62_config: unconfig 5837ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x pn62 5847ebf7443Swdenk 5857ebf7443SwdenkSandpoint8240_config: unconfig 5867ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 5877ebf7443Swdenk 5887ebf7443SwdenkSandpoint8245_config: unconfig 5897ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 5907ebf7443Swdenk 591d1cbe85bSwdenkSL8245_config: unconfig 592d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc mpc824x sl8245 593d1cbe85bSwdenk 5947ebf7443Swdenkutx8245_config: unconfig 5957ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x utx8245 5967ebf7443Swdenk 5977ebf7443Swdenk######################################################################### 5987ebf7443Swdenk## MPC8260 Systems 5997ebf7443Swdenk######################################################################### 6007ebf7443Swdenk 6017ebf7443Swdenkcogent_mpc8260_config: unconfig 6027ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 cogent 6037ebf7443Swdenk 6047ebf7443SwdenkCPU86_config \ 6057ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 6067ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 6077ebf7443Swdenk @cd ./include ; \ 6087ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 6097ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 6107ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 6117ebf7443Swdenk else \ 6127ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 6137ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 6147ebf7443Swdenk fi; \ 6157ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 6167ebf7443Swdenk 6177ebf7443Swdenkep8260_config: unconfig 6187ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ep8260 6197ebf7443Swdenk 6207ebf7443Swdenkgw8260_config: unconfig 6217ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 gw8260 6227ebf7443Swdenk 6237ebf7443Swdenkhymod_config: unconfig 6247ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 hymod 6257ebf7443Swdenk 6267ebf7443SwdenkIPHASE4539_config: unconfig 6277ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 6287ebf7443Swdenk 6297ebf7443SwdenkMPC8260ADS_config: unconfig 6307ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads 6317ebf7443Swdenk 632db2f721fSwdenkMPC8266ADS_config: unconfig 633db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads 634db2f721fSwdenk 63510f67017SwdenkPM825_config \ 63610f67017SwdenkPM825_ROMBOOT_config: unconfig 63710f67017Swdenk @echo "#define CONFIG_PCI" >include/config.h 63810f67017Swdenk @./mkconfig -a PM826 ppc mpc8260 pm826 63910f67017Swdenk @cd ./include ; \ 64010f67017Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 64110f67017Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 64210f67017Swdenk echo "... booting from 8-bit flash" ; \ 64310f67017Swdenk else \ 64410f67017Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 64510f67017Swdenk echo "... booting from 64-bit flash" ; \ 64610f67017Swdenk fi; \ 64710f67017Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; \ 64810f67017Swdenk 6497ebf7443SwdenkPM826_config \ 6507ebf7443SwdenkPM826_ROMBOOT_config: unconfig 6517ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 6527ebf7443Swdenk @cd ./include ; \ 6537ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 6547ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 6557ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 6567ebf7443Swdenk else \ 6577ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 6587ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 6597ebf7443Swdenk fi; \ 6607ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; \ 6617ebf7443Swdenk 6627ebf7443Swdenkppmc8260_config: unconfig 6637ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 6647ebf7443Swdenk 6657ebf7443SwdenkRPXsuper_config: unconfig 6667ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper 6677ebf7443Swdenk 6687ebf7443Swdenkrsdproto_config: unconfig 6697ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rsdproto 6707ebf7443Swdenk 6717ebf7443Swdenksacsng_config: unconfig 6727ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sacsng 6737ebf7443Swdenk 6747ebf7443Swdenksbc8260_config: unconfig 6757ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 6767ebf7443Swdenk 6777ebf7443SwdenkSCM_config: unconfig 6787ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens 6797ebf7443Swdenk 68027b207fdSwdenkTQM8255_AA_config \ 68127b207fdSwdenkTQM8260_AA_config \ 68227b207fdSwdenkTQM8260_AB_config \ 68327b207fdSwdenkTQM8260_AC_config \ 68427b207fdSwdenkTQM8260_AD_config \ 68527b207fdSwdenkTQM8260_AE_config \ 68627b207fdSwdenkTQM8260_AF_config \ 68727b207fdSwdenkTQM8260_AG_config \ 68827b207fdSwdenkTQM8260_AH_config \ 68927b207fdSwdenkTQM8265_AA_config: unconfig 69027b207fdSwdenk @case "$@" in \ 69127b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 69227b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 69327b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 69427b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 69527b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 69627b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 69727b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 69827b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 69927b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 70027b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 70127b207fdSwdenk esac; \ 70227b207fdSwdenk >include/config.h ; \ 70327b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 70427b207fdSwdenk echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ 70527b207fdSwdenk fi; \ 70627b207fdSwdenk echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ 70727b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 70827b207fdSwdenk if [ "$${CACHE}" == "yes" ] ; then \ 7097ebf7443Swdenk echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ 71027b207fdSwdenk echo "... with L2 Cache support" ; \ 7117ebf7443Swdenk else \ 7127ebf7443Swdenk echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ 7137ebf7443Swdenk echo "... without L2 Cache support" ; \ 71427b207fdSwdenk fi; \ 71527b207fdSwdenk if [ "$${BMODE}" == "60x" ] ; then \ 71627b207fdSwdenk echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ 71727b207fdSwdenk echo "... with 60x Bus Mode" ; \ 71827b207fdSwdenk else \ 71927b207fdSwdenk echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ 72027b207fdSwdenk echo "... without 60x Bus Mode" ; \ 7217ebf7443Swdenk fi 7224532cb69Swdenk @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 7237ebf7443Swdenk 7247aa78614Swdenkatc_config: unconfig 7257aa78614Swdenk @./mkconfig $(@:_config=) ppc mpc8260 atc 7267aa78614Swdenk 7277ebf7443Swdenk######################################################################### 7287ebf7443Swdenk## 74xx/7xx Systems 7297ebf7443Swdenk######################################################################### 7307ebf7443Swdenk 731c7de829cSwdenkAmigaOneG3SE_config: unconfig 732c7de829cSwdenk @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 733c7de829cSwdenk 7347ebf7443SwdenkEVB64260_config \ 7357ebf7443SwdenkEVB64260_750CX_config: unconfig 7367ebf7443Swdenk @./mkconfig EVB64260 ppc 74xx_7xx evb64260 7377ebf7443Swdenk 7387ebf7443SwdenkZUMA_config: unconfig 7397ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 7407ebf7443Swdenk 7417ebf7443SwdenkPCIPPC2_config \ 7427ebf7443SwdenkPCIPPC6_config: unconfig 7437ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 7447ebf7443Swdenk 7457ebf7443SwdenkBAB7xx_config: unconfig 7467ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec 7477ebf7443Swdenk 7487ebf7443SwdenkELPPC_config: unconfig 7497ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec 7507ebf7443Swdenk 7517ebf7443Swdenk#======================================================================== 7527ebf7443Swdenk# ARM 7537ebf7443Swdenk#======================================================================== 7547ebf7443Swdenk######################################################################### 7557ebf7443Swdenk## StrongARM Systems 7567ebf7443Swdenk######################################################################### 7577ebf7443Swdenk 758dc7c9a1aSwdenkat91rm9200dk_config : unconfig 759dc7c9a1aSwdenk @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk 760dc7c9a1aSwdenk 7617ebf7443Swdenklart_config : unconfig 7627ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 lart 7637ebf7443Swdenk 7647ebf7443Swdenkdnp1110_config : unconfig 7657ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 dnp1110 7667ebf7443Swdenk 7677ebf7443Swdenkshannon_config : unconfig 7687ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 shannon 7697ebf7443Swdenk 7707ebf7443Swdenk######################################################################### 7712e5983d2Swdenk## ARM92xT Systems 7727ebf7443Swdenk######################################################################### 7737ebf7443Swdenk 77443d9616cSwdenkxtract_trab = $(subst _big_flash,,$(subst _config,,$1)) 77543d9616cSwdenk 7762e5983d2Swdenkomap1510inn_config : unconfig 7772e5983d2Swdenk @./mkconfig $(@:_config=) arm arm925t omap1510inn 7782e5983d2Swdenk 7797ebf7443Swdenksmdk2400_config : unconfig 7807ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2400 7817ebf7443Swdenk 7827ebf7443Swdenksmdk2410_config : unconfig 7837ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2410 7847ebf7443Swdenk 78543d9616cSwdenktrab_config \ 78643d9616cSwdenktrab_big_flash_config: unconfig 78743d9616cSwdenk @ >include/config.h 78843d9616cSwdenk @[ -z "$(findstring _big_flash,$@)" ] || \ 78943d9616cSwdenk { echo "#define CONFIG_BIG_FLASH" >>include/config.h ; \ 79043d9616cSwdenk echo "... with big flash support" ; \ 79143d9616cSwdenk } 79243d9616cSwdenk @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab 7937ebf7443Swdenk 7941cb8e980SwdenkVCMA9_config : unconfig 7951cb8e980Swdenk @./mkconfig $(@:_config=) arm arm920t vcma9 mpl 7961cb8e980Swdenk 7977ebf7443Swdenk######################################################################### 7987ebf7443Swdenk## ARM720T Systems 7997ebf7443Swdenk######################################################################### 8007ebf7443Swdenk 8017ebf7443Swdenkimpa7_config : unconfig 8027ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t impa7 8037ebf7443Swdenk 8047ebf7443Swdenkep7312_config : unconfig 8057ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t ep7312 8067ebf7443Swdenk 8077ebf7443Swdenk######################################################################### 80843d9616cSwdenk## XScale Systems 8097ebf7443Swdenk######################################################################### 8107ebf7443Swdenk 8117ebf7443Swdenkcradle_config : unconfig 8124c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa cradle 8137ebf7443Swdenk 8147ebf7443Swdenkcsb226_config : unconfig 8154c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa csb226 8167ebf7443Swdenk 81743d9616cSwdenkinnokom_config : unconfig 8184c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa innokom 81943d9616cSwdenk 82043d9616cSwdenklubbock_config : unconfig 8214c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa lubbock 82243d9616cSwdenk 82352f52c14Swdenklogodl_config : unconfig 82452f52c14Swdenk @./mkconfig $(@:_config=) arm pxa logodl 82552f52c14Swdenk 8263e38691eSwdenkwepep250_config : unconfig 8274c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa wepep250 8283e38691eSwdenk 8292262cfeeSwdenk#======================================================================== 8302262cfeeSwdenk# i386 8312262cfeeSwdenk#======================================================================== 8322262cfeeSwdenk######################################################################### 8332262cfeeSwdenk## AMD SC520 CDP 8342262cfeeSwdenk######################################################################### 8352262cfeeSwdenksc520_cdp_config : unconfig 8362262cfeeSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_cdp 8372262cfeeSwdenk 8387a8e9bedSwdenksc520_spunk_config : unconfig 8397a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 8407a8e9bedSwdenk 8417a8e9bedSwdenksc520_spunk_rel_config : unconfig 8427a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 8437a8e9bedSwdenk 84443d9616cSwdenk#======================================================================== 84543d9616cSwdenk# MIPS 84643d9616cSwdenk#======================================================================== 8477ebf7443Swdenk######################################################################### 84843d9616cSwdenk## MIPS32 4Kc 84943d9616cSwdenk######################################################################### 85043d9616cSwdenk 851*e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 852*e0ac62d7Swdenk 853*e0ac62d7Swdenkincaip_100MHz_config \ 854*e0ac62d7Swdenkincaip_133MHz_config \ 855*e0ac62d7Swdenkincaip_150MHz_config \ 85643d9616cSwdenkincaip_config: unconfig 857*e0ac62d7Swdenk @ >include/config.h 858*e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 859*e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ 860*e0ac62d7Swdenk echo "... with 100MHz system clock" ; \ 861*e0ac62d7Swdenk } 862*e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 863*e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ 864*e0ac62d7Swdenk echo "... with 133MHz system clock" ; \ 865*e0ac62d7Swdenk } 866*e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 867*e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ 868*e0ac62d7Swdenk echo "... with 150MHz system clock" ; \ 869*e0ac62d7Swdenk } 870*e0ac62d7Swdenk @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip 871*e0ac62d7Swdenk 872*e0ac62d7Swdenk######################################################################### 873*e0ac62d7Swdenk## MIPS64 5Kc 874*e0ac62d7Swdenk######################################################################### 87543d9616cSwdenk 8763e38691eSwdenkpurple_config : unconfig 8773e38691eSwdenk @./mkconfig $(@:_config=) mips mips purple 87843d9616cSwdenk 8793e38691eSwdenk######################################################################### 8803e38691eSwdenk######################################################################### 8817ebf7443Swdenk 8827ebf7443Swdenkclean: 8837ebf7443Swdenk find . -type f \ 8847ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 8857ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 8867ebf7443Swdenk | xargs rm -f 88785ec0bccSwdenk rm -f examples/hello_world examples/timer \ 8883e38691eSwdenk examples/eepro100_eeprom examples/sched \ 8897a8e9bedSwdenk examples/mem_to_mem_idma2intr examples/82559_eeprom 8907a8e9bedSwdenk 8917ebf7443Swdenk rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr 8927ebf7443Swdenk rm -f tools/easylogo/easylogo tools/bmp_logo 8937ebf7443Swdenk rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend 894228f29acSwdenk rm -f tools/env/fw_printenv tools/env/fw_setenv 8957f70e853Swdenk rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image 8967ebf7443Swdenk 8977ebf7443Swdenkclobber: clean 8987ebf7443Swdenk find . -type f \ 8997ebf7443Swdenk \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \ 9007ebf7443Swdenk -print \ 9017ebf7443Swdenk | xargs rm -f 9027ebf7443Swdenk rm -f $(OBJS) *.bak tags TAGS 9037ebf7443Swdenk rm -fr *.*~ 904bdccc4feSwdenk rm -f u-boot u-boot.map $(ALL) 905228f29acSwdenk rm -f tools/crc32.c tools/environment.c tools/env/crc32.c 9063e38691eSwdenk rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c 907b783edaeSwdenk rm -f include/asm/proc include/asm/arch include/asm 9087ebf7443Swdenk 9097ebf7443Swdenkmrproper \ 9107ebf7443Swdenkdistclean: clobber unconfig 9117ebf7443Swdenk 9127ebf7443Swdenkbackup: 9137ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 9147ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 9157ebf7443Swdenk 9167ebf7443Swdenk######################################################################### 917