17ebf7443Swdenk# 2d4ca31c4Swdenk# (C) Copyright 2000-2004 37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 47ebf7443Swdenk# 57ebf7443Swdenk# See file CREDITS for list of people who contributed to this 67ebf7443Swdenk# project. 77ebf7443Swdenk# 87ebf7443Swdenk# This program is free software; you can redistribute it and/or 97ebf7443Swdenk# modify it under the terms of the GNU General Public License as 107ebf7443Swdenk# published by the Free Software Foundation; either version 2 of 117ebf7443Swdenk# the License, or (at your option) any later version. 127ebf7443Swdenk# 137ebf7443Swdenk# This program is distributed in the hope that it will be useful, 147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 167ebf7443Swdenk# GNU General Public License for more details. 177ebf7443Swdenk# 187ebf7443Swdenk# You should have received a copy of the GNU General Public License 197ebf7443Swdenk# along with this program; if not, write to the Free Software 207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 217ebf7443Swdenk# MA 02111-1307 USA 227ebf7443Swdenk# 237ebf7443Swdenk 247ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 257ebf7443Swdenk sed -e s/i.86/i386/ \ 267ebf7443Swdenk -e s/sun4u/sparc64/ \ 277ebf7443Swdenk -e s/arm.*/arm/ \ 287ebf7443Swdenk -e s/sa110/arm/ \ 297ebf7443Swdenk -e s/powerpc/ppc/ \ 307ebf7443Swdenk -e s/macppc/ppc/) 317ebf7443Swdenk 327ebf7443SwdenkHOSTOS := $(shell uname -s | tr A-Z a-z | \ 337ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 347ebf7443Swdenk 357ebf7443Swdenkexport HOSTARCH 367ebf7443Swdenk 377ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 387ebf7443SwdenkVENDOR= 397ebf7443Swdenk 407ebf7443Swdenk######################################################################### 417ebf7443Swdenk 427ebf7443SwdenkTOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) 437ebf7443Swdenkexport TOPDIR 447ebf7443Swdenk 457ebf7443Swdenkifeq (include/config.mk,$(wildcard include/config.mk)) 467ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 477ebf7443Swdenkinclude include/config.mk 481d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 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 755c952cf0Swdenkifeq ($(ARCH),nios2) 765c952cf0SwdenkCROSS_COMPILE = nios2-elf- 775c952cf0Swdenkendif 784e5ca3ebSwdenkifeq ($(ARCH),m68k) 794e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 804e5ca3ebSwdenkendif 81507bbe3eSwdenkifeq ($(ARCH),microblaze) 82507bbe3eSwdenkCROSS_COMPILE = mb- 83507bbe3eSwdenkendif 847ebf7443Swdenkendif 857ebf7443Swdenkendif 867ebf7443Swdenk 877ebf7443Swdenkexport CROSS_COMPILE 887ebf7443Swdenk 897ebf7443Swdenk######################################################################### 907ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 917ebf7443Swdenk 927ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 932262cfeeSwdenkifeq ($(CPU),i386) 942262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 952262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 962262cfeeSwdenkendif 977ebf7443Swdenkifeq ($(CPU),ppc4xx) 987ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 997ebf7443Swdenkendif 10042d1f039Swdenkifeq ($(CPU),mpc85xx) 10142d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 10242d1f039Swdenkendif 1037ebf7443Swdenk 1049fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 1059fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 1067ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1071d9f4105Swdenkifdef SOC 1081d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 1091d9f4105Swdenkendif 1107ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 111518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 112518e2e1aSwdenk fs/reiserfs/libreiserfs.a 1137ebf7443SwdenkLIBS += net/libnet.a 1147ebf7443SwdenkLIBS += disk/libdisk.a 1157ebf7443SwdenkLIBS += rtc/librtc.a 1167ebf7443SwdenkLIBS += dtt/libdtt.a 1177ebf7443SwdenkLIBS += drivers/libdrivers.a 1187152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a 1197ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a 1207ebf7443SwdenkLIBS += common/libcommon.a 1219fd5e31fSwdenk.PHONY : $(LIBS) 122a8c7c708Swdenk 1234f7cb08eSwdenk# Add GCC lib 1243d3befa7SwdenkPLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 1253d3befa7Swdenk 1267ebf7443Swdenk 127a8c7c708Swdenk# The "tools" are needed early, so put this first 128a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 129a8c7c708SwdenkSUBDIRS = tools \ 130a8c7c708Swdenk examples \ 131a8c7c708Swdenk post \ 132a8c7c708Swdenk post/cpu 133b028f715Swdenk.PHONY : $(SUBDIRS) 134a8c7c708Swdenk 1357ebf7443Swdenk######################################################################### 136bdccc4feSwdenk######################################################################### 1377ebf7443Swdenk 138bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map 1397ebf7443Swdenk 140bdccc4feSwdenkall: $(ALL) 1417ebf7443Swdenk 1427ebf7443Swdenku-boot.srec: u-boot 1437ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 1447ebf7443Swdenk 1457ebf7443Swdenku-boot.bin: u-boot 1467ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 1477ebf7443Swdenk 148bdccc4feSwdenku-boot.img: u-boot.bin 149bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 150bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 151bdccc4feSwdenk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ 152bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 153bdccc4feSwdenk -d $< $@ 154bdccc4feSwdenk 1557ebf7443Swdenku-boot.dis: u-boot 1567ebf7443Swdenk $(OBJDUMP) -d $< > $@ 1577ebf7443Swdenk 158a8c7c708Swdenku-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 1598bde7f77Swdenk UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 1608bde7f77Swdenk $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ 1617152b1d0Swdenk --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \ 162b2184c31Swdenk -Map u-boot.map -o u-boot 1637ebf7443Swdenk 164a8c7c708Swdenk$(LIBS): 165a8c7c708Swdenk $(MAKE) -C `dirname $@` 166a8c7c708Swdenk 167a8c7c708Swdenk$(SUBDIRS): 168b028f715Swdenk $(MAKE) -C $@ all 1697ebf7443Swdenk 1708f713fdfSdzugdbtools: 1718f713fdfSdzu $(MAKE) -C tools/gdb || exit 1 1728f713fdfSdzu 1737ebf7443Swdenkdepend dep: 1747ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done 1757ebf7443Swdenk 1767ebf7443Swdenktags: 1777ebf7443Swdenk ctags -w `find $(SUBDIRS) include \ 178bda6c8aeSwdenk lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 179bda6c8aeSwdenk fs/cramfs fs/fat fs/fdos fs/jffs2 \ 180bda6c8aeSwdenk net disk rtc dtt drivers drivers/sk98lin common \ 1817ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1827ebf7443Swdenk 1837ebf7443Swdenketags: 1847ebf7443Swdenk etags -a `find $(SUBDIRS) include \ 185eedcd078Swdenk lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 186eedcd078Swdenk fs/cramfs fs/fat fs/fdos fs/jffs2 \ 187eedcd078Swdenk net disk rtc dtt drivers drivers/sk98lin common \ 1887ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1897ebf7443Swdenk 1907ebf7443SwdenkSystem.map: u-boot 1917ebf7443Swdenk @$(NM) $< | \ 1927ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 1937ebf7443Swdenk sort > System.map 1947ebf7443Swdenk 1957ebf7443Swdenk######################################################################### 1967ebf7443Swdenkelse 1977ebf7443Swdenkall install u-boot u-boot.srec depend dep: 1987ebf7443Swdenk @echo "System not configured - see README" >&2 1997ebf7443Swdenk @ exit 1 2007ebf7443Swdenkendif 2017ebf7443Swdenk 2027ebf7443Swdenk######################################################################### 2037ebf7443Swdenk 2047ebf7443Swdenkunconfig: 20517d704ebSwdenk @rm -f include/config.h include/config.mk board/*/config.tmp 2067ebf7443Swdenk 2077ebf7443Swdenk#======================================================================== 2087ebf7443Swdenk# PowerPC 2097ebf7443Swdenk#======================================================================== 2100db5bca8Swdenk 2110db5bca8Swdenk######################################################################### 2120db5bca8Swdenk## MPC5xx Systems 2130db5bca8Swdenk######################################################################### 2140db5bca8Swdenk 2150db5bca8Swdenkcmi_mpc5xx_config: unconfig 2160db5bca8Swdenk @./mkconfig $(@:_config=) ppc mpc5xx cmi 2170db5bca8Swdenk 218b6e4c403SwdenkPATI_config: unconfig 219b6e4c403Swdenk @./mkconfig $(@:_config=) ppc mpc5xx pati mpl 220b6e4c403Swdenk 2217ebf7443Swdenk######################################################################### 222945af8d7Swdenk## MPC5xxx Systems 223945af8d7Swdenk######################################################################### 224e35745bbSwdenkLite5200_config \ 225e35745bbSwdenkLite5200_LOWBOOT_config \ 226e35745bbSwdenkLite5200_LOWBOOT08_config \ 227e35745bbSwdenkicecube_5200_config \ 228e35745bbSwdenkicecube_5200_LOWBOOT_config \ 229e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 230b2001f27Swdenkicecube_5200_DDR_config \ 23179d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 23279d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 233e35745bbSwdenkicecube_5100_config: unconfig 234945af8d7Swdenk @ >include/config.h 23517d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 23617d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 23717d704ebSwdenk then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \ 23817d704ebSwdenk else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \ 23917d704ebSwdenk fi ; \ 2405cf9da48Swdenk echo "... with LOWBOOT configuration" ; \ 2415cf9da48Swdenk } 2425cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 2435cf9da48Swdenk { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \ 2445cf9da48Swdenk echo "... with 8 MB flash only" ; \ 24517d704ebSwdenk echo "... with LOWBOOT configuration" ; \ 2465cf9da48Swdenk } 247b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 248b2001f27Swdenk { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \ 249b2001f27Swdenk echo "... DDR memory revision" ; \ 250b2001f27Swdenk } 251d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 252d4ca31c4Swdenk { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 253d4ca31c4Swdenk echo "... with MPC5200 processor" ; \ 254d4ca31c4Swdenk } 255a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 256945af8d7Swdenk { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 257945af8d7Swdenk echo "... with MGT5100 processor" ; \ 258945af8d7Swdenk } 259945af8d7Swdenk @./mkconfig -a IceCube ppc mpc5xxx icecube 260945af8d7Swdenk 26189394047SwdenkPM520_config \ 26289394047SwdenkPM520_DDR_config \ 26389394047SwdenkPM520_ROMBOOT_config \ 26489394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 26589394047Swdenk @ >include/config.h 26689394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 26789394047Swdenk { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \ 26889394047Swdenk echo "... DDR memory revision" ; \ 26989394047Swdenk } 27089394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 27189394047Swdenk { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 27289394047Swdenk echo "... booting from 8-bit flash" ; \ 27389394047Swdenk } 27489394047Swdenk @./mkconfig -a PM520 ppc mpc5xxx pm520 27589394047Swdenk 276d4ca31c4SwdenkMINI5200_config \ 277d4ca31c4SwdenkEVAL5200_config \ 278d4ca31c4SwdenkTOP5200_config: unconfig 279d4ca31c4Swdenk @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h 280d4ca31c4Swdenk @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk 281d4ca31c4Swdenk 2826c7a1408SwdenkTotal5100_config \ 2836c7a1408SwdenkTotal5200_config \ 2846c7a1408SwdenkTotal5200_lowboot_config \ 2856c7a1408SwdenkTotal5200_Rev2_config \ 2866c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 2876c7a1408Swdenk @ >include/config.h 2886c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 2896c7a1408Swdenk { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 2906c7a1408Swdenk echo "... with MGT5100 processor" ; \ 2916c7a1408Swdenk } 2926c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 2936c7a1408Swdenk { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 2946c7a1408Swdenk echo "... with MPC5200 processor" ; \ 2956c7a1408Swdenk } 2966c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 2976c7a1408Swdenk { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \ 2986c7a1408Swdenk echo "... revision 1 board" ; \ 2996c7a1408Swdenk } 3006c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 3016c7a1408Swdenk { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \ 3026c7a1408Swdenk echo "... revision 2 board" ; \ 3036c7a1408Swdenk } 3046c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 3056c7a1408Swdenk { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \ 3066c7a1408Swdenk echo "... with lowboot configuration" ; \ 3076c7a1408Swdenk } 3086c7a1408Swdenk @./mkconfig -a Total5200 ppc mpc5xxx total5200 3096c7a1408Swdenk 310*7e6bf358SwdenkTQM5200_auto_config \ 31156523f12SwdenkTQM5200_AA_config \ 31256523f12SwdenkTQM5200_AB_config \ 31356523f12SwdenkTQM5200_AC_config \ 31456523f12SwdenkMiniFAP_config: unconfig 31556523f12Swdenk @ >include/config.h 31689394047Swdenk @[ -z "$(findstring MiniFAP,$@)" ] || \ 31756523f12Swdenk { echo "#define CONFIG_MINIFAP" >>include/config.h ; \ 31856523f12Swdenk echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \ 31989394047Swdenk echo "... TQM5200_AC on MiniFAP" ; \ 32056523f12Swdenk } 32156523f12Swdenk @[ -z "$(findstring AA,$@)" ] || \ 32256523f12Swdenk { echo "#define CONFIG_TQM5200_AA" >>include/config.h ; \ 32356523f12Swdenk echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \ 32456523f12Swdenk } 32556523f12Swdenk @[ -z "$(findstring AB,$@)" ] || \ 32656523f12Swdenk { echo "#define CONFIG_TQM5200_AB" >>include/config.h ; \ 32756523f12Swdenk echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \ 32831a64923Swdenk echo "... with Graphics Controller"; \ 32956523f12Swdenk } 33056523f12Swdenk @[ -z "$(findstring AC,$@)" ] || \ 33156523f12Swdenk { echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \ 33256523f12Swdenk echo "... with 4 MB Flash, 128 MB SDRAM" ; \ 33331a64923Swdenk echo "... with Graphics Controller"; \ 33456523f12Swdenk } 335*7e6bf358Swdenk @[ -z "$(findstring auto,$@)" ] || \ 336*7e6bf358Swdenk { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \ 337*7e6bf358Swdenk echo "... with automatic CS configuration" ; \ 338*7e6bf358Swdenk } 33956523f12Swdenk @./mkconfig -a TQM5200 ppc mpc5xxx tqm5200 34056523f12Swdenk 341945af8d7Swdenk######################################################################### 3427ebf7443Swdenk## MPC8xx Systems 3437ebf7443Swdenk######################################################################### 3447ebf7443Swdenk 3452d24a3a7SwdenkAdder_config \ 3462d24a3a7SwdenkAdder87x_config \ 34726238132SwdenkAdderII_config \ 3482d24a3a7Swdenk : unconfig 34926238132Swdenk $(if $(findstring AdderII,$@), \ 3502d24a3a7Swdenk @echo "#define CONFIG_MPC852T" > include/config.h) 3512d24a3a7Swdenk @./mkconfig -a Adder ppc mpc8xx adder 3522d24a3a7Swdenk 353180d3f74SwdenkADS860_config \ 354180d3f74SwdenkFADS823_config \ 355180d3f74SwdenkFADS850SAR_config \ 356180d3f74SwdenkMPC86xADS_config \ 3571114257cSwdenkMPC885ADS_config \ 358180d3f74SwdenkFADS860T_config: unconfig 3597ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 3607ebf7443Swdenk 3617ebf7443SwdenkAMX860_config : unconfig 3627ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel 3637ebf7443Swdenk 3647ebf7443Swdenkc2mon_config: unconfig 3657ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx c2mon 3667ebf7443Swdenk 3677ebf7443SwdenkCCM_config: unconfig 3687ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens 3697ebf7443Swdenk 3707ebf7443Swdenkcogent_mpc8xx_config: unconfig 3717ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx cogent 3727ebf7443Swdenk 3733bac3513SwdenkELPT860_config: unconfig 3743bac3513Swdenk @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX 3753bac3513Swdenk 3767ebf7443SwdenkESTEEM192E_config: unconfig 3777ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx esteem192e 3787ebf7443Swdenk 3797ebf7443SwdenkETX094_config : unconfig 3807ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx etx094 3817ebf7443Swdenk 3827ebf7443SwdenkFLAGADM_config: unconfig 3837ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx flagadm 3847ebf7443Swdenk 3857aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 3867aa78614Swdenk 3877aa78614SwdenkGEN860T_SC_config \ 3887ebf7443SwdenkGEN860T_config: unconfig 3897aa78614Swdenk @ >include/config.h 3907aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 3917aa78614Swdenk { echo "#define CONFIG_SC" >>include/config.h ; \ 3927aa78614Swdenk echo "With reduced H/W feature set (SC)..." ; \ 3937aa78614Swdenk } 3947aa78614Swdenk @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 3957ebf7443Swdenk 3967ebf7443SwdenkGENIETV_config: unconfig 3977ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx genietv 3987ebf7443Swdenk 3997ebf7443SwdenkGTH_config: unconfig 4007ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx gth 4017ebf7443Swdenk 4027ebf7443Swdenkhermes_config : unconfig 4037ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx hermes 4047ebf7443Swdenk 405c40b2956SwdenkHMI10_config : unconfig 406c40b2956Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 407c40b2956Swdenk 4087ebf7443SwdenkIAD210_config: unconfig 4097ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens 4107ebf7443Swdenk 4117ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 4127ebf7443Swdenk 4137ebf7443SwdenkICU862_100MHz_config \ 4147ebf7443SwdenkICU862_config: unconfig 4157ebf7443Swdenk @ >include/config.h 4167ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 4177ebf7443Swdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 4187ebf7443Swdenk echo "... with 100MHz system clock" ; \ 4197ebf7443Swdenk } 4207ebf7443Swdenk @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 4217ebf7443Swdenk 4227ebf7443SwdenkIP860_config : unconfig 4237ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx ip860 4247ebf7443Swdenk 4257ebf7443SwdenkIVML24_256_config \ 4267ebf7443SwdenkIVML24_128_config \ 4277ebf7443SwdenkIVML24_config: unconfig 4287ebf7443Swdenk @ >include/config.h 4297ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 4307ebf7443Swdenk { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ 4317ebf7443Swdenk } 4327ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 4337ebf7443Swdenk { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ 4347ebf7443Swdenk } 4357ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 4367ebf7443Swdenk { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ 4377ebf7443Swdenk } 4387ebf7443Swdenk @./mkconfig -a IVML24 ppc mpc8xx ivm 4397ebf7443Swdenk 4407ebf7443SwdenkIVMS8_256_config \ 4417ebf7443SwdenkIVMS8_128_config \ 4427ebf7443SwdenkIVMS8_config: unconfig 4437ebf7443Swdenk @ >include/config.h 4447ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 4457ebf7443Swdenk { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ 4467ebf7443Swdenk } 4477ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 4487ebf7443Swdenk { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ 4497ebf7443Swdenk } 4507ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 4517ebf7443Swdenk { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ 4527ebf7443Swdenk } 4537ebf7443Swdenk @./mkconfig -a IVMS8 ppc mpc8xx ivm 4547ebf7443Swdenk 45556f94be3SwdenkKUP4K_config : unconfig 4560608e04dSwdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup 4570608e04dSwdenk 4580608e04dSwdenkKUP4X_config : unconfig 4590608e04dSwdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup 46056f94be3Swdenk 4617ebf7443SwdenkLANTEC_config : unconfig 4627ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lantec 4637ebf7443Swdenk 4647ebf7443Swdenklwmon_config: unconfig 4657ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lwmon 4667ebf7443Swdenk 4677ebf7443SwdenkMBX_config \ 4687ebf7443SwdenkMBX860T_config: unconfig 4697ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx 4707ebf7443Swdenk 4717ebf7443SwdenkMHPC_config: unconfig 4727ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec 4737ebf7443Swdenk 4747ebf7443SwdenkMVS1_config : unconfig 4757ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mvs1 4767ebf7443Swdenk 477993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 478993cad93Swdenk 479993cad93SwdenkNETVIA_V2_config \ 4807ebf7443SwdenkNETVIA_config: unconfig 481993cad93Swdenk @ >include/config.h 482993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 483993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ 484993cad93Swdenk echo "... Version 1" ; \ 485993cad93Swdenk } 486993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 487993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ 488993cad93Swdenk echo "... Version 2" ; \ 489993cad93Swdenk } 490993cad93Swdenk @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 4917ebf7443Swdenk 492c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 493c26e454dSwdenk 494c26e454dSwdenkNETPHONE_V2_config \ 49504a85b3bSwdenkNETPHONE_config: unconfig 496c26e454dSwdenk @ >include/config.h 497c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 498c26e454dSwdenk { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \ 499c26e454dSwdenk } 500c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 501c26e454dSwdenk { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \ 502c26e454dSwdenk } 503c26e454dSwdenk @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 50404a85b3bSwdenk 50579fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 50604a85b3bSwdenk 50779fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 50879fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 50979fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 51079fa88f3SwdenkNETTA_SWAPHOOK_config \ 51179fa88f3SwdenkNETTA_ISDN_6412_config \ 51204a85b3bSwdenkNETTA_ISDN_config \ 51379fa88f3SwdenkNETTA_6412_config \ 51404a85b3bSwdenkNETTA_config: unconfig 51504a85b3bSwdenk @ >include/config.h 51679fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 51704a85b3bSwdenk { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \ 51804a85b3bSwdenk } 51979fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 52079fa88f3Swdenk { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \ 52179fa88f3Swdenk } 52279fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 52379fa88f3Swdenk { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \ 52479fa88f3Swdenk } 52579fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 52679fa88f3Swdenk { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \ 52779fa88f3Swdenk } 52879fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 52979fa88f3Swdenk { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \ 53079fa88f3Swdenk } 53179fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 53279fa88f3Swdenk { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \ 53379fa88f3Swdenk } 53404a85b3bSwdenk @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta 53504a85b3bSwdenk 53679fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 53779fa88f3Swdenk 53879fa88f3SwdenkNETTA2_V2_config \ 53979fa88f3SwdenkNETTA2_config: unconfig 54079fa88f3Swdenk @ >include/config.h 54179fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 54279fa88f3Swdenk { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \ 54379fa88f3Swdenk } 54479fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 54579fa88f3Swdenk { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \ 54679fa88f3Swdenk } 54779fa88f3Swdenk @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 54879fa88f3Swdenk 5497ca202f5SwdenkNC650_config: unconfig 5507ca202f5Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nc650 5517ca202f5Swdenk 5527ebf7443SwdenkNX823_config: unconfig 5537ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nx823 5547ebf7443Swdenk 5557ebf7443Swdenkpcu_e_config: unconfig 5567ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens 5577ebf7443Swdenk 5583bbc899fSwdenkQS850_config: unconfig 5593bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 5603bbc899fSwdenk 5613bbc899fSwdenkQS823_config: unconfig 5623bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 5633bbc899fSwdenk 5643bbc899fSwdenkQS860T_config: unconfig 5653bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc 5663bbc899fSwdenk 567da93ed81Swdenkquantum_config: unconfig 568da93ed81Swdenk @./mkconfig $(@:_config=) ppc mpc8xx quantum 569da93ed81Swdenk 5707ebf7443SwdenkR360MPI_config: unconfig 5717ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx r360mpi 5727ebf7443Swdenk 573682011ffSwdenkRBC823_config: unconfig 574682011ffSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rbc823 575682011ffSwdenk 5767ebf7443SwdenkRPXClassic_config: unconfig 5777ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic 5787ebf7443Swdenk 5797ebf7443SwdenkRPXlite_config: unconfig 5807ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXlite 5817ebf7443Swdenk 582e63c8ee3SwdenkRPXlite_DW_64_config \ 583e63c8ee3SwdenkRPXlite_DW_LCD_config \ 584e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 585e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 586e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 587e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 588e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 589e63c8ee3SwdenkRPXlite_DW_config: unconfig 590e63c8ee3Swdenk @ >include/config.h 591e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 592e63c8ee3Swdenk { echo "#define RPXlite_64MHz" >>include/config.h ; \ 593e63c8ee3Swdenk echo "... with 64MHz system clock ..."; \ 594e63c8ee3Swdenk } 595e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 596e63c8ee3Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 597e63c8ee3Swdenk echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \ 598e63c8ee3Swdenk echo "... with LCD display ..."; \ 599e63c8ee3Swdenk } 600e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 601e63c8ee3Swdenk { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \ 602e63c8ee3Swdenk echo "... with ENV in NVRAM ..."; \ 603e63c8ee3Swdenk } 604e63c8ee3Swdenk @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw 605e63c8ee3Swdenk 60673a8b27cSwdenkrmu_config: unconfig 60773a8b27cSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rmu 60873a8b27cSwdenk 6097ebf7443SwdenkRRvision_config: unconfig 6107ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RRvision 6117ebf7443Swdenk 6127ebf7443SwdenkRRvision_LCD_config: unconfig 6137ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 6147ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 6157ebf7443Swdenk @./mkconfig -a RRvision ppc mpc8xx RRvision 6167ebf7443Swdenk 6177ebf7443SwdenkSM850_config : unconfig 6187ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 6197ebf7443Swdenk 6207ebf7443SwdenkSPD823TS_config: unconfig 6217ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx spd8xx 6227ebf7443Swdenk 623dc7c9a1aSwdenksvm_sc8xx_config: unconfig 624dc7c9a1aSwdenk @ >include/config.h 625dc7c9a1aSwdenk @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx 626dc7c9a1aSwdenk 6277ebf7443SwdenkSXNI855T_config: unconfig 6287ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx sixnet 6297ebf7443Swdenk 630db2f721fSwdenk# EMK MPC8xx based modules 631db2f721fSwdenkTOP860_config: unconfig 632db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx top860 emk 633db2f721fSwdenk 6347ebf7443Swdenk# Play some tricks for configuration selection 635e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 636e9132ea9Swdenk# and only 823 boards may have LCD support 637e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 6387ebf7443Swdenk 6397ebf7443SwdenkFPS850L_config \ 640384ae025SwdenkFPS860L_config \ 641f12e568cSwdenkNSCU_config \ 6427ebf7443SwdenkTQM823L_config \ 6437ebf7443SwdenkTQM823L_LCD_config \ 6447ebf7443SwdenkTQM850L_config \ 6457ebf7443SwdenkTQM855L_config \ 6467ebf7443SwdenkTQM860L_config \ 647d126bfbdSwdenkTQM862L_config \ 648ae3af05eSwdenkTQM823M_config \ 649ae3af05eSwdenkTQM850M_config \ 650f12e568cSwdenkTQM855M_config \ 651f12e568cSwdenkTQM860M_config \ 652f12e568cSwdenkTQM862M_config \ 653c178d3daSwdenkTQM866M_config: unconfig 6547ebf7443Swdenk @ >include/config.h 6557ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 6567ebf7443Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 657fd3103bbSwdenk echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \ 6587ebf7443Swdenk echo "... with LCD display" ; \ 6597ebf7443Swdenk } 6607ebf7443Swdenk @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 6617ebf7443Swdenk 6627ebf7443SwdenkTTTech_config: unconfig 6637ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 6647ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 6657ebf7443Swdenk @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 6667ebf7443Swdenk 667608c9146Swdenkv37_config: unconfig 668608c9146Swdenk @echo "#define CONFIG_LCD" >include/config.h 669608c9146Swdenk @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h 670608c9146Swdenk @./mkconfig $(@:_config=) ppc mpc8xx v37 671608c9146Swdenk 67291e940d9Sdzuwtk_config: unconfig 67391e940d9Sdzu @echo "#define CONFIG_LCD" >include/config.h 67491e940d9Sdzu @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h 67591e940d9Sdzu @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 67691e940d9Sdzu 6777ebf7443Swdenk######################################################################### 6787ebf7443Swdenk## PPC4xx Systems 6797ebf7443Swdenk######################################################################### 680e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 6817ebf7443Swdenk 6827ebf7443SwdenkADCIOP_config: unconfig 6837ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx adciop esd 6847ebf7443Swdenk 6857ebf7443SwdenkAR405_config: unconfig 6867ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd 6877ebf7443Swdenk 688549826eaSstroeseASH405_config: unconfig 689549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd 690549826eaSstroese 691549826eaSstroeseBUBINGA405EP_config: unconfig 692549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep 693549826eaSstroese 6947ebf7443SwdenkCANBT_config: unconfig 6957ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx canbt esd 6967ebf7443Swdenk 6971d6f9720SwdenkCATcenter_config \ 6981d6f9720SwdenkCATcenter_25_config \ 6991d6f9720SwdenkCATcenter_33_config: unconfig 70010767ccbSwdenk @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h 70110767ccbSwdenk @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h 7021d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 7031d6f9720Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \ 7041d6f9720Swdenk echo "SysClk = 25MHz" ; \ 7051d6f9720Swdenk } 7061d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 7071d6f9720Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \ 7081d6f9720Swdenk echo "SysClk = 33MHz" ; \ 7091d6f9720Swdenk } 71010767ccbSwdenk @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 71110767ccbSwdenk 7127ebf7443SwdenkCPCI405_config \ 713549826eaSstroeseCPCI4052_config \ 714549826eaSstroeseCPCI405AB_config: unconfig 7157ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd 7167ebf7443Swdenk @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk 7177ebf7443Swdenk 7187ebf7443SwdenkCPCI440_config: unconfig 7197ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd 7207ebf7443Swdenk 7217ebf7443SwdenkCPCIISER4_config: unconfig 7227ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd 7237ebf7443Swdenk 7247ebf7443SwdenkCRAYL1_config: unconfig 7257ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx L1 cray 7267ebf7443Swdenk 727cd0a9de6Swdenkcsb272_config: unconfig 728cd0a9de6Swdenk @./mkconfig $(@:_config=) ppc ppc4xx csb272 729cd0a9de6Swdenk 730aa245090Swdenkcsb472_config: unconfig 731aa245090Swdenk @./mkconfig $(@:_config=) ppc ppc4xx csb472 732aa245090Swdenk 7337ebf7443SwdenkDASA_SIM_config: unconfig 7347ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd 7357ebf7443Swdenk 73672cd5aa7SstroeseDP405_config: unconfig 73772cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd 73872cd5aa7Sstroese 7397ebf7443SwdenkDU405_config: unconfig 7407ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx du405 esd 7417ebf7443Swdenk 7427ebf7443SwdenkEBONY_config: unconfig 7437ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ebony 7447ebf7443Swdenk 7457ebf7443SwdenkERIC_config: unconfig 7467ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx eric 7477ebf7443Swdenk 748d1cbe85bSwdenkEXBITGEN_config: unconfig 749d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc ppc4xx exbitgen 750d1cbe85bSwdenk 75172cd5aa7SstroeseHUB405_config: unconfig 75272cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd 75372cd5aa7Sstroese 754db01a2eaSwdenkJSE_config: unconfig 755db01a2eaSwdenk @./mkconfig $(@:_config=) ppc ppc4xx jse 756db01a2eaSwdenk 7577ebf7443SwdenkMIP405_config: unconfig 7587ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl 7597ebf7443Swdenk 760f3e0de60SwdenkMIP405T_config: unconfig 761f3e0de60Swdenk @echo "#define CONFIG_MIP405T" >include/config.h 762f3e0de60Swdenk @echo "Enable subset config for MIP405T" 763f3e0de60Swdenk @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl 764f3e0de60Swdenk 7657ebf7443SwdenkML2_config: unconfig 7667ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml2 7677ebf7443Swdenk 768028ab6b5Swdenkml300_config: unconfig 769028ab6b5Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx 770028ab6b5Swdenk 7710e6d798cSwdenkOCOTEA_config: unconfig 7720e6d798cSwdenk @./mkconfig $(@:_config=) ppc ppc4xx ocotea 7730e6d798cSwdenk 7747ebf7443SwdenkOCRTC_config \ 7757ebf7443SwdenkORSG_config: unconfig 7767ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd 7777ebf7443Swdenk 7787ebf7443SwdenkPCI405_config: unconfig 7797ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd 7807ebf7443Swdenk 7817ebf7443SwdenkPIP405_config: unconfig 7827ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl 7837ebf7443Swdenk 78472cd5aa7SstroesePLU405_config: unconfig 78572cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd 78672cd5aa7Sstroese 787549826eaSstroesePMC405_config: unconfig 788549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd 789549826eaSstroese 790281e00a3SwdenkPPChameleonEVB_config \ 791e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 792e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 793e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 794e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 795e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 796e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 797fbe4b5cbSwdenk @ >include/config.h 7981d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 799fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \ 800fbe4b5cbSwdenk echo "... BASIC model" ; \ 801fbe4b5cbSwdenk } 8021d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 803fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \ 804fbe4b5cbSwdenk echo "... MEDIUM model" ; \ 805fbe4b5cbSwdenk } 8061d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 807fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \ 808fbe4b5cbSwdenk echo "... HIGH-END model" ; \ 809fbe4b5cbSwdenk } 810e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 811e55ca7e2Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \ 812e55ca7e2Swdenk echo "SysClk = 25MHz" ; \ 813e55ca7e2Swdenk } 814e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 815e55ca7e2Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \ 816e55ca7e2Swdenk echo "SysClk = 33MHz" ; \ 817e55ca7e2Swdenk } 818fbe4b5cbSwdenk @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 81912f34241Swdenk 82072cd5aa7SstroeseVOH405_config: unconfig 82172cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd 82272cd5aa7Sstroese 8237ebf7443SwdenkW7OLMC_config \ 8247ebf7443SwdenkW7OLMG_config: unconfig 8257ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx w7o 8267ebf7443Swdenk 8277ebf7443SwdenkWALNUT405_config: unconfig 8287ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx walnut405 8297ebf7443Swdenk 830ba56f625SwdenkXPEDITE1K_config: unconfig 831ba56f625Swdenk @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k 832ba56f625Swdenk 8337ebf7443Swdenk######################################################################### 834983fda83Swdenk## MPC8220 Systems 835983fda83Swdenk######################################################################### 836983fda83SwdenkAlaska8220_config: unconfig 837983fda83Swdenk @./mkconfig $(@:_config=) ppc mpc8220 alaska 838983fda83Swdenk 839983fda83SwdenkYukon8220_config: unconfig 840983fda83Swdenk @./mkconfig $(@:_config=) ppc mpc8220 yukon 841983fda83Swdenk 842983fda83Swdenk######################################################################### 8437ebf7443Swdenk## MPC824x Systems 8447ebf7443Swdenk######################################################################### 845efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 8463bac3513Swdenk 8470332990bSwdenkA3000_config: unconfig 8480332990bSwdenk @./mkconfig $(@:_config=) ppc mpc824x a3000 8490332990bSwdenk 8507ebf7443SwdenkBMW_config: unconfig 8517ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x bmw 8527ebf7443Swdenk 8533bac3513SwdenkCPC45_config \ 8543bac3513SwdenkCPC45_ROMBOOT_config: unconfig 8553bac3513Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 8563bac3513Swdenk @cd ./include ; \ 8573bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 8583bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 8593bac3513Swdenk echo "... booting from 8-bit flash" ; \ 8603bac3513Swdenk else \ 8613bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 8623bac3513Swdenk echo "... booting from 64-bit flash" ; \ 8633bac3513Swdenk fi; \ 8643bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 8653bac3513Swdenk 8667ebf7443SwdenkCU824_config: unconfig 8677ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x cu824 8687ebf7443Swdenk 8697abf0c58Swdenkdebris_config: unconfig 8707abf0c58Swdenk @./mkconfig $(@:_config=) ppc mpc824x debris etin 8717abf0c58Swdenk 87280885a9dSwdenkeXalion_config: unconfig 87380885a9dSwdenk @./mkconfig $(@:_config=) ppc mpc824x eXalion 87480885a9dSwdenk 8757ebf7443SwdenkMOUSSE_config: unconfig 8767ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x mousse 8777ebf7443Swdenk 8787ebf7443SwdenkMUSENKI_config: unconfig 8797ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x musenki 8807ebf7443Swdenk 881b4676a25SwdenkMVBLUE_config: unconfig 882b4676a25Swdenk @./mkconfig $(@:_config=) ppc mpc824x mvblue 883b4676a25Swdenk 8847ebf7443SwdenkOXC_config: unconfig 8857ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x oxc 8867ebf7443Swdenk 8877ebf7443SwdenkPN62_config: unconfig 8887ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x pn62 8897ebf7443Swdenk 8907ebf7443SwdenkSandpoint8240_config: unconfig 8917ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 8927ebf7443Swdenk 8937ebf7443SwdenkSandpoint8245_config: unconfig 8947ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 8957ebf7443Swdenk 896466b7410Swdenksbc8240_config: unconfig 897466b7410Swdenk @./mkconfig $(@:_config=) ppc mpc824x sbc8240 898466b7410Swdenk 899d1cbe85bSwdenkSL8245_config: unconfig 900d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc mpc824x sl8245 901d1cbe85bSwdenk 9027ebf7443Swdenkutx8245_config: unconfig 9037ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x utx8245 9047ebf7443Swdenk 9057ebf7443Swdenk######################################################################### 9067ebf7443Swdenk## MPC8260 Systems 9077ebf7443Swdenk######################################################################### 9087ebf7443Swdenk 90954387ac9Swdenkatc_config: unconfig 91054387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 atc 91154387ac9Swdenk 9127ebf7443Swdenkcogent_mpc8260_config: unconfig 9137ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 cogent 9147ebf7443Swdenk 9157ebf7443SwdenkCPU86_config \ 9167ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 9177ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 9187ebf7443Swdenk @cd ./include ; \ 9197ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 9207ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 9217ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 9227ebf7443Swdenk else \ 9237ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 9247ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 9257ebf7443Swdenk fi; \ 9267ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 9277ebf7443Swdenk 9287ebf7443Swdenkep8260_config: unconfig 9297ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ep8260 9307ebf7443Swdenk 9317ebf7443Swdenkgw8260_config: unconfig 9327ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 gw8260 9337ebf7443Swdenk 9347ebf7443Swdenkhymod_config: unconfig 9357ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 hymod 9367ebf7443Swdenk 9377ebf7443SwdenkIPHASE4539_config: unconfig 9387ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 9397ebf7443Swdenk 940c3c7f861SwdenkISPAN_config \ 941c3c7f861SwdenkISPAN_REVB_config: unconfig 942c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 943c3c7f861Swdenk echo "#define CFG_REV_B" > include/config.h ; \ 944c3c7f861Swdenk fi 945c3c7f861Swdenk @./mkconfig -a ISPAN ppc mpc8260 ispan 946c3c7f861Swdenk 94704a85b3bSwdenkMPC8260ADS_config \ 94804a85b3bSwdenkMPC8260ADS_33MHz_config \ 94904a85b3bSwdenkMPC8260ADS_40MHz_config \ 95004a85b3bSwdenkMPC8272ADS_config \ 95104a85b3bSwdenkPQ2FADS_config \ 95204a85b3bSwdenkPQ2FADS-VR_config \ 95304a85b3bSwdenkPQ2FADS-ZU_config \ 95404a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 95504a85b3bSwdenk : unconfig 95604a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 95704a85b3bSwdenk @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \ 95804a85b3bSwdenk @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h) 95904a85b3bSwdenk $(if $(findstring MHz,$@), \ 96004a85b3bSwdenk @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \ 96104a85b3bSwdenk $(if $(findstring VR,$@), \ 96204a85b3bSwdenk @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h)) 96304a85b3bSwdenk @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads 9647ebf7443Swdenk 965db2f721fSwdenkMPC8266ADS_config: unconfig 966db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads 967db2f721fSwdenk 968efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 96910f67017SwdenkPM825_config \ 970efa329cbSwdenkPM825_ROMBOOT_config \ 971efa329cbSwdenkPM825_BIGFLASH_config \ 972efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 9737ebf7443SwdenkPM826_config \ 974efa329cbSwdenkPM826_ROMBOOT_config \ 975efa329cbSwdenkPM826_BIGFLASH_config \ 976efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 977efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 978efa329cbSwdenk echo "#define CONFIG_PCI" >include/config.h ; \ 9797ebf7443Swdenk else \ 980efa329cbSwdenk >include/config.h ; \ 981efa329cbSwdenk fi 982efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 983efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 984efa329cbSwdenk echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 985efa329cbSwdenk echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \ 986efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 987efa329cbSwdenk echo "... with 32 MB Flash" ; \ 988efa329cbSwdenk echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \ 9897ebf7443Swdenk fi; \ 990efa329cbSwdenk else \ 991efa329cbSwdenk echo "... booting from 64-bit flash" ; \ 992efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 993efa329cbSwdenk echo "... with 32 MB Flash" ; \ 994efa329cbSwdenk echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \ 995efa329cbSwdenk echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \ 996efa329cbSwdenk else \ 997efa329cbSwdenk echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \ 998efa329cbSwdenk fi; \ 999efa329cbSwdenk fi 1000efa329cbSwdenk @./mkconfig -a PM826 ppc mpc8260 pm826 1001efa329cbSwdenk 1002efa329cbSwdenkPM828_config \ 1003efa329cbSwdenkPM828_PCI_config \ 1004efa329cbSwdenkPM828_ROMBOOT_config \ 1005efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1006efa329cbSwdenk @if [ -z "$(findstring _PCI_,$@)" ] ; then \ 1007efa329cbSwdenk echo "#define CONFIG_PCI" >>include/config.h ; \ 1008efa329cbSwdenk echo "... with PCI enabled" ; \ 1009efa329cbSwdenk else \ 1010efa329cbSwdenk >include/config.h ; \ 1011efa329cbSwdenk fi 1012efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1013efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 1014efa329cbSwdenk echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 1015efa329cbSwdenk echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \ 1016efa329cbSwdenk fi 1017efa329cbSwdenk @./mkconfig -a PM828 ppc mpc8260 pm828 10187ebf7443Swdenk 10197ebf7443Swdenkppmc8260_config: unconfig 10207ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 10217ebf7443Swdenk 10227ebf7443SwdenkRPXsuper_config: unconfig 10237ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper 10247ebf7443Swdenk 10257ebf7443Swdenkrsdproto_config: unconfig 10267ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rsdproto 10277ebf7443Swdenk 10287ebf7443Swdenksacsng_config: unconfig 10297ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sacsng 10307ebf7443Swdenk 10317ebf7443Swdenksbc8260_config: unconfig 10327ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 10337ebf7443Swdenk 10347ebf7443SwdenkSCM_config: unconfig 10357ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens 10367ebf7443Swdenk 103727b207fdSwdenkTQM8255_AA_config \ 103827b207fdSwdenkTQM8260_AA_config \ 103927b207fdSwdenkTQM8260_AB_config \ 104027b207fdSwdenkTQM8260_AC_config \ 104127b207fdSwdenkTQM8260_AD_config \ 104227b207fdSwdenkTQM8260_AE_config \ 104327b207fdSwdenkTQM8260_AF_config \ 104427b207fdSwdenkTQM8260_AG_config \ 104527b207fdSwdenkTQM8260_AH_config \ 104627b207fdSwdenkTQM8265_AA_config: unconfig 104727b207fdSwdenk @case "$@" in \ 104827b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 104927b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 105027b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 105127b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 105227b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 105327b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 105427b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 105527b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 105627b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 105727b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 105827b207fdSwdenk esac; \ 105927b207fdSwdenk >include/config.h ; \ 106027b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 106127b207fdSwdenk echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ 106227b207fdSwdenk fi; \ 106327b207fdSwdenk echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ 106427b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 106527b207fdSwdenk if [ "$${CACHE}" == "yes" ] ; then \ 10667ebf7443Swdenk echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ 106727b207fdSwdenk echo "... with L2 Cache support" ; \ 10687ebf7443Swdenk else \ 10697ebf7443Swdenk echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ 10707ebf7443Swdenk echo "... without L2 Cache support" ; \ 107127b207fdSwdenk fi; \ 107227b207fdSwdenk if [ "$${BMODE}" == "60x" ] ; then \ 107327b207fdSwdenk echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ 107427b207fdSwdenk echo "... with 60x Bus Mode" ; \ 107527b207fdSwdenk else \ 107627b207fdSwdenk echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ 107727b207fdSwdenk echo "... without 60x Bus Mode" ; \ 10787ebf7443Swdenk fi 10794532cb69Swdenk @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 10807ebf7443Swdenk 108154387ac9SwdenkZPC1900_config: unconfig 108254387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 zpc1900 10837aa78614Swdenk 10844e5ca3ebSwdenk#======================================================================== 10854e5ca3ebSwdenk# M68K 10864e5ca3ebSwdenk#======================================================================== 10874e5ca3ebSwdenk######################################################################### 10884e5ca3ebSwdenk## Coldfire 10894e5ca3ebSwdenk######################################################################### 10904e5ca3ebSwdenk 10914e5ca3ebSwdenkM5272C3_config : unconfig 1092bf9e3b38Swdenk @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3 10934e5ca3ebSwdenk 10944e5ca3ebSwdenkM5282EVB_config : unconfig 1095bf9e3b38Swdenk @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb 10964e5ca3ebSwdenk 10977ebf7443Swdenk######################################################################### 109842d1f039Swdenk## MPC85xx Systems 109942d1f039Swdenk######################################################################### 110042d1f039Swdenk 110142d1f039SwdenkMPC8540ADS_config: unconfig 110242d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads 110342d1f039Swdenk 110442d1f039SwdenkMPC8560ADS_config: unconfig 110542d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads 110642d1f039Swdenk 110703f5c550SwdenkMPC8541CDS_config: unconfig 110803f5c550Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds 110903f5c550Swdenk 111003f5c550SwdenkMPC8555CDS_config: unconfig 111103f5c550Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds 11127abf0c58Swdenk 1113c15f3120Swdenksbc8540_config \ 1114c15f3120Swdenksbc8540_33_config \ 1115c15f3120Swdenksbc8540_66_config: unconfig 1116c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 1117c15f3120Swdenk echo "#define CONFIG_PCI_66" >>include/config.h ; \ 1118c15f3120Swdenk echo "... 66 MHz PCI" ; \ 1119c15f3120Swdenk else \ 1120c15f3120Swdenk >include/config.h ; \ 1121c15f3120Swdenk echo "... 33 MHz PCI" ; \ 1122c15f3120Swdenk fi 1123c15f3120Swdenk @./mkconfig -a SBC8540 ppc mpc85xx sbc8560 1124c15f3120Swdenk 1125466b7410Swdenksbc8560_config \ 1126466b7410Swdenksbc8560_33_config \ 1127466b7410Swdenksbc8560_66_config: unconfig 11288b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 11298b07a110Swdenk echo "#define CONFIG_PCI_66" >>include/config.h ; \ 11308b07a110Swdenk echo "... 66 MHz PCI" ; \ 11318b07a110Swdenk else \ 11328b07a110Swdenk >include/config.h ; \ 11338b07a110Swdenk echo "... 33 MHz PCI" ; \ 11348b07a110Swdenk fi 1135466b7410Swdenk @./mkconfig -a sbc8560 ppc mpc85xx sbc8560 11368b07a110Swdenk 113703f5c550Swdenkstxgp3_config: unconfig 113803f5c550Swdenk @./mkconfig $(@:_config=) ppc mpc85xx stxgp3 113903f5c550Swdenk 114042d1f039Swdenk######################################################################### 11417ebf7443Swdenk## 74xx/7xx Systems 11427ebf7443Swdenk######################################################################### 11437ebf7443Swdenk 1144c7de829cSwdenkAmigaOneG3SE_config: unconfig 1145c7de829cSwdenk @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 1146c7de829cSwdenk 114715647dc7SwdenkBAB7xx_config: unconfig 114815647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec 114915647dc7Swdenk 11503a473b2aSwdenkDB64360_config: unconfig 11513a473b2aSwdenk @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell 11523a473b2aSwdenk 11533a473b2aSwdenkDB64460_config: unconfig 11543a473b2aSwdenk @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell 11553a473b2aSwdenk 115615647dc7SwdenkELPPC_config: unconfig 115715647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec 115815647dc7Swdenk 11597ebf7443SwdenkEVB64260_config \ 11607ebf7443SwdenkEVB64260_750CX_config: unconfig 11617ebf7443Swdenk @./mkconfig EVB64260 ppc 74xx_7xx evb64260 11627ebf7443Swdenk 116315647dc7SwdenkP3G4_config: unconfig 11647ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 11657ebf7443Swdenk 11667ebf7443SwdenkPCIPPC2_config \ 11677ebf7443SwdenkPCIPPC6_config: unconfig 11687ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 11697ebf7443Swdenk 117015647dc7SwdenkZUMA_config: unconfig 117112f34241Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 117212f34241Swdenk 11737ebf7443Swdenk#======================================================================== 11747ebf7443Swdenk# ARM 11757ebf7443Swdenk#======================================================================== 11767ebf7443Swdenk######################################################################### 11777ebf7443Swdenk## StrongARM Systems 11787ebf7443Swdenk######################################################################### 11797ebf7443Swdenk 1180ea66bc88Swdenkassabet_config : unconfig 1181ea66bc88Swdenk @./mkconfig $(@:_config=) arm sa1100 assabet 1182ea66bc88Swdenk 11837ebf7443Swdenkdnp1110_config : unconfig 11847ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 dnp1110 11857ebf7443Swdenk 1186855a496fSwdenkgcplus_config : unconfig 1187855a496fSwdenk @./mkconfig $(@:_config=) arm sa1100 gcplus 1188855a496fSwdenk 1189855a496fSwdenklart_config : unconfig 1190855a496fSwdenk @./mkconfig $(@:_config=) arm sa1100 lart 1191855a496fSwdenk 11927ebf7443Swdenkshannon_config : unconfig 11937ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 shannon 11947ebf7443Swdenk 11957ebf7443Swdenk######################################################################### 11962e5983d2Swdenk## ARM92xT Systems 11977ebf7443Swdenk######################################################################### 11987ebf7443Swdenk 1199b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 120043d9616cSwdenk 12013ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 120263e73c9aSwdenk 1203a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 1204a56bd922Swdenk 12053d3befa7Swdenkintegratorap_config : unconfig 12063d3befa7Swdenk @./mkconfig $(@:_config=) arm arm926ejs integratorap 12073d3befa7Swdenk 120825d6712aSwdenkintegratorcp_config : unconfig 120925d6712aSwdenk @./mkconfig $(@:_config=) arm arm926ejs integratorcp 121025d6712aSwdenk 1211f832d8a1Swdenklpd7a400_config \ 1212f832d8a1Swdenklpd7a404_config: unconfig 12132d24a3a7Swdenk @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x 12143d3befa7Swdenk 1215281e00a3Swdenkmx1ads_config : unconfig 12161d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx 1217281e00a3Swdenk 1218281e00a3Swdenkmx1fs2_config : unconfig 12191d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx 1220281e00a3Swdenk 12212e5983d2Swdenkomap1510inn_config : unconfig 12222e5983d2Swdenk @./mkconfig $(@:_config=) arm arm925t omap1510inn 12232e5983d2Swdenk 12241eaeb58eSwdenkomap5912osk_config : unconfig 12251eaeb58eSwdenk @./mkconfig $(@:_config=) arm arm926ejs omap5912osk 12261eaeb58eSwdenk 122763e73c9aSwdenkomap1610inn_config \ 122863e73c9aSwdenkomap1610inn_cs0boot_config \ 122963e73c9aSwdenkomap1610inn_cs3boot_config \ 12303ff02c27Swdenkomap1610inn_cs_autoboot_config \ 123163e73c9aSwdenkomap1610h2_config \ 123263e73c9aSwdenkomap1610h2_cs0boot_config \ 12333ff02c27Swdenkomap1610h2_cs3boot_config \ 12343ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 123563e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 123663e73c9aSwdenk echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ 1237b79a11ccSwdenk echo "... configured for CS0 boot"; \ 12383ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 12393ff02c27Swdenk echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \ 12403ff02c27Swdenk echo "... configured for CS_AUTO boot"; \ 124163e73c9aSwdenk else \ 124263e73c9aSwdenk echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ 1243b79a11ccSwdenk echo "... configured for CS3 boot"; \ 124463e73c9aSwdenk fi; 124563e73c9aSwdenk @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn 12466f21347dSwdenk 1247a56bd922Swdenkomap730p2_config \ 1248a56bd922Swdenkomap730p2_cs0boot_config \ 1249a56bd922Swdenkomap730p2_cs3boot_config : unconfig 1250a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 1251a56bd922Swdenk echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ 1252a56bd922Swdenk echo "... configured for CS0 boot"; \ 1253a56bd922Swdenk else \ 1254a56bd922Swdenk echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ 1255a56bd922Swdenk echo "... configured for CS3 boot"; \ 1256a56bd922Swdenk fi; 1257a56bd922Swdenk @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 1258a56bd922Swdenk 1259281e00a3Swdenkscb9328_config : unconfig 12601d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx 1261281e00a3Swdenk 12627ebf7443Swdenksmdk2400_config : unconfig 12631d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 12647ebf7443Swdenk 12657ebf7443Swdenksmdk2410_config : unconfig 12661d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 12677ebf7443Swdenk 12682d24a3a7SwdenkSX1_config : unconfig 12692d24a3a7Swdenk @./mkconfig $(@:_config=) arm arm925t sx1 12702d24a3a7Swdenk 1271b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 127243d9616cSwdenktrab_config \ 1273b0639ca3Swdenktrab_bigram_config \ 1274b0639ca3Swdenktrab_bigflash_config \ 1275f54ebdfaSwdenktrab_old_config: unconfig 127643d9616cSwdenk @ >include/config.h 1277b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 1278b0639ca3Swdenk { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 1279b2001f27Swdenk echo "#define CONFIG_RAM_32MB" >>include/config.h ; \ 1280b0639ca3Swdenk echo "... with 8 MB Flash, 32 MB RAM" ; \ 1281b0639ca3Swdenk } 1282b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 1283b2001f27Swdenk { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \ 1284b2001f27Swdenk echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 1285b0639ca3Swdenk echo "... with 16 MB Flash, 16 MB RAM" ; \ 1286a8c7c708Swdenk echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 1287b0639ca3Swdenk } 1288f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 1289b2001f27Swdenk { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 1290b2001f27Swdenk echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 1291b2001f27Swdenk echo "... with 8 MB Flash, 16 MB RAM" ; \ 1292a8c7c708Swdenk echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 129343d9616cSwdenk } 12941d9f4105Swdenk @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 12957ebf7443Swdenk 12961cb8e980SwdenkVCMA9_config : unconfig 12971d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0 12981cb8e980Swdenk 12992d24a3a7Swdenkversatile_config : unconfig 13002d24a3a7Swdenk @./mkconfig $(@:_config=) arm arm926ejs versatile 1301074cff0dSwdenk 1302074cff0dSwdenk######################################################################### 1303074cff0dSwdenk## S3C44B0 Systems 1304074cff0dSwdenk######################################################################### 1305074cff0dSwdenk 1306074cff0dSwdenkB2_config : unconfig 1307074cff0dSwdenk @./mkconfig $(@:_config=) arm s3c44b0 B2 dave 1308074cff0dSwdenk 13097ebf7443Swdenk######################################################################### 13107ebf7443Swdenk## ARM720T Systems 13117ebf7443Swdenk######################################################################### 13127ebf7443Swdenk 13137ebf7443Swdenkep7312_config : unconfig 13147ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t ep7312 13157ebf7443Swdenk 13162d24a3a7Swdenkimpa7_config : unconfig 13172d24a3a7Swdenk @./mkconfig $(@:_config=) arm arm720t impa7 13182d24a3a7Swdenk 13192d1a537dSwdenkmodnet50_config : unconfig 13202d1a537dSwdenk @./mkconfig $(@:_config=) arm arm720t modnet50 13212d1a537dSwdenk 132239539887Swdenkevb4510_config : unconfig 132339539887Swdenk @./mkconfig $(@:_config=) arm arm720t evb4510 132439539887Swdenk 13257ebf7443Swdenk######################################################################### 1326d9df1f4eSwdenk## AT91RM9200 Systems 1327d9df1f4eSwdenk######################################################################### 1328d9df1f4eSwdenk 1329d9df1f4eSwdenkat91rm9200dk_config : unconfig 1330d9df1f4eSwdenk @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk 1331d9df1f4eSwdenk 13322cbe571aSwdenkcmc_pu2_config : unconfig 13332cbe571aSwdenk @./mkconfig $(@:_config=) arm at91rm9200 cmc_pu2 13342cbe571aSwdenk 1335d9df1f4eSwdenk######################################################################### 133643d9616cSwdenk## XScale Systems 13377ebf7443Swdenk######################################################################### 13387ebf7443Swdenk 1339fabd46acSwdenkcerf250_config : unconfig 1340fabd46acSwdenk @./mkconfig $(@:_config=) arm pxa cerf250 1341fabd46acSwdenk 13427ebf7443Swdenkcradle_config : unconfig 13434c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa cradle 13447ebf7443Swdenk 13457ebf7443Swdenkcsb226_config : unconfig 13464c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa csb226 13477ebf7443Swdenk 134843d9616cSwdenkinnokom_config : unconfig 13494c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa innokom 135043d9616cSwdenk 13512d5b561eSwdenkixdp425_config : unconfig 13522d5b561eSwdenk @./mkconfig $(@:_config=) arm ixp ixdp425 13532d5b561eSwdenk 135443d9616cSwdenklubbock_config : unconfig 13554c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa lubbock 135643d9616cSwdenk 135752f52c14Swdenklogodl_config : unconfig 135852f52c14Swdenk @./mkconfig $(@:_config=) arm pxa logodl 135952f52c14Swdenk 13603e38691eSwdenkwepep250_config : unconfig 13614c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa wepep250 13623e38691eSwdenk 13634ec3a7f0Swdenkxaeniax_config : unconfig 13644ec3a7f0Swdenk @./mkconfig $(@:_config=) arm pxa xaeniax 13654ec3a7f0Swdenk 1366efa329cbSwdenkxm250_config : unconfig 1367efa329cbSwdenk @./mkconfig $(@:_config=) arm pxa xm250 1368efa329cbSwdenk 1369ca0e7748Swdenkxsengine_config : unconfig 1370ca0e7748Swdenk @./mkconfig $(@:_config=) arm pxa xsengine 1371ca0e7748Swdenk 13722262cfeeSwdenk#======================================================================== 13732262cfeeSwdenk# i386 13742262cfeeSwdenk#======================================================================== 13752262cfeeSwdenk######################################################################### 13762262cfeeSwdenk## AMD SC520 CDP 13772262cfeeSwdenk######################################################################### 13782262cfeeSwdenksc520_cdp_config : unconfig 13792262cfeeSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_cdp 13802262cfeeSwdenk 13817a8e9bedSwdenksc520_spunk_config : unconfig 13827a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 13837a8e9bedSwdenk 13847a8e9bedSwdenksc520_spunk_rel_config : unconfig 13857a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 13867a8e9bedSwdenk 138743d9616cSwdenk#======================================================================== 138843d9616cSwdenk# MIPS 138943d9616cSwdenk#======================================================================== 13907ebf7443Swdenk######################################################################### 139143d9616cSwdenk## MIPS32 4Kc 139243d9616cSwdenk######################################################################### 139343d9616cSwdenk 1394e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 1395e0ac62d7Swdenk 1396e0ac62d7Swdenkincaip_100MHz_config \ 1397e0ac62d7Swdenkincaip_133MHz_config \ 1398e0ac62d7Swdenkincaip_150MHz_config \ 139943d9616cSwdenkincaip_config: unconfig 1400e0ac62d7Swdenk @ >include/config.h 1401e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 1402e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ 1403e0ac62d7Swdenk echo "... with 100MHz system clock" ; \ 1404e0ac62d7Swdenk } 1405e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 1406e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ 1407e0ac62d7Swdenk echo "... with 133MHz system clock" ; \ 1408e0ac62d7Swdenk } 1409e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 1410e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ 1411e0ac62d7Swdenk echo "... with 150MHz system clock" ; \ 1412e0ac62d7Swdenk } 1413e0ac62d7Swdenk @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip 1414e0ac62d7Swdenk 1415f4863a7aSwdenktb0229_config: unconfig 1416f4863a7aSwdenk @./mkconfig $(@:_config=) mips mips tb0229 1417f4863a7aSwdenk 1418e0ac62d7Swdenk######################################################################### 141969459791Swdenk## MIPS32 AU1X00 142069459791Swdenk######################################################################### 142169459791Swdenkdbau1000_config : unconfig 142269459791Swdenk @ >include/config.h 142369459791Swdenk @echo "#define CONFIG_DBAU1000 1" >>include/config.h 142469459791Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 142569459791Swdenk 142669459791Swdenkdbau1100_config : unconfig 142769459791Swdenk @ >include/config.h 142869459791Swdenk @echo "#define CONFIG_DBAU1100 1" >>include/config.h 142969459791Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 143069459791Swdenk 143169459791Swdenkdbau1500_config : unconfig 143269459791Swdenk @ >include/config.h 143369459791Swdenk @echo "#define CONFIG_DBAU1500 1" >>include/config.h 143469459791Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 143569459791Swdenk 143669459791Swdenk######################################################################### 1437e0ac62d7Swdenk## MIPS64 5Kc 1438e0ac62d7Swdenk######################################################################### 143943d9616cSwdenk 14403e38691eSwdenkpurple_config : unconfig 14413e38691eSwdenk @./mkconfig $(@:_config=) mips mips purple 144243d9616cSwdenk 14434a551709Swdenk#======================================================================== 14444a551709Swdenk# Nios 14454a551709Swdenk#======================================================================== 14464a551709Swdenk######################################################################### 14474a551709Swdenk## Nios32 14484a551709Swdenk######################################################################### 14494a551709Swdenk 1450c935d3bdSwdenkDK1C20_safe_32_config \ 1451c935d3bdSwdenkDK1C20_standard_32_config \ 14524a551709SwdenkDK1C20_config: unconfig 1453c935d3bdSwdenk @ >include/config.h 1454c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 1455c935d3bdSwdenk { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1456c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 1457c935d3bdSwdenk } 1458c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 1459c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1460c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 1461c935d3bdSwdenk } 1462c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 1463c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1464c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1465c935d3bdSwdenk } 1466c935d3bdSwdenk @./mkconfig -a DK1C20 nios nios dk1c20 altera 1467c935d3bdSwdenk 1468c935d3bdSwdenkDK1S10_safe_32_config \ 1469c935d3bdSwdenkDK1S10_standard_32_config \ 1470ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 1471c935d3bdSwdenkDK1S10_config: unconfig 1472c935d3bdSwdenk @ >include/config.h 1473c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 1474c935d3bdSwdenk { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1475c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 1476c935d3bdSwdenk } 1477c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 1478c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1479c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 1480c935d3bdSwdenk } 1481ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 1482ec4c544bSwdenk { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \ 1483ec4c544bSwdenk echo "... NIOS 'mtx_ldk_20' configuration" ; \ 1484ec4c544bSwdenk } 1485c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 1486c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1487c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1488c935d3bdSwdenk } 1489c935d3bdSwdenk @./mkconfig -a DK1S10 nios nios dk1s10 altera 14904a551709Swdenk 1491aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 1492aaf224abSwdenkADNPESC1_base_32_config \ 1493aaf224abSwdenkADNPESC1_config: unconfig 1494aaf224abSwdenk @ >include/config.h 1495aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 1496aaf224abSwdenk { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \ 1497aaf224abSwdenk echo "... DNP/EVA2 configuration" ; \ 1498aaf224abSwdenk } 1499aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 1500aaf224abSwdenk { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ 1501aaf224abSwdenk echo "... NIOS 'base_32' configuration" ; \ 1502aaf224abSwdenk } 1503aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 1504aaf224abSwdenk { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ 1505aaf224abSwdenk echo "... NIOS 'base_32' configuration (DEFAULT)" ; \ 1506aaf224abSwdenk } 1507aaf224abSwdenk @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv 1508aaf224abSwdenk 15095c952cf0Swdenk######################################################################### 15105c952cf0Swdenk## Nios-II 15115c952cf0Swdenk######################################################################### 15125c952cf0Swdenk 15135c952cf0SwdenkPK1C20_config : unconfig 15145c952cf0Swdenk @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent 15155c952cf0Swdenk 15165c952cf0SwdenkPCI5441_config : unconfig 15175c952cf0Swdenk @./mkconfig PCI5441 nios2 nios2 pci5441 psyent 15184a551709Swdenk 1519507bbe3eSwdenk#======================================================================== 1520507bbe3eSwdenk# MicroBlaze 1521507bbe3eSwdenk#======================================================================== 1522507bbe3eSwdenk######################################################################### 1523507bbe3eSwdenk## Microblaze 1524507bbe3eSwdenk######################################################################### 1525507bbe3eSwdenksuzaku_config: unconfig 1526507bbe3eSwdenk @ >include/config.h 1527507bbe3eSwdenk @echo "#define CONFIG_SUZAKU 1" >> include/config.h 1528507bbe3eSwdenk @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 1529507bbe3eSwdenk 15303e38691eSwdenk######################################################################### 15313e38691eSwdenk######################################################################### 15327ebf7443Swdenk 15337ebf7443Swdenkclean: 15347ebf7443Swdenk find . -type f \ 15357ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 15367ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 15377ebf7443Swdenk | xargs rm -f 153885ec0bccSwdenk rm -f examples/hello_world examples/timer \ 15393e38691eSwdenk examples/eepro100_eeprom examples/sched \ 15407a8e9bedSwdenk examples/mem_to_mem_idma2intr examples/82559_eeprom 15417ebf7443Swdenk rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr 1542eedcd078Swdenk rm -f tools/mpc86x_clk tools/ncb 15437ebf7443Swdenk rm -f tools/easylogo/easylogo tools/bmp_logo 15447ebf7443Swdenk rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend 1545228f29acSwdenk rm -f tools/env/fw_printenv tools/env/fw_setenv 15467f70e853Swdenk rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image 15477e780369Swdenk rm -f board/trab/trab_fkt 15487ebf7443Swdenk 15497ebf7443Swdenkclobber: clean 15504c0d4c3bSwdenk find . -type f \( -name .depend \ 15514c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 15524c0d4c3bSwdenk -print0 \ 15534c0d4c3bSwdenk | xargs -0 rm -f 15547ebf7443Swdenk rm -f $(OBJS) *.bak tags TAGS 15557ebf7443Swdenk rm -fr *.*~ 1556bdccc4feSwdenk rm -f u-boot u-boot.map $(ALL) 1557228f29acSwdenk rm -f tools/crc32.c tools/environment.c tools/env/crc32.c 15583e38691eSwdenk rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c 1559b783edaeSwdenk rm -f include/asm/proc include/asm/arch include/asm 15607ebf7443Swdenk 15617ebf7443Swdenkmrproper \ 15627ebf7443Swdenkdistclean: clobber unconfig 15637ebf7443Swdenk 15647ebf7443Swdenkbackup: 15657ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 15667ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 15677ebf7443Swdenk 15687ebf7443Swdenk######################################################################### 1569