17ebf7443Swdenk# 2fd428c05SDetlev Zundel# (C) Copyright 2000-2010 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 2493910edbSWolfgang DenkVERSION = 2010 2593910edbSWolfgang DenkPATCHLEVEL = 03 268b9e4787SWolfgang DenkSUBLEVEL = 27ca6e1c13SWolfgang DenkEXTRAVERSION = 288b9e4787SWolfgang Denkifneq "$(SUBLEVEL)" "" 29881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 308b9e4787SWolfgang Denkelse 318b9e4787SWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION) 328b9e4787SWolfgang Denkendif 33561858eeSPeter TyserTIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h 34f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h 35881a87ecSWolfgang Denk 367ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 377ebf7443Swdenk sed -e s/i.86/i386/ \ 387ebf7443Swdenk -e s/sun4u/sparc64/ \ 397ebf7443Swdenk -e s/arm.*/arm/ \ 407ebf7443Swdenk -e s/sa110/arm/ \ 417ebf7443Swdenk -e s/powerpc/ppc/ \ 42a2280646SKumar Gala -e s/ppc64/ppc/ \ 437ebf7443Swdenk -e s/macppc/ppc/) 447ebf7443Swdenk 45f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 467ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 477ebf7443Swdenk 48cf7a7b99SPeter Tyser# Set shell to bash if possible, otherwise fall back to sh 49cf7a7b99SPeter TyserSHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ 50cf7a7b99SPeter Tyser else if [ -x /bin/bash ]; then echo /bin/bash; \ 51cf7a7b99SPeter Tyser else echo sh; fi; fi) 52cf7a7b99SPeter Tyser 53cf7a7b99SPeter Tyserexport HOSTARCH HOSTOS SHELL 547ebf7443Swdenk 557ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 567ebf7443SwdenkVENDOR= 577ebf7443Swdenk 587ebf7443Swdenk######################################################################### 59ae6d1056SWolfgang Denk# Allow for silent builds 60ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS))) 61ae6d1056SWolfgang DenkXECHO = echo 62ae6d1056SWolfgang Denkelse 63ae6d1056SWolfgang DenkXECHO = : 64ae6d1056SWolfgang Denkendif 65ae6d1056SWolfgang Denk 66ae6d1056SWolfgang Denk######################################################################### 67f9328639SMarian Balakowicz# 68f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external 69f9328639SMarian Balakowicz# directory. Two use cases are supported: 70f9328639SMarian Balakowicz# 71f9328639SMarian Balakowicz# 1) Add O= to the make command line 72f9328639SMarian Balakowicz# 'make O=/tmp/build all' 73f9328639SMarian Balakowicz# 74f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location 75f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 76f9328639SMarian Balakowicz# 'make' 77f9328639SMarian Balakowicz# 78f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script 79f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 80f9328639SMarian Balakowicz# './MAKEALL' 81f9328639SMarian Balakowicz# 82f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable. 83f9328639SMarian Balakowicz# 84f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and 85f9328639SMarian Balakowicz# the object files are placed in the source directory. 86f9328639SMarian Balakowicz# 877ebf7443Swdenk 88f9328639SMarian Balakowiczifdef O 89f9328639SMarian Balakowiczifeq ("$(origin O)", "command line") 90f9328639SMarian BalakowiczBUILD_DIR := $(O) 91f9328639SMarian Balakowiczendif 92f9328639SMarian Balakowiczendif 937ebf7443Swdenk 94f9328639SMarian Balakowiczifneq ($(BUILD_DIR),) 95f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR) 964f0645ebSMarian Balakowicz 974f0645ebSMarian Balakowicz# Attempt to create a output directory. 984f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 994f0645ebSMarian Balakowicz 1004f0645ebSMarian Balakowicz# Verify if it was successful. 101f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 102f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 103f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),) 104f9328639SMarian Balakowicz 105f9328639SMarian BalakowiczOBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 106f9328639SMarian BalakowiczSRCTREE := $(CURDIR) 107f9328639SMarian BalakowiczTOPDIR := $(SRCTREE) 108f9328639SMarian BalakowiczLNDIR := $(OBJTREE) 109f9328639SMarian Balakowiczexport TOPDIR SRCTREE OBJTREE 110f9328639SMarian Balakowicz 111f9328639SMarian BalakowiczMKCONFIG := $(SRCTREE)/mkconfig 112f9328639SMarian Balakowiczexport MKCONFIG 113f9328639SMarian Balakowicz 114f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 115f9328639SMarian BalakowiczREMOTE_BUILD := 1 116f9328639SMarian Balakowiczexport REMOTE_BUILD 117f9328639SMarian Balakowiczendif 118f9328639SMarian Balakowicz 119f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile 120f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for 121f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc. 122f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 123f9328639SMarian Balakowiczobj := $(OBJTREE)/ 124f9328639SMarian Balakowiczsrc := $(SRCTREE)/ 125f9328639SMarian Balakowiczelse 126f9328639SMarian Balakowiczobj := 127f9328639SMarian Balakowiczsrc := 128f9328639SMarian Balakowiczendif 129f9328639SMarian Balakowiczexport obj src 130f9328639SMarian Balakowicz 1315013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere 1325013c09fSWolfgang Denkunexport CDPATH 1335013c09fSWolfgang Denk 134f9328639SMarian Balakowicz######################################################################### 135f9328639SMarian Balakowicz 1366d1ce387SMike Frysinger# The "tools" are needed early, so put this first 1376d1ce387SMike Frysinger# Don't include stuff already done in $(LIBS) 1386d1ce387SMike FrysingerSUBDIRS = tools \ 1391bc15386SPeter Tyser examples/standalone \ 140d4abc757SPeter Tyser examples/api 1416d1ce387SMike Frysinger 1426d1ce387SMike Frysinger.PHONY : $(SUBDIRS) 1436d1ce387SMike Frysinger 144ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 145f9328639SMarian Balakowicz 1462632c008SMike Frysinger# Include autoconf.mk before config.mk so that the config options are available 1472632c008SMike Frysinger# to all top level build files. We need the dummy all: target to prevent the 1482632c008SMike Frysinger# dependency target in autoconf.mk.dep from being the default. 1492632c008SMike Frysingerall: 1502632c008SMike Frysingersinclude $(obj)include/autoconf.mk.dep 1512632c008SMike Frysingersinclude $(obj)include/autoconf.mk 1522632c008SMike Frysinger 1537ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 154ae6d1056SWolfgang Denkinclude $(obj)include/config.mk 1551d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 156f9328639SMarian Balakowicz 1571ea6bcd8SMike Frysinger# set default to nothing for native builds 158a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 1591ea6bcd8SMike FrysingerCROSS_COMPILE ?= 1607ebf7443Swdenkendif 1617ebf7443Swdenk 16292b197f0SWolfgang Denk# load other configuration 16392b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 16492b197f0SWolfgang Denk 1657ebf7443Swdenk######################################################################### 1667ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1677ebf7443Swdenk 16803b7004dSPeter TyserOBJS = $(CPUDIR)/start.o 1692262cfeeSwdenkifeq ($(CPU),i386) 17003b7004dSPeter TyserOBJS += $(CPUDIR)/start16.o 17103b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 1722262cfeeSwdenkendif 1737ebf7443Swdenkifeq ($(CPU),ppc4xx) 17403b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 1757ebf7443Swdenkendif 17642d1f039Swdenkifeq ($(CPU),mpc85xx) 17703b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 17842d1f039Swdenkendif 1797ebf7443Swdenk 180f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 181f9328639SMarian Balakowicz 18278acc472SPeter TyserLIBS = lib/libgeneric.a 18378acc472SPeter TyserLIBS += lib/lzma/liblzma.a 18478acc472SPeter TyserLIBS += lib/lzo/liblzo.a 1857608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 1867608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 18703b7004dSPeter TyserLIBS += $(CPUDIR)/lib$(CPU).a 1881d9f4105Swdenkifdef SOC 18903b7004dSPeter TyserLIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a 1901d9f4105Swdenkendif 191323bfa8fSStefan Roeseifeq ($(CPU),ixp) 19284ad6884SPeter TyserLIBS += arch/arm/cpu/ixp/npe/libnpe.a 193323bfa8fSStefan Roeseendif 194ea0364f1SPeter TyserLIBS += arch/$(ARCH)/lib/lib$(ARCH).a 195518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 1969eefe2a2SStefan Roese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \ 1979eefe2a2SStefan Roese fs/ubifs/libubifs.a 1987ebf7443SwdenkLIBS += net/libnet.a 1997ebf7443SwdenkLIBS += disk/libdisk.a 2000f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 20133daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 20257a12720STsiChungLiewLIBS += drivers/dma/libdma.a 203c8aa7dfcSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/fpga/libfpga.a 204e92739d3SPeter TyserLIBS += drivers/gpio/libgpio.a 205f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 206080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 20716b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 208318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 2095ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a 21059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 21159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 21259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 21358be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a 214d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a 2158e585f02STsiChung LiewLIBS += drivers/net/libnet.a 21655195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a 21793a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 21873646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 219cd782635STom RixLIBS += drivers/power/libpower.a 22004a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2217737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2227737d5c6SDave LiuLIBS += drivers/qe/qe.a 2237737d5c6SDave Liuendif 224da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 225da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 226a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 227a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 22858e5e9afSKumar Galaendif 22958e5e9afSKumar Galaifeq ($(CPU),mpc86xx) 230a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 231a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 232da9d4610SAndy Flemingendif 23359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2348e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 235572e6179SDetlev ZundelLIBS += drivers/twserial/libtws.a 2362731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/gadget/libusb_gadget.a 2372731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/host/libusb_host.a 2382731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/musb/libusb_musb.a 239bffbb2a8STom RixLIBS += drivers/usb/phy/libusb_phy.a 24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 241843a2654SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/watchdog/libwatchdog.a 2427ebf7443SwdenkLIBS += common/libcommon.a 2430de71d50SPeter TyserLIBS += lib/libfdt/libfdt.a 244500856ebSRafal JaworowskiLIBS += api/libapi.a 2452d2b994aSYuri TikhonovLIBS += post/libpost.a 246f9328639SMarian Balakowicz 247f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 248561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE) 249a8c7c708Swdenk 250de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 251de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 252de109d90SWolfgang Denk 2534f7cb08eSwdenk# Add GCC lib 25452b1bf2cSWolfgang Denkifdef USE_PRIVATE_LIBGCC 25552b1bf2cSWolfgang Denkifeq ("$(USE_PRIVATE_LIBGCC)", "yes") 256ea0364f1SPeter TyserPLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc 25752b1bf2cSWolfgang Denkelse 25852b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc 25952b1bf2cSWolfgang Denkendif 26052b1bf2cSWolfgang Denkelse 26152b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 26252b1bf2cSWolfgang Denkendif 26352b1bf2cSWolfgang DenkPLATFORM_LIBS += $(PLATFORM_LIBGCC) 26452b1bf2cSWolfgang Denkexport PLATFORM_LIBS 2653d3befa7Swdenk 2666ac9f479SMike Frysinger# Special flags for CPP when processing the linker script. 2676ac9f479SMike Frysinger# Pass the version down so we can handle backwards compatibility 2686ac9f479SMike Frysinger# on the fly. 2696ac9f479SMike FrysingerLDPPFLAGS += \ 2706ac9f479SMike Frysinger -include $(TOPDIR)/include/u-boot/u-boot.lds.h \ 2716ac9f479SMike Frysinger $(shell $(LD) --version | \ 2726ac9f479SMike Frysinger sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') 2736ac9f479SMike Frysinger 274887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 275887e2ec9SStefan RoeseNAND_SPL = nand_spl 276887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 277887e2ec9SStefan Roeseendif 278887e2ec9SStefan Roese 279751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 280751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 281751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 282ca6189dbSKyungmin ParkONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin 283751b9b51SKyungmin Parkendif 284751b9b51SKyungmin Park 285f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 286de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 287f9328639SMarian Balakowicz 2887ebf7443Swdenk######################################################################### 289bdccc4feSwdenk######################################################################### 2907ebf7443Swdenk 2913e88337bSMike Frysinger# Always append ALL so that arch config.mk's can add custom ones 292751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 2937ebf7443Swdenk 294bdccc4feSwdenkall: $(ALL) 2957ebf7443Swdenk 296f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2976310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2986310eb9dSwdenk 299f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 3000817d688SRicardo Ribalda Delgado $(OBJCOPY) -O srec $< $@ 3017ebf7443Swdenk 302f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 3037ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 3047ebf7443Swdenk 30594a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 30676d82187SMike Frysinger $(CREATE_LDR_ENV) 30768e56324SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) 30894a91e24SMike Frysinger 30994a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 31094a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 31194a91e24SMike Frysinger 31294a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 31394a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 31494a91e24SMike Frysinger 315f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 316bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 317bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 318881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 319bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 320bdccc4feSwdenk -d $< $@ 321bdccc4feSwdenk 3228edcde5eSStefano Babic$(obj)u-boot.imx: $(obj)u-boot.bin 3238edcde5eSStefano Babic $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \ 3248edcde5eSStefano Babic -e $(TEXT_BASE) -d $< $@ 3258edcde5eSStefano Babic 326aa0c7a86SPrafulla Wadaskar$(obj)u-boot.kwb: $(obj)u-boot.bin 327aa0c7a86SPrafulla Wadaskar $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \ 328aa0c7a86SPrafulla Wadaskar -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@ 329aa0c7a86SPrafulla Wadaskar 330566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 33101159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 332566a494fSHeiko Schocher 333f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3347ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3357ebf7443Swdenk 336ecb1dc89SMike FrysingerGEN_UBOOT = \ 337de109d90SWolfgang Denk UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 338de109d90SWolfgang Denk sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 339f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 340f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 341b2184c31Swdenk -Map u-boot.map -o u-boot 3421aada9cdSWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds 343ecb1dc89SMike Frysinger $(GEN_UBOOT) 344ecb1dc89SMike Frysingerifeq ($(CONFIG_KALLSYMS),y) 3451aada9cdSWolfgang Denk smap=`$(call SYSTEM_MAP,u-boot) | \ 3461aada9cdSWolfgang Denk awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \ 3471aada9cdSWolfgang Denk $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \ 3481aada9cdSWolfgang Denk -c common/system_map.c -o $(obj)common/system_map.o 349ecb1dc89SMike Frysinger $(GEN_UBOOT) $(obj)common/system_map.o 350ecb1dc89SMike Frysingerendif 3517ebf7443Swdenk 352d0d6144eSPeter Tyser$(OBJS): depend 35303b7004dSPeter Tyser $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 354f9328639SMarian Balakowicz 355d0d6144eSPeter Tyser$(LIBS): depend $(SUBDIRS) 356f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 357a8c7c708Swdenk 358d0d6144eSPeter Tyser$(LIBBOARD): depend $(LIBS) 359de109d90SWolfgang Denk $(MAKE) -C $(dir $(subst $(obj),,$@)) 360de109d90SWolfgang Denk 361d0d6144eSPeter Tyser$(SUBDIRS): depend 362b028f715Swdenk $(MAKE) -C $@ all 3637ebf7443Swdenk 364d0d6144eSPeter Tyser$(LDSCRIPT): depend 365f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 366f65c9812SMike Frysinger 3671aada9cdSWolfgang Denk$(obj)u-boot.lds: $(LDSCRIPT) 3681aada9cdSWolfgang Denk $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ 3691aada9cdSWolfgang Denk 370561858eeSPeter Tyser$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 3718318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 372887e2ec9SStefan Roese 373d0d6144eSPeter Tyser$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 3748318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 375887e2ec9SStefan Roese 376561858eeSPeter Tyser$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 377f2302d44SStefan Roese $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 378751b9b51SKyungmin Park 379d0d6144eSPeter Tyser$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 380ca6189dbSKyungmin Park cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 381751b9b51SKyungmin Park 382ae6d1056SWolfgang Denk$(VERSION_FILE): 383aa737945SMike Frysinger @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 384434c51a5SPeter Tyser '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp 3850ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 386881a87ecSWolfgang Denk 387561858eeSPeter Tyser$(TIMESTAMP_FILE): 388561858eeSPeter Tyser @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ 389561858eeSPeter Tyser @date +'#define U_BOOT_TIME "%T"' >> $@ 390561858eeSPeter Tyser 3918f713fdfSdzugdbtools: 392f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 393f9328639SMarian Balakowicz 394f9328639SMarian Balakowiczupdater: 395f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 396f9328639SMarian Balakowicz 397f9328639SMarian Balakowiczenv: 39864b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 3998f713fdfSdzu 4002a998793SDaniel Hobi# Explicitly make _depend in subdirs containing multiple targets to prevent 4012a998793SDaniel Hobi# parallel sub-makes creating .depend files simultaneously. 402d0d6144eSPeter Tyserdepend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 40303b7004dSPeter Tyser for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \ 4042a998793SDaniel Hobi $(MAKE) -C $$dir _depend ; done 4057ebf7443Swdenk 406e5e4e705SLi YangTAG_SUBDIRS = $(SUBDIRS) 407e5e4e705SLi YangTAG_SUBDIRS += $(dir $(__LIBS)) 408a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 409a340c325SJean-Christophe PLAGNIOL-VILLARD 410f9328639SMarian Balakowicztags ctags: 411e5e4e705SLi Yang ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ 412e5e4e705SLi Yang -name '*.[chS]' -print` 4137ebf7443Swdenk 4147ebf7443Swdenketags: 415e5e4e705SLi Yang etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ 416e5e4e705SLi Yang -name '*.[chS]' -print` 417ffda586fSLi Yangcscope: 418e5e4e705SLi Yang find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files 419ffda586fSLi Yang cscope -b -q -k 4207ebf7443Swdenk 421ecb1dc89SMike FrysingerSYSTEM_MAP = \ 422ecb1dc89SMike Frysinger $(NM) $1 | \ 4237ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 424ecb1dc89SMike Frysinger LC_ALL=C sort 425ecb1dc89SMike Frysinger$(obj)System.map: $(obj)u-boot 426ecb1dc89SMike Frysinger @$(call SYSTEM_MAP,$<) > $(obj)System.map 4277ebf7443Swdenk 4282f155f6cSGrant Likely# 4292f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4302f155f6cSGrant Likely# 4312f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4322f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4332f155f6cSGrant Likely# to regenerate the autoconf.mk file. 4341510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h 4351510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 43616fe7775SMike Frysinger set -e ; \ 437ae6d1056SWolfgang Denk : Generate the dependancies ; \ 4389aef7388SMike Frysinger $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ 4391510b82dSWolfgang Denk -MQ $(obj)include/autoconf.mk include/common.h > $@ 4401510b82dSWolfgang Denk 4411510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h 4421510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 4431510b82dSWolfgang Denk set -e ; \ 444ae6d1056SWolfgang Denk : Extract the config macros ; \ 4451510b82dSWolfgang Denk $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ 4464a0f7538SWolfgang Denk sed -n -f tools/scripts/define2mk.sed > $@.tmp && \ 4474a0f7538SWolfgang Denk mv $@.tmp $@ 4482f155f6cSGrant Likely 4497ebf7443Swdenk######################################################################### 450ae6d1056SWolfgang Denkelse # !config.mk 451f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 452f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 453c7c0d542SMike Frysinger$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \ 454c7c0d542SMike Frysingerupdater env depend dep tags ctags etags cscope $(obj)System.map: 4557ebf7443Swdenk @echo "System not configured - see README" >&2 4567ebf7443Swdenk @ exit 1 457c7c0d542SMike Frysinger 458c7c0d542SMike Frysingertools: 459c7c0d542SMike Frysinger $(MAKE) -C tools 460c7c0d542SMike Frysingertools-all: 461c7c0d542SMike Frysinger $(MAKE) -C tools HOST_TOOLS_ALL=y 462ae6d1056SWolfgang Denkendif # config.mk 4637ebf7443Swdenk 4644e53a258SWolfgang Denk.PHONY : CHANGELOG 4654e53a258SWolfgang DenkCHANGELOG: 466b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 467b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4684e53a258SWolfgang Denk 4690a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING 4700a823aa2SHarald Welte cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h 4717ebf7443Swdenk######################################################################### 4727ebf7443Swdenk 4737ebf7443Swdenkunconfig: 474887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4752f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4762f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4777ebf7443Swdenk 4789f4a4206SMike Frysinger%: %_config 4799f4a4206SMike Frysinger $(MAKE) 4809f4a4206SMike Frysinger 4817ebf7443Swdenk#======================================================================== 4827ebf7443Swdenk# PowerPC 4837ebf7443Swdenk#======================================================================== 4840db5bca8Swdenk 4850db5bca8Swdenk######################################################################### 4860db5bca8Swdenk## MPC5xx Systems 4870db5bca8Swdenk######################################################################### 4880db5bca8Swdenk 4895e5f9ed2Swdenkcanmb_config: unconfig 490a47a12beSStefan Roese @$(MKCONFIG) -a canmb powerpc mpc5xxx canmb 4915e5f9ed2Swdenk 4920db5bca8Swdenkcmi_mpc5xx_config: unconfig 493a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc5xx cmi 4940db5bca8Swdenk 495b6e4c403SwdenkPATI_config: unconfig 496a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc5xx pati mpl 497b6e4c403Swdenk 4987ebf7443Swdenk######################################################################### 499945af8d7Swdenk## MPC5xxx Systems 500945af8d7Swdenk######################################################################### 501a87589daSwdenk 502dafba16eSWolfgang Denkaev_config: unconfig 503a47a12beSStefan Roese @$(MKCONFIG) -a aev powerpc mpc5xxx tqm5200 tqc 504dafba16eSWolfgang Denk 5056ca24c64Sdzu@denx.deBC3450_config: unconfig 506a47a12beSStefan Roese @$(MKCONFIG) -a BC3450 powerpc mpc5xxx bc3450 5076ca24c64Sdzu@denx.de 508699f0512SWolfgang Denkcm5200_config: unconfig 509a47a12beSStefan Roese @$(MKCONFIG) -a cm5200 powerpc mpc5xxx cm5200 510699f0512SWolfgang Denk 5115e4b3361SStefan Roesecpci5200_config: unconfig 512a47a12beSStefan Roese @$(MKCONFIG) -a cpci5200 powerpc mpc5xxx cpci5200 esd 5135e4b3361SStefan Roese 5145c4fa9b4SGrzegorz Bernackidigsy_mtc_config \ 5155c4fa9b4SGrzegorz Bernackidigsy_mtc_LOWBOOT_config \ 5165c4fa9b4SGrzegorz Bernackidigsy_mtc_RAMBOOT_config: unconfig 5175c4fa9b4SGrzegorz Bernacki @mkdir -p $(obj)include 5185c4fa9b4SGrzegorz Bernacki @mkdir -p $(obj)board/digsy_mtc 5195c4fa9b4SGrzegorz Bernacki @ >$(obj)include/config.h 5205c4fa9b4SGrzegorz Bernacki @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 5215c4fa9b4SGrzegorz Bernacki { echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \ 5225c4fa9b4SGrzegorz Bernacki echo "... with LOWBOOT configuration" ; \ 5235c4fa9b4SGrzegorz Bernacki } 5245c4fa9b4SGrzegorz Bernacki @[ -z "$(findstring RAMBOOT_,$@)" ] || \ 5255c4fa9b4SGrzegorz Bernacki { echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \ 5265c4fa9b4SGrzegorz Bernacki echo "... with RAMBOOT configuration" ; \ 5275c4fa9b4SGrzegorz Bernacki } 528a47a12beSStefan Roese @$(MKCONFIG) -a digsy_mtc powerpc mpc5xxx digsy_mtc 5295c4fa9b4SGrzegorz Bernacki 5305b53b29bSEric Millbrandtgalaxy5200_LOWBOOT_config \ 5315b53b29bSEric Millbrandtgalaxy5200_config: unconfig 5325b53b29bSEric Millbrandt @mkdir -p $(obj)include 5335b53b29bSEric Millbrandt @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 534a47a12beSStefan Roese @$(MKCONFIG) -a galaxy5200 powerpc mpc5xxx galaxy5200 5355b53b29bSEric Millbrandt 536a87589daSwdenkhmi1001_config: unconfig 537a47a12beSStefan Roese @$(MKCONFIG) hmi1001 powerpc mpc5xxx hmi1001 538a87589daSwdenk 539e35745bbSwdenkLite5200_config \ 540e35745bbSwdenkLite5200_LOWBOOT_config \ 541e35745bbSwdenkLite5200_LOWBOOT08_config \ 542e35745bbSwdenkicecube_5200_config \ 543e35745bbSwdenkicecube_5200_LOWBOOT_config \ 544e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 545b2001f27Swdenkicecube_5200_DDR_config \ 54679d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 547fd428c05SDetlev Zundelicecube_5200_DDR_LOWBOOT08_config: unconfig 548f9328639SMarian Balakowicz @mkdir -p $(obj)include 549f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 55017d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 55117d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 552f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 553f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 55417d704ebSwdenk fi ; \ 555ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5565cf9da48Swdenk } 5575cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 558f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 5595cf9da48Swdenk echo "... with 8 MB flash only" ; \ 560ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5615cf9da48Swdenk } 562b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 563f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 564ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 565b2001f27Swdenk } 566a47a12beSStefan Roese @$(MKCONFIG) -a IceCube powerpc mpc5xxx icecube 567945af8d7Swdenk 5682605e90bSHeiko Schocherjupiter_config: unconfig 569a47a12beSStefan Roese @$(MKCONFIG) jupiter powerpc mpc5xxx jupiter 5702605e90bSHeiko Schocher 571138ff60cSwdenkinka4x0_config: unconfig 572a47a12beSStefan Roese @$(MKCONFIG) inka4x0 powerpc mpc5xxx inka4x0 573138ff60cSwdenk 574cd12f615SWolfgang Grandeggeripek01_config: unconfig 575a47a12beSStefan Roese @$(MKCONFIG) -a ipek01 powerpc mpc5xxx ipek01 576cd12f615SWolfgang Grandegger 57709e4b0c5SWolfgang Denklite5200b_config \ 578d3832e8fSDomen Puncerlite5200b_PM_config \ 57909e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 580f9328639SMarian Balakowicz @mkdir -p $(obj)include 581f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 582f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 583ae6d1056SWolfgang Denk @ $(XECHO) "... DDR memory revision" 584f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 585d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 586d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 587ae6d1056SWolfgang Denk $(XECHO) "... with power management (low-power mode) support" ; \ 588d3832e8fSDomen Puncer } 58909e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 590f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 591ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 59209e4b0c5SWolfgang Denk } 593a47a12beSStefan Roese @$(MKCONFIG) -a IceCube powerpc mpc5xxx icecube 59409e4b0c5SWolfgang Denk 595f1ee9825SStefan Roesemcc200_config \ 596ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 597ed1cf845SWolfgang Denkmcc200_highboot_config \ 598ed1cf845SWolfgang Denkmcc200_COM12_config \ 599ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 600113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 601113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 602ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 603ed1cf845SWolfgang Denkprs200_config \ 604ed1cf845SWolfgang Denkprs200_DDR_config \ 605ed1cf845SWolfgang Denkprs200_highboot_config \ 606ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 607f9328639SMarian Balakowicz @mkdir -p $(obj)include 608f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 6094819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 610ae6d1056SWolfgang Denk { $(XECHO) "... with lowboot configuration" ; \ 611f1ee9825SStefan Roese } 6124819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 613f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 614ae6d1056SWolfgang Denk $(XECHO) "... with highboot configuration" ; \ 6154819fad9SWolfgang Denk } 6164819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 617ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 618ed1cf845SWolfgang Denk then \ 619ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 620ed1cf845SWolfgang Denk else \ 621ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 622ed1cf845SWolfgang Denk then \ 623ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 624ed1cf845SWolfgang Denk else \ 625f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 626ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 627ed1cf845SWolfgang Denk fi; \ 628ed1cf845SWolfgang Denk fi; \ 6294819fad9SWolfgang Denk } 6304819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 631f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 632ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 6334819fad9SWolfgang Denk } 634463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 635f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 636ae6d1056SWolfgang Denk $(XECHO) "... with console on COM12" ; \ 637463764c8SWolfgang Denk } 638ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 639f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 640ed1cf845SWolfgang Denk } 641a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200 64286ea5f93SWolfgang Denk 6438b7d1f0aSStefan Roesemecp5200_config: unconfig 644a47a12beSStefan Roese @$(MKCONFIG) mecp5200 powerpc mpc5xxx mecp5200 esd 6458b7d1f0aSStefan Roese 646699f0512SWolfgang Denkmotionpro_config: unconfig 647a47a12beSStefan Roese @$(MKCONFIG) motionpro powerpc mpc5xxx motionpro 648699f0512SWolfgang Denk 649258c37b1SHeiko Schochermucmc52_config: unconfig 650a47a12beSStefan Roese @$(MKCONFIG) mucmc52 powerpc mpc5xxx mucmc52 651258c37b1SHeiko Schocher 6526341d9d7SHeiko Schochermunices_config: unconfig 653a47a12beSStefan Roese @$(MKCONFIG) munices powerpc mpc5xxx munices 6546341d9d7SHeiko Schocher 655699f0512SWolfgang DenkMVBC_P_config: unconfig 656699f0512SWolfgang Denk @mkdir -p $(obj)include 657699f0512SWolfgang Denk @mkdir -p $(obj)board/mvbc_p 658699f0512SWolfgang Denk @ >$(obj)include/config.h 659699f0512SWolfgang Denk @[ -z "$(findstring MVBC_P,$@)" ] || \ 660699f0512SWolfgang Denk { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; } 661a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a MVBC_P powerpc mpc5xxx mvbc_p matrix_vision 662699f0512SWolfgang Denk 6631f2463d7SAndre SchwarzMVSMR_config: unconfig 6641f2463d7SAndre Schwarz @mkdir -p $(obj)include 6651f2463d7SAndre Schwarz @mkdir -p $(obj)board/matrix_vision/mvsmr 666a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc5xxx mvsmr matrix_vision 6671f2463d7SAndre Schwarz 66891c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config: unconfig 669a47a12beSStefan Roese @$(MKCONFIG) o2dnt powerpc mpc5xxx o2dnt 670df04a3dfSWolfgang Denk 671c9969947SJon Smirlpcm030_config \ 672c9969947SJon Smirlpcm030_LOWBOOT_config: unconfig 673341245a2SWolfgang Denk @mkdir -p $(obj)include $(obj)board/phytec/pcm030 6740a87dd90SWolfgang Denk @ >$(obj)include/config.h 675c9969947SJon Smirl @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 676c9969947SJon Smirl { echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp ; \ 677c9969947SJon Smirl echo "... with LOWBOOT configuration" ; \ 678c9969947SJon Smirl } 679a47a12beSStefan Roese @$(MKCONFIG) -a pcm030 powerpc mpc5xxx pcm030 phytec 680c9969947SJon Smirl 6815e4b3361SStefan Roesepf5200_config: unconfig 682a47a12beSStefan Roese @$(MKCONFIG) pf5200 powerpc mpc5xxx pf5200 esd 6835e4b3361SStefan Roese 68489394047SwdenkPM520_config \ 68589394047SwdenkPM520_DDR_config \ 68689394047SwdenkPM520_ROMBOOT_config \ 68789394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 688f9328639SMarian Balakowicz @mkdir -p $(obj)include 68989394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 690f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 691ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 69289394047Swdenk } 69389394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 694f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 695ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 69689394047Swdenk } 697a47a12beSStefan Roese @$(MKCONFIG) -a PM520 powerpc mpc5xxx pm520 69889394047Swdenk 6996624b687SWolfgang Denksmmaco4_config: unconfig 700a47a12beSStefan Roese @$(MKCONFIG) -a smmaco4 powerpc mpc5xxx tqm5200 tqc 7019cdc8386SWolfgang Denk 7029cdc8386SWolfgang Denkspieval_config: unconfig 703a47a12beSStefan Roese @$(MKCONFIG) -a spieval powerpc mpc5xxx tqm5200 tqc 7049cdc8386SWolfgang Denk 70545a212c4SWolfgang DenkTB5200_B_config \ 706b87dfd28SWolfgang DenkTB5200_config: unconfig 707f9328639SMarian Balakowicz @mkdir -p $(obj)include 70845a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 709f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 710ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200B processor" ; \ 71145a212c4SWolfgang Denk } 712a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc 713b87dfd28SWolfgang Denk 714d4ca31c4SwdenkMINI5200_config \ 715d4ca31c4SwdenkEVAL5200_config \ 716d4ca31c4SwdenkTOP5200_config: unconfig 717f9328639SMarian Balakowicz @mkdir -p $(obj)include 718f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 719a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk 720d4ca31c4Swdenk 7216c7a1408SwdenkTotal5200_config \ 7226c7a1408SwdenkTotal5200_lowboot_config \ 7236c7a1408SwdenkTotal5200_Rev2_config \ 7246c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 725f9328639SMarian Balakowicz @mkdir -p $(obj)include 726f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 7276c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 728f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 729ae6d1056SWolfgang Denk $(XECHO) "... revision 1 board" ; \ 7306c7a1408Swdenk } 7316c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 732f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 733ae6d1056SWolfgang Denk $(XECHO) "... revision 2 board" ; \ 7346c7a1408Swdenk } 7356c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 736f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 737ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 7386c7a1408Swdenk } 739a47a12beSStefan Roese @$(MKCONFIG) -a Total5200 powerpc mpc5xxx total5200 7406c7a1408Swdenk 7415196a7a0SWolfgang Denkcam5200_config \ 742d9384de2SMarian Balakowiczcam5200_niosflash_config \ 7435196a7a0SWolfgang Denkfo300_config \ 7445196a7a0SWolfgang DenkMiniFAP_config \ 7455078cce8SWolfgang DenkTQM5200S_config \ 7465078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 7475196a7a0SWolfgang DenkTQM5200_B_config \ 7485196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 7495196a7a0SWolfgang DenkTQM5200_config \ 7505196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 751f9328639SMarian Balakowicz @mkdir -p $(obj)include 7524677988cSWolfgang Grandegger @mkdir -p $(obj)board/tqc/tqm5200 753135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 754f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 755f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 756f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 757ae6d1056SWolfgang Denk $(XECHO) "... TQM5200S on Cam5200" ; \ 7585078cce8SWolfgang Denk } 759d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 760d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 761ae6d1056SWolfgang Denk $(XECHO) "... with NIOS flash driver" ; \ 762d9384de2SMarian Balakowicz } 7636d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 764f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 765ae6d1056SWolfgang Denk $(XECHO) "... TQM5200 on FO300" ; \ 7666d3bc9b8SMarian Balakowicz } 767cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 768f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 769ae6d1056SWolfgang Denk $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 770978b1096SWolfgang Denk } 771cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 772f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 773ae6d1056SWolfgang Denk $(XECHO) "... on a STK52XX.100 base board" ; \ 77456523f12Swdenk } 7755078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 776f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 7775078cce8SWolfgang Denk } 7785078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 779f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 780f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 78145a212c4SWolfgang Denk } 782978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 783f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 784978b1096SWolfgang Denk } 785a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc 786699f0512SWolfgang Denk 7876dedf3d4SHeiko Schocheruc101_config: unconfig 788a47a12beSStefan Roese @$(MKCONFIG) uc101 powerpc mpc5xxx uc101 78953d4a498SBartlomiej Sieka 790699f0512SWolfgang Denkv38b_config: unconfig 791a47a12beSStefan Roese @$(MKCONFIG) -a v38b powerpc mpc5xxx v38b 79256523f12Swdenk 793945af8d7Swdenk######################################################################### 7948993e54bSRafal Jaworowski## MPC512x Systems 7958993e54bSRafal Jaworowski######################################################################### 796699f0512SWolfgang Denk 79752568c36SWolfgang Denkaria_config: unconfig 798a47a12beSStefan Roese @$(MKCONFIG) -a aria powerpc mpc512x aria davedenx 79952568c36SWolfgang Denk 800e53b507cSStefan Roesemecp5123_config: unconfig 801a47a12beSStefan Roese @$(MKCONFIG) -a mecp5123 powerpc mpc512x mecp5123 esd 802e53b507cSStefan Roese 80372601d04SWolfgang Denkmpc5121ads_config \ 80472601d04SWolfgang Denkmpc5121ads_rev2_config \ 8055f91db7fSJohn Rigby : unconfig 806210ed200SWolfgang Denk @mkdir -p $(obj)include 807f31c49dbSMartha Marx @if [ "$(findstring rev2,$@)" ] ; then \ 808f31c49dbSMartha Marx echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \ 8095f91db7fSJohn Rigby fi 810a47a12beSStefan Roese @$(MKCONFIG) -a mpc5121ads powerpc mpc512x mpc5121ads freescale 8118993e54bSRafal Jaworowski 812a3921eefSAnatolij Gustschinpdm360ng_config: unconfig 813a3921eefSAnatolij Gustschin @$(MKCONFIG) -a pdm360ng powerpc mpc512x pdm360ng 814a3921eefSAnatolij Gustschin 8158993e54bSRafal Jaworowski######################################################################### 8167ebf7443Swdenk## MPC8xx Systems 8177ebf7443Swdenk######################################################################### 8187ebf7443Swdenk 8192d24a3a7SwdenkAdder_config \ 8202d24a3a7SwdenkAdder87x_config \ 82126238132SwdenkAdderII_config \ 8222d24a3a7Swdenk : unconfig 823f9328639SMarian Balakowicz @mkdir -p $(obj)include 82426238132Swdenk $(if $(findstring AdderII,$@), \ 825f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 826a47a12beSStefan Roese @$(MKCONFIG) -a Adder powerpc mpc8xx adder 8272d24a3a7Swdenk 82816c8d5e7SWolfgang DenkAdderUSB_config: unconfig 829a47a12beSStefan Roese @$(MKCONFIG) -a AdderUSB powerpc mpc8xx adder 83016c8d5e7SWolfgang Denk 831180d3f74SwdenkADS860_config \ 832180d3f74SwdenkFADS823_config \ 833180d3f74SwdenkFADS850SAR_config \ 834180d3f74SwdenkMPC86xADS_config \ 8351114257cSwdenkMPC885ADS_config \ 836180d3f74SwdenkFADS860T_config: unconfig 837a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx fads 8387ebf7443Swdenk 8397ebf7443SwdenkAMX860_config : unconfig 840a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx amx860 westel 8417ebf7443Swdenk 8427ebf7443Swdenkc2mon_config: unconfig 843a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx c2mon 8447ebf7443Swdenk 8457ebf7443SwdenkCCM_config: unconfig 846a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx CCM siemens 8477ebf7443Swdenk 8487ebf7443Swdenkcogent_mpc8xx_config: unconfig 849a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx cogent 8507ebf7443Swdenk 8513bac3513SwdenkELPT860_config: unconfig 852a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx elpt860 LEOX 8533bac3513Swdenk 85484c960ceSWolfgang DenkEP88x_config: unconfig 855a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx ep88x 85684c960ceSWolfgang Denk 8577ebf7443SwdenkESTEEM192E_config: unconfig 858a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx esteem192e 8597ebf7443Swdenk 8607ebf7443SwdenkETX094_config : unconfig 861a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx etx094 8627ebf7443Swdenk 8637ebf7443SwdenkFLAGADM_config: unconfig 864a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx flagadm 8657ebf7443Swdenk 8667aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 8677aa78614Swdenk 8687aa78614SwdenkGEN860T_SC_config \ 8697ebf7443SwdenkGEN860T_config: unconfig 870f9328639SMarian Balakowicz @mkdir -p $(obj)include 8717aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 872f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 873ae6d1056SWolfgang Denk $(XECHO) "With reduced H/W feature set (SC)..." ; \ 8747aa78614Swdenk } 875a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_GEN860T,$@) powerpc mpc8xx gen860t 8767ebf7443Swdenk 8777ebf7443SwdenkGENIETV_config: unconfig 878a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx genietv 8797ebf7443Swdenk 8807ebf7443SwdenkGTH_config: unconfig 881a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx gth 8827ebf7443Swdenk 8837ebf7443Swdenkhermes_config : unconfig 884a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx hermes 8857ebf7443Swdenk 886c40b2956SwdenkHMI10_config : unconfig 887a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx tqm8xx tqc 888c40b2956Swdenk 8897ebf7443SwdenkIAD210_config: unconfig 890a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx IAD210 siemens 8917ebf7443Swdenk 8927ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 8937ebf7443Swdenk 8947ebf7443SwdenkICU862_100MHz_config \ 8957ebf7443SwdenkICU862_config: unconfig 896f9328639SMarian Balakowicz @mkdir -p $(obj)include 8977ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 898f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 899ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 9007ebf7443Swdenk } 901a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_ICU862,$@) powerpc mpc8xx icu862 9027ebf7443Swdenk 9037ebf7443SwdenkIP860_config : unconfig 904a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx ip860 9057ebf7443Swdenk 9067ebf7443SwdenkIVML24_256_config \ 9077ebf7443SwdenkIVML24_128_config \ 9087ebf7443SwdenkIVML24_config: unconfig 909f9328639SMarian Balakowicz @mkdir -p $(obj)include 9107ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 911f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 9127ebf7443Swdenk } 9137ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 914f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 9157ebf7443Swdenk } 9167ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 917f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 9187ebf7443Swdenk } 919a47a12beSStefan Roese @$(MKCONFIG) -a IVML24 powerpc mpc8xx ivm 9207ebf7443Swdenk 9217ebf7443SwdenkIVMS8_256_config \ 9227ebf7443SwdenkIVMS8_128_config \ 9237ebf7443SwdenkIVMS8_config: unconfig 924f9328639SMarian Balakowicz @mkdir -p $(obj)include 9257ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 926f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 9277ebf7443Swdenk } 9287ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 929f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 9307ebf7443Swdenk } 9317ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 932f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 9337ebf7443Swdenk } 934a47a12beSStefan Roese @$(MKCONFIG) -a IVMS8 powerpc mpc8xx ivm 9357ebf7443Swdenk 9361b6275dfSHeiko Schocherkmsupx4_config: unconfig 937a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx km8xx keymile 9381b6275dfSHeiko Schocher 93956f94be3SwdenkKUP4K_config : unconfig 940a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx kup4k kup 9410608e04dSwdenk 9420608e04dSwdenkKUP4X_config : unconfig 943a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx kup4x kup 94456f94be3Swdenk 9457ebf7443SwdenkLANTEC_config : unconfig 946a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx lantec 9477ebf7443Swdenk 9487ebf7443Swdenklwmon_config: unconfig 949a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx lwmon 9507ebf7443Swdenk 9517ebf7443SwdenkMBX_config \ 9527ebf7443SwdenkMBX860T_config: unconfig 953a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx mbx8xx 9547ebf7443Swdenk 955381e4e63SHeiko Schochermgsuvd_config: unconfig 956a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx km8xx keymile 957381e4e63SHeiko Schocher 9587ebf7443SwdenkMHPC_config: unconfig 959a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx mhpc eltec 9607ebf7443Swdenk 961993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 962993cad93Swdenk 963993cad93SwdenkNETVIA_V2_config \ 9647ebf7443SwdenkNETVIA_config: unconfig 965f9328639SMarian Balakowicz @mkdir -p $(obj)include 966993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 967f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 968ae6d1056SWolfgang Denk $(XECHO) "... Version 1" ; \ 969993cad93Swdenk } 970993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 971f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 972ae6d1056SWolfgang Denk $(XECHO) "... Version 2" ; \ 973993cad93Swdenk } 974a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_NETVIA,$@) powerpc mpc8xx netvia 9757ebf7443Swdenk 976c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 977c26e454dSwdenk 978c26e454dSwdenkNETPHONE_V2_config \ 97904a85b3bSwdenkNETPHONE_config: unconfig 980f9328639SMarian Balakowicz @mkdir -p $(obj)include 981c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 982f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 983c26e454dSwdenk } 984c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 985f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 986c26e454dSwdenk } 987a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) powerpc mpc8xx netphone 98804a85b3bSwdenk 98979fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 99004a85b3bSwdenk 99179fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 99279fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 99379fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 99479fa88f3SwdenkNETTA_SWAPHOOK_config \ 99579fa88f3SwdenkNETTA_ISDN_6412_config \ 99604a85b3bSwdenkNETTA_ISDN_config \ 99779fa88f3SwdenkNETTA_6412_config \ 99804a85b3bSwdenkNETTA_config: unconfig 999f9328639SMarian Balakowicz @mkdir -p $(obj)include 100079fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 1001f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 100204a85b3bSwdenk } 100379fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 1004f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 100579fa88f3Swdenk } 100679fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 1007f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 100879fa88f3Swdenk } 100979fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 1010f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 101179fa88f3Swdenk } 101279fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 1013f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 101479fa88f3Swdenk } 101579fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 1016f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 101779fa88f3Swdenk } 1018a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_NETTA,$@) powerpc mpc8xx netta 101904a85b3bSwdenk 102079fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 102179fa88f3Swdenk 102279fa88f3SwdenkNETTA2_V2_config \ 102379fa88f3SwdenkNETTA2_config: unconfig 1024f9328639SMarian Balakowicz @mkdir -p $(obj)include 102579fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 1026f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 102779fa88f3Swdenk } 102879fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 1029f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 103079fa88f3Swdenk } 1031a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_NETTA2,$@) powerpc mpc8xx netta2 103279fa88f3Swdenk 1033a367d426Sdzu@denx.deNC650_Rev1_config \ 1034a367d426Sdzu@denx.deNC650_Rev2_config \ 1035a367d426Sdzu@denx.deCP850_config: unconfig 1036f9328639SMarian Balakowicz @mkdir -p $(obj)include 1037a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 1038f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 1039f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 1040a367d426Sdzu@denx.de } 1041a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 1042f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 1043a367d426Sdzu@denx.de } 1044a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 1045f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 1046a367d426Sdzu@denx.de } 1047a47a12beSStefan Roese @$(MKCONFIG) -a NC650 powerpc mpc8xx nc650 10487ca202f5Swdenk 10497ebf7443SwdenkNX823_config: unconfig 1050a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx nx823 10517ebf7443Swdenk 10527ebf7443Swdenkpcu_e_config: unconfig 1053a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx pcu_e siemens 10547ebf7443Swdenk 10553bbc899fSwdenkQS850_config: unconfig 1056a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs850 snmc 10573bbc899fSwdenk 10583bbc899fSwdenkQS823_config: unconfig 1059a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs850 snmc 10603bbc899fSwdenk 10613bbc899fSwdenkQS860T_config: unconfig 1062a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs860t snmc 10633bbc899fSwdenk 1064da93ed81Swdenkquantum_config: unconfig 1065a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx quantum 1066da93ed81Swdenk 10677ebf7443SwdenkR360MPI_config: unconfig 1068a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx r360mpi 10697ebf7443Swdenk 1070682011ffSwdenkRBC823_config: unconfig 1071a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx rbc823 1072682011ffSwdenk 10737ebf7443SwdenkRPXClassic_config: unconfig 1074a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RPXClassic 10757ebf7443Swdenk 10767ebf7443SwdenkRPXlite_config: unconfig 1077a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RPXlite 10787ebf7443Swdenk 1079e63c8ee3SwdenkRPXlite_DW_64_config \ 1080e63c8ee3SwdenkRPXlite_DW_LCD_config \ 1081e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 1082e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 1083e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 1084e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 1085e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 1086e63c8ee3SwdenkRPXlite_DW_config: unconfig 1087f9328639SMarian Balakowicz @mkdir -p $(obj)include 1088e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 1089f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1090ae6d1056SWolfgang Denk $(XECHO) "... with 64MHz system clock ..."; \ 1091e63c8ee3Swdenk } 1092e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1093f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1094f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1095ae6d1056SWolfgang Denk $(XECHO) "... with LCD display ..."; \ 1096e63c8ee3Swdenk } 1097e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 10989314cee6SJean-Christophe PLAGNIOL-VILLARD { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1099ae6d1056SWolfgang Denk $(XECHO) "... with ENV in NVRAM ..."; \ 1100e63c8ee3Swdenk } 1101a47a12beSStefan Roese @$(MKCONFIG) -a RPXlite_DW powerpc mpc8xx RPXlite_dw 1102e63c8ee3Swdenk 110373a8b27cSwdenkrmu_config: unconfig 1104a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx rmu 110573a8b27cSwdenk 11067ebf7443SwdenkRRvision_config: unconfig 1107a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RRvision 11087ebf7443Swdenk 11097ebf7443SwdenkRRvision_LCD_config: unconfig 1110f9328639SMarian Balakowicz @mkdir -p $(obj)include 1111f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1112f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1113a47a12beSStefan Roese @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision 11147ebf7443Swdenk 11157ebf7443SwdenkSM850_config : unconfig 1116a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx tqm8xx tqc 11177ebf7443Swdenk 111891c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config: unconfig 1119a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx spc1920 1120b02d0177SMarkus Klotzbuecher 11217ebf7443SwdenkSPD823TS_config: unconfig 1122a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx spd8xx 11237ebf7443Swdenk 11246bdf4306SWolfgang Denkstxxtc_config: unconfig 1125a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx stxxtc stx 11266bdf4306SWolfgang Denk 1127dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1128a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx svm_sc8xx 1129dc7c9a1aSwdenk 11307ebf7443SwdenkSXNI855T_config: unconfig 1131a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx sixnet 11327ebf7443Swdenk 1133db2f721fSwdenk# EMK MPC8xx based modules 1134db2f721fSwdenkTOP860_config: unconfig 1135a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx top860 emk 1136db2f721fSwdenk 11377ebf7443Swdenk# Play some tricks for configuration selection 1138e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1139e9132ea9Swdenk# and only 823 boards may have LCD support 1140e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 11417ebf7443Swdenk 11427ebf7443SwdenkFPS850L_config \ 1143384ae025SwdenkFPS860L_config \ 1144f12e568cSwdenkNSCU_config \ 11457ebf7443SwdenkTQM823L_config \ 11467ebf7443SwdenkTQM823L_LCD_config \ 11477ebf7443SwdenkTQM850L_config \ 11487ebf7443SwdenkTQM855L_config \ 11497ebf7443SwdenkTQM860L_config \ 1150d126bfbdSwdenkTQM862L_config \ 1151ae3af05eSwdenkTQM823M_config \ 1152ae3af05eSwdenkTQM850M_config \ 1153f12e568cSwdenkTQM855M_config \ 1154f12e568cSwdenkTQM860M_config \ 1155f12e568cSwdenkTQM862M_config \ 11568cba090cSWolfgang DenkTQM866M_config \ 1157090eb735SMarkus KlotzbuecherTQM885D_config \ 1158efc6f447SGuennadi LiakhovetskiTK885D_config \ 11598cba090cSWolfgang Denkvirtlab2_config: unconfig 1160f9328639SMarian Balakowicz @mkdir -p $(obj)include 11617ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1162f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1163f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1164ae6d1056SWolfgang Denk $(XECHO) "... with LCD display" ; \ 11657ebf7443Swdenk } 1166a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc 11677ebf7443Swdenk 11687ebf7443SwdenkTTTech_config: unconfig 1169f9328639SMarian Balakowicz @mkdir -p $(obj)include 1170f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1171f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1172a47a12beSStefan Roese @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 11737ebf7443Swdenk 1174ec0aee7bSwdenkuc100_config : unconfig 1175a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx uc100 1176f7d1572bSwdenk 1177608c9146Swdenkv37_config: unconfig 1178f9328639SMarian Balakowicz @mkdir -p $(obj)include 1179f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1180f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1181a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8xx v37 1182608c9146Swdenk 118391e940d9Sdzuwtk_config: unconfig 1184f9328639SMarian Balakowicz @mkdir -p $(obj)include 1185f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1186f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1187a47a12beSStefan Roese @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 118891e940d9Sdzu 11897ebf7443Swdenk######################################################################### 11907ebf7443Swdenk## PPC4xx Systems 11917ebf7443Swdenk######################################################################### 1192e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 11937ebf7443Swdenk 119416c0cc1cSStefan Roeseacadia_config: unconfig 1195a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx acadia amcc 119616c0cc1cSStefan Roese 1197c440bfe6SStefan Roeseacadia_nand_config: unconfig 119863e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 119963e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1200c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1201a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc 1202c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1203c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1204c440bfe6SStefan Roese 12057ebf7443SwdenkADCIOP_config: unconfig 1206a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx adciop esd 12077ebf7443Swdenk 1208899620c2SStefan Roesealpr_config: unconfig 1209a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx alpr prodrive 1210899620c2SStefan Roese 12117521af1cSWolfgang DenkAP1000_config:unconfig 1212a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ap1000 amirix 12137521af1cSWolfgang Denk 1214c419d1d6SstroeseAPC405_config: unconfig 1215a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx apc405 esd 1216c419d1d6Sstroese 12177ebf7443SwdenkAR405_config: unconfig 1218a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ar405 esd 12197ebf7443Swdenk 1220549826eaSstroeseASH405_config: unconfig 1221a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ash405 esd 1222549826eaSstroese 12238a316c9bSStefan Roesebamboo_config: unconfig 1224a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx bamboo amcc 12258a316c9bSStefan Roese 1226cf959c7dSStefan Roesebamboo_nand_config: unconfig 122763e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 122863e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1229cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1230a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc 1231cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1232cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1233cf959c7dSStefan Roese 12348a316c9bSStefan Roesebubinga_config: unconfig 1235a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx bubinga amcc 1236549826eaSstroese 12377ebf7443SwdenkCANBT_config: unconfig 1238a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx canbt esd 12397ebf7443Swdenk 1240f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images 1241f09f09d3SAdam Grahamarches_config \ 12424c9e8557SStefan Roesecanyonlands_config \ 12434c9e8557SStefan Roeseglacier_config: unconfig 12444c9e8557SStefan Roese @mkdir -p $(obj)include 12454c9e8557SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 12464c9e8557SStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1247a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 1248c813f1f8SStefan Roese 1249fe7c0db6SStefan Roesecanyonlands_nand_config \ 1250fe7c0db6SStefan Roeseglacier_nand_config: unconfig 125171665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 125271665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 125371665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1254fe7c0db6SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 1255fe7c0db6SStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1256a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 125771665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 125871665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 125971665ebfSStefan Roese 12601d6f9720SwdenkCATcenter_config \ 12611d6f9720SwdenkCATcenter_25_config \ 12621d6f9720SwdenkCATcenter_33_config: unconfig 1263f9328639SMarian Balakowicz @mkdir -p $(obj)include 1264f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1265f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 12661d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1267f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1268ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 12691d6f9720Swdenk } 12701d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1271f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1272ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 12731d6f9720Swdenk } 1274a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_4xx,$@) powerpc ppc4xx PPChameleonEVB dave 127510767ccbSwdenk 1276699f0512SWolfgang DenkCMS700_config: unconfig 1277a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cms700 esd 1278699f0512SWolfgang Denk 12797644f16fSStefan RoeseCPCI2DP_config: unconfig 1280a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpci2dp esd 12817644f16fSStefan Roese 12821951f847SMatthias FuchsCPCI405_config \ 1283549826eaSstroeseCPCI4052_config \ 1284c419d1d6SstroeseCPCI405DT_config \ 1285549826eaSstroeseCPCI405AB_config: unconfig 1286dd794323SMatthias Fuchs @mkdir -p $(obj)board/esd/cpci405 1287a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpci405 esd 12887ebf7443Swdenk 12897ebf7443SwdenkCPCIISER4_config: unconfig 1290a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpciiser4 esd 12917ebf7443Swdenk 12927ebf7443SwdenkCRAYL1_config: unconfig 1293a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx L1 cray 12947ebf7443Swdenk 1295cd0a9de6Swdenkcsb272_config: unconfig 1296a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx csb272 1297cd0a9de6Swdenk 1298aa245090Swdenkcsb472_config: unconfig 1299a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx csb472 1300aa245090Swdenk 13017ebf7443SwdenkDASA_SIM_config: unconfig 1302a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dasa_sim esd 13037ebf7443Swdenk 1304b209a114SDirk Eibachdlvision_config: unconfig 1305a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dlvision gdsys 1306b209a114SDirk Eibach 130772cd5aa7SstroeseDP405_config: unconfig 1308a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dp405 esd 130972cd5aa7Sstroese 13107ebf7443SwdenkDU405_config: unconfig 1311a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx du405 esd 13127ebf7443Swdenk 13131a3ac86bSMatthias FuchsDU440_config: unconfig 1314a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx du440 esd 13151a3ac86bSMatthias Fuchs 13168a316c9bSStefan Roeseebony_config: unconfig 1317a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ebony amcc 13187ebf7443Swdenk 13197ebf7443SwdenkERIC_config: unconfig 1320a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx eric 13217ebf7443Swdenk 13225deb8022SGeorg Schardtfx12mm_flash_config: unconfig 13235deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 13245deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 13255deb8022SGeorg Schardt @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 13265deb8022SGeorg Schardt > $(obj)board/avnet/fx12mm/config.tmp 13275deb8022SGeorg Schardt @echo "TEXT_BASE := 0xFFCB0000" \ 13285deb8022SGeorg Schardt >> $(obj)board/avnet/fx12mm/config.tmp 1329a47a12beSStefan Roese @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 13305deb8022SGeorg Schardt 13315deb8022SGeorg Schardtfx12mm_config: unconfig 13325deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 13335deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 13345deb8022SGeorg Schardt @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 13355deb8022SGeorg Schardt > $(obj)board/avnet/fx12mm/config.tmp 13365deb8022SGeorg Schardt @echo "TEXT_BASE := 0x03000000" \ 13375deb8022SGeorg Schardt >> $(obj)board/avnet/fx12mm/config.tmp 1338a47a12beSStefan Roese @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 13395deb8022SGeorg Schardt 1340c419d1d6SstroeseG2000_config: unconfig 1341a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx g2000 1342c419d1d6Sstroese 134389b8619aSDirk Eibachgdppc440etx_config: unconfig 1344a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx gdppc440etx gdsys 134589b8619aSDirk Eibach 1346ac982ea5SNiklaus Gigerhcu4_config: unconfig 1347b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 1348a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hcu4 netstal 1349ac982ea5SNiklaus Giger 1350ac982ea5SNiklaus Gigerhcu5_config: unconfig 1351b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 1352a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hcu5 netstal 1353ac982ea5SNiklaus Giger 1354c419d1d6SstroeseHH405_config: unconfig 1355a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hh405 esd 1356c419d1d6Sstroese 135772cd5aa7SstroeseHUB405_config: unconfig 1358a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hub405 esd 135972cd5aa7Sstroese 13604c188367SDirk Eibach# Compact-Center(codename intip) & DevCon-Center use different U-Boot images 13614c188367SDirk Eibachintip_config \ 13624c188367SDirk Eibachdevconcenter_config: unconfig 13634c188367SDirk Eibach @mkdir -p $(obj)include 13644c188367SDirk Eibach @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 13654c188367SDirk Eibach tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1366a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys 13674c188367SDirk Eibach 1368db01a2eaSwdenkJSE_config: unconfig 1369a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx jse 1370db01a2eaSwdenk 1371b79316f2SStefan RoeseKAREF_config: unconfig 1372a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx karef sandburst 1373b79316f2SStefan Roese 13744745acaaSStefan Roesekatmai_config: unconfig 1375a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx katmai amcc 13764745acaaSStefan Roese 1377353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1378353f2688SStefan Roesekilauea_config \ 1379353f2688SStefan Roesehaleakala_config: unconfig 1380a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc 1381566806caSStefan Roese 13823d6cb3b2SStefan Roesekilauea_nand_config \ 13833d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 13843d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 13853d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 13863d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1387a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc 13883d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 13893d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 13903d6cb3b2SStefan Roese 1391c591dffeSLarry Johnsonkorat_config: unconfig 1392a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx korat 1393c591dffeSLarry Johnson 13946e7fb6eaSStefan Roeseluan_config: unconfig 1395a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx luan amcc 13966e7fb6eaSStefan Roese 1397b765ffb7SStefan Roeselwmon5_config: unconfig 1398a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx lwmon5 1399b765ffb7SStefan Roese 1400211ea91aSStefan Roesemakalu_config: unconfig 1401a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx makalu amcc 1402211ea91aSStefan Roese 1403b05f3543SNiklaus Gigermcu25_config: unconfig 1404b05f3543SNiklaus Giger @mkdir -p $(obj)board/netstal/common 1405a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx mcu25 netstal 1406b05f3543SNiklaus Giger 1407b79316f2SStefan RoeseMETROBOX_config: unconfig 1408a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx metrobox sandburst 1409b79316f2SStefan Roese 14107ebf7443SwdenkMIP405_config: unconfig 1411a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx mip405 mpl 14127ebf7443Swdenk 1413f3e0de60SwdenkMIP405T_config: unconfig 1414f9328639SMarian Balakowicz @mkdir -p $(obj)include 1415f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1416ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1417a47a12beSStefan Roese @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl 1418f3e0de60Swdenk 14197ebf7443SwdenkML2_config: unconfig 1420a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ml2 14217ebf7443Swdenk 142201a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig 1423880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 142401a00431SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1425880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1426880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ml507/config.tmp 1427880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 1428880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ml507/config.tmp 1429a47a12beSStefan Roese @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx 143001a00431SRicardo Ribalda Delgado 1431086511fcSRicardo Ribalda Delgadoml507_config: unconfig 1432880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 143301a00431SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1434880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1435880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ml507/config.tmp 1436880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 1437880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ml507/config.tmp 1438a47a12beSStefan Roese @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx 1439086511fcSRicardo Ribalda Delgado 1440d7b26d58SDirk Eibachneo_config: unconfig 1441a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx neo gdsys 1442d7b26d58SDirk Eibach 14438a316c9bSStefan Roeseocotea_config: unconfig 1444a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ocotea amcc 14450e6d798cSwdenk 14467ebf7443SwdenkOCRTC_config \ 14477ebf7443SwdenkORSG_config: unconfig 1448a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ocrtc esd 14497ebf7443Swdenk 14505568e613SStefan Roesep3p440_config: unconfig 1451a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx p3p440 prodrive 14525568e613SStefan Roese 14537ebf7443SwdenkPCI405_config: unconfig 1454a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pci405 esd 14557ebf7443Swdenk 1456a4c8d138SStefan Roesepcs440ep_config: unconfig 1457a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pcs440ep 1458a4c8d138SStefan Roese 14597ebf7443SwdenkPIP405_config: unconfig 1460a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pip405 mpl 14617ebf7443Swdenk 146272cd5aa7SstroesePLU405_config: unconfig 1463a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx plu405 esd 146472cd5aa7Sstroese 1465549826eaSstroesePMC405_config: unconfig 1466a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc405 esd 1467549826eaSstroese 146899d8b23bSMatthias FuchsPMC405DE_config: unconfig 1469a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc405de esd 147099d8b23bSMatthias Fuchs 14718ba132caSMatthias FuchsPMC440_config: unconfig 1472a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc440 esd 14738ba132caSMatthias Fuchs 1474281e00a3SwdenkPPChameleonEVB_config \ 1475e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1476e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1477e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1478e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1479e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1480e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1481f9328639SMarian Balakowicz @mkdir -p $(obj)include 14821d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1483f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1484ae6d1056SWolfgang Denk $(XECHO) "... BASIC model" ; \ 1485fbe4b5cbSwdenk } 14861d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1487f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1488ae6d1056SWolfgang Denk $(XECHO) "... MEDIUM model" ; \ 1489fbe4b5cbSwdenk } 14901d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1491f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1492ae6d1056SWolfgang Denk $(XECHO) "... HIGH-END model" ; \ 1493fbe4b5cbSwdenk } 1494e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1495f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1496ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 1497e55ca7e2Swdenk } 1498e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1499f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1500ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 1501e55ca7e2Swdenk } 1502a47a12beSStefan Roese @$(MKCONFIG) -a $(call xtract_4xx,$@) powerpc ppc4xx PPChameleonEVB dave 150312f34241Swdenk 150473ccb341SGary Jennejohnquad100hd_config: unconfig 1505a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx quad100hd 150673ccb341SGary Jennejohn 150711188d55SStefan Roeseredwood_config: unconfig 1508a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx redwood amcc 150911188d55SStefan Roese 1510430f1b0fSStefan Roesesbc405_config: unconfig 1511a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx sbc405 1512430f1b0fSStefan Roese 1513699f0512SWolfgang Denksc3_config:unconfig 1514a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx sc3 1515699f0512SWolfgang Denk 1516430f1b0fSStefan Roesesequoia_config \ 1517854bc8daSStefan Roeserainier_config: unconfig 15188318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1519430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1520430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1521a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1522854bc8daSStefan Roese 1523430f1b0fSStefan Roesesequoia_nand_config \ 1524854bc8daSStefan Roeserainier_nand_config: unconfig 152563e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 152663e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 15278318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1528430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1529430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1530a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 15318318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 15328318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1533652a10c0Swdenk 1534d873133fSStefan Roesesequoia_ramboot_config \ 1535d873133fSStefan Roeserainier_ramboot_config: unconfig 1536d873133fSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1537d873133fSStefan Roese @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h 1538d873133fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1539d873133fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1540a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1541d873133fSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1542d873133fSStefan Roese @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \ 1543d873133fSStefan Roese $(obj)board/amcc/sequoia/config.tmp 1544d873133fSStefan Roese 1545d4024bb7SJohn Otkentaihu_config: unconfig 1546a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx taihu amcc 1547d4024bb7SJohn Otken 15485fb692caSStefan Roesetaishan_config: unconfig 1549a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx taishan amcc 15505fb692caSStefan Roese 1551e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig 1552880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1553e07f4a80SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1554880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1555880f6a5dSRicardo Ribalda Delgado > $(obj)board/avnet/v5fx30teval/config.tmp 1556880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x03000000" \ 1557880f6a5dSRicardo Ribalda Delgado >> $(obj)board/avnet/v5fx30teval/config.tmp 1558a47a12beSStefan Roese @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet 1559e07f4a80SRicardo Ribalda Delgado 1560e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig 1561880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1562e07f4a80SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1563880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 15642bec498eSRicardo Ribalda Delgado > $(obj)board/avnet/v5fx30teval/config.tmp 1565880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFF1C0000" \ 15662bec498eSRicardo Ribalda Delgado >> $(obj)board/avnet/v5fx30teval/config.tmp 1567a47a12beSStefan Roese @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet 1568e07f4a80SRicardo Ribalda Delgado 156972cd5aa7SstroeseVOH405_config: unconfig 1570a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx voh405 esd 157172cd5aa7Sstroese 1572c419d1d6SstroeseVOM405_config: unconfig 1573a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx vom405 esd 1574c419d1d6Sstroese 15757ebf7443SwdenkW7OLMC_config \ 15767ebf7443SwdenkW7OLMG_config: unconfig 1577a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx w7o 15787ebf7443Swdenk 1579430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1580430f1b0fSStefan Roesewalnut_config \ 1581430f1b0fSStefan Roesesycamore_config: unconfig 1582a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a walnut powerpc ppc4xx walnut amcc 15837ebf7443Swdenk 1584c419d1d6SstroeseWUH405_config: unconfig 1585a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx wuh405 esd 1586c419d1d6Sstroese 15871f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig 15881f4d5326SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 15891f4d5326SRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 15901f4d5326SRicardo Ribalda Delgado > $(obj)board/xilinx/ppc405-generic/config.tmp 15911f4d5326SRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 15921f4d5326SRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc405-generic/config.tmp 1593a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 15941f4d5326SRicardo Ribalda Delgado 15951f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig 15961f4d5326SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 15971f4d5326SRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 15981f4d5326SRicardo Ribalda Delgado > $(obj)board/xilinx/ppc405-generic/config.tmp 15991f4d5326SRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 16001f4d5326SRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc405-generic/config.tmp 1601a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 16021f4d5326SRicardo Ribalda Delgado 1603e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig 1604880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1605880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1606880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ppc440-generic/config.tmp 1607880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 1608880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc440-generic/config.tmp 1609a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1610e07f4a80SRicardo Ribalda Delgado 1611e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig 1612880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1613880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1614880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ppc440-generic/config.tmp 1615880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 1616880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc440-generic/config.tmp 1617a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1618e07f4a80SRicardo Ribalda Delgado 161910c1b218SPeter TyserXPEDITE1000_config: unconfig 1620a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx xpedite1000 xes 1621ba56f625Swdenk 1622430f1b0fSStefan Roeseyosemite_config \ 16238a316c9bSStefan Roeseyellowstone_config: unconfig 1624700200c6SStefan Roese @mkdir -p $(obj)include 1625430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1626430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1627a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc 16288a316c9bSStefan Roese 16296c5879f3SMarian Balakowiczyucca_config: unconfig 1630a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx yucca amcc 16316c5879f3SMarian Balakowicz 1632779e9751SStefan Roesezeus_config: unconfig 1633a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc ppc4xx zeus 1634779e9751SStefan Roese 16357ebf7443Swdenk######################################################################### 1636983fda83Swdenk## MPC8220 Systems 1637983fda83Swdenk######################################################################### 1638dc17fb6dSWolfgang Denk 1639dc17fb6dSWolfgang DenkAlaska8220_config \ 1640dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1641a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8220 alaska 1642983fda83Swdenk 164312b43d51Swdenksorcery_config: unconfig 1644a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8220 sorcery 164512b43d51Swdenk 1646983fda83Swdenk######################################################################### 16477ebf7443Swdenk## MPC824x Systems 16487ebf7443Swdenk######################################################################### 1649efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 16503bac3513Swdenk 16510332990bSwdenkA3000_config: unconfig 1652a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x a3000 16530332990bSwdenk 16548e6f1a8eSWolfgang Denkbarco_config: unconfig 1655a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x barco 16568e6f1a8eSWolfgang Denk 16577ebf7443SwdenkBMW_config: unconfig 1658a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x bmw 16597ebf7443Swdenk 16603bac3513SwdenkCPC45_config \ 16613bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1662a47a12beSStefan Roese @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc824x cpc45 1663f9328639SMarian Balakowicz @cd $(obj)include ; \ 16643bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 16653bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1666ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 16673bac3513Swdenk else \ 16683bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1669ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 16703bac3513Swdenk fi; \ 16713bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 16723bac3513Swdenk 16737ebf7443SwdenkCU824_config: unconfig 1674a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x cu824 16757ebf7443Swdenk 16767abf0c58Swdenkdebris_config: unconfig 1677a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x debris etin 16787abf0c58Swdenk 167980885a9dSwdenkeXalion_config: unconfig 1680a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion 168180885a9dSwdenk 1682756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1683a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x hidden_dragon 1684756f586aSwdenk 168553dd6ce4SWolfgang Denkkvme080_config: unconfig 1686a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x kvme080 etin 168753dd6ce4SWolfgang Denk 168861525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 168961525f2fSGuennadi Liakhovetski# time permits. 169061525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \ 169161525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed 169261525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig 169361525f2fSGuennadi Liakhovetski @mkdir -p $(obj)include 169461525f2fSGuennadi Liakhovetski @case $@ in \ 169561525f2fSGuennadi Liakhovetski *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 169661525f2fSGuennadi Liakhovetski *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 169761525f2fSGuennadi Liakhovetski esac 1698a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation 169961525f2fSGuennadi Liakhovetski 17007ebf7443SwdenkMOUSSE_config: unconfig 1701a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x mousse 17027ebf7443Swdenk 17037ebf7443SwdenkMUSENKI_config: unconfig 1704a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x musenki 17057ebf7443Swdenk 1706b4676a25SwdenkMVBLUE_config: unconfig 1707a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x mvblue 1708b4676a25Swdenk 17097ebf7443SwdenkOXC_config: unconfig 1710a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x oxc 17117ebf7443Swdenk 17127ebf7443SwdenkPN62_config: unconfig 1713a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x pn62 17147ebf7443Swdenk 17157ebf7443SwdenkSandpoint8240_config: unconfig 1716a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x sandpoint 17177ebf7443Swdenk 17187ebf7443SwdenkSandpoint8245_config: unconfig 1719a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x sandpoint 17207ebf7443Swdenk 1721466b7410Swdenksbc8240_config: unconfig 1722a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x sbc8240 1723466b7410Swdenk 17247ebf7443Swdenkutx8245_config: unconfig 1725a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc824x utx8245 17267ebf7443Swdenk 17277ebf7443Swdenk######################################################################### 17287ebf7443Swdenk## MPC8260 Systems 17297ebf7443Swdenk######################################################################### 17307ebf7443Swdenk 173154387ac9Swdenkatc_config: unconfig 1732a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 atc 173354387ac9Swdenk 17347ebf7443Swdenkcogent_mpc8260_config: unconfig 1735a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent 17367ebf7443Swdenk 17377ebf7443SwdenkCPU86_config \ 17387ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1739a47a12beSStefan Roese @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc8260 cpu86 1740f9328639SMarian Balakowicz @cd $(obj)include ; \ 17417ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 17427ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1743ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 17447ebf7443Swdenk else \ 17457ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1746ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 17477ebf7443Swdenk fi; \ 17487ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 17497ebf7443Swdenk 1750384cc687SwdenkCPU87_config \ 1751384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1752a47a12beSStefan Roese @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc8260 cpu87 1753f9328639SMarian Balakowicz @cd $(obj)include ; \ 1754384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1755384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1756ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1757384cc687Swdenk else \ 1758384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1759ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1760384cc687Swdenk fi; \ 1761384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1762384cc687Swdenk 1763f901a83bSWolfgang Denkep8248_config \ 1764f901a83bSWolfgang Denkep8248E_config : unconfig 1765a47a12beSStefan Roese @$(MKCONFIG) ep8248 powerpc mpc8260 ep8248 1766f901a83bSWolfgang Denk 17677ebf7443Swdenkep8260_config: unconfig 1768a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ep8260 17697ebf7443Swdenk 17708d4ac794SWolfgang Denkep82xxm_config: unconfig 1771a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ep82xxm 17728d4ac794SWolfgang Denk 17737ebf7443Swdenkgw8260_config: unconfig 1774a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 gw8260 17757ebf7443Swdenk 17767ebf7443Swdenkhymod_config: unconfig 1777a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 hymod 17787ebf7443Swdenk 17799dd41a7bSwdenkIDS8247_config: unconfig 1780a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ids8247 17819dd41a7bSwdenk 17827ebf7443SwdenkIPHASE4539_config: unconfig 1783a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 iphase4539 17847ebf7443Swdenk 1785c3c7f861SwdenkISPAN_config \ 1786c3c7f861SwdenkISPAN_REVB_config: unconfig 1787f9328639SMarian Balakowicz @mkdir -p $(obj)include 1788c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 17896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \ 1790c3c7f861Swdenk fi 1791a47a12beSStefan Roese @$(MKCONFIG) -a ISPAN powerpc mpc8260 ispan 1792c3c7f861Swdenk 1793ac9db066SHeiko Schochermgcoge_config : unconfig 1794a47a12beSStefan Roese @$(MKCONFIG) mgcoge powerpc mpc8260 mgcoge keymile 1795ac9db066SHeiko Schocher 179604a85b3bSwdenkMPC8260ADS_config \ 1797901787d6SwdenkMPC8260ADS_lowboot_config \ 179804a85b3bSwdenkMPC8260ADS_33MHz_config \ 1799901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 180004a85b3bSwdenkMPC8260ADS_40MHz_config \ 1801901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 180204a85b3bSwdenkMPC8272ADS_config \ 1803901787d6SwdenkMPC8272ADS_lowboot_config \ 180404a85b3bSwdenkPQ2FADS_config \ 1805901787d6SwdenkPQ2FADS_lowboot_config \ 180604a85b3bSwdenkPQ2FADS-VR_config \ 1807901787d6SwdenkPQ2FADS-VR_lowboot_config \ 180804a85b3bSwdenkPQ2FADS-ZU_config \ 1809901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 181004a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1811901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 181204a85b3bSwdenk : unconfig 1813f9328639SMarian Balakowicz @mkdir -p $(obj)include 1814b7e24d28SJon Loeliger @mkdir -p $(obj)board/freescale/mpc8260ads 181504a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 18166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \ 18176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 181804a85b3bSwdenk $(if $(findstring MHz,$@), \ 1819f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 182004a85b3bSwdenk $(if $(findstring VR,$@), \ 1821f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1822901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1823b7e24d28SJon Loeliger { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \ 1824ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 1825901787d6Swdenk } 1826a47a12beSStefan Roese @$(MKCONFIG) -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale 18277ebf7443Swdenk 1828db2f721fSwdenkMPC8266ADS_config: unconfig 1829a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 mpc8266ads freescale 1830db2f721fSwdenk 1831adf22b66SHeiko Schochermuas3001_dev_config \ 1832adf22b66SHeiko Schochermuas3001_config : unconfig 1833adf22b66SHeiko Schocher @mkdir -p $(obj)include 1834adf22b66SHeiko Schocher @mkdir -p $(obj)board/muas3001 1835adf22b66SHeiko Schocher @if [ "$(findstring dev,$@)" ] ; then \ 1836adf22b66SHeiko Schocher echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \ 1837adf22b66SHeiko Schocher fi 1838a47a12beSStefan Roese @$(MKCONFIG) -a muas3001 powerpc mpc8260 muas3001 1839adf22b66SHeiko Schocher 1840efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 184110f67017SwdenkPM825_config \ 1842efa329cbSwdenkPM825_ROMBOOT_config \ 1843efa329cbSwdenkPM825_BIGFLASH_config \ 1844efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 18457ebf7443SwdenkPM826_config \ 1846efa329cbSwdenkPM826_ROMBOOT_config \ 1847efa329cbSwdenkPM826_BIGFLASH_config \ 1848efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1849f9328639SMarian Balakowicz @mkdir -p $(obj)include 1850f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1851efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1852f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 18537ebf7443Swdenk else \ 1854f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1855efa329cbSwdenk fi 1856efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1857ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1858f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1859f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1860efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1861ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1862f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 18637ebf7443Swdenk fi; \ 1864efa329cbSwdenk else \ 1865ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1866efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1867ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1868f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1869f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1870efa329cbSwdenk else \ 1871f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1872efa329cbSwdenk fi; \ 1873efa329cbSwdenk fi 1874a47a12beSStefan Roese @$(MKCONFIG) -a PM826 powerpc mpc8260 pm826 1875efa329cbSwdenk 1876efa329cbSwdenkPM828_config \ 1877efa329cbSwdenkPM828_PCI_config \ 1878efa329cbSwdenkPM828_ROMBOOT_config \ 1879efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1880f9328639SMarian Balakowicz @mkdir -p $(obj)include 1881f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 188217076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1883f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1884ae6d1056SWolfgang Denk $(XECHO) "... with PCI enabled" ; \ 1885efa329cbSwdenk fi 1886efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1887ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1888f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1889f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1890efa329cbSwdenk fi 1891a47a12beSStefan Roese @$(MKCONFIG) -a PM828 powerpc mpc8260 pm828 18927ebf7443Swdenk 18937ebf7443Swdenkppmc8260_config: unconfig 1894a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ppmc8260 18957ebf7443Swdenk 18968b0bfc68SwdenkRattler8248_config \ 18978b0bfc68SwdenkRattler_config: unconfig 1898f9328639SMarian Balakowicz @mkdir -p $(obj)include 18998b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1900f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1901a47a12beSStefan Roese @$(MKCONFIG) -a Rattler powerpc mpc8260 rattler 19028b0bfc68Swdenk 19037ebf7443SwdenkRPXsuper_config: unconfig 1904a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 rpxsuper 19057ebf7443Swdenk 19067ebf7443Swdenkrsdproto_config: unconfig 1907a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 rsdproto 19087ebf7443Swdenk 19097ebf7443Swdenksacsng_config: unconfig 1910a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 sacsng 19117ebf7443Swdenk 19127ebf7443Swdenksbc8260_config: unconfig 1913a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 sbc8260 19147ebf7443Swdenk 19157ebf7443SwdenkSCM_config: unconfig 1916a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 SCM siemens 19177ebf7443Swdenk 191827b207fdSwdenkTQM8255_AA_config \ 191927b207fdSwdenkTQM8260_AA_config \ 192027b207fdSwdenkTQM8260_AB_config \ 192127b207fdSwdenkTQM8260_AC_config \ 192227b207fdSwdenkTQM8260_AD_config \ 192327b207fdSwdenkTQM8260_AE_config \ 192427b207fdSwdenkTQM8260_AF_config \ 192527b207fdSwdenkTQM8260_AG_config \ 192627b207fdSwdenkTQM8260_AH_config \ 19271f62bc2dSWolfgang DenkTQM8260_AI_config \ 192827b207fdSwdenkTQM8265_AA_config: unconfig 1929f9328639SMarian Balakowicz @mkdir -p $(obj)include 193027b207fdSwdenk @case "$@" in \ 193127b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 193227b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 193327b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 193427b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 193527b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 193627b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 193727b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 193827b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 193927b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 19401f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 194127b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 194227b207fdSwdenk esac; \ 194327b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1944f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 194527b207fdSwdenk fi; \ 1946f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 194727b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 19481aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1949f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1950ae6d1056SWolfgang Denk $(XECHO) "... with L2 Cache support" ; \ 19517ebf7443Swdenk else \ 1952f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1953ae6d1056SWolfgang Denk $(XECHO) "... without L2 Cache support" ; \ 195427b207fdSwdenk fi; \ 19551aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1956f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1957ae6d1056SWolfgang Denk $(XECHO) "... with 60x Bus Mode" ; \ 195827b207fdSwdenk else \ 1959f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1960ae6d1056SWolfgang Denk $(XECHO) "... without 60x Bus Mode" ; \ 19617ebf7443Swdenk fi 1962a47a12beSStefan Roese @$(MKCONFIG) -a TQM8260 powerpc mpc8260 tqm8260 tqc 19637ebf7443Swdenk 1964fa230445SHeiko SchocherTQM8272_config: unconfig 1965a47a12beSStefan Roese @$(MKCONFIG) TQM8272 powerpc mpc8260 tqm8272 tqc 1966fa230445SHeiko Schocher 1967ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1968ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1969f9328639SMarian Balakowicz @mkdir -p $(obj)include 1970f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1971a47a12beSStefan Roese @$(MKCONFIG) -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk 1972ba91e26aSwdenk 197354387ac9SwdenkZPC1900_config: unconfig 1974a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc8260 zpc1900 19757aa78614Swdenk 19764e5ca3ebSwdenk######################################################################### 19774e5ca3ebSwdenk## Coldfire 19784e5ca3ebSwdenk######################################################################### 19794e5ca3ebSwdenk 19809d79e575SWolfgang Wegnerastro_mcf5373l_config \ 19819d79e575SWolfgang Wegnerastro_mcf5373l_RAM_config : unconfig 19829d79e575SWolfgang Wegner @$(MKCONFIG) -t $(@:_config=) astro_mcf5373l m68k mcf532x mcf5373l astro 19839d79e575SWolfgang Wegner 1984bf9a5215STsiChung LiewM5208EVBE_config : unconfig 1985bf9a5215STsiChung Liew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5208evbe freescale 1986bf9a5215STsiChung Liew 1987a21d0c2cSTsiChung LiewM52277EVB_config \ 1988a21d0c2cSTsiChung LiewM52277EVB_spansion_config \ 1989a21d0c2cSTsiChung LiewM52277EVB_stmicro_config : unconfig 1990a21d0c2cSTsiChung Liew @case "$@" in \ 1991a21d0c2cSTsiChung Liew M52277EVB_config) FLASH=SPANSION;; \ 1992a21d0c2cSTsiChung Liew M52277EVB_spansion_config) FLASH=SPANSION;; \ 1993a21d0c2cSTsiChung Liew M52277EVB_stmicro_config) FLASH=STMICRO;; \ 1994a21d0c2cSTsiChung Liew esac; \ 1995a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "SPANSION" ] ; then \ 1996a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ 1997a21d0c2cSTsiChung Liew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 1998a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ 1999a21d0c2cSTsiChung Liew $(XECHO) "... with SPANSION boot..." ; \ 2000a21d0c2cSTsiChung Liew fi; \ 2001a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 2002a21d0c2cSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 2003a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 2004a21d0c2cSTsiChung Liew echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 2005a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ 2006a21d0c2cSTsiChung Liew $(XECHO) "... with ST Micro boot..." ; \ 2007a21d0c2cSTsiChung Liew fi 20081552af70STsiChungLiew @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 20091552af70STsiChungLiew 20104a442d31STsiChungLiewM5235EVB_config \ 20114a442d31STsiChungLiewM5235EVB_Flash16_config \ 20124a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 20134a442d31STsiChungLiew @case "$@" in \ 20144a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 20154a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 20164a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 20174a442d31STsiChungLiew esac; \ 20184a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 2019ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 20204a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 20214a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 20224a442d31STsiChungLiew else \ 20234a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 20244a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 20254a442d31STsiChungLiew fi 20264a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 20274a442d31STsiChungLiew 2028a605aacdSTsiChungLiewM5249EVB_config : unconfig 2029a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 2030a605aacdSTsiChungLiew 20316d33c6acSTsiChung LiewM5253DEMO_config : unconfig 20326d33c6acSTsiChung Liew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale 20336d33c6acSTsiChung Liew 2034a1436a84STsiChungLiewM5253EVBE_config : unconfig 2035a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 2036a1436a84STsiChungLiew 20377481266eSWolfgang Denkcobra5272_config : unconfig 2038f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 20397481266eSWolfgang Denk 20404176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 2041f9328639SMarian Balakowicz @mkdir -p $(obj)include 2042f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 2043f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 2044f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 20454176c799SWolfgang Denk 20464176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 2047f9328639SMarian Balakowicz @mkdir -p $(obj)include 2048f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 2049f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 2050f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 20514176c799SWolfgang Denk 2052dfc2b769SMichael DurrantEP2500_config: unconfig 2053dfc2b769SMichael Durrant @$(MKCONFIG) $(@:_config=) m68k mcf52x2 ep2500 Mercury 2054dfc2b769SMichael Durrant 2055daa6e418SBartlomiej Siekaidmr_config : unconfig 2056daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 2057daa6e418SBartlomiej Sieka 20584176c799SWolfgang DenkM5271EVB_config : unconfig 2059659e9badSTsiChung Liew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale 20604176c799SWolfgang Denk 20614e5ca3ebSwdenkM5272C3_config : unconfig 206256df091dSTsiChung Liew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale 20634e5ca3ebSwdenk 2064545c8e0aSMatthew FettkeM5275EVB_config : unconfig 2065545c8e0aSMatthew Fettke @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale 2066545c8e0aSMatthew Fettke 20674e5ca3ebSwdenkM5282EVB_config : unconfig 206810db3a17STsiChung Liew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale 20694e5ca3ebSwdenk 2070536e7dacSTsiChung LiewM53017EVB_config : unconfig 2071536e7dacSTsiChung Liew @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale 2072536e7dacSTsiChung Liew 20738e585f02STsiChung LiewM5329AFEE_config \ 20748e585f02STsiChung LiewM5329BFEE_config : unconfig 20758e585f02STsiChung Liew @case "$@" in \ 20768e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 20778e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 20788e585f02STsiChung Liew esac; \ 20798e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 2080ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 20818e585f02STsiChung Liew fi 20828e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 20838e585f02STsiChung Liew 2084aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 2085aa5f1f9dSTsiChungLiew @case "$@" in \ 2086aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 2087aa5f1f9dSTsiChungLiew esac; \ 2088aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 2089aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 2090aa5f1f9dSTsiChungLiew fi 2091aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 2092aa5f1f9dSTsiChungLiew 209305316f8eSTsiChung LiewM54451EVB_config \ 209405316f8eSTsiChung LiewM54451EVB_stmicro_config : unconfig 209505316f8eSTsiChung Liew @case "$@" in \ 2096709b384bSTsiChung Liew M54451EVB_config) FLASH=NOR;; \ 209705316f8eSTsiChung Liew M54451EVB_stmicro_config) FLASH=STMICRO;; \ 209805316f8eSTsiChung Liew esac; \ 2099709b384bSTsiChung Liew if [ "$${FLASH}" = "NOR" ] ; then \ 210005316f8eSTsiChung Liew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 210105316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ 2102709b384bSTsiChung Liew $(XECHO) "... with NOR boot..." ; \ 210305316f8eSTsiChung Liew fi; \ 210405316f8eSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 210505316f8eSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 21066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 210705316f8eSTsiChung Liew echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 210805316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ 210905316f8eSTsiChung Liew $(XECHO) "... with ST Micro boot..." ; \ 211005316f8eSTsiChung Liew fi; \ 21116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; 211205316f8eSTsiChung Liew @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale 211305316f8eSTsiChung Liew 21148ae158cdSTsiChungLiewM54455EVB_config \ 21158ae158cdSTsiChungLiewM54455EVB_atmel_config \ 21168ae158cdSTsiChungLiewM54455EVB_intel_config \ 21178ae158cdSTsiChungLiewM54455EVB_a33_config \ 21188ae158cdSTsiChungLiewM54455EVB_a66_config \ 21198ae158cdSTsiChungLiewM54455EVB_i33_config \ 21209f751551STsiChung LiewM54455EVB_i66_config \ 21219f751551STsiChung LiewM54455EVB_stm33_config : unconfig 21228ae158cdSTsiChungLiew @case "$@" in \ 21238ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 21248ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 21258ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 21268ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 21278ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 21288ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 21298ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 21309f751551STsiChung Liew M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ 21318ae158cdSTsiChungLiew esac; \ 21321aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 21336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ 2134e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 2135e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 2136ae6d1056SWolfgang Denk $(XECHO) "... with INTEL boot..." ; \ 21379f751551STsiChung Liew fi; \ 21389f751551STsiChung Liew if [ "$${FLASH}" = "ATMEL" ] ; then \ 21396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ 2140e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 2141e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 2142ae6d1056SWolfgang Denk $(XECHO) "... with ATMEL boot..." ; \ 21438ae158cdSTsiChungLiew fi; \ 21449f751551STsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 21459f751551STsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 21466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 21479f751551STsiChung Liew echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 21489f751551STsiChung Liew cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 21499f751551STsiChung Liew $(XECHO) "... with ST Micro boot..." ; \ 21509f751551STsiChung Liew fi; \ 21516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 2152ae6d1056SWolfgang Denk $(XECHO) "... with $${FREQ}Hz input clock" 21538ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 21548ae158cdSTsiChungLiew 215557a12720STsiChungLiewM5475AFE_config \ 215657a12720STsiChungLiewM5475BFE_config \ 215757a12720STsiChungLiewM5475CFE_config \ 215857a12720STsiChungLiewM5475DFE_config \ 215957a12720STsiChungLiewM5475EFE_config \ 216057a12720STsiChungLiewM5475FFE_config \ 216157a12720STsiChungLiewM5475GFE_config : unconfig 216257a12720STsiChungLiew @case "$@" in \ 216357a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 216457a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 216557a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 216657a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 216757a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 216857a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 216957a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 217057a12720STsiChungLiew esac; \ 21716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ 21726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 21736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 217457a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 21756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 217657a12720STsiChungLiew fi; \ 217757a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 21786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 217957a12720STsiChungLiew fi; \ 218057a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 21816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 218257a12720STsiChungLiew fi; \ 218357a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 21846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 218557a12720STsiChungLiew fi 218657a12720STsiChungLiew @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 218757a12720STsiChungLiew 218857a12720STsiChungLiewM5485AFE_config \ 218957a12720STsiChungLiewM5485BFE_config \ 219057a12720STsiChungLiewM5485CFE_config \ 219157a12720STsiChungLiewM5485DFE_config \ 219257a12720STsiChungLiewM5485EFE_config \ 219357a12720STsiChungLiewM5485FFE_config \ 219457a12720STsiChungLiewM5485GFE_config \ 219557a12720STsiChungLiewM5485HFE_config : unconfig 219657a12720STsiChungLiew @case "$@" in \ 219757a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 219857a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 219957a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 220057a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 220157a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 220257a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 220357a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 22044d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 220557a12720STsiChungLiew esac; \ 22066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ 22076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 22086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 220957a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 22106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 221157a12720STsiChungLiew fi; \ 221257a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 22136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 221457a12720STsiChungLiew fi; \ 221557a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 22166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 221757a12720STsiChungLiew fi; \ 221857a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 22196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 222057a12720STsiChungLiew fi 222157a12720STsiChungLiew @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 222257a12720STsiChungLiew 2223699f0512SWolfgang DenkTASREG_config : unconfig 2224699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 2225699f0512SWolfgang Denk 22267ebf7443Swdenk######################################################################### 2227f046ccd1SEran Liberty## MPC83xx Systems 2228f046ccd1SEran Liberty######################################################################### 2229f046ccd1SEran Liberty 2230de044361SHeiko Schocherkmeter1_config: unconfig 2231a47a12beSStefan Roese @$(MKCONFIG) kmeter1 powerpc mpc83xx kmeter1 keymile 2232de044361SHeiko Schocher 22335c5d3242SKim PhillipsMPC8313ERDB_33_config \ 2234e4c09508SScott WoodMPC8313ERDB_66_config \ 2235e4c09508SScott WoodMPC8313ERDB_NAND_33_config \ 2236e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig 2237cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2238e4c09508SScott Wood @mkdir -p $(obj)board/freescale/mpc8313erdb 2239c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2240ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 22416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \ 22425c5d3242SKim Phillips fi ; \ 22435c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 2244ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 22456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \ 2246e4c09508SScott Wood fi ; \ 2247e4c09508SScott Wood if [ "$(findstring _NAND_,$@)" ] ; then \ 2248e4c09508SScott Wood $(XECHO) -n "...NAND..." ; \ 2249f4e55a49SKim Phillips echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \ 2250e4c09508SScott Wood echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \ 22515c5d3242SKim Phillips fi ; 2252a47a12beSStefan Roese @$(MKCONFIG) -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale 225364ac1eb5SNick Spence @if [ "$(findstring _NAND_,$@)" ] ; then \ 225464ac1eb5SNick Spence echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \ 225564ac1eb5SNick Spence fi ; 22565c5d3242SKim Phillips 22572e95004dSAnton VorontsovMPC8315ERDB_NAND_config \ 22588bd522ceSDave LiuMPC8315ERDB_config: unconfig 2259a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale 22608bd522ceSDave Liu 22611c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 2262a47a12beSStefan Roese @$(MKCONFIG) -a MPC8323ERDB powerpc mpc83xx mpc8323erdb freescale 22631c274c4eSKim Phillips 22644decd84eSKim PhillipsMPC832XEMDS_config \ 22654decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 22664decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 2267281df457STony LiMPC832XEMDS_SLAVE_config \ 2268281df457STony LiMPC832XEMDS_ATM_config: unconfig 2269cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2270c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2271ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2272cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 22734decd84eSKim Phillips fi ; \ 22744decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2275ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2276cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2277cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 22784decd84eSKim Phillips fi ; \ 22794decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 2280ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2281cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2282281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 22834decd84eSKim Phillips fi ; \ 22844decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 2285ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2286cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2287281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2288281df457STony Li fi ; \ 2289281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2290ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2291281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2292281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 22934decd84eSKim Phillips fi ; 2294a47a12beSStefan Roese @$(MKCONFIG) -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale 2295e6f2e902SMarian Balakowicz 2296991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 2297a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc83xx mpc8349emds freescale 2298991425feSMarian Balakowicz 22997a78f148STimur TabiMPC8349ITX_config \ 23007a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 23017a78f148STimur TabiMPC8349ITXGP_config: unconfig 23027a78f148STimur Tabi @mkdir -p $(obj)include 2303e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 23047a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 23057a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 2306e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 23077a78f148STimur Tabi fi 23087a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2309e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 23107a78f148STimur Tabi fi 2311a47a12beSStefan Roese @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX powerpc mpc83xx mpc8349itx freescale 23124decd84eSKim Phillips 23135f820439SDave LiuMPC8360EMDS_config \ 23145f820439SDave LiuMPC8360EMDS_HOST_33_config \ 23155f820439SDave LiuMPC8360EMDS_HOST_66_config \ 2316281df457STony LiMPC8360EMDS_SLAVE_config \ 2317281df457STony LiMPC8360EMDS_ATM_config: unconfig 2318cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2319c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2320ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2321cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 23225f820439SDave Liu fi ; \ 23235f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2324ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2325cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2326cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 23275f820439SDave Liu fi ; \ 23285f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 2329ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2330cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2331281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 23325f820439SDave Liu fi ; \ 23335f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 2334ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2335cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2336281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2337281df457STony Li fi ; \ 2338281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2339ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2340281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2341281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 23425f820439SDave Liu fi ; 2343a47a12beSStefan Roese @$(MKCONFIG) -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale 23445f820439SDave Liu 2345fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 2346fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 234791c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 2348fab6f556SAnton Vorontsov @mkdir -p $(obj)include 2349c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2350ae6d1056SWolfgang Denk $(XECHO) -n "... CLKIN 33MHz " ; \ 2351fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2352fab6f556SAnton Vorontsov fi ; 2353a47a12beSStefan Roese @$(MKCONFIG) -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale 2354fab6f556SAnton Vorontsov 235519580e66SDave LiuMPC837XEMDS_config \ 235619580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 235719580e66SDave Liu @mkdir -p $(obj)include 2358c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2359ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 236019580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 236119580e66SDave Liu fi ; 2362a47a12beSStefan Roese @$(MKCONFIG) -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale 236319580e66SDave Liu 23645e918a98SKim PhillipsMPC837XERDB_config: unconfig 2365a47a12beSStefan Roese @$(MKCONFIG) -a MPC837XERDB powerpc mpc83xx mpc837xerdb freescale 23665e918a98SKim Phillips 2367a1293e54SAndre SchwarzMVBLM7_config: unconfig 2368a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc83xx mvblm7 matrix_vision 2369a1293e54SAndre Schwarz 2370c0d660fbSPaul Gortmakersbc8349_config \ 2371c0d660fbSPaul Gortmakersbc8349_PCI_33_config \ 2372c0d660fbSPaul Gortmakersbc8349_PCI_66_config: unconfig 2373a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) sbc8349 powerpc mpc83xx sbc8349 237491e25769SPaul Gortmaker 23755bb907a4SRon MadridSIMPC8313_LP_config \ 23765bb907a4SRon MadridSIMPC8313_SP_config: unconfig 23775bb907a4SRon Madrid @mkdir -p $(obj)include 23785bb907a4SRon Madrid @mkdir -p $(obj)board/sheldon/simpc8313 23795bb907a4SRon Madrid @if [ "$(findstring _LP_,$@)" ] ; then \ 23805bb907a4SRon Madrid $(XECHO) -n "...Large Page NAND..." ; \ 23815bb907a4SRon Madrid echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \ 23825bb907a4SRon Madrid fi ; \ 23835bb907a4SRon Madrid if [ "$(findstring _SP_,$@)" ] ; then \ 23845bb907a4SRon Madrid $(XECHO) -n "...Small Page NAND..." ; \ 23855bb907a4SRon Madrid echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \ 23865bb907a4SRon Madrid fi ; 2387a47a12beSStefan Roese @$(MKCONFIG) -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon 23885bb907a4SRon Madrid @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 23895bb907a4SRon Madrid 23904decd84eSKim PhillipsTQM834x_config: unconfig 2391a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc83xx tqm834x tqc 23924decd84eSKim Phillips 23931dee9be6SReinhard Arltcaddy2_config \ 2394c2e49f70SReinhard Arltvme8349_config: unconfig 2395a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) vme8349 powerpc mpc83xx vme8349 esd 23962ad6b513STimur Tabi 2397cf3c142eSMatthias Kaehlckeedb9301_config \ 2398cf3c142eSMatthias Kaehlckeedb9302_config \ 2399cf3c142eSMatthias Kaehlckeedb9302a_config \ 2400cf3c142eSMatthias Kaehlckeedb9307_config \ 2401cf3c142eSMatthias Kaehlckeedb9307a_config \ 2402cf3c142eSMatthias Kaehlckeedb9312_config \ 2403cf3c142eSMatthias Kaehlckeedb9315_config \ 2404cf3c142eSMatthias Kaehlckeedb9315a_config: unconfig 2405cf3c142eSMatthias Kaehlcke @$(MKCONFIG) -t $(@:_config=) edb93xx arm arm920t edb93xx NULL ep93xx 2406cf3c142eSMatthias Kaehlcke 2407f046ccd1SEran Liberty######################################################################### 240842d1f039Swdenk## MPC85xx Systems 240942d1f039Swdenk######################################################################### 241042d1f039Swdenk 24117bd6104bSrobert lazarskiATUM8548_config: unconfig 2412a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx atum8548 24137bd6104bSrobert lazarski 24149a1a0aedSMingkai HuMPC8536DS_NAND_config \ 2415e40ac487SMingkai HuMPC8536DS_SDCARD_config \ 2416e40ac487SMingkai HuMPC8536DS_SPIFLASH_config \ 2417337f9fdeSKumar GalaMPC8536DS_36BIT_config \ 24189490a7f1SKumar GalaMPC8536DS_config: unconfig 2419a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) MPC8536DS powerpc mpc85xx mpc8536ds freescale 24209490a7f1SKumar Gala 242142d1f039SwdenkMPC8540ADS_config: unconfig 2422a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8540ads freescale 242342d1f039Swdenk 2424b0e32949SLunsheng WangMPC8540EVAL_config \ 2425b0e32949SLunsheng WangMPC8540EVAL_33_config \ 2426b0e32949SLunsheng WangMPC8540EVAL_66_config \ 2427b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 2428b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 2429f9328639SMarian Balakowicz @mkdir -p $(obj)include 2430c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2431ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2432b0e32949SLunsheng Wang else \ 2433f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2434ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2435b0e32949SLunsheng Wang fi ; \ 2436b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 2437f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2438ae6d1056SWolfgang Denk $(XECHO) " slave" ; \ 2439b0e32949SLunsheng Wang else \ 2440ae6d1056SWolfgang Denk $(XECHO) " host" ; \ 2441b0e32949SLunsheng Wang fi 2442a47a12beSStefan Roese @$(MKCONFIG) -a MPC8540EVAL powerpc mpc85xx mpc8540eval 2443b0e32949SLunsheng Wang 244442d1f039SwdenkMPC8560ADS_config: unconfig 2445a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8560ads freescale 244642d1f039Swdenk 24477f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 244803f5c550SwdenkMPC8541CDS_config: unconfig 24497f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2450c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 24517f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2452ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 24537f3f2bd2SRandy Vinson fi 2454a47a12beSStefan Roese @$(MKCONFIG) -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale 245503f5c550Swdenk 245681f481caSAndy FlemingMPC8544DS_config: unconfig 2457a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8544ds freescale 245881f481caSAndy Fleming 24597f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 2460d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 24617f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2462c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 24637f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2464ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 24657f3f2bd2SRandy Vinson fi 2466a47a12beSStefan Roese @$(MKCONFIG) -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale 2467d9b94f28SJon Loeliger 24687f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 246903f5c550SwdenkMPC8555CDS_config: unconfig 24707f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2471c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 24727f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2473ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 24747f3f2bd2SRandy Vinson fi 2475a47a12beSStefan Roese @$(MKCONFIG) -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale 24767abf0c58Swdenk 247767431059SAndy FlemingMPC8568MDS_config: unconfig 2478a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8568mds freescale 247967431059SAndy Fleming 2480c95d541eSLiu YuMPC8569MDS_ATM_config \ 2481674ef7bdSLiu YuMPC8569MDS_NAND_config \ 2482765547dcSHaiying WangMPC8569MDS_config: unconfig 2483a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) MPC8569MDS powerpc mpc85xx mpc8569mds freescale 2484765547dcSHaiying Wang 248518af1c5fSKumar GalaMPC8572DS_36BIT_config \ 2486129ba616SKumar GalaMPC8572DS_config: unconfig 2487a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) MPC8572DS powerpc mpc85xx mpc8572ds freescale 2488129ba616SKumar Gala 2489feb7838fSSrikanth SrinivasanP2020DS_36BIT_config \ 2490feb7838fSSrikanth SrinivasanP2020DS_config: unconfig 2491a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) P2020DS powerpc mpc85xx p2020ds freescale 2492feb7838fSSrikanth Srinivasan 249362ca21c4SKumar GalaP1011RDB_config \ 2494f7780ec9SDipen DudhatP1011RDB_NAND_config \ 2495fad15096SDipen DudhatP1011RDB_SDCARD_config \ 2496fad15096SDipen DudhatP1011RDB_SPIFLASH_config \ 249762ca21c4SKumar GalaP1020RDB_config \ 2498f7780ec9SDipen DudhatP1020RDB_NAND_config \ 2499fad15096SDipen DudhatP1020RDB_SDCARD_config \ 2500fad15096SDipen DudhatP1020RDB_SPIFLASH_config \ 250162ca21c4SKumar GalaP2010RDB_config \ 2502f7780ec9SDipen DudhatP2010RDB_NAND_config \ 2503fad15096SDipen DudhatP2010RDB_SDCARD_config \ 2504fad15096SDipen DudhatP2010RDB_SPIFLASH_config \ 2505f7780ec9SDipen DudhatP2020RDB_config \ 2506fad15096SDipen DudhatP2020RDB_NAND_config \ 2507fad15096SDipen DudhatP2020RDB_SDCARD_config \ 2508fad15096SDipen DudhatP2020RDB_SPIFLASH_config: unconfig 2509a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale 2510728ece34SPoonam Aggrwal 2511384cc687SwdenkPM854_config: unconfig 2512a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx pm854 2513384cc687Swdenk 2514b20d0032SWolfgang DenkPM856_config: unconfig 2515a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx pm856 2516b20d0032SWolfgang Denk 2517c15f3120Swdenksbc8540_config \ 2518c15f3120Swdenksbc8540_33_config \ 2519c15f3120Swdenksbc8540_66_config: unconfig 2520a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) SBC8540 powerpc mpc85xx sbc8560 2521c15f3120Swdenk 25222738bc8dSPaul Gortmakersbc8548_config \ 25232738bc8dSPaul Gortmakersbc8548_PCI_33_config \ 25242738bc8dSPaul Gortmakersbc8548_PCI_66_config \ 25252738bc8dSPaul Gortmakersbc8548_PCI_33_PCIE_config \ 25262738bc8dSPaul Gortmakersbc8548_PCI_66_PCIE_config: unconfig 2527a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) sbc8548 powerpc mpc85xx sbc8548 252811c45ebdSJoe Hamman 2529466b7410Swdenksbc8560_config \ 2530466b7410Swdenksbc8560_33_config \ 2531466b7410Swdenksbc8560_66_config: unconfig 2532a47a12beSStefan Roese @$(MKCONFIG) -t $(@:_config=) sbc8560 powerpc mpc85xx sbc8560 25338b07a110Swdenk 25345d108ac8SSergei Poselenovsocrates_config: unconfig 2535a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx socrates 25365d108ac8SSergei Poselenov 253703f5c550Swdenkstxgp3_config: unconfig 2538a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx stxgp3 stx 253903f5c550Swdenk 2540ee152983SWolfgang Denkstxssa_config \ 2541ee152983SWolfgang Denkstxssa_4M_config: unconfig 2542ee152983SWolfgang Denk @mkdir -p $(obj)include 2543ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2544ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2545ae6d1056SWolfgang Denk $(XECHO) "... with 4 MiB flash memory" ; \ 2546ee152983SWolfgang Denk fi 2547a47a12beSStefan Roese @$(MKCONFIG) -a stxssa powerpc mpc85xx stxssa stx 254835171dc0SDan Malek 2549d96f41e0SStefan RoeseTQM8540_config \ 2550d96f41e0SStefan RoeseTQM8541_config \ 25511287e0c5SWolfgang GrandeggerTQM8548_config \ 2552a865bcdaSWolfgang GrandeggerTQM8548_AG_config \ 2553ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config \ 2554d96f41e0SStefan RoeseTQM8555_config \ 2555f5c5ef4aSwdenkTQM8560_config: unconfig 2556f9328639SMarian Balakowicz @mkdir -p $(obj)include 2557ad7ee5d4SWolfgang Grandegger @BTYPE=$(@:_config=); \ 2558a865bcdaSWolfgang Grandegger CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \ 2559ad7ee5d4SWolfgang Grandegger $(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \ 2560f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2561ad7ee5d4SWolfgang Grandegger echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \ 2562f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2563ad7ee5d4SWolfgang Grandegger echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h; 2564a47a12beSStefan Roese @$(MKCONFIG) -a TQM85xx powerpc mpc85xx tqm85xx tqc 2565ad7ee5d4SWolfgang Grandegger @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk; 2566f5c5ef4aSwdenk 256778bbc5ceSPeter TyserXPEDITE5200_config: unconfig 2568a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx xpedite5200 xes 256978bbc5ceSPeter Tyser 2570ccf0fdd0SPeter TyserXPEDITE5370_config: unconfig 2571a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc85xx xpedite5370 xes 2572ccf0fdd0SPeter Tyser 257342d1f039Swdenk######################################################################### 2574debb7354SJon Loeliger## MPC86xx Systems 2575debb7354SJon Loeliger######################################################################### 2576debb7354SJon Loeliger 25773c89d754SJon LoeligerMPC8610HPCD_config: unconfig 2578a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc86xx mpc8610hpcd freescale 25793c89d754SJon Loeliger 25808db0400aSBecky BruceMPC8641HPCN_36BIT_config \ 2581debb7354SJon LoeligerMPC8641HPCN_config: unconfig 25828db0400aSBecky Bruce @mkdir -p $(obj)include 25838db0400aSBecky Bruce @if [ "$(findstring _36BIT_,$@)" ] ; then \ 25848db0400aSBecky Bruce echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ 25858db0400aSBecky Bruce $(XECHO) "... enabling 36-bit physical addressing." ; \ 25868db0400aSBecky Bruce fi 2587a47a12beSStefan Roese @$(MKCONFIG) -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale 2588debb7354SJon Loeliger 2589c646bba6SJoe Hammansbc8641d_config: unconfig 2590a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc86xx sbc8641d 2591debb7354SJon Loeliger 25925da6f806SPeter TyserXPEDITE5170_config: unconfig 2593a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc mpc86xx xpedite5170 xes 25945da6f806SPeter Tyser 2595debb7354SJon Loeliger######################################################################### 25967ebf7443Swdenk## 74xx/7xx Systems 25977ebf7443Swdenk######################################################################### 25987ebf7443Swdenk 2599c7de829cSwdenkAmigaOneG3SE_config: unconfig 2600a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx AmigaOneG3SE MAI 2601c7de829cSwdenk 260215647dc7SwdenkBAB7xx_config: unconfig 2603a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx bab7xx eltec 260415647dc7Swdenk 2605c419d1d6SstroeseCPCI750_config: unconfig 2606a47a12beSStefan Roese @$(MKCONFIG) CPCI750 powerpc 74xx_7xx cpci750 esd 2607c419d1d6Sstroese 26083a473b2aSwdenkDB64360_config: unconfig 2609a47a12beSStefan Roese @$(MKCONFIG) DB64360 powerpc 74xx_7xx db64360 Marvell 26103a473b2aSwdenk 26113a473b2aSwdenkDB64460_config: unconfig 2612a47a12beSStefan Roese @$(MKCONFIG) DB64460 powerpc 74xx_7xx db64460 Marvell 26133a473b2aSwdenk 261415647dc7SwdenkELPPC_config: unconfig 2615a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx elppc eltec 261615647dc7Swdenk 26177ebf7443SwdenkEVB64260_config \ 26187ebf7443SwdenkEVB64260_750CX_config: unconfig 2619a47a12beSStefan Roese @$(MKCONFIG) EVB64260 powerpc 74xx_7xx evb64260 26207ebf7443Swdenk 26214c52783bSroy zangmpc7448hpc2_config: unconfig 2622a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx mpc7448hpc2 freescale 26234c52783bSroy zang 262415647dc7SwdenkP3G4_config: unconfig 2625a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx evb64260 26267ebf7443Swdenk 26271eac2a71SStefan Roesep3m750_config \ 26281eac2a71SStefan Roesep3m7448_config: unconfig 26291eac2a71SStefan Roese @mkdir -p $(obj)include 26301eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 26311eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 26321eac2a71SStefan Roese else \ 26331eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 26341eac2a71SStefan Roese fi 2635a47a12beSStefan Roese @$(MKCONFIG) -a p3mx powerpc 74xx_7xx p3mx prodrive 26361eac2a71SStefan Roese 26377ebf7443SwdenkPCIPPC2_config \ 26387ebf7443SwdenkPCIPPC6_config: unconfig 2639a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx pcippc2 26407ebf7443Swdenk 2641f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2642a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx ppmc7xx 2643f5e0d039SHeiko Schocher 2644699f0512SWolfgang DenkZUMA_config: unconfig 2645a47a12beSStefan Roese @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx evb64260 2646699f0512SWolfgang Denk 26477ebf7443Swdenk#======================================================================== 26487ebf7443Swdenk# ARM 26497ebf7443Swdenk#======================================================================== 26507ebf7443Swdenk######################################################################### 26517ebf7443Swdenk## StrongARM Systems 26527ebf7443Swdenk######################################################################### 26537ebf7443Swdenk 2654ea66bc88Swdenkassabet_config : unconfig 2655f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2656ea66bc88Swdenk 26577ebf7443Swdenkdnp1110_config : unconfig 2658f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 26597ebf7443Swdenk 2660855a496fSwdenkgcplus_config : unconfig 2661f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2662855a496fSwdenk 2663855a496fSwdenklart_config : unconfig 2664f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2665855a496fSwdenk 26667ebf7443Swdenkshannon_config : unconfig 2667f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 26687ebf7443Swdenk 26697ebf7443Swdenk######################################################################### 26702e5983d2Swdenk## ARM92xT Systems 26717ebf7443Swdenk######################################################################### 26727ebf7443Swdenk 267343a5f0dfSPo-Yu Chuanga320evb_config : unconfig 267443a5f0dfSPo-Yu Chuang @$(MKCONFIG) $(@:_config=) arm arm920t a320evb faraday a320 267543a5f0dfSPo-Yu Chuang 2676a4b46ed6SUlf Samuelsson######################################################################### 2677a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems 2678a4b46ed6SUlf Samuelsson######################################################################### 267920b197c6SStelian Pop 2680a85f9f21Swdenkat91rm9200dk_config : unconfig 268165230107SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 2682a85f9f21Swdenk 2683cb82a532SUlf Samuelssonat91rm9200ek_config : unconfig 2684cb82a532SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200 2685cb82a532SUlf Samuelsson 2686a85f9f21Swdenkcmc_pu2_config : unconfig 2687f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2688a85f9f21Swdenk 2689d8380c9dSTom RixCPUAT91_RAM_config \ 2690d8380c9dSTom RixCPUAT91_config : unconfig 2691d8380c9dSTom Rix @mkdir -p $(obj)include 2692d8380c9dSTom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 2693d8380c9dSTom Rix @$(MKCONFIG) -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200 2694d8380c9dSTom Rix 2695645da510SWolfgang Denkcsb637_config : unconfig 2696f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2697645da510SWolfgang Denk 269877e7273cSJens Scharsigeb_cpux9k2_config : unconfig 269977e7273cSJens Scharsig @$(MKCONFIG) $(@:_config=) arm arm920t eb_cpux9k2 BuS at91 270077e7273cSJens Scharsig 2701a4b46ed6SUlf Samuelssonkb9202_config : unconfig 2702a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 2703a4b46ed6SUlf Samuelsson 2704ea8d989fSTimo Tuunainenm501sk_config : unconfig 2705ea8d989fSTimo Tuunainen @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 270687cb6862SWolfgang Denk 2707699f0512SWolfgang Denkmp2usb_config : unconfig 2708699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 2709699f0512SWolfgang Denk 2710a4b46ed6SUlf Samuelsson######################################################################### 271134be1065SMatthias Weisser## ARM926EJ-S Systems 2712a4b46ed6SUlf Samuelsson######################################################################### 2713a4b46ed6SUlf Samuelsson 27141079432eSSergey Lapinafeb9260_config: unconfig 27151079432eSSergey Lapin @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91 27161079432eSSergey Lapin 2717a4b46ed6SUlf Samuelssonat91cap9adk_config : unconfig 27188ed2f5f9SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91 2719a4b46ed6SUlf Samuelsson 272089a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \ 272189a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \ 272289a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \ 2723df486b1fSNicolas Ferreat91sam9260ek_config \ 2724df486b1fSNicolas Ferreat91sam9g20ek_nandflash_config \ 2725df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs0_config \ 2726df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs1_config \ 2727df486b1fSNicolas Ferreat91sam9g20ek_config : unconfig 2728e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 2729df486b1fSNicolas Ferre @if [ "$(findstring 9g20,$@)" ] ; then \ 2730df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \ 2731df486b1fSNicolas Ferre $(XECHO) "... 9G20 Variant" ; \ 2732df486b1fSNicolas Ferre else \ 2733df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \ 2734df486b1fSNicolas Ferre fi; 273589a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 273689a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 273789a7a87fSNicolas Ferre $(XECHO) "... with environment variable in NAND FLASH" ; \ 273889a7a87fSNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 273989a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 274089a7a87fSNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 274189a7a87fSNicolas Ferre else \ 274289a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 274389a7a87fSNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \ 274489a7a87fSNicolas Ferre fi; 274589a7a87fSNicolas Ferre @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 2746a4b46ed6SUlf Samuelsson 27474e170b16SNicolas Ferreat91sam9xeek_nandflash_config \ 27484e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \ 27494e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \ 27504e170b16SNicolas Ferreat91sam9xeek_config : unconfig 27514e170b16SNicolas Ferre @mkdir -p $(obj)include 27524e170b16SNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 27534e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 27544e170b16SNicolas Ferre $(XECHO) "... with environment variable in NAND FLASH" ; \ 27554e170b16SNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 27564e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 27574e170b16SNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 27584e170b16SNicolas Ferre else \ 27594e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 27604e170b16SNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \ 27614e170b16SNicolas Ferre fi; 276253158aeaSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 27634e170b16SNicolas Ferre 276489a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \ 276589a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \ 276689a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \ 27675ccc2d99SSedji Gaouaouat91sam9261ek_config \ 27685ccc2d99SSedji Gaouaouat91sam9g10ek_nandflash_config \ 27695ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs0_config \ 27705ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs3_config \ 27715ccc2d99SSedji Gaouaouat91sam9g10ek_config : unconfig 2772e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 27735ccc2d99SSedji Gaouaou @if [ "$(findstring 9g10,$@)" ] ; then \ 27745ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ 27755ccc2d99SSedji Gaouaou $(XECHO) "... 9G10 Variant" ; \ 27765ccc2d99SSedji Gaouaou else \ 27775ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ 27785ccc2d99SSedji Gaouaou fi; 277989a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 278089a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 278189a7a87fSNicolas Ferre $(XECHO) "... with environment variable in NAND FLASH" ; \ 27825ccc2d99SSedji Gaouaou elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 278389a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ 278489a7a87fSNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \ 278589a7a87fSNicolas Ferre else \ 278689a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 278789a7a87fSNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 278889a7a87fSNicolas Ferre fi; 278989a7a87fSNicolas Ferre @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 279028962f5aSJean-Christophe PLAGNIOL-VILLARD 27911b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_config \ 27921b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_boot_config \ 279389a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \ 279489a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \ 279589a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \ 279628962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config : unconfig 2797e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 279889a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 279989a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 280089a7a87fSNicolas Ferre $(XECHO) "... with environment variable in NAND FLASH" ; \ 28011b3b7c64SJean-Christophe PLAGNIOL-VILLARD elif [ "$(findstring norflash,$@)" ] ; then \ 28021b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ 28031b3b7c64SJean-Christophe PLAGNIOL-VILLARD $(XECHO) "... with environment variable in NOR FLASH" ; \ 280489a7a87fSNicolas Ferre else \ 280589a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 280689a7a87fSNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 280789a7a87fSNicolas Ferre fi; 28081b3b7c64SJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring norflash_boot,$@)" ] ; then \ 28091b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ 28101b3b7c64SJean-Christophe PLAGNIOL-VILLARD $(XECHO) "... and boot from NOR FLASH" ; \ 28111b3b7c64SJean-Christophe PLAGNIOL-VILLARD fi; 281289a7a87fSNicolas Ferre @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 281328962f5aSJean-Christophe PLAGNIOL-VILLARD 281489a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \ 281589a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \ 281689a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \ 281728962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config : unconfig 2818e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 281989a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 282089a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 282189a7a87fSNicolas Ferre $(XECHO) "... with environment variable in NAND FLASH" ; \ 282289a7a87fSNicolas Ferre else \ 282389a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 282489a7a87fSNicolas Ferre $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 282589a7a87fSNicolas Ferre fi; 282689a7a87fSNicolas Ferre @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 282728962f5aSJean-Christophe PLAGNIOL-VILLARD 282823b80982STom RixCPU9G20_128M_config \ 282923b80982STom RixCPU9G20_config \ 283023b80982STom RixCPU9260_128M_config \ 283123b80982STom RixCPU9260_config : unconfig 283223b80982STom Rix @mkdir -p $(obj)include 283323b80982STom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 283423b80982STom Rix @$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91 283523b80982STom Rix 283633b1d3f4SDaniel Gorsulowskimeesc_config : unconfig 283733b1d3f4SDaniel Gorsulowski @$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91 283833b1d3f4SDaniel Gorsulowski 283932949232SIlko Ilievpm9261_config : unconfig 284032949232SIlko Iliev @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91 284132949232SIlko Iliev 284222ee6473SSedji Gaouaouat91sam9m10g45ek_nandflash_config \ 284322ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_config \ 284422ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_cs0_config \ 284522ee6473SSedji Gaouaouat91sam9m10g45ek_config \ 284622ee6473SSedji Gaouaouat91sam9g45ekes_nandflash_config \ 284722ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_config \ 284822ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_cs0_config \ 284922ee6473SSedji Gaouaouat91sam9g45ekes_config : unconfig 285022ee6473SSedji Gaouaou @mkdir -p $(obj)include 285122ee6473SSedji Gaouaou @if [ "$(findstring 9m10,$@)" ] ; then \ 285222ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ 285322ee6473SSedji Gaouaou $(XECHO) "... 9M10G45 Variant" ; \ 285422ee6473SSedji Gaouaou else \ 285522ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ 285622ee6473SSedji Gaouaou fi; 285722ee6473SSedji Gaouaou 285822ee6473SSedji Gaouaou @if [ "$(findstring _nandflash,$@)" ] ; then \ 285922ee6473SSedji Gaouaou echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 286022ee6473SSedji Gaouaou $(XECHO) "... with environment variable in NAND FLASH" ; \ 286122ee6473SSedji Gaouaou else \ 286222ee6473SSedji Gaouaou echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ 286322ee6473SSedji Gaouaou $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ 286422ee6473SSedji Gaouaou fi; 286522ee6473SSedji Gaouaou @$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 286622ee6473SSedji Gaouaou 286744d80256SDaniel Gorsulowskiotc570_config : unconfig 286844d80256SDaniel Gorsulowski @$(MKCONFIG) $(@:_config=) arm arm926ejs otc570 esd at91 286944d80256SDaniel Gorsulowski 2870f0a2c7b4SIlko Ilievpm9263_config : unconfig 2871f0a2c7b4SIlko Iliev @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91 2872f0a2c7b4SIlko Iliev 28739453967eSAlbin TonnerreSBC35_A9G20_NANDFLASH_config \ 28749453967eSAlbin TonnerreSBC35_A9G20_EEPROM_config \ 28759453967eSAlbin TonnerreSBC35_A9G20_config : unconfig 28769453967eSAlbin Tonnerre @mkdir -p $(obj)include 28779453967eSAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 28789453967eSAlbin Tonnerre @$(MKCONFIG) -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91 28799453967eSAlbin Tonnerre 28802dc851e3SAlbin TonnerreTNY_A9G20_NANDFLASH_config \ 28812dc851e3SAlbin TonnerreTNY_A9G20_EEPROM_config \ 28822dc851e3SAlbin TonnerreTNY_A9G20_config \ 28832dc851e3SAlbin TonnerreTNY_A9260_NANDFLASH_config \ 28842dc851e3SAlbin TonnerreTNY_A9260_EEPROM_config \ 28852dc851e3SAlbin TonnerreTNY_A9260_config : unconfig 28862dc851e3SAlbin Tonnerre @mkdir -p $(obj)include 28872dc851e3SAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 28882dc851e3SAlbin Tonnerre @$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91 28892dc851e3SAlbin Tonnerre 289074f4304eSWolfgang Denk######################################################################## 289187cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 289287cb6862SWolfgang Denkintegratorap_config \ 289387cb6862SWolfgang Denkap_config \ 289487cb6862SWolfgang Denkap966_config \ 289587cb6862SWolfgang Denkap922_config \ 289687cb6862SWolfgang Denkap922_XA10_config \ 289787cb6862SWolfgang Denkap7_config \ 289887cb6862SWolfgang Denkap720t_config \ 289987cb6862SWolfgang Denkap920t_config \ 290087cb6862SWolfgang Denkap926ejs_config \ 290187cb6862SWolfgang Denkap946es_config: unconfig 2902576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh ap $@ 29033d3befa7Swdenk 290487cb6862SWolfgang Denkintegratorcp_config \ 290587cb6862SWolfgang Denkcp_config \ 290687cb6862SWolfgang Denkcp920t_config \ 290787cb6862SWolfgang Denkcp926ejs_config \ 290887cb6862SWolfgang Denkcp946es_config \ 290987cb6862SWolfgang Denkcp1136_config \ 291087cb6862SWolfgang Denkcp966_config \ 291187cb6862SWolfgang Denkcp922_config \ 291287cb6862SWolfgang Denkcp922_XA10_config \ 291387cb6862SWolfgang Denkcp1026_config: unconfig 2914576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh cp $@ 291525d6712aSwdenk 29162819e136SSekhar Norida830evm_config: unconfig 29172819e136SSekhar Nori @$(MKCONFIG) $(@:_config=) arm arm926ejs da830evm davinci davinci 29182819e136SSekhar Nori 2919699f0512SWolfgang Denkdavinci_dvevm_config : unconfig 292089d51d02SHugo Villeneuve @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci 2921699f0512SWolfgang Denk 2922699f0512SWolfgang Denkdavinci_schmoogie_config : unconfig 2923699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2924699f0512SWolfgang Denk 2925699f0512SWolfgang Denkdavinci_sffsdr_config : unconfig 2926699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci 2927699f0512SWolfgang Denk 2928699f0512SWolfgang Denkdavinci_sonata_config : unconfig 2929699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2930699f0512SWolfgang Denk 293128b00324SDavid Brownelldavinci_dm355evm_config : unconfig 293228b00324SDavid Brownell @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci 293328b00324SDavid Brownell 29345df65cf5SSandeep Paulrajdavinci_dm355leopard_config : unconfig 29355df65cf5SSandeep Paulraj @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355leopard davinci davinci 29365df65cf5SSandeep Paulraj 29372d4072c0SSandeep Paulrajdavinci_dm365evm_config : unconfig 29382d4072c0SSandeep Paulraj @$(MKCONFIG) $(@:_config=) arm arm926ejs dm365evm davinci davinci 29392d4072c0SSandeep Paulraj 29406ab176d7SSandeep Paulrajdavinci_dm6467evm_config : unconfig 29416ab176d7SSandeep Paulraj @$(MKCONFIG) $(@:_config=) arm arm926ejs dm6467evm davinci davinci 29426ab176d7SSandeep Paulraj 2943*bbe31092SHeiko Schochermagnesium_config \ 294410bc241dSIlya Yanokimx27lite_config: unconfig 294510bc241dSIlya Yanok @$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27 294610bc241dSIlya Yanok 2947f832d8a1Swdenklpd7a400_config \ 2948f832d8a1Swdenklpd7a404_config: unconfig 2949f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 29503d3befa7Swdenk 29514abc5bffSPrafulla Wadaskarmv88f6281gtw_ge_config: unconfig 29524abc5bffSPrafulla Wadaskar @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood 29534abc5bffSPrafulla Wadaskar 2954281e00a3Swdenkmx1ads_config : unconfig 2955f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2956281e00a3Swdenk 2957281e00a3Swdenkmx1fs2_config : unconfig 2958f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2959281e00a3Swdenk 2960ac7eb8a3SWolfgang Denknetstar_config: unconfig 2961f4e7cbfcSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm925t netstar 2962ac7eb8a3SWolfgang Denk 2963ee1363f2SAlessandro Rubininhk8815_config \ 2964ee1363f2SAlessandro Rubininhk8815_onenand_config: unconfig 2965d5254f14SAlessandro Rubini @mkdir -p $(obj)include 2966d5254f14SAlessandro Rubini @ > $(obj)include/config.h 2967d5254f14SAlessandro Rubini @if [ "$(findstring _onenand, $@)" ] ; then \ 2968d5254f14SAlessandro Rubini echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \ 2969f7aa59b2SAlessandro Rubini $(XECHO) "... configured to boot from OneNand Flash"; \ 2970d5254f14SAlessandro Rubini else \ 2971f7aa59b2SAlessandro Rubini $(XECHO) "... configured to boot from Nand Flash"; \ 2972d5254f14SAlessandro Rubini fi 2973ee1363f2SAlessandro Rubini @$(MKCONFIG) -a nhk8815 arm arm926ejs nhk8815 st nomadik 2974d5254f14SAlessandro Rubini 29752e5983d2Swdenkomap1510inn_config : unconfig 29760a0e4badSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn ti 29772e5983d2Swdenk 2978a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2979a4b46ed6SUlf Samuelsson 298063e73c9aSwdenkomap1610inn_config \ 298163e73c9aSwdenkomap1610inn_cs0boot_config \ 298263e73c9aSwdenkomap1610inn_cs3boot_config \ 29833ff02c27Swdenkomap1610inn_cs_autoboot_config \ 298463e73c9aSwdenkomap1610h2_config \ 298563e73c9aSwdenkomap1610h2_cs0boot_config \ 29863ff02c27Swdenkomap1610h2_cs3boot_config \ 29873ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2988f9328639SMarian Balakowicz @mkdir -p $(obj)include 298963e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2990cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2991ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 29923ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2993cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2994ae6d1056SWolfgang Denk $(XECHO) "... configured for CS_AUTO boot"; \ 299563e73c9aSwdenk else \ 2996cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2997ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 299863e73c9aSwdenk fi; 29990a0e4badSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap 30006f21347dSwdenk 3001699f0512SWolfgang Denkomap5912osk_config : unconfig 30020a0e4badSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk ti omap 3003699f0512SWolfgang Denk 3004e92daeb5SSimon Kagstromopenrd_base_config: unconfig 3005e92daeb5SSimon Kagstrom @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood 3006e92daeb5SSimon Kagstrom 3007a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 3008a4b46ed6SUlf Samuelsson 3009a56bd922Swdenkomap730p2_config \ 3010a56bd922Swdenkomap730p2_cs0boot_config \ 3011a56bd922Swdenkomap730p2_cs3boot_config : unconfig 3012f9328639SMarian Balakowicz @mkdir -p $(obj)include 3013a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 3014f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 3015ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 3016a56bd922Swdenk else \ 3017f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 3018ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 3019a56bd922Swdenk fi; 30200a0e4badSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 ti omap 3021a56bd922Swdenk 3022fbc8365aSPrafulla Wadaskarrd6281a_config: unconfig 3023fbc8365aSPrafulla Wadaskar @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood 3024fbc8365aSPrafulla Wadaskar 302532cb2c70SWolfgang Denksbc2410x_config: unconfig 3026f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 302732cb2c70SWolfgang Denk 3028281e00a3Swdenkscb9328_config : unconfig 3029f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 3030281e00a3Swdenk 303155dd4ba5SPrafulla Wadaskarsheevaplug_config: unconfig 303255dd4ba5SPrafulla Wadaskar @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood 303355dd4ba5SPrafulla Wadaskar 30347ebf7443Swdenksmdk2400_config : unconfig 3035cfca3383SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0 30367ebf7443Swdenk 30377ebf7443Swdenksmdk2410_config : unconfig 3038cfca3383SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0 30397ebf7443Swdenk 3040080cfee7SVipin KUMARspear300_config \ 30417da69236SVipin KUMARspear310_config \ 30427da69236SVipin KUMARspear320_config : unconfig 30437e074158SVipin KUMAR @$(MKCONFIG) -n $@ -t $(@:_config=) spear3xx arm arm926ejs $(@:_config=) spear spear 30447e074158SVipin KUMAR 3045566c9c16SVipin KUMARspear600_config : unconfig 3046566c9c16SVipin KUMAR @$(MKCONFIG) -n $@ -t $(@:_config=) spear6xx arm arm926ejs $(@:_config=) spear spear 3047566c9c16SVipin KUMAR 304867fa8c25SHeiko Schochersuen3_config: unconfig 304967fa8c25SHeiko Schocher @$(MKCONFIG) $(@:_config=) arm arm926ejs km_arm keymile kirkwood 305067fa8c25SHeiko Schocher 305147fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \ 30522d24a3a7SwdenkSX1_config: unconfig 305347fd3bffSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 305447fd3bffSJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ 305547fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 305647fd3bffSJean-Christophe PLAGNIOL-VILLARD $(XECHO) "... configured for stdout serial"; \ 305747fd3bffSJean-Christophe PLAGNIOL-VILLARD else \ 305847fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 305947fd3bffSJean-Christophe PLAGNIOL-VILLARD $(XECHO) "... configured for stdout usbtty"; \ 306047fd3bffSJean-Christophe PLAGNIOL-VILLARD fi; 306147fd3bffSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) SX1 arm arm925t sx1 30622d24a3a7Swdenk 3063b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 3064a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 3065a4b46ed6SUlf Samuelsson 306643d9616cSwdenktrab_config \ 3067b0639ca3Swdenktrab_bigram_config \ 3068b0639ca3Swdenktrab_bigflash_config \ 3069f54ebdfaSwdenktrab_old_config: unconfig 3070f9328639SMarian Balakowicz @mkdir -p $(obj)include 3071f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 3072b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 3073f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 3074f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 3075ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 3076b0639ca3Swdenk } 3077b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 3078f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 3079f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 3080ae6d1056SWolfgang Denk $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 3081f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 3082b0639ca3Swdenk } 3083f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 3084f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 3085f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 3086ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 3087f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 308843d9616cSwdenk } 3089f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 30907ebf7443Swdenk 30916895d451SJohn Rigbytx25_config : unconfig 30926895d451SJohn Rigby @$(MKCONFIG) $(@:_config=) arm arm926ejs tx25 karo mx25 30936895d451SJohn Rigby @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 30946895d451SJohn Rigby 30951cb8e980SwdenkVCMA9_config : unconfig 3096f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 30971cb8e980Swdenk 3098699f0512SWolfgang Denk######################################################################### 309987cb6862SWolfgang Denk# ARM supplied Versatile development boards 3100699f0512SWolfgang Denk######################################################################### 3101699f0512SWolfgang Denk 3102699f0512SWolfgang Denkcm4008_config : unconfig 3103699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 3104699f0512SWolfgang Denk 3105699f0512SWolfgang Denkcm41xx_config : unconfig 3106699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 3107699f0512SWolfgang Denk 310887cb6862SWolfgang Denkversatile_config \ 310987cb6862SWolfgang Denkversatileab_config \ 311087cb6862SWolfgang Denkversatilepb_config : unconfig 3111e4943ec5SJean-Christophe PLAGNIOL-VILLARD @board/armltd/versatile/split_by_variant.sh $@ 3112074cff0dSwdenk 31133c2b3d45Swdenkvoiceblue_config: unconfig 31144fedfddfSLadislav Michl @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 31153c2b3d45Swdenk 3116074cff0dSwdenk######################################################################### 3117074cff0dSwdenk## S3C44B0 Systems 3118074cff0dSwdenk######################################################################### 3119074cff0dSwdenk 3120074cff0dSwdenkB2_config : unconfig 3121f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 3122074cff0dSwdenk 31237ebf7443Swdenk######################################################################### 31247ebf7443Swdenk## ARM720T Systems 31257ebf7443Swdenk######################################################################### 31267ebf7443Swdenk 3127c570b2fdSWolfgang Denkarmadillo_config: unconfig 3128f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 3129c570b2fdSWolfgang Denk 31307ebf7443Swdenkep7312_config : unconfig 3131f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 31327ebf7443Swdenk 31332d24a3a7Swdenkimpa7_config : unconfig 3134f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 31352d24a3a7Swdenk 31362d1a537dSwdenkmodnet50_config : unconfig 3137f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 31382d1a537dSwdenk 313939539887Swdenkevb4510_config : unconfig 3140281dfb0cSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b 314139539887Swdenk 31426bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 3143b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 3144b0d8f5bfSPeter Pearse 3145b0d8f5bfSPeter PearseSMN42_config : unconfig 3146b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 31476bd2447eSGary Jennejohn 31487ebf7443Swdenk######################################################################### 3149f904cdbbSDirk Behme## ARM CORTEX Systems 3150f904cdbbSDirk Behme######################################################################### 3151f904cdbbSDirk Behme 3152c35d7cf0SFrederik Kriewitzdevkit8000_config : unconfig 3153c35d7cf0SFrederik Kriewitz @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 devkit8000 timll omap3 3154c35d7cf0SFrederik Kriewitz 3155f904cdbbSDirk Behmeomap3_beagle_config : unconfig 31560a0e4badSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle ti omap3 3157f904cdbbSDirk Behme 31589d0fc811SDirk Behmeomap3_overo_config : unconfig 3159127f9ae5SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo NULL omap3 31609d0fc811SDirk Behme 3161ad9bc8e5SDirk Behmeomap3_evm_config : unconfig 31620a0e4badSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm ti omap3 3163ad9bc8e5SDirk Behme 31642be2c6ccSDirk Behmeomap3_pandora_config : unconfig 3165127f9ae5SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora NULL omap3 31662be2c6ccSDirk Behme 3167e63e5904STom Rixomap3_sdp3430_config : unconfig 3168e63e5904STom Rix @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 sdp3430 ti omap3 3169e63e5904STom Rix 31707379f45aSDirk Behmeomap3_zoom1_config : unconfig 3171350f3ac5SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 logicpd omap3 31727379f45aSDirk Behme 3173376aee78STom Rixomap3_zoom2_config : unconfig 3174350f3ac5SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 logicpd omap3 3175376aee78STom Rix 31768bc4ee9eSMinkyu Kangsmdkc100_config: unconfig 31778bc4ee9eSMinkyu Kang @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 smdkc100 samsung s5pc1xx 31788bc4ee9eSMinkyu Kang 3179f904cdbbSDirk Behme######################################################################### 318043d9616cSwdenk## XScale Systems 31817ebf7443Swdenk######################################################################### 31827ebf7443Swdenk 3183799891efSMichael Schwingenactux1_config : unconfig 3184799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux1 3185799891efSMichael Schwingen 3186799891efSMichael Schwingenactux2_config : unconfig 3187799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux2 3188799891efSMichael Schwingen 3189799891efSMichael Schwingenactux3_config : unconfig 3190799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux3 3191799891efSMichael Schwingen 3192799891efSMichael Schwingenactux4_config : unconfig 3193799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux4 3194799891efSMichael Schwingen 3195fabd46acSwdenkcerf250_config : unconfig 3196f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 3197fabd46acSwdenk 31987ebf7443Swdenkcradle_config : unconfig 3199f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 32007ebf7443Swdenk 32017ebf7443Swdenkcsb226_config : unconfig 3202f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 32037ebf7443Swdenk 320491c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config : unconfig 3205f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 32060be248faSWolfgang Denk 320743d9616cSwdenkinnokom_config : unconfig 3208f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 320943d9616cSwdenk 32102d5b561eSwdenkixdp425_config : unconfig 3211f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 32122d5b561eSwdenk 3213ba94a1bbSWolfgang Denkixdpg425_config : unconfig 3214f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 3215ba94a1bbSWolfgang Denk 321643d9616cSwdenklubbock_config : unconfig 3217f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 321843d9616cSwdenk 32195720df78SHeiko Schocherpleb2_config : unconfig 3220f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 32215720df78SHeiko Schocher 322252f52c14Swdenklogodl_config : unconfig 3223f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 322452f52c14Swdenk 32259d8d5a5bSStefan Roesepdnb3_config \ 32269d8d5a5bSStefan Roesescpu_config: unconfig 3227cdd917a4SWolfgang Denk @mkdir -p $(obj)include 32289d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 3229cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 3230ae6d1056SWolfgang Denk $(XECHO) "... on SCPU board variant" ; \ 32319d8d5a5bSStefan Roese fi 32329d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 3233ba94a1bbSWolfgang Denk 3234f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 3235f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 3236f57f70aaSWolfgang Denk 3237040f8f63SStefano Babicpolaris_config \ 32385e5803e1Sstefano babictrizepsiv_config : unconfig 3239040f8f63SStefano Babic @mkdir -p $(obj)include 3240040f8f63SStefano Babic @if [ "$(findstring polaris,$@)" ] ; then \ 3241040f8f63SStefano Babic echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \ 3242040f8f63SStefano Babic fi; 3243040f8f63SStefano Babic @$(MKCONFIG) -a trizepsiv arm pxa trizepsiv 32445e5803e1Sstefano babic 32453e38691eSwdenkwepep250_config : unconfig 3246f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 32473e38691eSwdenk 32484ec3a7f0Swdenkxaeniax_config : unconfig 3249f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 32504ec3a7f0Swdenk 3251efa329cbSwdenkxm250_config : unconfig 3252f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 3253efa329cbSwdenk 3254ca0e7748Swdenkxsengine_config : unconfig 3255f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 3256ca0e7748Swdenk 3257e0269579SMarkus Klotzbücherzylonite_config : 3258f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 3259e0269579SMarkus Klotzbücher 32608ed96046Swdenk######################################################################### 32618ed96046Swdenk## ARM1136 Systems 32628ed96046Swdenk######################################################################### 32635ca9881aSPeter Pearse 32645ca9881aSPeter Pearseapollon_config : unconfig 32658cbf4e4fSWolfgang Denk @mkdir -p $(obj)include 3266751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 32675252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx 3268751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 32698ed96046Swdenk 3270caebc95bSSascha Hauerimx31_litekit_config : unconfig 3271350f3ac5SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit logicpd mx31 3272caebc95bSSascha Hauer 3273a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \ 32745ad86216SSascha Hauerimx31_phycore_config : unconfig 327569c5bf29SGuennadi Liakhovetski @mkdir -p $(obj)include 3276a2bb7105SGuennadi Liakhovetski @if [ -n "$(findstring _eet_,$@)" ]; then \ 3277a2bb7105SGuennadi Liakhovetski echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ 3278a2bb7105SGuennadi Liakhovetski fi 3279a2bb7105SGuennadi Liakhovetski @$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31 32805ad86216SSascha Hauer 3281b5dc9b30SGuennadi Liakhovetskimx31ads_config : unconfig 3282f5acb9fdSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31 3283b5dc9b30SGuennadi Liakhovetski 3284d08e5ca3SMagnus Liljamx31pdk_config \ 3285d08e5ca3SMagnus Liljamx31pdk_nand_config : unconfig 3286d08e5ca3SMagnus Lilja @mkdir -p $(obj)include 3287d08e5ca3SMagnus Lilja @if [ -n "$(findstring _nand_,$@)" ]; then \ 3288d08e5ca3SMagnus Lilja echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ 3289d08e5ca3SMagnus Lilja else \ 3290d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ 3291d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \ 3292d08e5ca3SMagnus Lilja fi 3293d08e5ca3SMagnus Lilja @$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31 32948449f287SMagnus Lilja 3295c5fb70c9SStefano Babicmx51evk_config : unconfig 3296c5fb70c9SStefano Babic @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 mx51evk freescale mx51 3297c5fb70c9SStefano Babic 3298699f0512SWolfgang Denkomap2420h4_config : unconfig 32990a0e4badSJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 ti omap24xx 3300699f0512SWolfgang Denk 33010d19f6c8SIlya Yanokqong_config : unconfig 33020d19f6c8SIlya Yanok @$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31 33030d19f6c8SIlya Yanok 330411edcfe2SGuennadi Liakhovetski######################################################################### 330511edcfe2SGuennadi Liakhovetski## ARM1176 Systems 330611edcfe2SGuennadi Liakhovetski######################################################################### 330711edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config \ 330811edcfe2SGuennadi Liakhovetskismdk6400_config : unconfig 330911edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 331011edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 331111edcfe2SGuennadi Liakhovetski @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 331211edcfe2SGuennadi Liakhovetski @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ 331311edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 331411edcfe2SGuennadi Liakhovetski $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \ 331511edcfe2SGuennadi Liakhovetski else \ 331611edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 331711edcfe2SGuennadi Liakhovetski $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \ 331811edcfe2SGuennadi Liakhovetski fi 331911edcfe2SGuennadi Liakhovetski @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 332011edcfe2SGuennadi Liakhovetski 33212262cfeeSwdenk#======================================================================== 33222262cfeeSwdenk# i386 33232262cfeeSwdenk#======================================================================== 33242262cfeeSwdenk######################################################################### 33252262cfeeSwdenk## AMD SC520 CDP 33262262cfeeSwdenk######################################################################### 3327c620c01eSGraeme RusseNET_config : unconfig 332840797618SGraeme Russ @$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520 3329c620c01eSGraeme Russ 3330a3f4c123SWolfgang Denksc520_cdp_config : unconfig 333140797618SGraeme Russ @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520 3332a3f4c123SWolfgang Denk 33337a8e9bedSwdenksc520_spunk_config : unconfig 333440797618SGraeme Russ @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520 33357a8e9bedSwdenk 33367a8e9bedSwdenksc520_spunk_rel_config : unconfig 333740797618SGraeme Russ @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520 33387a8e9bedSwdenk 333943d9616cSwdenk#======================================================================== 334043d9616cSwdenk# MIPS 334143d9616cSwdenk#======================================================================== 33427ebf7443Swdenk######################################################################### 334343d9616cSwdenk## MIPS32 4Kc 334443d9616cSwdenk######################################################################### 334543d9616cSwdenk 3346e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 3347e0ac62d7Swdenk 3348e0ac62d7Swdenkincaip_100MHz_config \ 3349e0ac62d7Swdenkincaip_133MHz_config \ 3350e0ac62d7Swdenkincaip_150MHz_config \ 335143d9616cSwdenkincaip_config: unconfig 3352f9328639SMarian Balakowicz @mkdir -p $(obj)include 3353e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 3354f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 3355ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 3356e0ac62d7Swdenk } 3357e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 3358f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 3359ae6d1056SWolfgang Denk $(XECHO) "... with 133MHz system clock" ; \ 3360e0ac62d7Swdenk } 3361e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 3362f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 3363ae6d1056SWolfgang Denk $(XECHO) "... with 150MHz system clock" ; \ 3364e0ac62d7Swdenk } 3365f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 3366e0ac62d7Swdenk 3367f4863a7aSwdenktb0229_config: unconfig 3368f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 3369f4863a7aSwdenk 33702a61eff6SStefan Roesevct_premium_config \ 33712a61eff6SStefan Roesevct_premium_small_config \ 33722a61eff6SStefan Roesevct_premium_onenand_config \ 33732a61eff6SStefan Roesevct_premium_onenand_small_config \ 33742a61eff6SStefan Roesevct_platinum_config \ 33752a61eff6SStefan Roesevct_platinum_small_config \ 33762a61eff6SStefan Roesevct_platinum_onenand_config \ 33772a61eff6SStefan Roesevct_platinum_onenand_small_config \ 33782a61eff6SStefan Roesevct_platinumavc_config \ 33792a61eff6SStefan Roesevct_platinumavc_small_config \ 33802a61eff6SStefan Roesevct_platinumavc_onenand_config \ 33812a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig 33822a61eff6SStefan Roese @mkdir -p $(obj)include 33832a61eff6SStefan Roese @if [ "$(findstring _premium,$@)" ] ; then \ 33842a61eff6SStefan Roese echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \ 33852a61eff6SStefan Roese $(XECHO) "... on Premium board variant" ; \ 33862a61eff6SStefan Roese fi 33872a61eff6SStefan Roese @if [ "$(findstring _platinum_,$@)" ] ; then \ 33882a61eff6SStefan Roese echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \ 33892a61eff6SStefan Roese $(XECHO) "... on Platinum board variant" ; \ 33902a61eff6SStefan Roese fi 33912a61eff6SStefan Roese @if [ "$(findstring _platinumavc,$@)" ] ; then \ 33922a61eff6SStefan Roese echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \ 33932a61eff6SStefan Roese $(XECHO) "... on PlatinumAVC board variant" ; \ 33942a61eff6SStefan Roese fi 33952a61eff6SStefan Roese @if [ "$(findstring _onenand,$@)" ] ; then \ 33962a61eff6SStefan Roese echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \ 33972a61eff6SStefan Roese $(XECHO) "... on OneNAND board variant" ; \ 33982a61eff6SStefan Roese fi 33992a61eff6SStefan Roese @if [ "$(findstring _small,$@)" ] ; then \ 34002a61eff6SStefan Roese echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \ 34012a61eff6SStefan Roese $(XECHO) "... stripped down image variant" ; \ 34022a61eff6SStefan Roese fi 34032a61eff6SStefan Roese @$(MKCONFIG) -a vct mips mips vct micronas 34042a61eff6SStefan Roese 3405e0ac62d7Swdenk######################################################################### 340669459791Swdenk## MIPS32 AU1X00 340769459791Swdenk######################################################################### 3408699f0512SWolfgang Denk 340969459791Swdenkdbau1000_config : unconfig 3410f9328639SMarian Balakowicz @mkdir -p $(obj)include 3411210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 3412f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 341369459791Swdenk 341469459791Swdenkdbau1100_config : unconfig 3415f9328639SMarian Balakowicz @mkdir -p $(obj)include 3416210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 3417f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 341869459791Swdenk 341969459791Swdenkdbau1500_config : unconfig 3420f9328639SMarian Balakowicz @mkdir -p $(obj)include 3421210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 3422f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 342369459791Swdenk 3424ff36fd85Swdenkdbau1550_config : unconfig 3425f9328639SMarian Balakowicz @mkdir -p $(obj)include 3426210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 3427f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 3428ff36fd85Swdenk 3429ff36fd85Swdenkdbau1550_el_config : unconfig 3430f9328639SMarian Balakowicz @mkdir -p $(obj)include 3431210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 3432f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 3433ff36fd85Swdenk 34348a773983SShinya Kuribayashigth2_config : unconfig 34358a773983SShinya Kuribayashi @mkdir -p $(obj)include 34368a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 34378a773983SShinya Kuribayashi @$(MKCONFIG) -a gth2 mips mips gth2 34388a773983SShinya Kuribayashi 3439699f0512SWolfgang Denkpb1000_config : unconfig 3440699f0512SWolfgang Denk @mkdir -p $(obj)include 3441699f0512SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 3442699f0512SWolfgang Denk @$(MKCONFIG) -a pb1x00 mips mips pb1x00 3443699f0512SWolfgang Denk 34440764c164SVlad Lunguqemu_mips_config : unconfig 34450764c164SVlad Lungu @mkdir -p $(obj)include 3446210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 34470764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 34480764c164SVlad Lungu 344969459791Swdenk######################################################################### 3450e0ac62d7Swdenk## MIPS64 5Kc 3451e0ac62d7Swdenk######################################################################### 345243d9616cSwdenk 34533e38691eSwdenkpurple_config : unconfig 3454f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 345543d9616cSwdenk 34564a551709Swdenk#======================================================================== 34574a551709Swdenk# Nios 34584a551709Swdenk#======================================================================== 34594a551709Swdenk######################################################################### 34604a551709Swdenk## Nios32 34614a551709Swdenk######################################################################### 34624a551709Swdenk 3463699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config \ 3464699f0512SWolfgang DenkADNPESC1_base_32_config \ 3465699f0512SWolfgang DenkADNPESC1_config: unconfig 3466699f0512SWolfgang Denk @mkdir -p $(obj)include 3467699f0512SWolfgang Denk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 3468699f0512SWolfgang Denk { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 3469699f0512SWolfgang Denk $(XECHO) "... DNP/EVA2 configuration" ; \ 3470699f0512SWolfgang Denk } 3471699f0512SWolfgang Denk @[ -z "$(findstring _base_32,$@)" ] || \ 3472699f0512SWolfgang Denk { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 3473699f0512SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration" ; \ 3474699f0512SWolfgang Denk } 3475699f0512SWolfgang Denk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 3476699f0512SWolfgang Denk { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 3477699f0512SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 3478699f0512SWolfgang Denk } 3479699f0512SWolfgang Denk @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 3480699f0512SWolfgang Denk 3481c935d3bdSwdenkDK1C20_safe_32_config \ 3482c935d3bdSwdenkDK1C20_standard_32_config \ 34834a551709SwdenkDK1C20_config: unconfig 3484f9328639SMarian Balakowicz @mkdir -p $(obj)include 3485c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 3486f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 3487ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 3488c935d3bdSwdenk } 3489c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 3490f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3491ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 3492c935d3bdSwdenk } 3493c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 3494f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3495ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 3496c935d3bdSwdenk } 3497f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 3498c935d3bdSwdenk 3499c935d3bdSwdenkDK1S10_safe_32_config \ 3500c935d3bdSwdenkDK1S10_standard_32_config \ 3501ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 3502c935d3bdSwdenkDK1S10_config: unconfig 3503f9328639SMarian Balakowicz @mkdir -p $(obj)include 3504c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 3505f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 3506ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 3507c935d3bdSwdenk } 3508c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 3509f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3510ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 3511c935d3bdSwdenk } 3512ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 3513f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 3514ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 3515ec4c544bSwdenk } 3516c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 3517f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 3518ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 3519c935d3bdSwdenk } 3520f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 35214a551709Swdenk 35225c952cf0Swdenk######################################################################### 35235c952cf0Swdenk## Nios-II 35245c952cf0Swdenk######################################################################### 35255c952cf0Swdenk 35269cc83378SScott McNuttEP1C20_config : unconfig 3527f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 35289cc83378SScott McNutt 35299cc83378SScott McNuttEP1S10_config : unconfig 3530f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 35319cc83378SScott McNutt 35329cc83378SScott McNuttEP1S40_config : unconfig 3533f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 35349cc83378SScott McNutt 35355c952cf0SwdenkPK1C20_config : unconfig 3536f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 35375c952cf0Swdenk 35385c952cf0SwdenkPCI5441_config : unconfig 3539f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 35404a551709Swdenk 35418cbb0dddSThomas Chou# nios2 generic boards 35428cbb0dddSThomas ChouNIOS2_GENERIC = nios2-generic 35438cbb0dddSThomas Chou 35448cbb0dddSThomas Chou$(NIOS2_GENERIC:%=%_config) : unconfig 35458cbb0dddSThomas Chou @$(MKCONFIG) $(@:_config=) nios2 nios2 nios2-generic altera 35468cbb0dddSThomas Chou 3547507bbe3eSwdenk#======================================================================== 3548507bbe3eSwdenk## Microblaze 3549699f0512SWolfgang Denk#======================================================================== 3550507bbe3eSwdenk 355152a822edSMichal Simekmicroblaze-generic_config: unconfig 3552cdd917a4SWolfgang Denk @mkdir -p $(obj)include 355352a822edSMichal Simek @$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx 3554cfc67116SMichal Simek 355560fa72d6SMike Frysinger#======================================================================== 355660fa72d6SMike Frysinger# Blackfin 355760fa72d6SMike Frysinger#======================================================================== 35580afe519aSWolfgang Denk 355960fa72d6SMike Frysinger# Analog Devices boards 356084a9dda3SMike FrysingerBFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \ 3561cb4b5e87SMike Frysinger bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit 35620afe519aSWolfgang Denk 3563e82d8a1fSMike Frysinger# Bluetechnix tinyboards 35642aeda2d0SHarald KrapfenbauerBFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf537u cm-bf548 cm-bf561 \ 35652aeda2d0SHarald Krapfenbauer tcm-bf518 tcm-bf537 3566e82d8a1fSMike Frysinger 3567d7fdc141SMike Frysinger# Misc third party boards 35683f1a5c16SBrent KandetzkiBFIN_BOARDS += bf537-minotaur bf537-srv1 bf561-acvilon blackstamp ip04 3569d7fdc141SMike Frysinger 35700f52b560SHoan Hoang# I-SYST Micromodule 35710f52b560SHoan HoangBFIN_BOARDS += ibf-dsp561 35720f52b560SHoan Hoang 357360fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config) : unconfig 35749171fc81SMike Frysinger @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=) 357526bf7decSAubrey Li 357610eafa10SMichael Hennerichbf527-ezkit-v2_config : unconfig 357710eafa10SMichael Hennerich @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \ 357810eafa10SMichael Hennerich bf527-ezkit blackfin blackfin bf527-ezkit 357910eafa10SMichael Hennerich 35805e3b0bc1SHaavard Skinnemoen#======================================================================== 35815e3b0bc1SHaavard Skinnemoen# AVR32 35825e3b0bc1SHaavard Skinnemoen#======================================================================== 3583699f0512SWolfgang Denk 3584699f0512SWolfgang Denkatngw100_config : unconfig 3585699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 35865e3b0bc1SHaavard Skinnemoen 35875e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 358836f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 35895e3b0bc1SHaavard Skinnemoen 3590667568dbSHaavard Skinnemoenatstk1003_config : unconfig 3591667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 3592667568dbSHaavard Skinnemoen 359364ff2357SHaavard Skinnemoenatstk1004_config : unconfig 359464ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 35950afe519aSWolfgang Denk 35960a2e4879SHaavard Skinnemoenatstk1006_config : unconfig 35970a2e4879SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 35980a2e4879SHaavard Skinnemoen 35990eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config : unconfig 36000eb5717aSHans-Christian Egtvedt @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x 36010eb5717aSHans-Christian Egtvedt 36025c374c9eSJulien Mayhammerhead_config : unconfig 36035c374c9eSJulien May @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x 36045c374c9eSJulien May 360513b50fe3SMark Jacksonmimc200_config : unconfig 360613b50fe3SMark Jackson @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x 360713b50fe3SMark Jackson 3608699f0512SWolfgang Denk#======================================================================== 3609699f0512SWolfgang Denk# SH3 (SuperH) 3610699f0512SWolfgang Denk#======================================================================== 36117ebf7443Swdenk 361269df3c4dSNobuhiro Iwamatsu######################################################################### 3613c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH) 3614c655fad0SNobuhiro Iwamatsu######################################################################### 3615c655fad0SNobuhiro Iwamatsursk7203_config: unconfig 3616a5b04d00SKieran Bingham @mkdir -p $(obj)include 36174d41650eSPeter Griffin @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h 36189a1d3557SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas 3619c655fad0SNobuhiro Iwamatsu 3620c655fad0SNobuhiro Iwamatsu######################################################################### 3621b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 3622b2b5e2bbSYoshihiro Shimoda######################################################################### 3623699f0512SWolfgang Denk 36243313e0e2SMark Jonasmpr2_config: unconfig 36253ab4827cSWolfgang Denk @mkdir -p $(obj)include 36263ab4827cSWolfgang Denk @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h 36273313e0e2SMark Jonas @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2 36283313e0e2SMark Jonas 3629b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 36303ab4827cSWolfgang Denk @mkdir -p $(obj)include 36313ab4827cSWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h 363291c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se 3633b2b5e2bbSYoshihiro Shimoda 3634b2b5e2bbSYoshihiro Shimoda######################################################################### 363569df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 363669df3c4dSNobuhiro Iwamatsu######################################################################### 3637699f0512SWolfgang Denk 3638699f0512SWolfgang DenkMigoR_config : unconfig 3639699f0512SWolfgang Denk @mkdir -p $(obj)include 3640699f0512SWolfgang Denk @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h 36419a1d3557SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas 3642699f0512SWolfgang Denk 364369df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 36443ab4827cSWolfgang Denk @mkdir -p $(obj)include 3645210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 364691c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se 364769df3c4dSNobuhiro Iwamatsu 3648d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 36493ab4827cSWolfgang Denk @mkdir -p $(obj)include 3650210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 365191c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se 36527a8e9bedSwdenk 3653699f0512SWolfgang Denkr2dplus_config : unconfig 36543ab4827cSWolfgang Denk @mkdir -p $(obj)include 3655699f0512SWolfgang Denk @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h 3656c1da2a22SNobuhiro Iwamatsu @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas 3657c2042f59Sgoda.yusuke 3658c133c1fbSYusuke Godar7780mp_config: unconfig 36593ab4827cSWolfgang Denk @mkdir -p $(obj)include 36603ab4827cSWolfgang Denk @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h 3661acd3e30dSNobuhiro Iwamatsu @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas 3662c133c1fbSYusuke Goda 36637faddaecSNobuhiro Iwamatsush7763rdp_config : unconfig 36643ab4827cSWolfgang Denk @mkdir -p $(obj)include 36653ab4827cSWolfgang Denk @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h 366678385bf2SNobuhiro Iwamatsu @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas 36677faddaecSNobuhiro Iwamatsu 3668ada93182SYoshihiro Shimodaxtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1)) 3669ada93182SYoshihiro Shimodash7785lcr_32bit_config \ 36700d53a47dSNobuhiro Iwamatsush7785lcr_config : unconfig 3671ce298172SJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 3672ce298172SJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)board/renesas/sh7785lcr 3673ce298172SJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h 3674ada93182SYoshihiro Shimoda @if [ "$(findstring 32bit, $@)" ] ; then \ 3675ada93182SYoshihiro Shimoda echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \ 3676ada93182SYoshihiro Shimoda echo "TEXT_BASE = 0x8ff80000" > \ 3677ada93182SYoshihiro Shimoda $(obj)board/renesas/sh7785lcr/config.tmp ; \ 3678ada93182SYoshihiro Shimoda $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \ 3679ada93182SYoshihiro Shimoda fi 3680ada93182SYoshihiro Shimoda @$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas 36810d53a47dSNobuhiro Iwamatsu 36826f0da497SNobuhiro Iwamatsuap325rxa_config : unconfig 36836f0da497SNobuhiro Iwamatsu @mkdir -p $(obj)include 36846f0da497SNobuhiro Iwamatsu @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h 3685f84e6ea2SNobuhiro Iwamatsu @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas 36866f0da497SNobuhiro Iwamatsu 368774d9c16aSNobuhiro Iwamatsuespt_config : unconfig 368874d9c16aSNobuhiro Iwamatsu @mkdir -p $(obj)include 368974d9c16aSNobuhiro Iwamatsu @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h 369074d9c16aSNobuhiro Iwamatsu @$(MKCONFIG) -a $(@:_config=) sh sh4 espt 369174d9c16aSNobuhiro Iwamatsu 3692c2f02da2SDaniel Hellstrom#======================================================================== 3693c2f02da2SDaniel Hellstrom# SPARC 3694c2f02da2SDaniel Hellstrom#======================================================================== 3695699f0512SWolfgang Denk 36961e9a164eSDaniel Hellstrom######################################################################### 36971e9a164eSDaniel Hellstrom## LEON3 36981e9a164eSDaniel Hellstrom######################################################################### 3699c2f02da2SDaniel Hellstrom 370071d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board 370171d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig 370271d7e4c0SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler 370371d7e4c0SDaniel Hellstrom 37046ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system 37056ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig 37066ed8a43aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler 37076ed8a43aSDaniel Hellstrom 37086940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS 37096940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60. 37106940383dSDaniel Hellstromgr_ep2s60_config: unconfig 37116940383dSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler 37126940383dSDaniel Hellstrom 3713823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator 3714823edd8aSDaniel Hellstromgrsim_config : unconfig 3715823edd8aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler 3716823edd8aSDaniel Hellstrom 37177ebf7443Swdenk######################################################################### 3718b330990cSDaniel Hellstrom## LEON2 3719b330990cSDaniel Hellstrom######################################################################### 3720b330990cSDaniel Hellstrom 3721ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator 3722ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig 3723ab68f921SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler 3724ab68f921SDaniel Hellstrom 37257ebf7443Swdenk######################################################################### 37267ebf7443Swdenk######################################################################### 37277ebf7443Swdenk######################################################################### 372885ec0bccSwdenk 37293e38691eSwdenkclean: 37301bc15386SPeter Tyser @rm -f $(obj)examples/standalone/82559_eeprom \ 3731d640ac58SWolfgang Denk $(obj)examples/standalone/atmel_df_pow2 \ 37321bc15386SPeter Tyser $(obj)examples/standalone/eepro100_eeprom \ 37331bc15386SPeter Tyser $(obj)examples/standalone/hello_world \ 37341bc15386SPeter Tyser $(obj)examples/standalone/interrupt \ 37351bc15386SPeter Tyser $(obj)examples/standalone/mem_to_mem_idma2intr \ 37361bc15386SPeter Tyser $(obj)examples/standalone/sched \ 37371bc15386SPeter Tyser $(obj)examples/standalone/smc91111_eeprom \ 37381bc15386SPeter Tyser $(obj)examples/standalone/test_burst \ 37391bc15386SPeter Tyser $(obj)examples/standalone/timer 3740d4abc757SPeter Tyser @rm -f $(obj)examples/api/demo{,.bin} 3741f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 3742f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 3743f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 3744f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 3745f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 3746f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 3747f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 3748f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 3749f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 3750f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 37511dcb50afSWolfgang Denk $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ 3752ea0364f1SPeter Tyser $(obj)arch/blackfin/lib/u-boot.lds \ 37531aada9cdSWolfgang Denk $(obj)u-boot.lds \ 3754c6fb83d2SPeter Tyser $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] 3755dc7746d8SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 37561aada9cdSWolfgang Denk @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map} 3757ca6189dbSKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map} 3758ca6189dbSKyungmin Park @rm -f $(ONENAND_BIN) 37591aada9cdSWolfgang Denk @rm -f $(obj)onenand_ipl/u-boot.lds 3760d4abc757SPeter Tyser @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) 3761ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 37627ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 37632b48f7d5SPeter Tyser -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ 37647ebf7443Swdenk | xargs rm -f 37657ebf7443Swdenk 37667ebf7443Swdenkclobber: clean 3767ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 37684c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 37694c0d4c3bSwdenk -print0 \ 37704c0d4c3bSwdenk | xargs -0 rm -f 3771ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 37725013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 3773ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 3774aa0c7a86SPrafulla Wadaskar @rm -f $(obj)u-boot.kwb 3775c5fb70c9SStefano Babic @rm -f $(obj)u-boot.imx 3776fb8b33c1SPeter Tyser @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} 3777a47a12beSStefan Roese @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c 3778ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 3779a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f 3780a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f 37817ebf7443Swdenk 3782f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 37837ebf7443Swdenkmrproper \ 37847ebf7443Swdenkdistclean: clobber unconfig 3785f9328639SMarian Balakowiczelse 3786f9328639SMarian Balakowiczmrproper \ 3787f9328639SMarian Balakowiczdistclean: clobber unconfig 3788ae6d1056SWolfgang Denk rm -rf $(obj)* 3789f9328639SMarian Balakowiczendif 37907ebf7443Swdenk 37917ebf7443Swdenkbackup: 37927ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 37937ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 37947ebf7443Swdenk 37957ebf7443Swdenk######################################################################### 3796