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 567ebf7443Swdenk## #ifeq ($(CPU),mpc8xx) 577ebf7443Swdenk## CROSS_COMPILE = ppc_8xx- 587ebf7443Swdenk## #endif 597ebf7443Swdenk## #ifeq ($(CPU),ppc4xx) 607ebf7443Swdenk## #CROSS_COMPILE = ppc_4xx- 617ebf7443Swdenk## #endif 627ebf7443Swdenk## #ifeq ($(CPU),mpc824x) 637ebf7443Swdenk## #CROSS_COMPILE = ppc_82xx- 647ebf7443Swdenk## #endif 657ebf7443Swdenk## #ifeq ($(CPU),mpc8260) 667ebf7443Swdenk## #CROSS_COMPILE = ppc_82xx- 677ebf7443Swdenk## #endif 687ebf7443Swdenk## #ifeq ($(CPU),74xx_7xx) 697ebf7443Swdenk## #CROSS_COMPILE = ppc_74xx-) 707ebf7443Swdenk## #endif 717ebf7443Swdenkifeq ($(ARCH),ppc) 727ebf7443SwdenkCROSS_COMPILE = ppc_8xx- 737ebf7443Swdenkendif 747ebf7443Swdenkifeq ($(ARCH),arm) 757ebf7443SwdenkCROSS_COMPILE = arm_920TDI- 767ebf7443Swdenkendif 772262cfeeSwdenkifeq ($(ARCH),i386) 782262cfeeSwdenk#CROSS_COMPILE = i386-elf- 792262cfeeSwdenkendif 807ebf7443Swdenkendif 817ebf7443Swdenkendif 827ebf7443Swdenk 837ebf7443Swdenkexport CROSS_COMPILE 847ebf7443Swdenk 857ebf7443Swdenk# The "tools" are needed early, so put this first 867ebf7443SwdenkSUBDIRS = tools \ 877ebf7443Swdenk lib_generic \ 887ebf7443Swdenk lib_$(ARCH) \ 897ebf7443Swdenk cpu/$(CPU) \ 907ebf7443Swdenk board/$(BOARDDIR) \ 917ebf7443Swdenk common \ 927ebf7443Swdenk disk \ 937ebf7443Swdenk fs \ 947ebf7443Swdenk net \ 957ebf7443Swdenk rtc \ 967ebf7443Swdenk dtt \ 977ebf7443Swdenk drivers \ 987ebf7443Swdenk post \ 997ebf7443Swdenk post/cpu \ 1007ebf7443Swdenk examples 1017ebf7443Swdenk 1027ebf7443Swdenk######################################################################### 1037ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1047ebf7443Swdenk 1057ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 1062262cfeeSwdenkifeq ($(CPU),i386) 1072262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 1082262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 1092262cfeeSwdenkendif 1107ebf7443Swdenkifeq ($(CPU),ppc4xx) 1117ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 1127ebf7443Swdenkendif 1137ebf7443Swdenk 1147ebf7443SwdenkLIBS = board/$(BOARDDIR)/lib$(BOARD).a 1157ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1167ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 1172262cfeeSwdenkLIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a 1187ebf7443SwdenkLIBS += net/libnet.a 1197ebf7443SwdenkLIBS += disk/libdisk.a 1207ebf7443SwdenkLIBS += rtc/librtc.a 1217ebf7443SwdenkLIBS += dtt/libdtt.a 1227ebf7443SwdenkLIBS += drivers/libdrivers.a 1237ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a 1247ebf7443SwdenkLIBS += common/libcommon.a 1257ebf7443SwdenkLIBS += lib_generic/libgeneric.a 1267ebf7443Swdenk 1277ebf7443Swdenk######################################################################### 1287ebf7443Swdenk 1297ebf7443Swdenkall: u-boot.srec u-boot.bin System.map 1307ebf7443Swdenk 1317ebf7443Swdenkinstall: all 1327ebf7443Swdenk cp u-boot.bin /tftpboot/u-boot.bin 1337ebf7443Swdenk cp u-boot.bin /net/sam/tftpboot/u-boot.bin 1347ebf7443Swdenk 1357ebf7443Swdenku-boot.srec: u-boot 1367ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 1377ebf7443Swdenk 1387ebf7443Swdenku-boot.bin: u-boot 1397ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 1407ebf7443Swdenk 1417ebf7443Swdenku-boot.dis: u-boot 1427ebf7443Swdenk $(OBJDUMP) -d $< > $@ 1437ebf7443Swdenk 1447ebf7443Swdenku-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT) 145b2184c31Swdenk $(LD) $(LDFLAGS) $(OBJS) \ 146b2184c31Swdenk --start-group $(LIBS) --end-group \ 147b2184c31Swdenk -Map u-boot.map -o u-boot 1487ebf7443Swdenk 1497ebf7443Swdenksubdirs: 1507ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done 1517ebf7443Swdenk 1527ebf7443Swdenkdepend dep: 1537ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done 1547ebf7443Swdenk 1557ebf7443Swdenktags: 1567ebf7443Swdenk ctags -w `find $(SUBDIRS) include \ 1577ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1587ebf7443Swdenk 1597ebf7443Swdenketags: 1607ebf7443Swdenk etags -a `find $(SUBDIRS) include \ 1617ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1627ebf7443Swdenk 1637ebf7443SwdenkSystem.map: u-boot 1647ebf7443Swdenk @$(NM) $< | \ 1657ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 1667ebf7443Swdenk sort > System.map 1677ebf7443Swdenk 1687ebf7443Swdenk######################################################################### 1697ebf7443Swdenkelse 1707ebf7443Swdenkall install u-boot u-boot.srec depend dep: 1717ebf7443Swdenk @echo "System not configured - see README" >&2 1727ebf7443Swdenk @ exit 1 1737ebf7443Swdenkendif 1747ebf7443Swdenk 1757ebf7443Swdenk######################################################################### 1767ebf7443Swdenk 1777ebf7443Swdenkunconfig: 1787ebf7443Swdenk rm -f include/config.h include/config.mk 1797ebf7443Swdenk 1807ebf7443Swdenk#======================================================================== 1817ebf7443Swdenk# PowerPC 1827ebf7443Swdenk#======================================================================== 1837ebf7443Swdenk######################################################################### 1847ebf7443Swdenk## MPC8xx Systems 1857ebf7443Swdenk######################################################################### 1867ebf7443Swdenk 1877ebf7443SwdenkADS860_config: unconfig 1887ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 1897ebf7443Swdenk 1907ebf7443SwdenkAMX860_config : unconfig 1917ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel 1927ebf7443Swdenk 1937ebf7443Swdenkc2mon_config: unconfig 1947ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx c2mon 1957ebf7443Swdenk 1967ebf7443SwdenkCCM_config: unconfig 1977ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens 1987ebf7443Swdenk 1997ebf7443Swdenkcogent_mpc8xx_config: unconfig 2007ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx cogent 2017ebf7443Swdenk 2027ebf7443SwdenkESTEEM192E_config: unconfig 2037ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx esteem192e 2047ebf7443Swdenk 2057ebf7443SwdenkETX094_config : unconfig 2067ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx etx094 2077ebf7443Swdenk 2087ebf7443SwdenkFADS823_config \ 2097ebf7443SwdenkFADS850SAR_config \ 2107ebf7443SwdenkFADS860T_config: unconfig 2117ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 2127ebf7443Swdenk 2137ebf7443SwdenkFLAGADM_config: unconfig 2147ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx flagadm 2157ebf7443Swdenk 2167ebf7443SwdenkGEN860T_config: unconfig 2177ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx gen860t 2187ebf7443Swdenk 2197ebf7443SwdenkGENIETV_config: unconfig 2207ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx genietv 2217ebf7443Swdenk 2227ebf7443SwdenkGTH_config: unconfig 2237ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx gth 2247ebf7443Swdenk 2257ebf7443Swdenkhermes_config : unconfig 2267ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx hermes 2277ebf7443Swdenk 2287ebf7443SwdenkIAD210_config: unconfig 2297ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens 2307ebf7443Swdenk 2317ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 2327ebf7443Swdenk 2337ebf7443SwdenkICU862_100MHz_config \ 2347ebf7443SwdenkICU862_config: unconfig 2357ebf7443Swdenk @ >include/config.h 2367ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2377ebf7443Swdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 2387ebf7443Swdenk echo "... with 100MHz system clock" ; \ 2397ebf7443Swdenk } 2407ebf7443Swdenk @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 2417ebf7443Swdenk 2427ebf7443SwdenkIP860_config : unconfig 2437ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx ip860 2447ebf7443Swdenk 2457ebf7443SwdenkIVML24_256_config \ 2467ebf7443SwdenkIVML24_128_config \ 2477ebf7443SwdenkIVML24_config: unconfig 2487ebf7443Swdenk @ >include/config.h 2497ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 2507ebf7443Swdenk { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ 2517ebf7443Swdenk } 2527ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 2537ebf7443Swdenk { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ 2547ebf7443Swdenk } 2557ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 2567ebf7443Swdenk { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ 2577ebf7443Swdenk } 2587ebf7443Swdenk @./mkconfig -a IVML24 ppc mpc8xx ivm 2597ebf7443Swdenk 2607ebf7443SwdenkIVMS8_256_config \ 2617ebf7443SwdenkIVMS8_128_config \ 2627ebf7443SwdenkIVMS8_config: unconfig 2637ebf7443Swdenk @ >include/config.h 2647ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 2657ebf7443Swdenk { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ 2667ebf7443Swdenk } 2677ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 2687ebf7443Swdenk { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ 2697ebf7443Swdenk } 2707ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 2717ebf7443Swdenk { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ 2727ebf7443Swdenk } 2737ebf7443Swdenk @./mkconfig -a IVMS8 ppc mpc8xx ivm 2747ebf7443Swdenk 27556f94be3SwdenkKUP4K_config : unconfig 27656f94be3Swdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4k 27756f94be3Swdenk 2787ebf7443SwdenkLANTEC_config : unconfig 2797ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lantec 2807ebf7443Swdenk 2817ebf7443Swdenklwmon_config: unconfig 2827ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lwmon 2837ebf7443Swdenk 2847ebf7443SwdenkMBX_config \ 2857ebf7443SwdenkMBX860T_config: unconfig 2867ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx 2877ebf7443Swdenk 2887ebf7443SwdenkMHPC_config: unconfig 2897ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec 2907ebf7443Swdenk 2917ebf7443SwdenkMVS1_config : unconfig 2927ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mvs1 2937ebf7443Swdenk 2947ebf7443SwdenkNETVIA_config: unconfig 2957ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx netvia 2967ebf7443Swdenk 2977ebf7443SwdenkNX823_config: unconfig 2987ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nx823 2997ebf7443Swdenk 3007ebf7443Swdenkpcu_e_config: unconfig 3017ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens 3027ebf7443Swdenk 3037ebf7443SwdenkR360MPI_config: unconfig 3047ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx r360mpi 3057ebf7443Swdenk 3067ebf7443SwdenkRPXClassic_config: unconfig 3077ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic 3087ebf7443Swdenk 3097ebf7443SwdenkRPXlite_config: unconfig 3107ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXlite 3117ebf7443Swdenk 3127ebf7443SwdenkRRvision_config: unconfig 3137ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RRvision 3147ebf7443Swdenk 3157ebf7443SwdenkRRvision_LCD_config: unconfig 3167ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 3177ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 3187ebf7443Swdenk @./mkconfig -a RRvision ppc mpc8xx RRvision 3197ebf7443Swdenk 3207ebf7443SwdenkSM850_config : unconfig 3217ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 3227ebf7443Swdenk 3237ebf7443SwdenkSPD823TS_config: unconfig 3247ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx spd8xx 3257ebf7443Swdenk 3267ebf7443SwdenkSXNI855T_config: unconfig 3277ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx sixnet 3287ebf7443Swdenk 3297ebf7443Swdenk# Play some tricks for configuration selection 3307ebf7443Swdenk# All boards can come with 50 MHz (default), 66MHz or 80MHz clock, 3317ebf7443Swdenk# but only 855 and 860 boards may come with FEC 3327ebf7443Swdenk# and 823 boards may have LCD support 3337ebf7443Swdenkxtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _LCD,,$(subst _FEC,,$(subst _config,,$1))))) 3347ebf7443Swdenk 3357ebf7443SwdenkFPS850L_config \ 336384ae025SwdenkFPS860L_config \ 3377ebf7443SwdenkTQM823L_config \ 3387ebf7443SwdenkTQM823L_66MHz_config \ 3397ebf7443SwdenkTQM823L_80MHz_config \ 3407ebf7443SwdenkTQM823L_LCD_config \ 3417ebf7443SwdenkTQM823L_LCD_66MHz_config \ 3427ebf7443SwdenkTQM823L_LCD_80MHz_config \ 3437ebf7443SwdenkTQM850L_config \ 3447ebf7443SwdenkTQM850L_66MHz_config \ 3457ebf7443SwdenkTQM850L_80MHz_config \ 3467ebf7443SwdenkTQM855L_config \ 3477ebf7443SwdenkTQM855L_66MHz_config \ 3487ebf7443SwdenkTQM855L_80MHz_config \ 3497ebf7443SwdenkTQM855L_FEC_config \ 3507ebf7443SwdenkTQM855L_FEC_66MHz_config \ 3517ebf7443SwdenkTQM855L_FEC_80MHz_config \ 3527ebf7443SwdenkTQM860L_config \ 3537ebf7443SwdenkTQM860L_66MHz_config \ 3547ebf7443SwdenkTQM860L_80MHz_config \ 3557ebf7443SwdenkTQM860L_FEC_config \ 3567ebf7443SwdenkTQM860L_FEC_66MHz_config \ 3577ebf7443SwdenkTQM860L_FEC_80MHz_config: unconfig 3587ebf7443Swdenk @ >include/config.h 3597ebf7443Swdenk @[ -z "$(findstring _FEC,$@)" ] || \ 3607ebf7443Swdenk { echo "#define CONFIG_FEC_ENET" >>include/config.h ; \ 3617ebf7443Swdenk echo "... with FEC support" ; \ 3627ebf7443Swdenk } 3637ebf7443Swdenk @[ -z "$(findstring _66MHz,$@)" ] || \ 3647ebf7443Swdenk { echo "#define CONFIG_66MHz" >>include/config.h ; \ 3657ebf7443Swdenk echo "... with 66MHz system clock" ; \ 3667ebf7443Swdenk } 3677ebf7443Swdenk @[ -z "$(findstring _80MHz,$@)" ] || \ 3687ebf7443Swdenk { echo "#define CONFIG_80MHz" >>include/config.h ; \ 3697ebf7443Swdenk echo "... with 80MHz system clock" ; \ 3707ebf7443Swdenk } 3717ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 3727ebf7443Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 3737ebf7443Swdenk echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \ 3747ebf7443Swdenk echo "... with LCD display" ; \ 3757ebf7443Swdenk } 3767ebf7443Swdenk @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 3777ebf7443Swdenk 3787ebf7443SwdenkTTTech_config: unconfig 3797ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 3807ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 3817ebf7443Swdenk @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 3827ebf7443Swdenk 383*608c9146Swdenkv37_config: unconfig 384*608c9146Swdenk @echo "#define CONFIG_LCD" >include/config.h 385*608c9146Swdenk @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h 386*608c9146Swdenk @./mkconfig $(@:_config=) ppc mpc8xx v37 387*608c9146Swdenk 3887ebf7443Swdenk######################################################################### 3897ebf7443Swdenk## PPC4xx Systems 3907ebf7443Swdenk######################################################################### 3917ebf7443Swdenk 3927ebf7443SwdenkADCIOP_config: unconfig 3937ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx adciop esd 3947ebf7443Swdenk 3957ebf7443SwdenkAR405_config: unconfig 3967ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd 3977ebf7443Swdenk 3987ebf7443SwdenkCANBT_config: unconfig 3997ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx canbt esd 4007ebf7443Swdenk 4017ebf7443SwdenkCPCI405_config \ 4027ebf7443SwdenkCPCI4052_config: unconfig 4037ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd 4047ebf7443Swdenk @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk 4057ebf7443Swdenk 4067ebf7443SwdenkCPCI440_config: unconfig 4077ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd 4087ebf7443Swdenk 4097ebf7443SwdenkCPCIISER4_config: unconfig 4107ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd 4117ebf7443Swdenk 4127ebf7443SwdenkCRAYL1_config:unconfig 4137ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx L1 cray 4147ebf7443Swdenk 4157ebf7443SwdenkDASA_SIM_config: unconfig 4167ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd 4177ebf7443Swdenk 4187ebf7443SwdenkDU405_config: unconfig 4197ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx du405 esd 4207ebf7443Swdenk 4217ebf7443SwdenkEBONY_config:unconfig 4227ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ebony 4237ebf7443Swdenk 4247ebf7443SwdenkERIC_config:unconfig 4257ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx eric 4267ebf7443Swdenk 4277ebf7443SwdenkMIP405_config:unconfig 4287ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl 4297ebf7443Swdenk 4307ebf7443SwdenkML2_config:unconfig 4317ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml2 4327ebf7443Swdenk 4337ebf7443SwdenkOCRTC_config \ 4347ebf7443SwdenkORSG_config: unconfig 4357ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd 4367ebf7443Swdenk 4377ebf7443SwdenkPCI405_config: unconfig 4387ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd 4397ebf7443Swdenk 4407ebf7443SwdenkPIP405_config:unconfig 4417ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl 4427ebf7443Swdenk 4437ebf7443SwdenkW7OLMC_config \ 4447ebf7443SwdenkW7OLMG_config: unconfig 4457ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx w7o 4467ebf7443Swdenk 4477ebf7443SwdenkWALNUT405_config:unconfig 4487ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx walnut405 4497ebf7443Swdenk 4507ebf7443Swdenk######################################################################### 4517ebf7443Swdenk## MPC824x Systems 4527ebf7443Swdenk######################################################################### 4537ebf7443SwdenkBMW_config: unconfig 4547ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x bmw 4557ebf7443Swdenk 4567ebf7443SwdenkCU824_config: unconfig 4577ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x cu824 4587ebf7443Swdenk 4597ebf7443SwdenkMOUSSE_config: unconfig 4607ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x mousse 4617ebf7443Swdenk 4627ebf7443SwdenkMUSENKI_config: unconfig 4637ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x musenki 4647ebf7443Swdenk 4657ebf7443SwdenkOXC_config: unconfig 4667ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x oxc 4677ebf7443Swdenk 4687ebf7443SwdenkPN62_config: unconfig 4697ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x pn62 4707ebf7443Swdenk 4717ebf7443SwdenkSandpoint8240_config: unconfig 4727ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 4737ebf7443Swdenk 4747ebf7443SwdenkSandpoint8245_config: unconfig 4757ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 4767ebf7443Swdenk 4777ebf7443Swdenkutx8245_config: unconfig 4787ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x utx8245 4797ebf7443Swdenk 4807ebf7443Swdenk######################################################################### 4817ebf7443Swdenk## MPC8260 Systems 4827ebf7443Swdenk######################################################################### 4837ebf7443Swdenkxtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) 4847ebf7443Swdenk 4857ebf7443Swdenkcogent_mpc8260_config: unconfig 4867ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 cogent 4877ebf7443Swdenk 4887ebf7443SwdenkCPU86_config \ 4897ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 4907ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 4917ebf7443Swdenk @cd ./include ; \ 4927ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 4937ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 4947ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 4957ebf7443Swdenk else \ 4967ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 4977ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 4987ebf7443Swdenk fi; \ 4997ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 5007ebf7443Swdenk 5017ebf7443Swdenkep8260_config: unconfig 5027ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ep8260 5037ebf7443Swdenk 5047ebf7443Swdenkgw8260_config: unconfig 5057ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 gw8260 5067ebf7443Swdenk 5077ebf7443Swdenkhymod_config: unconfig 5087ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 hymod 5097ebf7443Swdenk 5107ebf7443SwdenkIPHASE4539_config: unconfig 5117ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 5127ebf7443Swdenk 5137ebf7443SwdenkMPC8260ADS_config: unconfig 5147ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads 5157ebf7443Swdenk 5167ebf7443SwdenkPM826_config \ 5177ebf7443SwdenkPM826_ROMBOOT_config: unconfig 5187ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 5197ebf7443Swdenk @cd ./include ; \ 5207ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 5217ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 5227ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 5237ebf7443Swdenk else \ 5247ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 5257ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 5267ebf7443Swdenk fi; \ 5277ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; \ 5287ebf7443Swdenk 5297ebf7443Swdenkppmc8260_config: unconfig 5307ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 5317ebf7443Swdenk 5327ebf7443SwdenkRPXsuper_config: unconfig 5337ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper 5347ebf7443Swdenk 5357ebf7443Swdenkrsdproto_config: unconfig 5367ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rsdproto 5377ebf7443Swdenk 5387ebf7443Swdenksacsng_config: unconfig 5397ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sacsng 5407ebf7443Swdenk 5417ebf7443Swdenksbc8260_config: unconfig 5427ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 5437ebf7443Swdenk 5447ebf7443SwdenkSCM_config: unconfig 5457ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens 5467ebf7443Swdenk 5477ebf7443SwdenkTQM8260_config \ 5487ebf7443SwdenkTQM8260_L2_config \ 5497ebf7443SwdenkTQM8260_266MHz_config \ 5507ebf7443SwdenkTQM8260_L2_266MHz_config \ 5517ebf7443SwdenkTQM8260_300MHz_config: unconfig 5527ebf7443Swdenk @ >include/config.h 5537ebf7443Swdenk @if [ "$(findstring _L2_,$@)" ] ; then \ 5547ebf7443Swdenk echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ 5557ebf7443Swdenk echo "... with L2 Cache support (60x Bus Mode)" ; \ 5567ebf7443Swdenk else \ 5577ebf7443Swdenk echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ 5587ebf7443Swdenk echo "... without L2 Cache support" ; \ 5597ebf7443Swdenk fi 5607ebf7443Swdenk @[ -z "$(findstring _266MHz,$@)" ] || \ 5617ebf7443Swdenk { echo "#define CONFIG_266MHz" >>include/config.h ; \ 5627ebf7443Swdenk echo "... with 266MHz system clock" ; \ 5637ebf7443Swdenk } 5647ebf7443Swdenk @[ -z "$(findstring _300MHz,$@)" ] || \ 5657ebf7443Swdenk { echo "#define CONFIG_300MHz" >>include/config.h ; \ 5667ebf7443Swdenk echo "... with 300MHz system clock" ; \ 5677ebf7443Swdenk } 5687ebf7443Swdenk @./mkconfig -a $(call xtract_82xx,$@) ppc mpc8260 tqm8260 5697ebf7443Swdenk 5707ebf7443Swdenk######################################################################### 5717ebf7443Swdenk## 74xx/7xx Systems 5727ebf7443Swdenk######################################################################### 5737ebf7443Swdenk 574c7de829cSwdenkAmigaOneG3SE_config: unconfig 575c7de829cSwdenk @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 576c7de829cSwdenk 5777ebf7443SwdenkEVB64260_config \ 5787ebf7443SwdenkEVB64260_750CX_config: unconfig 5797ebf7443Swdenk @./mkconfig EVB64260 ppc 74xx_7xx evb64260 5807ebf7443Swdenk 5817ebf7443SwdenkZUMA_config: unconfig 5827ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 5837ebf7443Swdenk 5847ebf7443SwdenkPCIPPC2_config \ 5857ebf7443SwdenkPCIPPC6_config: unconfig 5867ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 5877ebf7443Swdenk 5887ebf7443SwdenkBAB7xx_config: unconfig 5897ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec 5907ebf7443Swdenk 5917ebf7443SwdenkELPPC_config: unconfig 5927ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec 5937ebf7443Swdenk 5947ebf7443Swdenk#======================================================================== 5957ebf7443Swdenk# ARM 5967ebf7443Swdenk#======================================================================== 5977ebf7443Swdenk######################################################################### 5987ebf7443Swdenk## StrongARM Systems 5997ebf7443Swdenk######################################################################### 6007ebf7443Swdenk 6017ebf7443Swdenklart_config : unconfig 6027ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 lart 6037ebf7443Swdenk 6047ebf7443Swdenkdnp1110_config : unconfig 6057ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 dnp1110 6067ebf7443Swdenk 6077ebf7443Swdenkshannon_config : unconfig 6087ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 shannon 6097ebf7443Swdenk 6107ebf7443Swdenk######################################################################### 6117ebf7443Swdenk## ARM920T Systems 6127ebf7443Swdenk######################################################################### 6137ebf7443Swdenk 6147ebf7443Swdenksmdk2400_config : unconfig 6157ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2400 6167ebf7443Swdenk 6177ebf7443Swdenksmdk2410_config : unconfig 6187ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2410 6197ebf7443Swdenk 6207ebf7443Swdenktrab_config : unconfig 6217ebf7443Swdenk @./mkconfig $(@:_config=) arm arm920t trab 6227ebf7443Swdenk 6237ebf7443Swdenk######################################################################### 6247ebf7443Swdenk## ARM720T Systems 6257ebf7443Swdenk######################################################################### 6267ebf7443Swdenk 6277ebf7443Swdenkimpa7_config : unconfig 6287ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t impa7 6297ebf7443Swdenk 6307ebf7443Swdenkep7312_config : unconfig 6317ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t ep7312 6327ebf7443Swdenk 6337ebf7443Swdenk######################################################################### 6347ebf7443Swdenk## Xscale Systems 6357ebf7443Swdenk######################################################################### 6367ebf7443Swdenk 6377ebf7443Swdenklubbock_config : unconfig 6387ebf7443Swdenk @./mkconfig $(@:_config=) arm xscale lubbock 6397ebf7443Swdenk 6407ebf7443Swdenkcradle_config : unconfig 6417ebf7443Swdenk @./mkconfig $(@:_config=) arm xscale cradle 6427ebf7443Swdenk 6437ebf7443Swdenkcsb226_config : unconfig 6447ebf7443Swdenk @./mkconfig $(@:_config=) arm xscale csb226 6457ebf7443Swdenk 6462262cfeeSwdenk#======================================================================== 6472262cfeeSwdenk# i386 6482262cfeeSwdenk#======================================================================== 6492262cfeeSwdenk######################################################################### 6502262cfeeSwdenk## AMD SC520 CDP 6512262cfeeSwdenk######################################################################### 6522262cfeeSwdenksc520_cdp_config : unconfig 6532262cfeeSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_cdp 6542262cfeeSwdenk 6557ebf7443Swdenk######################################################################### 6567ebf7443Swdenk 6577ebf7443Swdenkclean: 6587ebf7443Swdenk find . -type f \ 6597ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 6607ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 6617ebf7443Swdenk | xargs rm -f 6627ebf7443Swdenk rm -f examples/hello_world examples/timer examples/eepro100_eeprom 6637ebf7443Swdenk rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr 6647ebf7443Swdenk rm -f tools/easylogo/easylogo tools/bmp_logo 6657ebf7443Swdenk rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend 666228f29acSwdenk rm -f tools/env/fw_printenv tools/env/fw_setenv 6677ebf7443Swdenk 6687ebf7443Swdenkclobber: clean 6697ebf7443Swdenk find . -type f \ 6707ebf7443Swdenk \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \ 6717ebf7443Swdenk -print \ 6727ebf7443Swdenk | xargs rm -f 6737ebf7443Swdenk rm -f $(OBJS) *.bak tags TAGS 6747ebf7443Swdenk rm -fr *.*~ 6757ebf7443Swdenk rm -f u-boot u-boot.bin u-boot.elf u-boot.srec u-boot.map System.map 676228f29acSwdenk rm -f tools/crc32.c tools/environment.c tools/env/crc32.c 6777ebf7443Swdenk rm -f include/asm/arch include/asm 6787ebf7443Swdenk 6797ebf7443Swdenkmrproper \ 6807ebf7443Swdenkdistclean: clobber unconfig 6817ebf7443Swdenk 6827ebf7443Swdenkbackup: 6837ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 6847ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 6857ebf7443Swdenk 6867ebf7443Swdenk######################################################################### 687