17ebf7443Swdenk# 263640019SWolfgang Denk# (C) Copyright 2000-2007 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 1045a212c4SWolfgang Denk# published by the Free Software Foundatio; 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 24881a87ecSWolfgang DenkVERSION = 1 25754bac48SWolfgang DenkPATCHLEVEL = 3 268d4f040aSWolfgang DenkSUBLEVEL = 1 2741be969fSWolfgang DenkEXTRAVERSION = 28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h 30881a87ecSWolfgang Denk 317ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 327ebf7443Swdenk sed -e s/i.86/i386/ \ 337ebf7443Swdenk -e s/sun4u/sparc64/ \ 347ebf7443Swdenk -e s/arm.*/arm/ \ 357ebf7443Swdenk -e s/sa110/arm/ \ 367ebf7443Swdenk -e s/powerpc/ppc/ \ 37a2280646SKumar Gala -e s/ppc64/ppc/ \ 387ebf7443Swdenk -e s/macppc/ppc/) 397ebf7443Swdenk 40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 417ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 427ebf7443Swdenk 43f9d77ed3SWolfgang Denkexport HOSTARCH HOSTOS 447ebf7443Swdenk 457ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 467ebf7443SwdenkVENDOR= 477ebf7443Swdenk 487ebf7443Swdenk######################################################################### 49f9328639SMarian Balakowicz# 50f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external 51f9328639SMarian Balakowicz# directory. Two use cases are supported: 52f9328639SMarian Balakowicz# 53f9328639SMarian Balakowicz# 1) Add O= to the make command line 54f9328639SMarian Balakowicz# 'make O=/tmp/build all' 55f9328639SMarian Balakowicz# 56f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location 57f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 58f9328639SMarian Balakowicz# 'make' 59f9328639SMarian Balakowicz# 60f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script 61f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 62f9328639SMarian Balakowicz# './MAKEALL' 63f9328639SMarian Balakowicz# 64f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable. 65f9328639SMarian Balakowicz# 66f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and 67f9328639SMarian Balakowicz# the object files are placed in the source directory. 68f9328639SMarian Balakowicz# 697ebf7443Swdenk 70f9328639SMarian Balakowiczifdef O 71f9328639SMarian Balakowiczifeq ("$(origin O)", "command line") 72f9328639SMarian BalakowiczBUILD_DIR := $(O) 73f9328639SMarian Balakowiczendif 74f9328639SMarian Balakowiczendif 757ebf7443Swdenk 76f9328639SMarian Balakowiczifneq ($(BUILD_DIR),) 77f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR) 784f0645ebSMarian Balakowicz 794f0645ebSMarian Balakowicz# Attempt to create a output directory. 804f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 814f0645ebSMarian Balakowicz 824f0645ebSMarian Balakowicz# Verify if it was successful. 83f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 84f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 85f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),) 86f9328639SMarian Balakowicz 87f9328639SMarian BalakowiczOBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 88f9328639SMarian BalakowiczSRCTREE := $(CURDIR) 89f9328639SMarian BalakowiczTOPDIR := $(SRCTREE) 90f9328639SMarian BalakowiczLNDIR := $(OBJTREE) 91f9328639SMarian Balakowiczexport TOPDIR SRCTREE OBJTREE 92f9328639SMarian Balakowicz 93f9328639SMarian BalakowiczMKCONFIG := $(SRCTREE)/mkconfig 94f9328639SMarian Balakowiczexport MKCONFIG 95f9328639SMarian Balakowicz 96f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 97f9328639SMarian BalakowiczREMOTE_BUILD := 1 98f9328639SMarian Balakowiczexport REMOTE_BUILD 99f9328639SMarian Balakowiczendif 100f9328639SMarian Balakowicz 101f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile 102f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for 103f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc. 104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 105f9328639SMarian Balakowiczobj := $(OBJTREE)/ 106f9328639SMarian Balakowiczsrc := $(SRCTREE)/ 107f9328639SMarian Balakowiczelse 108f9328639SMarian Balakowiczobj := 109f9328639SMarian Balakowiczsrc := 110f9328639SMarian Balakowiczendif 111f9328639SMarian Balakowiczexport obj src 112f9328639SMarian Balakowicz 113f9328639SMarian Balakowicz######################################################################### 114f9328639SMarian Balakowicz 115f9328639SMarian Balakowiczifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk)) 116f9328639SMarian Balakowicz 1177ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 118f9328639SMarian Balakowiczinclude $(OBJTREE)/include/config.mk 1191d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 120f9328639SMarian Balakowicz 1217ebf7443Swdenkifndef CROSS_COMPILE 122a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 1237ebf7443SwdenkCROSS_COMPILE = 1247ebf7443Swdenkelse 1257ebf7443Swdenkifeq ($(ARCH),ppc) 12616c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx- 1277ebf7443Swdenkendif 1287ebf7443Swdenkifeq ($(ARCH),arm) 129dc7c9a1aSwdenkCROSS_COMPILE = arm-linux- 1307ebf7443Swdenkendif 1312262cfeeSwdenkifeq ($(ARCH),i386) 1327a8e9bedSwdenkCROSS_COMPILE = i386-linux- 1337a8e9bedSwdenkendif 13443d9616cSwdenkifeq ($(ARCH),mips) 13543d9616cSwdenkCROSS_COMPILE = mips_4KC- 13643d9616cSwdenkendif 1374a551709Swdenkifeq ($(ARCH),nios) 1384a551709SwdenkCROSS_COMPILE = nios-elf- 1394a551709Swdenkendif 1405c952cf0Swdenkifeq ($(ARCH),nios2) 1415c952cf0SwdenkCROSS_COMPILE = nios2-elf- 1425c952cf0Swdenkendif 1434e5ca3ebSwdenkifeq ($(ARCH),m68k) 1444e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 1454e5ca3ebSwdenkendif 146507bbe3eSwdenkifeq ($(ARCH),microblaze) 147507bbe3eSwdenkCROSS_COMPILE = mb- 148507bbe3eSwdenkendif 1490afe519aSWolfgang Denkifeq ($(ARCH),blackfin) 150ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux- 1510afe519aSWolfgang Denkendif 1527b64fef3SWolfgang Denkifeq ($(ARCH),avr32) 1535374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux- 1547b64fef3SWolfgang Denkendif 1550b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh) 1560b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux- 1570b135cfcSNobuhiro Iwamatsuendif 1587ebf7443Swdenkendif 1597ebf7443Swdenkendif 1607ebf7443Swdenk 1617ebf7443Swdenkexport CROSS_COMPILE 1627ebf7443Swdenk 16392b197f0SWolfgang Denk# load other configuration 16492b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 16592b197f0SWolfgang Denk 1667ebf7443Swdenk######################################################################### 1677ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1687ebf7443Swdenk 1697ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 1702262cfeeSwdenkifeq ($(CPU),i386) 1712262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 1722262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 1732262cfeeSwdenkendif 1747ebf7443Swdenkifeq ($(CPU),ppc4xx) 1757ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 1767ebf7443Swdenkendif 17742d1f039Swdenkifeq ($(CPU),mpc85xx) 17842d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 17942d1f039Swdenkendif 1800afe519aSWolfgang Denkifeq ($(CPU),bf533) 1810afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 182ef26a08fSAubrey.LiOBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 1830afe519aSWolfgang Denkendif 18426bf7decSAubrey Liifeq ($(CPU),bf537) 18526bf7decSAubrey LiOBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 18626bf7decSAubrey LiOBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 18726bf7decSAubrey Liendif 18865458987SAubrey Liifeq ($(CPU),bf561) 18965458987SAubrey LiOBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 19065458987SAubrey LiOBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 1917ebf7443Swdenkendif 1927ebf7443Swdenk 193f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 194f9328639SMarian Balakowicz 1959fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 1967608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 1977608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 1989fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 1997ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 2001d9f4105Swdenkifdef SOC 2011d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 2021d9f4105Swdenkendif 203323bfa8fSStefan Roeseifeq ($(CPU),ixp) 204323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a 205323bfa8fSStefan Roeseendif 2067ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 207518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 208c419d1d6Sstroese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 2097ebf7443SwdenkLIBS += net/libnet.a 2107ebf7443SwdenkLIBS += disk/libdisk.a 2110f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 21233daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 213f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 214080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 21516b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 216318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 21759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 21859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 21959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a 22059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 2218e585f02STsiChung LiewLIBS += drivers/net/libnet.a 2222439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a 22393a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 22473646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 2257737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2267737d5c6SDave LiuLIBS += drivers/qe/qe.a 2277737d5c6SDave Liuendif 228da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 229da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 230da9d4610SAndy Flemingendif 23159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2328e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 23359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a 23459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 235ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a 236ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \ 237ad5bb451SWolfgang Denk "post/lib_$(ARCH)/libpost$(ARCH).a"; fi) 238b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \ 239b4489621SSergei Poselenov "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi) 240ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \ 241ad5bb451SWolfgang Denk "post/cpu/$(CPU)/libpost$(CPU).a"; fi) 242ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ 243ad5bb451SWolfgang Denk "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) 2447ebf7443SwdenkLIBS += common/libcommon.a 2457651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 246f9328639SMarian Balakowicz 247f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 2489fd5e31fSwdenk.PHONY : $(LIBS) 249a8c7c708Swdenk 2504f7cb08eSwdenk# Add GCC lib 2511a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 2523d3befa7Swdenk 253a8c7c708Swdenk# The "tools" are needed early, so put this first 254a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 255a8c7c708SwdenkSUBDIRS = tools \ 256ad5bb451SWolfgang Denk examples 257ad5bb451SWolfgang Denk 258b028f715Swdenk.PHONY : $(SUBDIRS) 259a8c7c708Swdenk 260887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 261887e2ec9SStefan RoeseNAND_SPL = nand_spl 262887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 263887e2ec9SStefan Roeseendif 264887e2ec9SStefan Roese 265f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 266f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS)) 267f9328639SMarian Balakowicz 2687ebf7443Swdenk######################################################################### 269bdccc4feSwdenk######################################################################### 2707ebf7443Swdenk 271566a494fSHeiko SchocherALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) 2727ebf7443Swdenk 273bdccc4feSwdenkall: $(ALL) 2747ebf7443Swdenk 275f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2766310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2776310eb9dSwdenk 278f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 2797ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 2807ebf7443Swdenk 281f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 2827ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 2837ebf7443Swdenk 284f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 285bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 286bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 287881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 288bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 289bdccc4feSwdenk -d $< $@ 290bdccc4feSwdenk 291566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 29201159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 293566a494fSHeiko Schocher 294f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 2957ebf7443Swdenk $(OBJDUMP) -d $< > $@ 2967ebf7443Swdenk 297f9328639SMarian Balakowicz$(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 2988bde7f77Swdenk UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 299f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 300f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 301b2184c31Swdenk -Map u-boot.map -o u-boot 3027ebf7443Swdenk 303f9328639SMarian Balakowicz$(OBJS): 304f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 305f9328639SMarian Balakowicz 306a8c7c708Swdenk$(LIBS): 307f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 308a8c7c708Swdenk 309a8c7c708Swdenk$(SUBDIRS): 310b028f715Swdenk $(MAKE) -C $@ all 3117ebf7443Swdenk 312887e2ec9SStefan Roese$(NAND_SPL): version 3138318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 314887e2ec9SStefan Roese 315887e2ec9SStefan Roese$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 3168318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 317887e2ec9SStefan Roese 318881a87ecSWolfgang Denkversion: 319881a87ecSWolfgang Denk @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \ 320881a87ecSWolfgang Denk echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \ 321881a87ecSWolfgang Denk echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ 322881a87ecSWolfgang Denk $(TOPDIR)) >> $(VERSION_FILE); \ 323881a87ecSWolfgang Denk echo "\"" >> $(VERSION_FILE) 324881a87ecSWolfgang Denk 3258f713fdfSdzugdbtools: 326f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 327f9328639SMarian Balakowicz 328f9328639SMarian Balakowiczupdater: 329f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 330f9328639SMarian Balakowicz 331f9328639SMarian Balakowiczenv: 332f9328639SMarian Balakowicz $(MAKE) -C tools/env all || exit 1 3338f713fdfSdzu 334f8d3ca7bSWolfgang Denkdepend dep: version 335f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 3367ebf7443Swdenk 337a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 338a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR) 339a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU) 340a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH) 341a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs 342a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat 343a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos 344a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2 345a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net 346a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk 347a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common 348a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator 349a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block 350a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon 351a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c 352a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input 353a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc 354a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd 355a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand 356a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy 357a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand 358a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net 359a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin 360a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci 361a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia 362a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe 363a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc 364a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial 365a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb 366a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video 367a340c325SJean-Christophe PLAGNIOL-VILLARD 368f9328639SMarian Balakowicztags ctags: 369a340c325SJean-Christophe PLAGNIOL-VILLARD ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 37088fed9a1SWolfgang Denk -name '*.[ch]' -print` 3717ebf7443Swdenk 3727ebf7443Swdenketags: 373a340c325SJean-Christophe PLAGNIOL-VILLARD etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 37488fed9a1SWolfgang Denk -name '*.[ch]' -print` 3757ebf7443Swdenk 376f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 3777ebf7443Swdenk @$(NM) $< | \ 3787ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 379f9328639SMarian Balakowicz sort > $(obj)System.map 3807ebf7443Swdenk 3812f155f6cSGrant Likely# 3822f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 3832f155f6cSGrant Likely# 3842f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 3852f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 3862f155f6cSGrant Likely# to regenerate the autoconf.mk file. 3872f155f6cSGrant Likely$(OBJTREE)/include/autoconf.mk: $(obj)include/config.h 3882f155f6cSGrant Likely @echo Generating include/autoconf.mk 3892f155f6cSGrant Likely @# Generate the dependancies 3902f155f6cSGrant Likely @$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep 3912f155f6cSGrant Likely @# Extract the config macros 3922f155f6cSGrant Likely @$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed >> $@ 3932f155f6cSGrant Likely 3942f155f6cSGrant Likelysinclude $(OBJTREE)/include/autoconf.mk.dep 3952f155f6cSGrant Likely 3967ebf7443Swdenk######################################################################### 3977ebf7443Swdenkelse 398f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 399f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 400f9328639SMarian Balakowicz$(SUBDIRS) version gdbtools updater env depend \ 401f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map: 4027ebf7443Swdenk @echo "System not configured - see README" >&2 4037ebf7443Swdenk @ exit 1 4047ebf7443Swdenkendif 4057ebf7443Swdenk 4064e53a258SWolfgang Denk.PHONY : CHANGELOG 4074e53a258SWolfgang DenkCHANGELOG: 408b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 409b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4104e53a258SWolfgang Denk 4117ebf7443Swdenk######################################################################### 4127ebf7443Swdenk 4137ebf7443Swdenkunconfig: 414887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4152f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4162f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4177ebf7443Swdenk 4187ebf7443Swdenk#======================================================================== 4197ebf7443Swdenk# PowerPC 4207ebf7443Swdenk#======================================================================== 4210db5bca8Swdenk 4220db5bca8Swdenk######################################################################### 4230db5bca8Swdenk## MPC5xx Systems 4240db5bca8Swdenk######################################################################### 4250db5bca8Swdenk 4265e5f9ed2Swdenkcanmb_config: unconfig 427f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 4285e5f9ed2Swdenk 4290db5bca8Swdenkcmi_mpc5xx_config: unconfig 430f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 4310db5bca8Swdenk 432b6e4c403SwdenkPATI_config: unconfig 433f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 434b6e4c403Swdenk 4357ebf7443Swdenk######################################################################### 436945af8d7Swdenk## MPC5xxx Systems 437945af8d7Swdenk######################################################################### 438a87589daSwdenk 439dafba16eSWolfgang Denkaev_config: unconfig 440f9328639SMarian Balakowicz @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 441dafba16eSWolfgang Denk 4426ca24c64Sdzu@denx.deBC3450_config: unconfig 443f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 4446ca24c64Sdzu@denx.de 4455e4b3361SStefan Roesecpci5200_config: unconfig 446f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 4475e4b3361SStefan Roese 448a87589daSwdenkhmi1001_config: unconfig 449f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 450a87589daSwdenk 451e35745bbSwdenkLite5200_config \ 452e35745bbSwdenkLite5200_LOWBOOT_config \ 453e35745bbSwdenkLite5200_LOWBOOT08_config \ 454e35745bbSwdenkicecube_5200_config \ 455e35745bbSwdenkicecube_5200_LOWBOOT_config \ 456e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 457b2001f27Swdenkicecube_5200_DDR_config \ 45879d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 45979d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 460e35745bbSwdenkicecube_5100_config: unconfig 461f9328639SMarian Balakowicz @mkdir -p $(obj)include 462f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 463f9328639SMarian Balakowicz @ >$(obj)include/config.h 46417d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 46517d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 466f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 467f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 46817d704ebSwdenk fi ; \ 4695cf9da48Swdenk echo "... with LOWBOOT configuration" ; \ 4705cf9da48Swdenk } 4715cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 472f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 4735cf9da48Swdenk echo "... with 8 MB flash only" ; \ 47417d704ebSwdenk echo "... with LOWBOOT configuration" ; \ 4755cf9da48Swdenk } 476b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 477f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 478b2001f27Swdenk echo "... DDR memory revision" ; \ 479b2001f27Swdenk } 480d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 481f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 482d4ca31c4Swdenk echo "... with MPC5200 processor" ; \ 483d4ca31c4Swdenk } 484a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 485f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 486945af8d7Swdenk echo "... with MGT5100 processor" ; \ 487945af8d7Swdenk } 488f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 489945af8d7Swdenk 4902605e90bSHeiko Schocherjupiter_config: unconfig 4912605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 4922605e90bSHeiko Schocher 4934707fb50SBartlomiej Siekav38b_config: unconfig 49490b1b2d6SGrant Likely @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 4954707fb50SBartlomiej Sieka 496138ff60cSwdenkinka4x0_config: unconfig 497f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 498138ff60cSwdenk 49909e4b0c5SWolfgang Denklite5200b_config \ 500d3832e8fSDomen Puncerlite5200b_PM_config \ 50109e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 502f9328639SMarian Balakowicz @mkdir -p $(obj)include 503f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 504f9328639SMarian Balakowicz @ >$(obj)include/config.h 505f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 50609e4b0c5SWolfgang Denk @ echo "... DDR memory revision" 507f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 508f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 509d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 510d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 511d3832e8fSDomen Puncer echo "... with power management (low-power mode) support" ; \ 512d3832e8fSDomen Puncer } 51309e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 514f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 51509e4b0c5SWolfgang Denk echo "... with LOWBOOT configuration" ; \ 51609e4b0c5SWolfgang Denk } 51709e4b0c5SWolfgang Denk @ echo "... with MPC5200B processor" 518f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 51909e4b0c5SWolfgang Denk 520f1ee9825SStefan Roesemcc200_config \ 521ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 522ed1cf845SWolfgang Denkmcc200_highboot_config \ 523ed1cf845SWolfgang Denkmcc200_COM12_config \ 524ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 525113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 526113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 527ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 528ed1cf845SWolfgang Denkprs200_config \ 529ed1cf845SWolfgang Denkprs200_DDR_config \ 530ed1cf845SWolfgang Denkprs200_highboot_config \ 531ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 532f9328639SMarian Balakowicz @mkdir -p $(obj)include 533f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 534f9328639SMarian Balakowicz @ >$(obj)include/config.h 5354819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 5364819fad9SWolfgang Denk { echo "... with lowboot configuration" ; \ 537f1ee9825SStefan Roese } 5384819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 539f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 5404819fad9SWolfgang Denk echo "... with highboot configuration" ; \ 5414819fad9SWolfgang Denk } 5424819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 543ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 544ed1cf845SWolfgang Denk then \ 545ed1cf845SWolfgang Denk echo "... with DDR" ; \ 546ed1cf845SWolfgang Denk else \ 547ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 548ed1cf845SWolfgang Denk then \ 549ed1cf845SWolfgang Denk echo "... with DDR" ; \ 550ed1cf845SWolfgang Denk else \ 551f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 552ed1cf845SWolfgang Denk echo "... with SDRAM" ; \ 553ed1cf845SWolfgang Denk fi; \ 554ed1cf845SWolfgang Denk fi; \ 5554819fad9SWolfgang Denk } 5564819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 557f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 5584819fad9SWolfgang Denk echo "... with SDRAM" ; \ 5594819fad9SWolfgang Denk } 560463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 561f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 562463764c8SWolfgang Denk echo "... with console on COM12" ; \ 563463764c8SWolfgang Denk } 564ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 565f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 566ed1cf845SWolfgang Denk } 567f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 56886ea5f93SWolfgang Denk 5698b7d1f0aSStefan Roesemecp5200_config: unconfig 5708b7d1f0aSStefan Roese @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd 5718b7d1f0aSStefan Roese 572df04a3dfSWolfgang Denko2dnt_config: 573f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 574df04a3dfSWolfgang Denk 5755e4b3361SStefan Roesepf5200_config: unconfig 576f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 5775e4b3361SStefan Roese 57889394047SwdenkPM520_config \ 57989394047SwdenkPM520_DDR_config \ 58089394047SwdenkPM520_ROMBOOT_config \ 58189394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 582f9328639SMarian Balakowicz @mkdir -p $(obj)include 583f9328639SMarian Balakowicz @ >$(obj)include/config.h 58489394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 585f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 58689394047Swdenk echo "... DDR memory revision" ; \ 58789394047Swdenk } 58889394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 589f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 59089394047Swdenk echo "... booting from 8-bit flash" ; \ 59189394047Swdenk } 592f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 59389394047Swdenk 5946624b687SWolfgang Denksmmaco4_config: unconfig 595f9328639SMarian Balakowicz @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 5969cdc8386SWolfgang Denk 59786b116b1SBartlomiej Siekacm5200_config: unconfig 59886b116b1SBartlomiej Sieka @./mkconfig -a cm5200 ppc mpc5xxx cm5200 599fa1df308SBartlomiej Sieka 6009cdc8386SWolfgang Denkspieval_config: unconfig 601f9328639SMarian Balakowicz @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 6029cdc8386SWolfgang Denk 60345a212c4SWolfgang DenkTB5200_B_config \ 604b87dfd28SWolfgang DenkTB5200_config: unconfig 605f9328639SMarian Balakowicz @mkdir -p $(obj)include 60645a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 607f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 60845a212c4SWolfgang Denk echo "... with MPC5200B processor" ; \ 60945a212c4SWolfgang Denk } 610f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 611b87dfd28SWolfgang Denk 612d4ca31c4SwdenkMINI5200_config \ 613d4ca31c4SwdenkEVAL5200_config \ 614d4ca31c4SwdenkTOP5200_config: unconfig 615f9328639SMarian Balakowicz @mkdir -p $(obj)include 616f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 617f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 618d4ca31c4Swdenk 6196c7a1408SwdenkTotal5100_config \ 6206c7a1408SwdenkTotal5200_config \ 6216c7a1408SwdenkTotal5200_lowboot_config \ 6226c7a1408SwdenkTotal5200_Rev2_config \ 6236c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 624f9328639SMarian Balakowicz @mkdir -p $(obj)include 625f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 626f9328639SMarian Balakowicz @ >$(obj)include/config.h 6276c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 628f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 6296c7a1408Swdenk echo "... with MGT5100 processor" ; \ 6306c7a1408Swdenk } 6316c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 632f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 6336c7a1408Swdenk echo "... with MPC5200 processor" ; \ 6346c7a1408Swdenk } 6356c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 636f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 6376c7a1408Swdenk echo "... revision 1 board" ; \ 6386c7a1408Swdenk } 6396c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 640f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 6416c7a1408Swdenk echo "... revision 2 board" ; \ 6426c7a1408Swdenk } 6436c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 644f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 6456c7a1408Swdenk echo "... with lowboot configuration" ; \ 6466c7a1408Swdenk } 647f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 6486c7a1408Swdenk 6495196a7a0SWolfgang Denkcam5200_config \ 650d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6515196a7a0SWolfgang Denkfo300_config \ 6525196a7a0SWolfgang DenkMiniFAP_config \ 6535078cce8SWolfgang DenkTQM5200S_config \ 6545078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6555196a7a0SWolfgang DenkTQM5200_B_config \ 6565196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 6575196a7a0SWolfgang DenkTQM5200_config \ 6585196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 659f9328639SMarian Balakowicz @mkdir -p $(obj)include 660f9328639SMarian Balakowicz @mkdir -p $(obj)board/tqm5200 661f9328639SMarian Balakowicz @ >$(obj)include/config.h 662135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 663f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 664f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 665f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 666135ae006SWolfgang Denk echo "... TQM5200S on Cam5200" ; \ 6675078cce8SWolfgang Denk } 668d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 669d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 670d9384de2SMarian Balakowicz echo "... with NIOS flash driver" ; \ 671d9384de2SMarian Balakowicz } 6726d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 673f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 6746d3bc9b8SMarian Balakowicz echo "... TQM5200 on FO300" ; \ 6756d3bc9b8SMarian Balakowicz } 676cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 677f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 67845a212c4SWolfgang Denk echo "... TQM5200_AC on MiniFAP" ; \ 679978b1096SWolfgang Denk } 680cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 681f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 682cd65a3dcSWolfgang Denk echo "... on a STK52XX.100 base board" ; \ 68356523f12Swdenk } 6845078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 685f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 6865078cce8SWolfgang Denk } 6875078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 688f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 689f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 69045a212c4SWolfgang Denk } 691978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 692f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 693978b1096SWolfgang Denk } 694f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 6956dedf3d4SHeiko Schocheruc101_config: unconfig 6966dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 69753d4a498SBartlomiej Siekamotionpro_config: unconfig 69853d4a498SBartlomiej Sieka @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 69953d4a498SBartlomiej Sieka 70056523f12Swdenk 701945af8d7Swdenk######################################################################### 7028993e54bSRafal Jaworowski## MPC512x Systems 7038993e54bSRafal Jaworowski######################################################################### 7048993e54bSRafal Jaworowskiads5121_config: unconfig 7058993e54bSRafal Jaworowski @$(MKCONFIG) ads5121 ppc mpc512x ads5121 7068993e54bSRafal Jaworowski 7078993e54bSRafal Jaworowski 7088993e54bSRafal Jaworowski######################################################################### 7097ebf7443Swdenk## MPC8xx Systems 7107ebf7443Swdenk######################################################################### 7117ebf7443Swdenk 7122d24a3a7SwdenkAdder_config \ 7132d24a3a7SwdenkAdder87x_config \ 71426238132SwdenkAdderII_config \ 7152d24a3a7Swdenk : unconfig 716f9328639SMarian Balakowicz @mkdir -p $(obj)include 71726238132Swdenk $(if $(findstring AdderII,$@), \ 718f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 719f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 7202d24a3a7Swdenk 72116c8d5e7SWolfgang DenkAdderUSB_config: unconfig 72216c8d5e7SWolfgang Denk @./mkconfig -a AdderUSB ppc mpc8xx adder 72316c8d5e7SWolfgang Denk 724180d3f74SwdenkADS860_config \ 725180d3f74SwdenkFADS823_config \ 726180d3f74SwdenkFADS850SAR_config \ 727180d3f74SwdenkMPC86xADS_config \ 7281114257cSwdenkMPC885ADS_config \ 729180d3f74SwdenkFADS860T_config: unconfig 730f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 7317ebf7443Swdenk 7327ebf7443SwdenkAMX860_config : unconfig 733f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 7347ebf7443Swdenk 7357ebf7443Swdenkc2mon_config: unconfig 736f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 7377ebf7443Swdenk 7387ebf7443SwdenkCCM_config: unconfig 739f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 7407ebf7443Swdenk 7417ebf7443Swdenkcogent_mpc8xx_config: unconfig 742f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 7437ebf7443Swdenk 7443bac3513SwdenkELPT860_config: unconfig 745f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 7463bac3513Swdenk 74784c960ceSWolfgang DenkEP88x_config: unconfig 748f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 74984c960ceSWolfgang Denk 7507ebf7443SwdenkESTEEM192E_config: unconfig 751f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 7527ebf7443Swdenk 7537ebf7443SwdenkETX094_config : unconfig 754f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 7557ebf7443Swdenk 7567ebf7443SwdenkFLAGADM_config: unconfig 757f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 7587ebf7443Swdenk 7597aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 7607aa78614Swdenk 7617aa78614SwdenkGEN860T_SC_config \ 7627ebf7443SwdenkGEN860T_config: unconfig 763f9328639SMarian Balakowicz @mkdir -p $(obj)include 764f9328639SMarian Balakowicz @ >$(obj)include/config.h 7657aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 766f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 7677aa78614Swdenk echo "With reduced H/W feature set (SC)..." ; \ 7687aa78614Swdenk } 769f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 7707ebf7443Swdenk 7717ebf7443SwdenkGENIETV_config: unconfig 772f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 7737ebf7443Swdenk 7747ebf7443SwdenkGTH_config: unconfig 775f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 7767ebf7443Swdenk 7777ebf7443Swdenkhermes_config : unconfig 778f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 7797ebf7443Swdenk 780c40b2956SwdenkHMI10_config : unconfig 781f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 782c40b2956Swdenk 7837ebf7443SwdenkIAD210_config: unconfig 784f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 7857ebf7443Swdenk 7867ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 7877ebf7443Swdenk 7887ebf7443SwdenkICU862_100MHz_config \ 7897ebf7443SwdenkICU862_config: unconfig 790f9328639SMarian Balakowicz @mkdir -p $(obj)include 791f9328639SMarian Balakowicz @ >$(obj)include/config.h 7927ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 793f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 7947ebf7443Swdenk echo "... with 100MHz system clock" ; \ 7957ebf7443Swdenk } 796f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 7977ebf7443Swdenk 7987ebf7443SwdenkIP860_config : unconfig 799f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 8007ebf7443Swdenk 8017ebf7443SwdenkIVML24_256_config \ 8027ebf7443SwdenkIVML24_128_config \ 8037ebf7443SwdenkIVML24_config: unconfig 804f9328639SMarian Balakowicz @mkdir -p $(obj)include 805f9328639SMarian Balakowicz @ >$(obj)include/config.h 8067ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 807f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 8087ebf7443Swdenk } 8097ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 810f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 8117ebf7443Swdenk } 8127ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 813f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 8147ebf7443Swdenk } 815f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 8167ebf7443Swdenk 8177ebf7443SwdenkIVMS8_256_config \ 8187ebf7443SwdenkIVMS8_128_config \ 8197ebf7443SwdenkIVMS8_config: unconfig 820f9328639SMarian Balakowicz @mkdir -p $(obj)include 821f9328639SMarian Balakowicz @ >$(obj)include/config.h 8227ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 823f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 8247ebf7443Swdenk } 8257ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 826f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 8277ebf7443Swdenk } 8287ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 829f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 8307ebf7443Swdenk } 831f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 8327ebf7443Swdenk 83356f94be3SwdenkKUP4K_config : unconfig 834f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 8350608e04dSwdenk 8360608e04dSwdenkKUP4X_config : unconfig 837f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 83856f94be3Swdenk 8397ebf7443SwdenkLANTEC_config : unconfig 840f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 8417ebf7443Swdenk 8427ebf7443Swdenklwmon_config: unconfig 843f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 8447ebf7443Swdenk 8457ebf7443SwdenkMBX_config \ 8467ebf7443SwdenkMBX860T_config: unconfig 847f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 8487ebf7443Swdenk 8497ebf7443SwdenkMHPC_config: unconfig 850f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 8517ebf7443Swdenk 8527ebf7443SwdenkMVS1_config : unconfig 853f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 8547ebf7443Swdenk 855993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 856993cad93Swdenk 857993cad93SwdenkNETVIA_V2_config \ 8587ebf7443SwdenkNETVIA_config: unconfig 859f9328639SMarian Balakowicz @mkdir -p $(obj)include 860f9328639SMarian Balakowicz @ >$(obj)include/config.h 861993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 862f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 863993cad93Swdenk echo "... Version 1" ; \ 864993cad93Swdenk } 865993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 866f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 867993cad93Swdenk echo "... Version 2" ; \ 868993cad93Swdenk } 869f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 8707ebf7443Swdenk 871c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 872c26e454dSwdenk 873c26e454dSwdenkNETPHONE_V2_config \ 87404a85b3bSwdenkNETPHONE_config: unconfig 875f9328639SMarian Balakowicz @mkdir -p $(obj)include 876f9328639SMarian Balakowicz @ >$(obj)include/config.h 877c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 878f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 879c26e454dSwdenk } 880c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 881f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 882c26e454dSwdenk } 883f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 88404a85b3bSwdenk 88579fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 88604a85b3bSwdenk 88779fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 88879fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 88979fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 89079fa88f3SwdenkNETTA_SWAPHOOK_config \ 89179fa88f3SwdenkNETTA_ISDN_6412_config \ 89204a85b3bSwdenkNETTA_ISDN_config \ 89379fa88f3SwdenkNETTA_6412_config \ 89404a85b3bSwdenkNETTA_config: unconfig 895f9328639SMarian Balakowicz @mkdir -p $(obj)include 896f9328639SMarian Balakowicz @ >$(obj)include/config.h 89779fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 898f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 89904a85b3bSwdenk } 90079fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 901f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 90279fa88f3Swdenk } 90379fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 904f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 90579fa88f3Swdenk } 90679fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 907f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 90879fa88f3Swdenk } 90979fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 910f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 91179fa88f3Swdenk } 91279fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 913f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 91479fa88f3Swdenk } 915f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 91604a85b3bSwdenk 91779fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 91879fa88f3Swdenk 91979fa88f3SwdenkNETTA2_V2_config \ 92079fa88f3SwdenkNETTA2_config: unconfig 921f9328639SMarian Balakowicz @mkdir -p $(obj)include 922f9328639SMarian Balakowicz @ >$(obj)include/config.h 92379fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 924f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 92579fa88f3Swdenk } 92679fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 927f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 92879fa88f3Swdenk } 929f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 93079fa88f3Swdenk 931a367d426Sdzu@denx.deNC650_Rev1_config \ 932a367d426Sdzu@denx.deNC650_Rev2_config \ 933a367d426Sdzu@denx.deCP850_config: unconfig 934f9328639SMarian Balakowicz @mkdir -p $(obj)include 935f9328639SMarian Balakowicz @ >$(obj)include/config.h 936a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 937f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 938f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 939a367d426Sdzu@denx.de } 940a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 941f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 942a367d426Sdzu@denx.de } 943a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 944f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 945a367d426Sdzu@denx.de } 946f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 9477ca202f5Swdenk 9487ebf7443SwdenkNX823_config: unconfig 949f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 9507ebf7443Swdenk 9517ebf7443Swdenkpcu_e_config: unconfig 952f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 9537ebf7443Swdenk 9543bbc899fSwdenkQS850_config: unconfig 955f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9563bbc899fSwdenk 9573bbc899fSwdenkQS823_config: unconfig 958f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9593bbc899fSwdenk 9603bbc899fSwdenkQS860T_config: unconfig 961f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 9623bbc899fSwdenk 963da93ed81Swdenkquantum_config: unconfig 964f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 965da93ed81Swdenk 9667ebf7443SwdenkR360MPI_config: unconfig 967f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 9687ebf7443Swdenk 969682011ffSwdenkRBC823_config: unconfig 970f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 971682011ffSwdenk 9727ebf7443SwdenkRPXClassic_config: unconfig 973f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 9747ebf7443Swdenk 9757ebf7443SwdenkRPXlite_config: unconfig 976f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 9777ebf7443Swdenk 978e63c8ee3SwdenkRPXlite_DW_64_config \ 979e63c8ee3SwdenkRPXlite_DW_LCD_config \ 980e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 981e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 982e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 983e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 984e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 985e63c8ee3SwdenkRPXlite_DW_config: unconfig 986f9328639SMarian Balakowicz @mkdir -p $(obj)include 987f9328639SMarian Balakowicz @ >$(obj)include/config.h 988e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 989f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 990e63c8ee3Swdenk echo "... with 64MHz system clock ..."; \ 991e63c8ee3Swdenk } 992e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 993f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 994f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 995e63c8ee3Swdenk echo "... with LCD display ..."; \ 996e63c8ee3Swdenk } 997e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 998f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 999e63c8ee3Swdenk echo "... with ENV in NVRAM ..."; \ 1000e63c8ee3Swdenk } 1001f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1002e63c8ee3Swdenk 100373a8b27cSwdenkrmu_config: unconfig 1004f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 100573a8b27cSwdenk 10067ebf7443SwdenkRRvision_config: unconfig 1007f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 10087ebf7443Swdenk 10097ebf7443SwdenkRRvision_LCD_config: unconfig 1010f9328639SMarian Balakowicz @mkdir -p $(obj)include 1011f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1012f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1013f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 10147ebf7443Swdenk 10157ebf7443SwdenkSM850_config : unconfig 1016f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 10177ebf7443Swdenk 1018b02d0177SMarkus Klotzbuecherspc1920_config: 1019f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1020b02d0177SMarkus Klotzbuecher 10217ebf7443SwdenkSPD823TS_config: unconfig 1022f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 10237ebf7443Swdenk 10246bdf4306SWolfgang Denkstxxtc_config: unconfig 1025f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 10266bdf4306SWolfgang Denk 1027dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1028f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1029dc7c9a1aSwdenk 10307ebf7443SwdenkSXNI855T_config: unconfig 1031f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 10327ebf7443Swdenk 1033db2f721fSwdenk# EMK MPC8xx based modules 1034db2f721fSwdenkTOP860_config: unconfig 1035f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1036db2f721fSwdenk 10377ebf7443Swdenk# Play some tricks for configuration selection 1038e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1039e9132ea9Swdenk# and only 823 boards may have LCD support 1040e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 10417ebf7443Swdenk 10427ebf7443SwdenkFPS850L_config \ 1043384ae025SwdenkFPS860L_config \ 1044f12e568cSwdenkNSCU_config \ 10457ebf7443SwdenkTQM823L_config \ 10467ebf7443SwdenkTQM823L_LCD_config \ 10477ebf7443SwdenkTQM850L_config \ 10487ebf7443SwdenkTQM855L_config \ 10497ebf7443SwdenkTQM860L_config \ 1050d126bfbdSwdenkTQM862L_config \ 1051ae3af05eSwdenkTQM823M_config \ 1052ae3af05eSwdenkTQM850M_config \ 1053f12e568cSwdenkTQM855M_config \ 1054f12e568cSwdenkTQM860M_config \ 1055f12e568cSwdenkTQM862M_config \ 10568cba090cSWolfgang DenkTQM866M_config \ 1057090eb735SMarkus KlotzbuecherTQM885D_config \ 10588cba090cSWolfgang Denkvirtlab2_config: unconfig 1059f9328639SMarian Balakowicz @mkdir -p $(obj)include 1060f9328639SMarian Balakowicz @ >$(obj)include/config.h 10617ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1062f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1063f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 10647ebf7443Swdenk echo "... with LCD display" ; \ 10657ebf7443Swdenk } 1066f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 10677ebf7443Swdenk 10687ebf7443SwdenkTTTech_config: unconfig 1069f9328639SMarian Balakowicz @mkdir -p $(obj)include 1070f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1071f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1072f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 10737ebf7443Swdenk 1074ec0aee7bSwdenkuc100_config : unconfig 1075f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1076f7d1572bSwdenk 1077608c9146Swdenkv37_config: unconfig 1078f9328639SMarian Balakowicz @mkdir -p $(obj)include 1079f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1080f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1081f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1082608c9146Swdenk 108391e940d9Sdzuwtk_config: unconfig 1084f9328639SMarian Balakowicz @mkdir -p $(obj)include 1085f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1086f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1087f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 108891e940d9Sdzu 10897ebf7443Swdenk######################################################################### 10907ebf7443Swdenk## PPC4xx Systems 10917ebf7443Swdenk######################################################################### 1092e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 10937ebf7443Swdenk 109416c0cc1cSStefan Roeseacadia_config: unconfig 109516c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 109616c0cc1cSStefan Roese 1097c440bfe6SStefan Roeseacadia_nand_config: unconfig 109863e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 109963e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1100c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1101c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1102c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1103c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1104c440bfe6SStefan Roese 11057ebf7443SwdenkADCIOP_config: unconfig 1106f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 11077ebf7443Swdenk 1108899620c2SStefan Roesealpr_config: unconfig 110935d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1110899620c2SStefan Roese 11117521af1cSWolfgang DenkAP1000_config:unconfig 1112f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 11137521af1cSWolfgang Denk 1114c419d1d6SstroeseAPC405_config: unconfig 1115f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1116c419d1d6Sstroese 11177ebf7443SwdenkAR405_config: unconfig 1118f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 11197ebf7443Swdenk 1120549826eaSstroeseASH405_config: unconfig 1121f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1122549826eaSstroese 11238a316c9bSStefan Roesebamboo_config: unconfig 1124f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 11258a316c9bSStefan Roese 1126cf959c7dSStefan Roesebamboo_nand_config: unconfig 112763e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 112863e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1129cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1130f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1131cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1132cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1133cf959c7dSStefan Roese 11348a316c9bSStefan Roesebubinga_config: unconfig 1135f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1136549826eaSstroese 11377ebf7443SwdenkCANBT_config: unconfig 1138f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 11397ebf7443Swdenk 11401d6f9720SwdenkCATcenter_config \ 11411d6f9720SwdenkCATcenter_25_config \ 11421d6f9720SwdenkCATcenter_33_config: unconfig 1143f9328639SMarian Balakowicz @mkdir -p $(obj)include 1144f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1145f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 11461d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1147f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 11481d6f9720Swdenk echo "SysClk = 25MHz" ; \ 11491d6f9720Swdenk } 11501d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1151f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 11521d6f9720Swdenk echo "SysClk = 33MHz" ; \ 11531d6f9720Swdenk } 1154f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 115510767ccbSwdenk 11567644f16fSStefan RoeseCPCI2DP_config: unconfig 1157f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 11587644f16fSStefan Roese 11597ebf7443SwdenkCPCI405_config \ 1160549826eaSstroeseCPCI4052_config \ 1161c419d1d6SstroeseCPCI405DT_config \ 1162549826eaSstroeseCPCI405AB_config: unconfig 1163f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1164f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 11657ebf7443Swdenk 11667ebf7443SwdenkCPCIISER4_config: unconfig 1167f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 11687ebf7443Swdenk 11697ebf7443SwdenkCRAYL1_config: unconfig 1170f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 11717ebf7443Swdenk 1172cd0a9de6Swdenkcsb272_config: unconfig 1173f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1174cd0a9de6Swdenk 1175aa245090Swdenkcsb472_config: unconfig 1176f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1177aa245090Swdenk 11787ebf7443SwdenkDASA_SIM_config: unconfig 1179f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 11807ebf7443Swdenk 118172cd5aa7SstroeseDP405_config: unconfig 1182f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 118372cd5aa7Sstroese 11847ebf7443SwdenkDU405_config: unconfig 1185f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 11867ebf7443Swdenk 11878a316c9bSStefan Roeseebony_config: unconfig 1188f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 11897ebf7443Swdenk 11907ebf7443SwdenkERIC_config: unconfig 1191f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 11927ebf7443Swdenk 1193d1cbe85bSwdenkEXBITGEN_config: unconfig 1194f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1195d1cbe85bSwdenk 1196c419d1d6SstroeseG2000_config: unconfig 1197f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1198c419d1d6Sstroese 1199ac982ea5SNiklaus Gigerhcu4_config: unconfig 120035d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1201ac982ea5SNiklaus Giger 1202ac982ea5SNiklaus Gigerhcu5_config: unconfig 120335d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1204ac982ea5SNiklaus Giger 1205c419d1d6SstroeseHH405_config: unconfig 1206f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1207c419d1d6Sstroese 120872cd5aa7SstroeseHUB405_config: unconfig 1209f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 121072cd5aa7Sstroese 1211db01a2eaSwdenkJSE_config: unconfig 1212f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1213db01a2eaSwdenk 1214b79316f2SStefan RoeseKAREF_config: unconfig 1215f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1216b79316f2SStefan Roese 12174745acaaSStefan Roesekatmai_config: unconfig 12184745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 12194745acaaSStefan Roese 1220353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1221353f2688SStefan Roesekilauea_config \ 1222353f2688SStefan Roesehaleakala_config: unconfig 1223353f2688SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1224566806caSStefan Roese 12253d6cb3b2SStefan Roesekilauea_nand_config \ 12263d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 12273d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 12283d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 12293d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 12303d6cb3b2SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 12313d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 12323d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 12333d6cb3b2SStefan Roese 1234c591dffeSLarry Johnsonkorat_config: unconfig 1235c591dffeSLarry Johnson @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1236c591dffeSLarry Johnson 12376e7fb6eaSStefan Roeseluan_config: unconfig 1238f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 12396e7fb6eaSStefan Roese 1240b765ffb7SStefan Roeselwmon5_config: unconfig 1241b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1242b765ffb7SStefan Roese 1243211ea91aSStefan Roesemakalu_config: unconfig 1244211ea91aSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1245211ea91aSStefan Roese 1246b79316f2SStefan RoeseMETROBOX_config: unconfig 1247f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1248b79316f2SStefan Roese 12497ebf7443SwdenkMIP405_config: unconfig 1250f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 12517ebf7443Swdenk 1252f3e0de60SwdenkMIP405T_config: unconfig 1253f9328639SMarian Balakowicz @mkdir -p $(obj)include 1254f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1255f3e0de60Swdenk @echo "Enable subset config for MIP405T" 1256f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1257f3e0de60Swdenk 12587ebf7443SwdenkML2_config: unconfig 1259f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 12607ebf7443Swdenk 1261028ab6b5Swdenkml300_config: unconfig 1262f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1263028ab6b5Swdenk 12648a316c9bSStefan Roeseocotea_config: unconfig 1265f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 12660e6d798cSwdenk 12677ebf7443SwdenkOCRTC_config \ 12687ebf7443SwdenkORSG_config: unconfig 1269f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 12707ebf7443Swdenk 12715568e613SStefan Roesep3p440_config: unconfig 1272f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 12735568e613SStefan Roese 12747ebf7443SwdenkPCI405_config: unconfig 1275f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 12767ebf7443Swdenk 1277a4c8d138SStefan Roesepcs440ep_config: unconfig 1278f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1279a4c8d138SStefan Roese 12807ebf7443SwdenkPIP405_config: unconfig 1281f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 12827ebf7443Swdenk 128372cd5aa7SstroesePLU405_config: unconfig 1284f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 128572cd5aa7Sstroese 1286549826eaSstroesePMC405_config: unconfig 1287f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1288549826eaSstroese 1289*8ba132caSMatthias FuchsPMC440_config: unconfig 1290*8ba132caSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 1291*8ba132caSMatthias Fuchs 1292281e00a3SwdenkPPChameleonEVB_config \ 1293e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1294e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1295e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1296e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1297e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1298e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1299f9328639SMarian Balakowicz @mkdir -p $(obj)include 1300f9328639SMarian Balakowicz @ >$(obj)include/config.h 13011d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1302f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1303fbe4b5cbSwdenk echo "... BASIC model" ; \ 1304fbe4b5cbSwdenk } 13051d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1306f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1307fbe4b5cbSwdenk echo "... MEDIUM model" ; \ 1308fbe4b5cbSwdenk } 13091d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1310f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1311fbe4b5cbSwdenk echo "... HIGH-END model" ; \ 1312fbe4b5cbSwdenk } 1313e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1314f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1315e55ca7e2Swdenk echo "SysClk = 25MHz" ; \ 1316e55ca7e2Swdenk } 1317e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1318f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1319e55ca7e2Swdenk echo "SysClk = 33MHz" ; \ 1320e55ca7e2Swdenk } 1321f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 132212f34241Swdenk 1323430f1b0fSStefan Roesesbc405_config: unconfig 1324430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1325430f1b0fSStefan Roese 1326430f1b0fSStefan Roesesequoia_config \ 1327854bc8daSStefan Roeserainier_config: unconfig 13288318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1329430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1330430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 13312aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1332854bc8daSStefan Roese 1333430f1b0fSStefan Roesesequoia_nand_config \ 1334854bc8daSStefan Roeserainier_nand_config: unconfig 133563e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 133663e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 13378318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1338430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1339430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1340430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 13418318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 13428318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1343652a10c0Swdenk 13446d3e0107SWolfgang Denksc3_config:unconfig 134535d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1346ca43ba18SHeiko Schocher 1347d4024bb7SJohn Otkentaihu_config: unconfig 1348d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1349d4024bb7SJohn Otken 13505fb692caSStefan Roesetaishan_config: unconfig 13515fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 13525fb692caSStefan Roese 135372cd5aa7SstroeseVOH405_config: unconfig 1354f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 135572cd5aa7Sstroese 1356c419d1d6SstroeseVOM405_config: unconfig 1357f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1358c419d1d6Sstroese 1359feaedfcfSStefan RoeseCMS700_config: unconfig 1360f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1361feaedfcfSStefan Roese 13627ebf7443SwdenkW7OLMC_config \ 13637ebf7443SwdenkW7OLMG_config: unconfig 1364f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 13657ebf7443Swdenk 1366430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1367430f1b0fSStefan Roesewalnut_config \ 1368430f1b0fSStefan Roesesycamore_config: unconfig 1369430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 13707ebf7443Swdenk 1371c419d1d6SstroeseWUH405_config: unconfig 1372f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1373c419d1d6Sstroese 1374ba56f625SwdenkXPEDITE1K_config: unconfig 1375f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1376ba56f625Swdenk 1377430f1b0fSStefan Roeseyosemite_config \ 13788a316c9bSStefan Roeseyellowstone_config: unconfig 1379700200c6SStefan Roese @mkdir -p $(obj)include 1380430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1381430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 13822aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 13838a316c9bSStefan Roese 13846c5879f3SMarian Balakowiczyucca_config: unconfig 1385f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 13866c5879f3SMarian Balakowicz 1387779e9751SStefan Roesezeus_config: unconfig 1388779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1389779e9751SStefan Roese 13907ebf7443Swdenk######################################################################### 1391983fda83Swdenk## MPC8220 Systems 1392983fda83Swdenk######################################################################### 1393dc17fb6dSWolfgang Denk 1394dc17fb6dSWolfgang DenkAlaska8220_config \ 1395dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1396f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1397983fda83Swdenk 139812b43d51Swdenksorcery_config: unconfig 1399f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 140012b43d51Swdenk 1401983fda83Swdenk######################################################################### 14027ebf7443Swdenk## MPC824x Systems 14037ebf7443Swdenk######################################################################### 1404efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 14053bac3513Swdenk 14060332990bSwdenkA3000_config: unconfig 1407f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 14080332990bSwdenk 14098e6f1a8eSWolfgang Denkbarco_config: unconfig 1410f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 14118e6f1a8eSWolfgang Denk 14127ebf7443SwdenkBMW_config: unconfig 1413f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 14147ebf7443Swdenk 14153bac3513SwdenkCPC45_config \ 14163bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1417f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1418f9328639SMarian Balakowicz @cd $(obj)include ; \ 14193bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 14203bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 14213bac3513Swdenk echo "... booting from 8-bit flash" ; \ 14223bac3513Swdenk else \ 14233bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 14243bac3513Swdenk echo "... booting from 64-bit flash" ; \ 14253bac3513Swdenk fi; \ 14263bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 14273bac3513Swdenk 14287ebf7443SwdenkCU824_config: unconfig 1429f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 14307ebf7443Swdenk 14317abf0c58Swdenkdebris_config: unconfig 1432f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 14337abf0c58Swdenk 143480885a9dSwdenkeXalion_config: unconfig 1435f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 143680885a9dSwdenk 1437756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1438f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1439756f586aSwdenk 144053dd6ce4SWolfgang Denkkvme080_config: unconfig 1441f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 144253dd6ce4SWolfgang Denk 14437ebf7443SwdenkMOUSSE_config: unconfig 1444f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 14457ebf7443Swdenk 14467ebf7443SwdenkMUSENKI_config: unconfig 1447f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 14487ebf7443Swdenk 1449b4676a25SwdenkMVBLUE_config: unconfig 1450f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1451b4676a25Swdenk 14527ebf7443SwdenkOXC_config: unconfig 1453f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 14547ebf7443Swdenk 14557ebf7443SwdenkPN62_config: unconfig 1456f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 14577ebf7443Swdenk 14587ebf7443SwdenkSandpoint8240_config: unconfig 1459f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 14607ebf7443Swdenk 14617ebf7443SwdenkSandpoint8245_config: unconfig 1462f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 14637ebf7443Swdenk 1464466b7410Swdenksbc8240_config: unconfig 1465f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1466466b7410Swdenk 1467d1cbe85bSwdenkSL8245_config: unconfig 1468f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1469d1cbe85bSwdenk 14707ebf7443Swdenkutx8245_config: unconfig 1471f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 14727ebf7443Swdenk 14737ebf7443Swdenk######################################################################### 14747ebf7443Swdenk## MPC8260 Systems 14757ebf7443Swdenk######################################################################### 14767ebf7443Swdenk 147754387ac9Swdenkatc_config: unconfig 1478f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 147954387ac9Swdenk 14807ebf7443Swdenkcogent_mpc8260_config: unconfig 1481f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 14827ebf7443Swdenk 14837ebf7443SwdenkCPU86_config \ 14847ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1485f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1486f9328639SMarian Balakowicz @cd $(obj)include ; \ 14877ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 14887ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 14897ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 14907ebf7443Swdenk else \ 14917ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 14927ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 14937ebf7443Swdenk fi; \ 14947ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 14957ebf7443Swdenk 1496384cc687SwdenkCPU87_config \ 1497384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1498f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1499f9328639SMarian Balakowicz @cd $(obj)include ; \ 1500384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1501384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1502384cc687Swdenk echo "... booting from 8-bit flash" ; \ 1503384cc687Swdenk else \ 1504384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1505384cc687Swdenk echo "... booting from 64-bit flash" ; \ 1506384cc687Swdenk fi; \ 1507384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1508384cc687Swdenk 1509f901a83bSWolfgang Denkep8248_config \ 1510f901a83bSWolfgang Denkep8248E_config : unconfig 1511f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1512f901a83bSWolfgang Denk 15137ebf7443Swdenkep8260_config: unconfig 1514f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 15157ebf7443Swdenk 15168d4ac794SWolfgang Denkep82xxm_config: unconfig 151790b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 15188d4ac794SWolfgang Denk 15197ebf7443Swdenkgw8260_config: unconfig 1520f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 15217ebf7443Swdenk 15227ebf7443Swdenkhymod_config: unconfig 1523f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 15247ebf7443Swdenk 15259dd41a7bSwdenkIDS8247_config: unconfig 1526f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 15279dd41a7bSwdenk 15287ebf7443SwdenkIPHASE4539_config: unconfig 1529f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 15307ebf7443Swdenk 1531c3c7f861SwdenkISPAN_config \ 1532c3c7f861SwdenkISPAN_REVB_config: unconfig 1533f9328639SMarian Balakowicz @mkdir -p $(obj)include 1534c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1535f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1536c3c7f861Swdenk fi 1537f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1538c3c7f861Swdenk 153904a85b3bSwdenkMPC8260ADS_config \ 1540901787d6SwdenkMPC8260ADS_lowboot_config \ 154104a85b3bSwdenkMPC8260ADS_33MHz_config \ 1542901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 154304a85b3bSwdenkMPC8260ADS_40MHz_config \ 1544901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 154504a85b3bSwdenkMPC8272ADS_config \ 1546901787d6SwdenkMPC8272ADS_lowboot_config \ 154704a85b3bSwdenkPQ2FADS_config \ 1548901787d6SwdenkPQ2FADS_lowboot_config \ 154904a85b3bSwdenkPQ2FADS-VR_config \ 1550901787d6SwdenkPQ2FADS-VR_lowboot_config \ 155104a85b3bSwdenkPQ2FADS-ZU_config \ 1552901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 155304a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1554901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 155504a85b3bSwdenk : unconfig 1556f9328639SMarian Balakowicz @mkdir -p $(obj)include 1557f9328639SMarian Balakowicz @mkdir -p $(obj)board/mpc8260ads 155804a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1559f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1560f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 156104a85b3bSwdenk $(if $(findstring MHz,$@), \ 1562f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 156304a85b3bSwdenk $(if $(findstring VR,$@), \ 1564f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1565901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1566f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \ 1567901787d6Swdenk echo "... with lowboot configuration" ; \ 1568901787d6Swdenk } 1569f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads 15707ebf7443Swdenk 1571db2f721fSwdenkMPC8266ADS_config: unconfig 1572f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads 1573db2f721fSwdenk 1574efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 157510f67017SwdenkPM825_config \ 1576efa329cbSwdenkPM825_ROMBOOT_config \ 1577efa329cbSwdenkPM825_BIGFLASH_config \ 1578efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 15797ebf7443SwdenkPM826_config \ 1580efa329cbSwdenkPM826_ROMBOOT_config \ 1581efa329cbSwdenkPM826_BIGFLASH_config \ 1582efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1583f9328639SMarian Balakowicz @mkdir -p $(obj)include 1584f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1585efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1586f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 15877ebf7443Swdenk else \ 1588f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1589efa329cbSwdenk fi 1590efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1591efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 1592f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1593f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1594efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1595efa329cbSwdenk echo "... with 32 MB Flash" ; \ 1596f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 15977ebf7443Swdenk fi; \ 1598efa329cbSwdenk else \ 1599efa329cbSwdenk echo "... booting from 64-bit flash" ; \ 1600efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1601efa329cbSwdenk echo "... with 32 MB Flash" ; \ 1602f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1603f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1604efa329cbSwdenk else \ 1605f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1606efa329cbSwdenk fi; \ 1607efa329cbSwdenk fi 1608f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1609efa329cbSwdenk 1610efa329cbSwdenkPM828_config \ 1611efa329cbSwdenkPM828_PCI_config \ 1612efa329cbSwdenkPM828_ROMBOOT_config \ 1613efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1614f9328639SMarian Balakowicz @mkdir -p $(obj)include 1615f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 161617076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1617f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1618efa329cbSwdenk echo "... with PCI enabled" ; \ 1619efa329cbSwdenk else \ 1620f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1621efa329cbSwdenk fi 1622efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1623efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 1624f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1625f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1626efa329cbSwdenk fi 1627f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 16287ebf7443Swdenk 16297ebf7443Swdenkppmc8260_config: unconfig 1630f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 16317ebf7443Swdenk 16328b0bfc68SwdenkRattler8248_config \ 16338b0bfc68SwdenkRattler_config: unconfig 1634f9328639SMarian Balakowicz @mkdir -p $(obj)include 16358b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1636f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1637f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 16388b0bfc68Swdenk 16397ebf7443SwdenkRPXsuper_config: unconfig 1640f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 16417ebf7443Swdenk 16427ebf7443Swdenkrsdproto_config: unconfig 1643f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 16447ebf7443Swdenk 16457ebf7443Swdenksacsng_config: unconfig 1646f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 16477ebf7443Swdenk 16487ebf7443Swdenksbc8260_config: unconfig 1649f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 16507ebf7443Swdenk 16517ebf7443SwdenkSCM_config: unconfig 1652f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 16537ebf7443Swdenk 165427b207fdSwdenkTQM8255_AA_config \ 165527b207fdSwdenkTQM8260_AA_config \ 165627b207fdSwdenkTQM8260_AB_config \ 165727b207fdSwdenkTQM8260_AC_config \ 165827b207fdSwdenkTQM8260_AD_config \ 165927b207fdSwdenkTQM8260_AE_config \ 166027b207fdSwdenkTQM8260_AF_config \ 166127b207fdSwdenkTQM8260_AG_config \ 166227b207fdSwdenkTQM8260_AH_config \ 16631f62bc2dSWolfgang DenkTQM8260_AI_config \ 166427b207fdSwdenkTQM8265_AA_config: unconfig 1665f9328639SMarian Balakowicz @mkdir -p $(obj)include 166627b207fdSwdenk @case "$@" in \ 166727b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 166827b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 166927b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 167027b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 167127b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 167227b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 167327b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 167427b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 167527b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 16761f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 167727b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 167827b207fdSwdenk esac; \ 1679f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 168027b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1681f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 168227b207fdSwdenk fi; \ 1683f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 168427b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 168527b207fdSwdenk if [ "$${CACHE}" == "yes" ] ; then \ 1686f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 168727b207fdSwdenk echo "... with L2 Cache support" ; \ 16887ebf7443Swdenk else \ 1689f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 16907ebf7443Swdenk echo "... without L2 Cache support" ; \ 169127b207fdSwdenk fi; \ 169227b207fdSwdenk if [ "$${BMODE}" == "60x" ] ; then \ 1693f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 169427b207fdSwdenk echo "... with 60x Bus Mode" ; \ 169527b207fdSwdenk else \ 1696f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 169727b207fdSwdenk echo "... without 60x Bus Mode" ; \ 16987ebf7443Swdenk fi 1699f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 17007ebf7443Swdenk 1701fa230445SHeiko SchocherTQM8272_config: unconfig 1702fa230445SHeiko Schocher @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272 1703fa230445SHeiko Schocher 1704ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1705ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1706f9328639SMarian Balakowicz @mkdir -p $(obj)include 1707f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1708f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1709ba91e26aSwdenk 171054387ac9SwdenkZPC1900_config: unconfig 1711f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 17127aa78614Swdenk 17134e5ca3ebSwdenk######################################################################### 17144e5ca3ebSwdenk## Coldfire 17154e5ca3ebSwdenk######################################################################### 17164e5ca3ebSwdenk 17174a442d31STsiChungLiewM5235EVB_config \ 17184a442d31STsiChungLiewM5235EVB_Flash16_config \ 17194a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 17204a442d31STsiChungLiew @case "$@" in \ 17214a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 17224a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 17234a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 17244a442d31STsiChungLiew esac; \ 17254a442d31STsiChungLiew >include/config.h ; \ 17264a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 17274a442d31STsiChungLiew echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \ 17284a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 17294a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 17304a442d31STsiChungLiew else \ 17314a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 17324a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 17334a442d31STsiChungLiew fi 17344a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 17354a442d31STsiChungLiew 1736a605aacdSTsiChungLiewM5249EVB_config : unconfig 1737a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1738a605aacdSTsiChungLiew 1739a1436a84STsiChungLiewM5253EVBE_config : unconfig 1740a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1741a1436a84STsiChungLiew 17427481266eSWolfgang Denkcobra5272_config : unconfig 1743f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 17447481266eSWolfgang Denk 17454176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1746f9328639SMarian Balakowicz @mkdir -p $(obj)include 1747f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1748f9328639SMarian Balakowicz @ >$(obj)include/config.h 1749f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1750f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 17514176c799SWolfgang Denk 17524176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1753f9328639SMarian Balakowicz @mkdir -p $(obj)include 1754f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1755f9328639SMarian Balakowicz @ >$(obj)include/config.h 1756f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1757f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 17584176c799SWolfgang Denk 1759daa6e418SBartlomiej Siekaidmr_config : unconfig 1760daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1761daa6e418SBartlomiej Sieka 17624176c799SWolfgang DenkM5271EVB_config : unconfig 1763f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 17644176c799SWolfgang Denk 17654e5ca3ebSwdenkM5272C3_config : unconfig 1766f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 17674e5ca3ebSwdenk 17684e5ca3ebSwdenkM5282EVB_config : unconfig 1769f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 17704e5ca3ebSwdenk 1771c419d1d6SstroeseTASREG_config : unconfig 1772f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1773c419d1d6Sstroese 17743a108ed8SZachary P. Landaur5200_config : unconfig 1775f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200 17763a108ed8SZachary P. Landau 17778e585f02STsiChung LiewM5329AFEE_config \ 17788e585f02STsiChung LiewM5329BFEE_config : unconfig 17798e585f02STsiChung Liew @case "$@" in \ 17808e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 17818e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 17828e585f02STsiChung Liew esac; \ 17838e585f02STsiChung Liew >include/config.h ; \ 17848e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1785ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 17868e585f02STsiChung Liew fi 17878e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 17888e585f02STsiChung Liew 17898ae158cdSTsiChungLiewM54455EVB_config \ 17908ae158cdSTsiChungLiewM54455EVB_atmel_config \ 17918ae158cdSTsiChungLiewM54455EVB_intel_config \ 17928ae158cdSTsiChungLiewM54455EVB_a33_config \ 17938ae158cdSTsiChungLiewM54455EVB_a66_config \ 17948ae158cdSTsiChungLiewM54455EVB_i33_config \ 17958ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 17968ae158cdSTsiChungLiew @case "$@" in \ 17978ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 17988ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 17998ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 18008ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 18018ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 18028ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 18038ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 18048ae158cdSTsiChungLiew esac; \ 18058ae158cdSTsiChungLiew >include/config.h ; \ 18068ae158cdSTsiChungLiew if [ "$${FLASH}" == "INTEL" ] ; then \ 18074a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1808e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1809e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 18108ae158cdSTsiChungLiew echo "... with INTEL boot..." ; \ 18118ae158cdSTsiChungLiew else \ 18124a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1813e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1814e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 18158ae158cdSTsiChungLiew echo "... with ATMEL boot..." ; \ 18168ae158cdSTsiChungLiew fi; \ 18174a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 18188ae158cdSTsiChungLiew echo "... with $${FREQ}Hz input clock" 18198ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 18208ae158cdSTsiChungLiew 18217ebf7443Swdenk######################################################################### 1822f046ccd1SEran Liberty## MPC83xx Systems 1823f046ccd1SEran Liberty######################################################################### 1824f046ccd1SEran Liberty 18255c5d3242SKim PhillipsMPC8313ERDB_33_config \ 18265c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 1827cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1828cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 18295c5d3242SKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 18305c5d3242SKim Phillips echo -n "...33M ..." ; \ 1831cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 18325c5d3242SKim Phillips fi ; \ 18335c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 18345c5d3242SKim Phillips echo -n "...66M..." ; \ 1835cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 18365c5d3242SKim Phillips fi ; 1837e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 18385c5d3242SKim Phillips 18391c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 18401c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 18411c274c4eSKim Phillips 18424decd84eSKim PhillipsMPC832XEMDS_config \ 18434decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 18444decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1845281df457STony LiMPC832XEMDS_SLAVE_config \ 1846281df457STony LiMPC832XEMDS_ATM_config: unconfig 1847cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1848cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 18494decd84eSKim Phillips if [ "$(findstring _HOST_,$@)" ] ; then \ 18504decd84eSKim Phillips echo -n "... PCI HOST " ; \ 1851cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 18524decd84eSKim Phillips fi ; \ 18534decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 18544decd84eSKim Phillips echo "...PCI SLAVE 66M" ; \ 1855cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1856cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 18574decd84eSKim Phillips fi ; \ 18584decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 18594decd84eSKim Phillips echo -n "...33M ..." ; \ 1860cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1861281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 18624decd84eSKim Phillips fi ; \ 18634decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 18644decd84eSKim Phillips echo -n "...66M..." ; \ 1865cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1866281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1867281df457STony Li fi ; \ 1868281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1869281df457STony Li echo -n "...ATM..." ; \ 1870281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1871281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 18724decd84eSKim Phillips fi ; 1873e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 1874e6f2e902SMarian Balakowicz 1875991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 1876e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 1877991425feSMarian Balakowicz 18787a78f148STimur TabiMPC8349ITX_config \ 18797a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 18807a78f148STimur TabiMPC8349ITXGP_config: unconfig 18817a78f148STimur Tabi @mkdir -p $(obj)include 1882e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 18837a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 18847a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 1885e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 18867a78f148STimur Tabi fi 18877a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 1888e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 18897a78f148STimur Tabi fi 1890e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 18914decd84eSKim Phillips 18925f820439SDave LiuMPC8360EMDS_config \ 18935f820439SDave LiuMPC8360EMDS_HOST_33_config \ 18945f820439SDave LiuMPC8360EMDS_HOST_66_config \ 1895281df457STony LiMPC8360EMDS_SLAVE_config \ 1896281df457STony LiMPC8360EMDS_ATM_config: unconfig 1897cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1898cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 18995f820439SDave Liu if [ "$(findstring _HOST_,$@)" ] ; then \ 19005f820439SDave Liu echo -n "... PCI HOST " ; \ 1901cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 19025f820439SDave Liu fi ; \ 19035f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 19045f820439SDave Liu echo "...PCI SLAVE 66M" ; \ 1905cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1906cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 19075f820439SDave Liu fi ; \ 19085f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 19095f820439SDave Liu echo -n "...33M ..." ; \ 1910cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1911281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 19125f820439SDave Liu fi ; \ 19135f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 19145f820439SDave Liu echo -n "...66M..." ; \ 1915cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1916281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1917281df457STony Li fi ; \ 1918281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1919281df457STony Li echo -n "...ATM..." ; \ 1920281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1921281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 19225f820439SDave Liu fi ; 1923e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 19245f820439SDave Liu 192591e25769SPaul Gortmakersbc8349_config: unconfig 192691e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 192791e25769SPaul Gortmaker 19284decd84eSKim PhillipsTQM834x_config: unconfig 19294decd84eSKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 19304decd84eSKim Phillips 19312ad6b513STimur Tabi 1932f046ccd1SEran Liberty######################################################################### 193342d1f039Swdenk## MPC85xx Systems 193442d1f039Swdenk######################################################################### 193542d1f039Swdenk 193642d1f039SwdenkMPC8540ADS_config: unconfig 1937c2d943ffSKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 193842d1f039Swdenk 1939b0e32949SLunsheng WangMPC8540EVAL_config \ 1940b0e32949SLunsheng WangMPC8540EVAL_33_config \ 1941b0e32949SLunsheng WangMPC8540EVAL_66_config \ 1942b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 1943b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 1944f9328639SMarian Balakowicz @mkdir -p $(obj)include 1945f9328639SMarian Balakowicz @echo "" >$(obj)include/config.h ; \ 1946b0e32949SLunsheng Wang if [ "$(findstring _33_,$@)" ] ; then \ 1947cdd917a4SWolfgang Denk echo "... 33 MHz PCI" ; \ 1948b0e32949SLunsheng Wang else \ 1949f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 1950cdd917a4SWolfgang Denk echo "... 66 MHz PCI" ; \ 1951b0e32949SLunsheng Wang fi ; \ 1952b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 1953f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 1954b0e32949SLunsheng Wang echo " slave" ; \ 1955b0e32949SLunsheng Wang else \ 1956b0e32949SLunsheng Wang echo " host" ; \ 1957b0e32949SLunsheng Wang fi 1958f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 1959b0e32949SLunsheng Wang 196042d1f039SwdenkMPC8560ADS_config: unconfig 1961870ceac5SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 196242d1f039Swdenk 19637f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 196403f5c550SwdenkMPC8541CDS_config: unconfig 19657f3f2bd2SRandy Vinson @mkdir -p $(obj)include 19667f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 19677f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 19687f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 19697f3f2bd2SRandy Vinson echo "... legacy" ; \ 19707f3f2bd2SRandy Vinson fi 1971415a613bSKumar Gala @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 197203f5c550Swdenk 197381f481caSAndy FlemingMPC8544DS_config: unconfig 197481f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 197581f481caSAndy Fleming 19767f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 1977d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 19787f3f2bd2SRandy Vinson @mkdir -p $(obj)include 19797f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 19807f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 19817f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 19827f3f2bd2SRandy Vinson echo "... legacy" ; \ 19837f3f2bd2SRandy Vinson fi 1984415a613bSKumar Gala @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 1985d9b94f28SJon Loeliger 19867f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 198703f5c550SwdenkMPC8555CDS_config: unconfig 19887f3f2bd2SRandy Vinson @mkdir -p $(obj)include 19897f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 19907f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 19917f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 19927f3f2bd2SRandy Vinson echo "... legacy" ; \ 19937f3f2bd2SRandy Vinson fi 1994415a613bSKumar Gala @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 19957abf0c58Swdenk 199667431059SAndy FlemingMPC8568MDS_config: unconfig 1997acbca876SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 199867431059SAndy Fleming 1999384cc687SwdenkPM854_config: unconfig 2000f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2001384cc687Swdenk 2002b20d0032SWolfgang DenkPM856_config: unconfig 2003f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2004b20d0032SWolfgang Denk 2005c15f3120Swdenksbc8540_config \ 2006c15f3120Swdenksbc8540_33_config \ 2007c15f3120Swdenksbc8540_66_config: unconfig 2008f9328639SMarian Balakowicz @mkdir -p $(obj)include 2009c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2010f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2011c15f3120Swdenk echo "... 66 MHz PCI" ; \ 2012c15f3120Swdenk else \ 2013f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2014c15f3120Swdenk echo "... 33 MHz PCI" ; \ 2015c15f3120Swdenk fi 2016f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2017c15f3120Swdenk 2018466b7410Swdenksbc8560_config \ 2019466b7410Swdenksbc8560_33_config \ 2020466b7410Swdenksbc8560_66_config: unconfig 2021f9328639SMarian Balakowicz @mkdir -p $(obj)include 20228b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2023f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 20248b07a110Swdenk echo "... 66 MHz PCI" ; \ 20258b07a110Swdenk else \ 2026f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 20278b07a110Swdenk echo "... 33 MHz PCI" ; \ 20288b07a110Swdenk fi 2029f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 20308b07a110Swdenk 203103f5c550Swdenkstxgp3_config: unconfig 2032f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 203303f5c550Swdenk 2034ee152983SWolfgang Denkstxssa_config \ 2035ee152983SWolfgang Denkstxssa_4M_config: unconfig 2036ee152983SWolfgang Denk @mkdir -p $(obj)include 2037ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2038ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2039ee152983SWolfgang Denk echo "... with 4 MiB flash memory" ; \ 2040ee152983SWolfgang Denk else \ 2041ee152983SWolfgang Denk >$(obj)include/config.h ; \ 2042ee152983SWolfgang Denk fi 2043ee152983SWolfgang Denk @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 204435171dc0SDan Malek 2045d96f41e0SStefan RoeseTQM8540_config \ 2046d96f41e0SStefan RoeseTQM8541_config \ 2047d96f41e0SStefan RoeseTQM8555_config \ 2048f5c5ef4aSwdenkTQM8560_config: unconfig 2049f9328639SMarian Balakowicz @mkdir -p $(obj)include 2050a889bd27SWolfgang Denk @CTYPE=$(subst TQM,,$(@:_config=)); \ 2051f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2052d96f41e0SStefan Roese echo "... TQM"$${CTYPE}; \ 2053f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2054f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2055f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2056f9328639SMarian Balakowicz echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 20578a783a65SGrant Likely echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 2058f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 2059f5c5ef4aSwdenk 206042d1f039Swdenk######################################################################### 2061debb7354SJon Loeliger## MPC86xx Systems 2062debb7354SJon Loeliger######################################################################### 2063debb7354SJon Loeliger 2064debb7354SJon LoeligerMPC8641HPCN_config: unconfig 20654ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2066debb7354SJon Loeliger 2067c646bba6SJoe Hammansbc8641d_config: unconfig 2068c646bba6SJoe Hamman @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d 2069debb7354SJon Loeliger 2070debb7354SJon Loeliger######################################################################### 20717ebf7443Swdenk## 74xx/7xx Systems 20727ebf7443Swdenk######################################################################### 20737ebf7443Swdenk 2074c7de829cSwdenkAmigaOneG3SE_config: unconfig 2075f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2076c7de829cSwdenk 207715647dc7SwdenkBAB7xx_config: unconfig 2078f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 207915647dc7Swdenk 2080c419d1d6SstroeseCPCI750_config: unconfig 2081f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2082c419d1d6Sstroese 20833a473b2aSwdenkDB64360_config: unconfig 2084f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 20853a473b2aSwdenk 20863a473b2aSwdenkDB64460_config: unconfig 2087f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 20883a473b2aSwdenk 208915647dc7SwdenkELPPC_config: unconfig 2090f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 209115647dc7Swdenk 20927ebf7443SwdenkEVB64260_config \ 20937ebf7443SwdenkEVB64260_750CX_config: unconfig 2094f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 20957ebf7443Swdenk 20964c52783bSroy zangmpc7448hpc2_config: unconfig 2097ee311214Sroy zang @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 20984c52783bSroy zang 209915647dc7SwdenkP3G4_config: unconfig 2100f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 21017ebf7443Swdenk 21021eac2a71SStefan Roesep3m750_config \ 21031eac2a71SStefan Roesep3m7448_config: unconfig 21041eac2a71SStefan Roese @mkdir -p $(obj)include 21051eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 21061eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 21071eac2a71SStefan Roese else \ 21081eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 21091eac2a71SStefan Roese fi 21101eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 21111eac2a71SStefan Roese 21127ebf7443SwdenkPCIPPC2_config \ 21137ebf7443SwdenkPCIPPC6_config: unconfig 2114f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 21157ebf7443Swdenk 211615647dc7SwdenkZUMA_config: unconfig 2117f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 211812f34241Swdenk 2119f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2120f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2121f5e0d039SHeiko Schocher 21227ebf7443Swdenk#======================================================================== 21237ebf7443Swdenk# ARM 21247ebf7443Swdenk#======================================================================== 21257ebf7443Swdenk######################################################################### 21267ebf7443Swdenk## StrongARM Systems 21277ebf7443Swdenk######################################################################### 21287ebf7443Swdenk 2129ea66bc88Swdenkassabet_config : unconfig 2130f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2131ea66bc88Swdenk 21327ebf7443Swdenkdnp1110_config : unconfig 2133f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 21347ebf7443Swdenk 2135855a496fSwdenkgcplus_config : unconfig 2136f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2137855a496fSwdenk 2138855a496fSwdenklart_config : unconfig 2139f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2140855a496fSwdenk 21417ebf7443Swdenkshannon_config : unconfig 2142f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 21437ebf7443Swdenk 21447ebf7443Swdenk######################################################################### 21452e5983d2Swdenk## ARM92xT Systems 21467ebf7443Swdenk######################################################################### 21477ebf7443Swdenk 2148b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 214943d9616cSwdenk 21503ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 215163e73c9aSwdenk 2152a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2153a56bd922Swdenk 2154a85f9f21Swdenkat91rm9200dk_config : unconfig 2155f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200 2156a85f9f21Swdenk 2157a85f9f21Swdenkcmc_pu2_config : unconfig 2158f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2159a85f9f21Swdenk 2160645da510SWolfgang Denkcsb637_config : unconfig 2161f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2162645da510SWolfgang Denk 21630e4018d2SWolfgang Denkmp2usb_config : unconfig 2164f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 21650e4018d2SWolfgang Denk 216687cb6862SWolfgang Denk 216774f4304eSWolfgang Denk######################################################################## 216887cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 216987cb6862SWolfgang Denkintegratorap_config \ 217087cb6862SWolfgang Denkap_config \ 217187cb6862SWolfgang Denkap966_config \ 217287cb6862SWolfgang Denkap922_config \ 217387cb6862SWolfgang Denkap922_XA10_config \ 217487cb6862SWolfgang Denkap7_config \ 217587cb6862SWolfgang Denkap720t_config \ 217687cb6862SWolfgang Denkap920t_config \ 217787cb6862SWolfgang Denkap926ejs_config \ 217887cb6862SWolfgang Denkap946es_config: unconfig 217996782c63SWolfgang Denk @board/integratorap/split_by_variant.sh $@ 21803d3befa7Swdenk 218187cb6862SWolfgang Denkintegratorcp_config \ 218287cb6862SWolfgang Denkcp_config \ 218387cb6862SWolfgang Denkcp920t_config \ 218487cb6862SWolfgang Denkcp926ejs_config \ 218587cb6862SWolfgang Denkcp946es_config \ 218687cb6862SWolfgang Denkcp1136_config \ 218787cb6862SWolfgang Denkcp966_config \ 218887cb6862SWolfgang Denkcp922_config \ 218987cb6862SWolfgang Denkcp922_XA10_config \ 219087cb6862SWolfgang Denkcp1026_config: unconfig 219196782c63SWolfgang Denk @board/integratorcp/split_by_variant.sh $@ 219225d6712aSwdenk 219399b0d285SWolfgang Denkkb9202_config : unconfig 2194f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 219599b0d285SWolfgang Denk 2196f832d8a1Swdenklpd7a400_config \ 2197f832d8a1Swdenklpd7a404_config: unconfig 2198f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 21993d3befa7Swdenk 2200281e00a3Swdenkmx1ads_config : unconfig 2201f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2202281e00a3Swdenk 2203281e00a3Swdenkmx1fs2_config : unconfig 2204f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2205281e00a3Swdenk 2206ac7eb8a3SWolfgang Denknetstar_32_config \ 2207ac7eb8a3SWolfgang Denknetstar_config: unconfig 2208f9328639SMarian Balakowicz @mkdir -p $(obj)include 2209ac7eb8a3SWolfgang Denk @if [ "$(findstring _32_,$@)" ] ; then \ 2210ac7eb8a3SWolfgang Denk echo "... 32MB SDRAM" ; \ 2211f9328639SMarian Balakowicz echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \ 2212ac7eb8a3SWolfgang Denk else \ 2213ac7eb8a3SWolfgang Denk echo "... 64MB SDRAM" ; \ 2214f9328639SMarian Balakowicz echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \ 2215ac7eb8a3SWolfgang Denk fi 2216f9328639SMarian Balakowicz @$(MKCONFIG) -a netstar arm arm925t netstar 2217ac7eb8a3SWolfgang Denk 22182e5983d2Swdenkomap1510inn_config : unconfig 2219f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 22202e5983d2Swdenk 22211eaeb58eSwdenkomap5912osk_config : unconfig 2222f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 22231eaeb58eSwdenk 2224c74b2108SSergey Kubushyndavinci_dvevm_config : unconfig 2225c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2226c74b2108SSergey Kubushyn 2227c74b2108SSergey Kubushyndavinci_schmoogie_config : unconfig 2228c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2229c74b2108SSergey Kubushyn 2230c74b2108SSergey Kubushyndavinci_sonata_config : unconfig 2231c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2232c74b2108SSergey Kubushyn 223363e73c9aSwdenkomap1610inn_config \ 223463e73c9aSwdenkomap1610inn_cs0boot_config \ 223563e73c9aSwdenkomap1610inn_cs3boot_config \ 22363ff02c27Swdenkomap1610inn_cs_autoboot_config \ 223763e73c9aSwdenkomap1610h2_config \ 223863e73c9aSwdenkomap1610h2_cs0boot_config \ 22393ff02c27Swdenkomap1610h2_cs3boot_config \ 22403ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2241f9328639SMarian Balakowicz @mkdir -p $(obj)include 224263e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2243cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2244b79a11ccSwdenk echo "... configured for CS0 boot"; \ 22453ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2246cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 22473ff02c27Swdenk echo "... configured for CS_AUTO boot"; \ 224863e73c9aSwdenk else \ 2249cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2250b79a11ccSwdenk echo "... configured for CS3 boot"; \ 225163e73c9aSwdenk fi; 2252f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 22536f21347dSwdenk 2254a56bd922Swdenkomap730p2_config \ 2255a56bd922Swdenkomap730p2_cs0boot_config \ 2256a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2257f9328639SMarian Balakowicz @mkdir -p $(obj)include 2258a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2259f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2260a56bd922Swdenk echo "... configured for CS0 boot"; \ 2261a56bd922Swdenk else \ 2262f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2263a56bd922Swdenk echo "... configured for CS3 boot"; \ 2264a56bd922Swdenk fi; 2265f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2266a56bd922Swdenk 226732cb2c70SWolfgang Denksbc2410x_config: unconfig 2268f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 226932cb2c70SWolfgang Denk 2270281e00a3Swdenkscb9328_config : unconfig 2271f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2272281e00a3Swdenk 22737ebf7443Swdenksmdk2400_config : unconfig 2274f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 22757ebf7443Swdenk 22767ebf7443Swdenksmdk2410_config : unconfig 2277f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 22787ebf7443Swdenk 22792d24a3a7SwdenkSX1_config : unconfig 2280f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 22812d24a3a7Swdenk 2282b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 228343d9616cSwdenktrab_config \ 2284b0639ca3Swdenktrab_bigram_config \ 2285b0639ca3Swdenktrab_bigflash_config \ 2286f54ebdfaSwdenktrab_old_config: unconfig 2287f9328639SMarian Balakowicz @mkdir -p $(obj)include 2288f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2289f9328639SMarian Balakowicz @ >$(obj)include/config.h 2290b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2291f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2292f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2293b0639ca3Swdenk echo "... with 8 MB Flash, 32 MB RAM" ; \ 2294b0639ca3Swdenk } 2295b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2296f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2297f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2298b0639ca3Swdenk echo "... with 16 MB Flash, 16 MB RAM" ; \ 2299f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2300b0639ca3Swdenk } 2301f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2302f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2303f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2304b2001f27Swdenk echo "... with 8 MB Flash, 16 MB RAM" ; \ 2305f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 230643d9616cSwdenk } 2307f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 23087ebf7443Swdenk 23091cb8e980SwdenkVCMA9_config : unconfig 2310f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 23111cb8e980Swdenk 231287cb6862SWolfgang Denk#======================================================================== 231387cb6862SWolfgang Denk# ARM supplied Versatile development boards 231487cb6862SWolfgang Denk#======================================================================== 231587cb6862SWolfgang Denkversatile_config \ 231687cb6862SWolfgang Denkversatileab_config \ 231787cb6862SWolfgang Denkversatilepb_config : unconfig 231896782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2319074cff0dSwdenk 23203c2b3d45Swdenkvoiceblue_smallflash_config \ 23213c2b3d45Swdenkvoiceblue_config: unconfig 2322f9328639SMarian Balakowicz @mkdir -p $(obj)include 2323f9328639SMarian Balakowicz @mkdir -p $(obj)board/voiceblue 23243c2b3d45Swdenk @if [ "$(findstring _smallflash_,$@)" ] ; then \ 23253c2b3d45Swdenk echo "... boot from lower flash bank" ; \ 2326f9328639SMarian Balakowicz echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \ 2327f9328639SMarian Balakowicz echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \ 23283c2b3d45Swdenk else \ 23293c2b3d45Swdenk echo "... boot from upper flash bank" ; \ 2330f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2331f9328639SMarian Balakowicz echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \ 23323c2b3d45Swdenk fi 2333f9328639SMarian Balakowicz @$(MKCONFIG) -a voiceblue arm arm925t voiceblue 23343c2b3d45Swdenk 233516b013e7Swdenkcm4008_config : unconfig 2336f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 233716b013e7Swdenk 233816b013e7Swdenkcm41xx_config : unconfig 2339f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 234016b013e7Swdenk 23410c32d96dSWolfgang Denkgth2_config : unconfig 2342f9328639SMarian Balakowicz @mkdir -p $(obj)include 2343f9328639SMarian Balakowicz @ >$(obj)include/config.h 2344f9328639SMarian Balakowicz @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h 2345f9328639SMarian Balakowicz @$(MKCONFIG) -a gth2 mips mips gth2 23460c32d96dSWolfgang Denk 2347074cff0dSwdenk######################################################################### 2348074cff0dSwdenk## S3C44B0 Systems 2349074cff0dSwdenk######################################################################### 2350074cff0dSwdenk 2351074cff0dSwdenkB2_config : unconfig 2352f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2353074cff0dSwdenk 23547ebf7443Swdenk######################################################################### 23557ebf7443Swdenk## ARM720T Systems 23567ebf7443Swdenk######################################################################### 23577ebf7443Swdenk 2358c570b2fdSWolfgang Denkarmadillo_config: unconfig 2359f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2360c570b2fdSWolfgang Denk 23617ebf7443Swdenkep7312_config : unconfig 2362f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 23637ebf7443Swdenk 23642d24a3a7Swdenkimpa7_config : unconfig 2365f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 23662d24a3a7Swdenk 23672d1a537dSwdenkmodnet50_config : unconfig 2368f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 23692d1a537dSwdenk 237039539887Swdenkevb4510_config : unconfig 2371f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 237239539887Swdenk 23736bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2374b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2375b0d8f5bfSPeter Pearse 2376b0d8f5bfSPeter PearseSMN42_config : unconfig 2377b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 23786bd2447eSGary Jennejohn 23797ebf7443Swdenk######################################################################### 238043d9616cSwdenk## XScale Systems 23817ebf7443Swdenk######################################################################### 23827ebf7443Swdenk 238320787e23Swdenkadsvix_config : unconfig 2384f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa adsvix 238520787e23Swdenk 2386fabd46acSwdenkcerf250_config : unconfig 2387f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2388fabd46acSwdenk 23897ebf7443Swdenkcradle_config : unconfig 2390f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 23917ebf7443Swdenk 23927ebf7443Swdenkcsb226_config : unconfig 2393f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 23947ebf7443Swdenk 23950be248faSWolfgang Denkdelta_config : 2396f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 23970be248faSWolfgang Denk 239843d9616cSwdenkinnokom_config : unconfig 2399f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 240043d9616cSwdenk 24012d5b561eSwdenkixdp425_config : unconfig 2402f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 24032d5b561eSwdenk 2404ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2405f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2406ba94a1bbSWolfgang Denk 240743d9616cSwdenklubbock_config : unconfig 2408f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 240943d9616cSwdenk 24105720df78SHeiko Schocherpleb2_config : unconfig 2411f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 24125720df78SHeiko Schocher 241352f52c14Swdenklogodl_config : unconfig 2414f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 241552f52c14Swdenk 24169d8d5a5bSStefan Roesepdnb3_config \ 24179d8d5a5bSStefan Roesescpu_config: unconfig 2418cdd917a4SWolfgang Denk @mkdir -p $(obj)include 24199d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2420cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 24219d8d5a5bSStefan Roese echo "... on SCPU board variant" ; \ 24229d8d5a5bSStefan Roese else \ 2423cdd917a4SWolfgang Denk >$(obj)include/config.h ; \ 24249d8d5a5bSStefan Roese fi 24259d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2426ba94a1bbSWolfgang Denk 2427f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2428f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2429f57f70aaSWolfgang Denk 24305e5803e1Sstefano babictrizepsiv_config : unconfig 24315e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 24325e5803e1Sstefano babic 24333e38691eSwdenkwepep250_config : unconfig 2434f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 24353e38691eSwdenk 24364ec3a7f0Swdenkxaeniax_config : unconfig 2437f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 24384ec3a7f0Swdenk 2439efa329cbSwdenkxm250_config : unconfig 2440f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2441efa329cbSwdenk 2442ca0e7748Swdenkxsengine_config : unconfig 2443f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2444ca0e7748Swdenk 2445e0269579SMarkus Klotzbücherzylonite_config : 2446f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2447e0269579SMarkus Klotzbücher 24488ed96046Swdenk######################################################################### 24498ed96046Swdenk## ARM1136 Systems 24508ed96046Swdenk######################################################################### 24518ed96046Swdenkomap2420h4_config : unconfig 2452f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 24538ed96046Swdenk 24542262cfeeSwdenk#======================================================================== 24552262cfeeSwdenk# i386 24562262cfeeSwdenk#======================================================================== 24572262cfeeSwdenk######################################################################### 24582262cfeeSwdenk## AMD SC520 CDP 24592262cfeeSwdenk######################################################################### 24602262cfeeSwdenksc520_cdp_config : unconfig 2461f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 24622262cfeeSwdenk 24637a8e9bedSwdenksc520_spunk_config : unconfig 2464f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 24657a8e9bedSwdenk 24667a8e9bedSwdenksc520_spunk_rel_config : unconfig 2467f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 24687a8e9bedSwdenk 246943d9616cSwdenk#======================================================================== 247043d9616cSwdenk# MIPS 247143d9616cSwdenk#======================================================================== 24727ebf7443Swdenk######################################################################### 247343d9616cSwdenk## MIPS32 4Kc 247443d9616cSwdenk######################################################################### 247543d9616cSwdenk 2476e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2477e0ac62d7Swdenk 2478e0ac62d7Swdenkincaip_100MHz_config \ 2479e0ac62d7Swdenkincaip_133MHz_config \ 2480e0ac62d7Swdenkincaip_150MHz_config \ 248143d9616cSwdenkincaip_config: unconfig 2482f9328639SMarian Balakowicz @mkdir -p $(obj)include 2483f9328639SMarian Balakowicz @ >$(obj)include/config.h 2484e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2485f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2486e0ac62d7Swdenk echo "... with 100MHz system clock" ; \ 2487e0ac62d7Swdenk } 2488e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2489f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2490e0ac62d7Swdenk echo "... with 133MHz system clock" ; \ 2491e0ac62d7Swdenk } 2492e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2493f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2494e0ac62d7Swdenk echo "... with 150MHz system clock" ; \ 2495e0ac62d7Swdenk } 2496f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2497e0ac62d7Swdenk 2498f4863a7aSwdenktb0229_config: unconfig 2499f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2500f4863a7aSwdenk 2501e0ac62d7Swdenk######################################################################### 250269459791Swdenk## MIPS32 AU1X00 250369459791Swdenk######################################################################### 250469459791Swdenkdbau1000_config : unconfig 2505f9328639SMarian Balakowicz @mkdir -p $(obj)include 2506f9328639SMarian Balakowicz @ >$(obj)include/config.h 2507f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h 2508f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 250969459791Swdenk 251069459791Swdenkdbau1100_config : unconfig 2511f9328639SMarian Balakowicz @mkdir -p $(obj)include 2512f9328639SMarian Balakowicz @ >$(obj)include/config.h 2513f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h 2514f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 251569459791Swdenk 251669459791Swdenkdbau1500_config : unconfig 2517f9328639SMarian Balakowicz @mkdir -p $(obj)include 2518f9328639SMarian Balakowicz @ >$(obj)include/config.h 2519f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h 2520f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 252169459791Swdenk 2522ff36fd85Swdenkdbau1550_config : unconfig 2523f9328639SMarian Balakowicz @mkdir -p $(obj)include 2524f9328639SMarian Balakowicz @ >$(obj)include/config.h 2525f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2526f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2527ff36fd85Swdenk 2528ff36fd85Swdenkdbau1550_el_config : unconfig 2529f9328639SMarian Balakowicz @mkdir -p $(obj)include 2530f9328639SMarian Balakowicz @ >$(obj)include/config.h 2531f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2532f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2533ff36fd85Swdenk 2534265817c7SWolfgang Denkpb1000_config : unconfig 2535f9328639SMarian Balakowicz @mkdir -p $(obj)include 2536f9328639SMarian Balakowicz @ >$(obj)include/config.h 2537f9328639SMarian Balakowicz @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h 2538f9328639SMarian Balakowicz @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2539265817c7SWolfgang Denk 254069459791Swdenk######################################################################### 2541e0ac62d7Swdenk## MIPS64 5Kc 2542e0ac62d7Swdenk######################################################################### 254343d9616cSwdenk 25443e38691eSwdenkpurple_config : unconfig 2545f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 254643d9616cSwdenk 25474a551709Swdenk#======================================================================== 25484a551709Swdenk# Nios 25494a551709Swdenk#======================================================================== 25504a551709Swdenk######################################################################### 25514a551709Swdenk## Nios32 25524a551709Swdenk######################################################################### 25534a551709Swdenk 2554c935d3bdSwdenkDK1C20_safe_32_config \ 2555c935d3bdSwdenkDK1C20_standard_32_config \ 25564a551709SwdenkDK1C20_config: unconfig 2557f9328639SMarian Balakowicz @mkdir -p $(obj)include 2558f9328639SMarian Balakowicz @ >$(obj)include/config.h 2559c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2560f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2561c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 2562c935d3bdSwdenk } 2563c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2564f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2565c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 2566c935d3bdSwdenk } 2567c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2568f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2569c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2570c935d3bdSwdenk } 2571f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2572c935d3bdSwdenk 2573c935d3bdSwdenkDK1S10_safe_32_config \ 2574c935d3bdSwdenkDK1S10_standard_32_config \ 2575ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2576c935d3bdSwdenkDK1S10_config: unconfig 2577f9328639SMarian Balakowicz @mkdir -p $(obj)include 2578f9328639SMarian Balakowicz @ >$(obj)include/config.h 2579c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2580f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2581c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 2582c935d3bdSwdenk } 2583c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2584f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2585c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 2586c935d3bdSwdenk } 2587ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2588f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2589ec4c544bSwdenk echo "... NIOS 'mtx_ldk_20' configuration" ; \ 2590ec4c544bSwdenk } 2591c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2592f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2593c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2594c935d3bdSwdenk } 2595f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 25964a551709Swdenk 2597aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 2598aaf224abSwdenkADNPESC1_base_32_config \ 2599aaf224abSwdenkADNPESC1_config: unconfig 2600f9328639SMarian Balakowicz @mkdir -p $(obj)include 2601f9328639SMarian Balakowicz @ >$(obj)include/config.h 2602aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2603f9328639SMarian Balakowicz { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2604aaf224abSwdenk echo "... DNP/EVA2 configuration" ; \ 2605aaf224abSwdenk } 2606aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 2607f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2608aaf224abSwdenk echo "... NIOS 'base_32' configuration" ; \ 2609aaf224abSwdenk } 2610aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2611f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2612aaf224abSwdenk echo "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2613aaf224abSwdenk } 2614f9328639SMarian Balakowicz @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2615aaf224abSwdenk 26165c952cf0Swdenk######################################################################### 26175c952cf0Swdenk## Nios-II 26185c952cf0Swdenk######################################################################### 26195c952cf0Swdenk 26209cc83378SScott McNuttEP1C20_config : unconfig 2621f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 26229cc83378SScott McNutt 26239cc83378SScott McNuttEP1S10_config : unconfig 2624f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 26259cc83378SScott McNutt 26269cc83378SScott McNuttEP1S40_config : unconfig 2627f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 26289cc83378SScott McNutt 26295c952cf0SwdenkPK1C20_config : unconfig 2630f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 26315c952cf0Swdenk 26325c952cf0SwdenkPCI5441_config : unconfig 2633f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 26344a551709Swdenk 2635507bbe3eSwdenk#======================================================================== 2636507bbe3eSwdenk# MicroBlaze 2637507bbe3eSwdenk#======================================================================== 2638507bbe3eSwdenk######################################################################### 2639507bbe3eSwdenk## Microblaze 2640507bbe3eSwdenk######################################################################### 2641507bbe3eSwdenksuzaku_config: unconfig 2642f9328639SMarian Balakowicz @mkdir -p $(obj)include 2643f9328639SMarian Balakowicz @ >$(obj)include/config.h 2644f9328639SMarian Balakowicz @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h 2645f9328639SMarian Balakowicz @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2646507bbe3eSwdenk 2647cfc67116SMichal Simekml401_config: unconfig 2648cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2649cdd917a4SWolfgang Denk @ >$(obj)include/config.h 2650cdd917a4SWolfgang Denk @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h 265190b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2652cfc67116SMichal Simek 265317980495SMichal Simekxupv2p_config: unconfig 2654cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2655cdd917a4SWolfgang Denk @ >$(obj)include/config.h 2656cdd917a4SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h 265790b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 265817980495SMichal Simek 26593e38691eSwdenk######################################################################### 26600afe519aSWolfgang Denk## Blackfin 26610afe519aSWolfgang Denk######################################################################### 2662ef26a08fSAubrey.Libf533-ezkit_config: unconfig 2663ef26a08fSAubrey.Li @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit 26640afe519aSWolfgang Denk 2665ef26a08fSAubrey.Libf533-stamp_config: unconfig 2666ef26a08fSAubrey.Li @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp 26670afe519aSWolfgang Denk 266826bf7decSAubrey Libf537-stamp_config: unconfig 266926bf7decSAubrey Li @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp 267026bf7decSAubrey Li 267165458987SAubrey Libf561-ezkit_config: unconfig 267265458987SAubrey Li @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit 26730afe519aSWolfgang Denk 26745e3b0bc1SHaavard Skinnemoen#======================================================================== 26755e3b0bc1SHaavard Skinnemoen# AVR32 26765e3b0bc1SHaavard Skinnemoen#======================================================================== 26775e3b0bc1SHaavard Skinnemoen######################################################################### 26785e3b0bc1SHaavard Skinnemoen## AT32AP7xxx 26795e3b0bc1SHaavard Skinnemoen######################################################################### 26805e3b0bc1SHaavard Skinnemoen 26815e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 268236f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 26835e3b0bc1SHaavard Skinnemoen 2684667568dbSHaavard Skinnemoenatstk1003_config : unconfig 2685667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2686667568dbSHaavard Skinnemoen 268764ff2357SHaavard Skinnemoenatstk1004_config : unconfig 268864ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 26890afe519aSWolfgang Denk 26900afe519aSWolfgang Denk######################################################################### 26910afe519aSWolfgang Denk######################################################################### 26923e38691eSwdenk######################################################################### 26937ebf7443Swdenk 269469df3c4dSNobuhiro Iwamatsu######################################################################### 269569df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 269669df3c4dSNobuhiro Iwamatsu######################################################################### 269769df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 269869df3c4dSNobuhiro Iwamatsu @ >include/config.h 269969df3c4dSNobuhiro Iwamatsu @echo "#define CONFIG_MS7750SE 1" >> include/config.h 270069df3c4dSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 ms7750se 270169df3c4dSNobuhiro Iwamatsu 2702d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 2703d91ea45dSNobuhiro Iwamatsu @ >include/config.h 2704d91ea45dSNobuhiro Iwamatsu @echo "#define CONFIG_MS7722SE 1" >> include/config.h 2705d91ea45dSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 ms7722se 27067a8e9bedSwdenk 27077a8e9bedSwdenk######################################################################### 27087ebf7443Swdenk######################################################################### 27097ebf7443Swdenk######################################################################### 27107ebf7443Swdenk 2711228f29acSwdenkclean: 2712f9328639SMarian Balakowicz find $(OBJTREE) -type f \ 27137f70e853Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 27147ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 27157ebf7443Swdenk | xargs rm -f 2716f9328639SMarian Balakowicz rm -f $(obj)examples/hello_world $(obj)examples/timer \ 2717f9328639SMarian Balakowicz $(obj)examples/eepro100_eeprom $(obj)examples/sched \ 2718f9328639SMarian Balakowicz $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \ 2719d214fbbdSWolfgang Denk $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \ 2720f9328639SMarian Balakowicz $(obj)examples/test_burst 2721f9328639SMarian Balakowicz rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \ 2722566a494fSHeiko Schocher $(obj)tools/gen_eth_addr $(obj)tools/ubsha1 2723f9328639SMarian Balakowicz rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb 2724f9328639SMarian Balakowicz rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo 2725f9328639SMarian Balakowicz rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend 2726f9328639SMarian Balakowicz rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv 2727f9328639SMarian Balakowicz rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image 2728f9328639SMarian Balakowicz rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit 2729f9328639SMarian Balakowicz rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin 2730f9328639SMarian Balakowicz rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom 2731f9328639SMarian Balakowicz rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds 27328440bb14SAubrey Li rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds 273365458987SAubrey Li rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds 2734f9328639SMarian Balakowicz rm -f $(obj)include/bmp_logo.h 27358318fbf8SMarian Balakowicz rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map 27367ebf7443Swdenk 27377ebf7443Swdenkclobber: clean 2738f9328639SMarian Balakowicz find $(OBJTREE) -type f \( -name .depend \ 27394c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 27404c0d4c3bSwdenk -print0 \ 27414c0d4c3bSwdenk | xargs -0 rm -f 2742f9328639SMarian Balakowicz rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h 2743f9328639SMarian Balakowicz rm -fr $(obj)*.*~ 2744f9328639SMarian Balakowicz rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2745566a494fSHeiko Schocher rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c 2746f9328639SMarian Balakowicz rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c 2747f9328639SMarian Balakowicz rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 27488318fbf8SMarian Balakowicz [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 27497ebf7443Swdenk 2750f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 27517ebf7443Swdenkmrproper \ 27527ebf7443Swdenkdistclean: clobber unconfig 2753f9328639SMarian Balakowiczelse 2754f9328639SMarian Balakowiczmrproper \ 2755f9328639SMarian Balakowiczdistclean: clobber unconfig 2756f9328639SMarian Balakowicz rm -rf $(OBJTREE)/* 2757f9328639SMarian Balakowiczendif 27587ebf7443Swdenk 27597ebf7443Swdenkbackup: 27607ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 27617ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 27627ebf7443Swdenk 27637ebf7443Swdenk######################################################################### 2764