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 2501f03bdaSWolfgang DenkPATCHLEVEL = 06 268b9e4787SWolfgang DenkSUBLEVEL = 27a59e2799SWolfgang 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/ \ 41d0179083SKumar Gala -e s/ppc64/powerpc/ \ 42d0179083SKumar Gala -e s/ppc/powerpc/ \ 438d1f6355SNobuhiro Iwamatsu -e s/macppc/powerpc/\ 448d1f6355SNobuhiro Iwamatsu -e s/sh.*/sh/) 457ebf7443Swdenk 46f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 477ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 487ebf7443Swdenk 49cf7a7b99SPeter Tyser# Set shell to bash if possible, otherwise fall back to sh 50cf7a7b99SPeter TyserSHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ 51cf7a7b99SPeter Tyser else if [ -x /bin/bash ]; then echo /bin/bash; \ 52cf7a7b99SPeter Tyser else echo sh; fi; fi) 53cf7a7b99SPeter Tyser 54cf7a7b99SPeter Tyserexport HOSTARCH HOSTOS SHELL 557ebf7443Swdenk 567ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 577ebf7443SwdenkVENDOR= 587ebf7443Swdenk 597ebf7443Swdenk######################################################################### 60ae6d1056SWolfgang Denk# Allow for silent builds 61ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS))) 62ae6d1056SWolfgang DenkXECHO = echo 63ae6d1056SWolfgang Denkelse 64ae6d1056SWolfgang DenkXECHO = : 65ae6d1056SWolfgang Denkendif 66ae6d1056SWolfgang Denk 67ae6d1056SWolfgang Denk######################################################################### 68f9328639SMarian Balakowicz# 69f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external 70f9328639SMarian Balakowicz# directory. Two use cases are supported: 71f9328639SMarian Balakowicz# 72f9328639SMarian Balakowicz# 1) Add O= to the make command line 73f9328639SMarian Balakowicz# 'make O=/tmp/build all' 74f9328639SMarian Balakowicz# 75f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location 76f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 77f9328639SMarian Balakowicz# 'make' 78f9328639SMarian Balakowicz# 79f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script 80f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 81f9328639SMarian Balakowicz# './MAKEALL' 82f9328639SMarian Balakowicz# 83f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable. 84f9328639SMarian Balakowicz# 85f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and 86f9328639SMarian Balakowicz# the object files are placed in the source directory. 87f9328639SMarian Balakowicz# 887ebf7443Swdenk 89f9328639SMarian Balakowiczifdef O 90f9328639SMarian Balakowiczifeq ("$(origin O)", "command line") 91f9328639SMarian BalakowiczBUILD_DIR := $(O) 92f9328639SMarian Balakowiczendif 93f9328639SMarian Balakowiczendif 947ebf7443Swdenk 95f9328639SMarian Balakowiczifneq ($(BUILD_DIR),) 96f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR) 974f0645ebSMarian Balakowicz 984f0645ebSMarian Balakowicz# Attempt to create a output directory. 994f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 1004f0645ebSMarian Balakowicz 1014f0645ebSMarian Balakowicz# Verify if it was successful. 102f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 103f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 104f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),) 105f9328639SMarian Balakowicz 106f9328639SMarian BalakowiczOBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 107f9328639SMarian BalakowiczSRCTREE := $(CURDIR) 108f9328639SMarian BalakowiczTOPDIR := $(SRCTREE) 109f9328639SMarian BalakowiczLNDIR := $(OBJTREE) 110f9328639SMarian Balakowiczexport TOPDIR SRCTREE OBJTREE 111f9328639SMarian Balakowicz 112f9328639SMarian BalakowiczMKCONFIG := $(SRCTREE)/mkconfig 113f9328639SMarian Balakowiczexport MKCONFIG 114f9328639SMarian Balakowicz 115f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 116f9328639SMarian BalakowiczREMOTE_BUILD := 1 117f9328639SMarian Balakowiczexport REMOTE_BUILD 118f9328639SMarian Balakowiczendif 119f9328639SMarian Balakowicz 120f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile 121f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for 122f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc. 123f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 124f9328639SMarian Balakowiczobj := $(OBJTREE)/ 125f9328639SMarian Balakowiczsrc := $(SRCTREE)/ 126f9328639SMarian Balakowiczelse 127f9328639SMarian Balakowiczobj := 128f9328639SMarian Balakowiczsrc := 129f9328639SMarian Balakowiczendif 130f9328639SMarian Balakowiczexport obj src 131f9328639SMarian Balakowicz 1325013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere 1335013c09fSWolfgang Denkunexport CDPATH 1345013c09fSWolfgang Denk 135f9328639SMarian Balakowicz######################################################################### 136f9328639SMarian Balakowicz 1376d1ce387SMike Frysinger# The "tools" are needed early, so put this first 1386d1ce387SMike Frysinger# Don't include stuff already done in $(LIBS) 1396d1ce387SMike FrysingerSUBDIRS = tools \ 1401bc15386SPeter Tyser examples/standalone \ 141d4abc757SPeter Tyser examples/api 1426d1ce387SMike Frysinger 1436d1ce387SMike Frysinger.PHONY : $(SUBDIRS) 1446d1ce387SMike Frysinger 145ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 146f9328639SMarian Balakowicz 1472632c008SMike Frysinger# Include autoconf.mk before config.mk so that the config options are available 1482632c008SMike Frysinger# to all top level build files. We need the dummy all: target to prevent the 1492632c008SMike Frysinger# dependency target in autoconf.mk.dep from being the default. 1502632c008SMike Frysingerall: 1512632c008SMike Frysingersinclude $(obj)include/autoconf.mk.dep 1522632c008SMike Frysingersinclude $(obj)include/autoconf.mk 1532632c008SMike Frysinger 1547ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 155ae6d1056SWolfgang Denkinclude $(obj)include/config.mk 1561d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 157f9328639SMarian Balakowicz 1581ea6bcd8SMike Frysinger# set default to nothing for native builds 159a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 1601ea6bcd8SMike FrysingerCROSS_COMPILE ?= 1617ebf7443Swdenkendif 1627ebf7443Swdenk 16392b197f0SWolfgang Denk# load other configuration 16492b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 16592b197f0SWolfgang Denk 1667ebf7443Swdenk######################################################################### 1677ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1687ebf7443Swdenk 16903b7004dSPeter TyserOBJS = $(CPUDIR)/start.o 1702262cfeeSwdenkifeq ($(CPU),i386) 17103b7004dSPeter TyserOBJS += $(CPUDIR)/start16.o 17203b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 1732262cfeeSwdenkendif 1747ebf7443Swdenkifeq ($(CPU),ppc4xx) 17503b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 1767ebf7443Swdenkendif 17742d1f039Swdenkifeq ($(CPU),mpc85xx) 17803b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 17942d1f039Swdenkendif 1807ebf7443Swdenk 181f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 182f9328639SMarian Balakowicz 18378acc472SPeter TyserLIBS = lib/libgeneric.a 18478acc472SPeter TyserLIBS += lib/lzma/liblzma.a 18578acc472SPeter TyserLIBS += lib/lzo/liblzo.a 1867608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 1877608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 18803b7004dSPeter TyserLIBS += $(CPUDIR)/lib$(CPU).a 1891d9f4105Swdenkifdef SOC 19003b7004dSPeter TyserLIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a 1911d9f4105Swdenkendif 192323bfa8fSStefan Roeseifeq ($(CPU),ixp) 19384ad6884SPeter TyserLIBS += arch/arm/cpu/ixp/npe/libnpe.a 194323bfa8fSStefan Roeseendif 195ea0364f1SPeter TyserLIBS += arch/$(ARCH)/lib/lib$(ARCH).a 196518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 1979eefe2a2SStefan Roese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \ 1989eefe2a2SStefan Roese fs/ubifs/libubifs.a 1997ebf7443SwdenkLIBS += net/libnet.a 2007ebf7443SwdenkLIBS += disk/libdisk.a 2010f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 20233daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 20357a12720STsiChungLiewLIBS += drivers/dma/libdma.a 204c8aa7dfcSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/fpga/libfpga.a 205e92739d3SPeter TyserLIBS += drivers/gpio/libgpio.a 206f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 207080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 20816b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 209318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 2105ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a 21159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 21259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 21359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 21458be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a 215d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a 2168e585f02STsiChung LiewLIBS += drivers/net/libnet.a 21755195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a 21893a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 21973646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 220cd782635STom RixLIBS += drivers/power/libpower.a 22104a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2227737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2237737d5c6SDave LiuLIBS += drivers/qe/qe.a 2245d0c3b57SKim PhillipsLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 2257737d5c6SDave Liuendif 226da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 227da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 228a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 229a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 23058e5e9afSKumar Galaendif 23158e5e9afSKumar Galaifeq ($(CPU),mpc86xx) 232a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 233a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 234da9d4610SAndy Flemingendif 23559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2368e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 237572e6179SDetlev ZundelLIBS += drivers/twserial/libtws.a 2382731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/gadget/libusb_gadget.a 2392731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/host/libusb_host.a 2402731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/musb/libusb_musb.a 241bffbb2a8STom RixLIBS += drivers/usb/phy/libusb_phy.a 24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 243843a2654SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/watchdog/libwatchdog.a 2447ebf7443SwdenkLIBS += common/libcommon.a 2450de71d50SPeter TyserLIBS += lib/libfdt/libfdt.a 246500856ebSRafal JaworowskiLIBS += api/libapi.a 2472d2b994aSYuri TikhonovLIBS += post/libpost.a 248f9328639SMarian Balakowicz 249d34efc76SSteve Sakomanifeq ($(SOC),omap3) 250d34efc76SSteve SakomanLIBS += $(CPUDIR)/omap-common/libomap-common.a 251d34efc76SSteve Sakomanendif 252d34efc76SSteve Sakomanifeq ($(SOC),omap4) 253d34efc76SSteve SakomanLIBS += $(CPUDIR)/omap-common/libomap-common.a 254d34efc76SSteve Sakomanendif 255d34efc76SSteve Sakoman 256f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 257561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE) 258a8c7c708Swdenk 259de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 260de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 261de109d90SWolfgang Denk 2624f7cb08eSwdenk# Add GCC lib 26352b1bf2cSWolfgang Denkifdef USE_PRIVATE_LIBGCC 26452b1bf2cSWolfgang Denkifeq ("$(USE_PRIVATE_LIBGCC)", "yes") 265ea0364f1SPeter TyserPLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc 26652b1bf2cSWolfgang Denkelse 26752b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc 26852b1bf2cSWolfgang Denkendif 26952b1bf2cSWolfgang Denkelse 27052b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 27152b1bf2cSWolfgang Denkendif 27252b1bf2cSWolfgang DenkPLATFORM_LIBS += $(PLATFORM_LIBGCC) 27352b1bf2cSWolfgang Denkexport PLATFORM_LIBS 2743d3befa7Swdenk 2756ac9f479SMike Frysinger# Special flags for CPP when processing the linker script. 2766ac9f479SMike Frysinger# Pass the version down so we can handle backwards compatibility 2776ac9f479SMike Frysinger# on the fly. 2786ac9f479SMike FrysingerLDPPFLAGS += \ 2796ac9f479SMike Frysinger -include $(TOPDIR)/include/u-boot/u-boot.lds.h \ 2806ac9f479SMike Frysinger $(shell $(LD) --version | \ 2816ac9f479SMike Frysinger sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') 2826ac9f479SMike Frysinger 283887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 284887e2ec9SStefan RoeseNAND_SPL = nand_spl 285887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 286887e2ec9SStefan Roeseendif 287887e2ec9SStefan Roese 288751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 289751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 290751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 291ca6189dbSKyungmin ParkONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin 292751b9b51SKyungmin Parkendif 293751b9b51SKyungmin Park 294f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 295de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 296f9328639SMarian Balakowicz 2977ebf7443Swdenk######################################################################### 298bdccc4feSwdenk######################################################################### 2997ebf7443Swdenk 3003e88337bSMike Frysinger# Always append ALL so that arch config.mk's can add custom ones 301751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 3027ebf7443Swdenk 303bdccc4feSwdenkall: $(ALL) 3047ebf7443Swdenk 305f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 3066310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 3076310eb9dSwdenk 308f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 3090817d688SRicardo Ribalda Delgado $(OBJCOPY) -O srec $< $@ 3107ebf7443Swdenk 311f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 3127ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 3137ebf7443Swdenk 31494a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 31576d82187SMike Frysinger $(CREATE_LDR_ENV) 31668e56324SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) 31794a91e24SMike Frysinger 31894a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 31994a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 32094a91e24SMike Frysinger 32194a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 32294a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 32394a91e24SMike Frysinger 324f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 325a2a0a717SWolfgang Denk $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \ 326bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 327881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 328bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 329bdccc4feSwdenk -d $< $@ 330bdccc4feSwdenk 3318edcde5eSStefano Babic$(obj)u-boot.imx: $(obj)u-boot.bin 3328edcde5eSStefano Babic $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \ 3338edcde5eSStefano Babic -e $(TEXT_BASE) -d $< $@ 3348edcde5eSStefano Babic 335aa0c7a86SPrafulla Wadaskar$(obj)u-boot.kwb: $(obj)u-boot.bin 336aa0c7a86SPrafulla Wadaskar $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \ 337aa0c7a86SPrafulla Wadaskar -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@ 338aa0c7a86SPrafulla Wadaskar 339566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 34001159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 341566a494fSHeiko Schocher 342f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3437ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3447ebf7443Swdenk 345ecb1dc89SMike FrysingerGEN_UBOOT = \ 346de109d90SWolfgang Denk UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 347de109d90SWolfgang Denk sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 348f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 349f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 350b2184c31Swdenk -Map u-boot.map -o u-boot 3511aada9cdSWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds 352ecb1dc89SMike Frysinger $(GEN_UBOOT) 353ecb1dc89SMike Frysingerifeq ($(CONFIG_KALLSYMS),y) 3541aada9cdSWolfgang Denk smap=`$(call SYSTEM_MAP,u-boot) | \ 3551aada9cdSWolfgang Denk awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \ 3561aada9cdSWolfgang Denk $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \ 3571aada9cdSWolfgang Denk -c common/system_map.c -o $(obj)common/system_map.o 358ecb1dc89SMike Frysinger $(GEN_UBOOT) $(obj)common/system_map.o 359ecb1dc89SMike Frysingerendif 3607ebf7443Swdenk 361d0d6144eSPeter Tyser$(OBJS): depend 36203b7004dSPeter Tyser $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 363f9328639SMarian Balakowicz 364d0d6144eSPeter Tyser$(LIBS): depend $(SUBDIRS) 365f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 366a8c7c708Swdenk 367d0d6144eSPeter Tyser$(LIBBOARD): depend $(LIBS) 368de109d90SWolfgang Denk $(MAKE) -C $(dir $(subst $(obj),,$@)) 369de109d90SWolfgang Denk 370d0d6144eSPeter Tyser$(SUBDIRS): depend 371b028f715Swdenk $(MAKE) -C $@ all 3727ebf7443Swdenk 373d0d6144eSPeter Tyser$(LDSCRIPT): depend 374f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 375f65c9812SMike Frysinger 3761aada9cdSWolfgang Denk$(obj)u-boot.lds: $(LDSCRIPT) 3771aada9cdSWolfgang Denk $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ 3781aada9cdSWolfgang Denk 379561858eeSPeter Tyser$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 3808318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 381887e2ec9SStefan Roese 382d0d6144eSPeter Tyser$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 3838318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 384887e2ec9SStefan Roese 385561858eeSPeter Tyser$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 386f2302d44SStefan Roese $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 387751b9b51SKyungmin Park 388d0d6144eSPeter Tyser$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 389ca6189dbSKyungmin Park cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 390751b9b51SKyungmin Park 391ae6d1056SWolfgang Denk$(VERSION_FILE): 392aa737945SMike Frysinger @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 393434c51a5SPeter Tyser '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp 3940ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 395881a87ecSWolfgang Denk 396561858eeSPeter Tyser$(TIMESTAMP_FILE): 397d6b93714SIlya Yanok @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ 398d6b93714SIlya Yanok @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ 399561858eeSPeter Tyser 4008f713fdfSdzugdbtools: 401f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 402f9328639SMarian Balakowicz 403f9328639SMarian Balakowiczupdater: 404f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 405f9328639SMarian Balakowicz 406f9328639SMarian Balakowiczenv: 40764b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 4088f713fdfSdzu 4092a998793SDaniel Hobi# Explicitly make _depend in subdirs containing multiple targets to prevent 4102a998793SDaniel Hobi# parallel sub-makes creating .depend files simultaneously. 411d0d6144eSPeter Tyserdepend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 41203b7004dSPeter Tyser for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \ 4132a998793SDaniel Hobi $(MAKE) -C $$dir _depend ; done 4147ebf7443Swdenk 415e5e4e705SLi YangTAG_SUBDIRS = $(SUBDIRS) 416e5e4e705SLi YangTAG_SUBDIRS += $(dir $(__LIBS)) 417a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 418a340c325SJean-Christophe PLAGNIOL-VILLARD 419f9328639SMarian Balakowicztags ctags: 420e5e4e705SLi Yang ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ 421e5e4e705SLi Yang -name '*.[chS]' -print` 4227ebf7443Swdenk 4237ebf7443Swdenketags: 424e5e4e705SLi Yang etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ 425e5e4e705SLi Yang -name '*.[chS]' -print` 426ffda586fSLi Yangcscope: 427e5e4e705SLi Yang find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files 428ffda586fSLi Yang cscope -b -q -k 4297ebf7443Swdenk 430ecb1dc89SMike FrysingerSYSTEM_MAP = \ 431ecb1dc89SMike Frysinger $(NM) $1 | \ 4327ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 433ecb1dc89SMike Frysinger LC_ALL=C sort 434ecb1dc89SMike Frysinger$(obj)System.map: $(obj)u-boot 435ecb1dc89SMike Frysinger @$(call SYSTEM_MAP,$<) > $(obj)System.map 4367ebf7443Swdenk 4372f155f6cSGrant Likely# 4382f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4392f155f6cSGrant Likely# 4402f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4412f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4422f155f6cSGrant Likely# to regenerate the autoconf.mk file. 4431510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h 4441510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 44516fe7775SMike Frysinger set -e ; \ 446ae6d1056SWolfgang Denk : Generate the dependancies ; \ 4479aef7388SMike Frysinger $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ 4481510b82dSWolfgang Denk -MQ $(obj)include/autoconf.mk include/common.h > $@ 4491510b82dSWolfgang Denk 4501510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h 4511510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 4521510b82dSWolfgang Denk set -e ; \ 453ae6d1056SWolfgang Denk : Extract the config macros ; \ 4541510b82dSWolfgang Denk $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ 4554a0f7538SWolfgang Denk sed -n -f tools/scripts/define2mk.sed > $@.tmp && \ 4564a0f7538SWolfgang Denk mv $@.tmp $@ 4572f155f6cSGrant Likely 4587ebf7443Swdenk######################################################################### 459ae6d1056SWolfgang Denkelse # !config.mk 460f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 461f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 462c7c0d542SMike Frysinger$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \ 463c7c0d542SMike Frysingerupdater env depend dep tags ctags etags cscope $(obj)System.map: 4647ebf7443Swdenk @echo "System not configured - see README" >&2 4657ebf7443Swdenk @ exit 1 466c7c0d542SMike Frysinger 467c7c0d542SMike Frysingertools: 468c7c0d542SMike Frysinger $(MAKE) -C tools 469c7c0d542SMike Frysingertools-all: 470c7c0d542SMike Frysinger $(MAKE) -C tools HOST_TOOLS_ALL=y 471ae6d1056SWolfgang Denkendif # config.mk 4727ebf7443Swdenk 4734e53a258SWolfgang Denk.PHONY : CHANGELOG 4744e53a258SWolfgang DenkCHANGELOG: 475b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 476b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4774e53a258SWolfgang Denk 4780a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING 4790a823aa2SHarald Welte cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h 4807ebf7443Swdenk######################################################################### 4817ebf7443Swdenk 4827ebf7443Swdenkunconfig: 483887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4842f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4852f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4867ebf7443Swdenk 487a6862bc1SWolfgang Denk%_config:: unconfig 488a6862bc1SWolfgang Denk @$(MKCONFIG) -A $(@:_config=) 489a6862bc1SWolfgang Denk 490a6862bc1SWolfgang Denk##%: %_config 491a6862bc1SWolfgang Denk## $(MAKE) 4929f4a4206SMike Frysinger 4938c994630SWolfgang Denk# 4948c994630SWolfgang Denk# Functions to generate common board directory names 4958c994630SWolfgang Denk# 4968c994630SWolfgang Denklcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/') 4978c994630SWolfgang Denkucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/') 4988c994630SWolfgang Denk 4997ebf7443Swdenk#======================================================================== 5007ebf7443Swdenk# PowerPC 5017ebf7443Swdenk#======================================================================== 5020db5bca8Swdenk 5030db5bca8Swdenk######################################################################### 504945af8d7Swdenk## MPC5xxx Systems 505945af8d7Swdenk######################################################################### 506a87589daSwdenk 5075c4fa9b4SGrzegorz Bernackidigsy_mtc_config \ 5085c4fa9b4SGrzegorz Bernackidigsy_mtc_LOWBOOT_config \ 5095c4fa9b4SGrzegorz Bernackidigsy_mtc_RAMBOOT_config: unconfig 5105c4fa9b4SGrzegorz Bernacki @mkdir -p $(obj)include 5115c4fa9b4SGrzegorz Bernacki @mkdir -p $(obj)board/digsy_mtc 5125c4fa9b4SGrzegorz Bernacki @ >$(obj)include/config.h 5135c4fa9b4SGrzegorz Bernacki @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 5140e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp 5155c4fa9b4SGrzegorz Bernacki @[ -z "$(findstring RAMBOOT_,$@)" ] || \ 5160e42ada3SWolfgang Denk echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp 5170e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc 5185c4fa9b4SGrzegorz Bernacki 5195b53b29bSEric Millbrandtgalaxy5200_LOWBOOT_config \ 5205b53b29bSEric Millbrandtgalaxy5200_config: unconfig 5215b53b29bSEric Millbrandt @mkdir -p $(obj)include 5225b53b29bSEric Millbrandt @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 5230e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200 5245b53b29bSEric Millbrandt 525e35745bbSwdenkLite5200_config \ 526e35745bbSwdenkLite5200_LOWBOOT_config \ 527e35745bbSwdenkLite5200_LOWBOOT08_config \ 528e35745bbSwdenkicecube_5200_config \ 529e35745bbSwdenkicecube_5200_LOWBOOT_config \ 530e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 531b2001f27Swdenkicecube_5200_DDR_config \ 53279d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 533fd428c05SDetlev Zundelicecube_5200_DDR_LOWBOOT08_config: unconfig 534f9328639SMarian Balakowicz @mkdir -p $(obj)include 535f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 53617d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 5370e42ada3SWolfgang Denk if [ "$(findstring DDR,$@)" ] ; \ 538f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 539f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 5400e42ada3SWolfgang Denk fi 5415cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 5420e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp 543b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 5440e42ada3SWolfgang Denk echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 5450e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube 546945af8d7Swdenk 54709e4b0c5SWolfgang Denklite5200b_config \ 548d3832e8fSDomen Puncerlite5200b_PM_config \ 54909e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 550f9328639SMarian Balakowicz @mkdir -p $(obj)include 551f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 552f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 553f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 554d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 5550e42ada3SWolfgang Denk echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h 55609e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 5570e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp 5580e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube 55909e4b0c5SWolfgang Denk 560f1ee9825SStefan Roesemcc200_config \ 561ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 562ed1cf845SWolfgang Denkmcc200_highboot_config \ 563ed1cf845SWolfgang Denkmcc200_COM12_config \ 564ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 565113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 566113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 567ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 568ed1cf845SWolfgang Denkprs200_config \ 569ed1cf845SWolfgang Denkprs200_DDR_config \ 570ed1cf845SWolfgang Denkprs200_highboot_config \ 571ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 572f9328639SMarian Balakowicz @mkdir -p $(obj)include 573f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 5744819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 5750e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp 5764819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 5770e42ada3SWolfgang Denk if [ -n "$(findstring prs200,$@)" ]; \ 578ed1cf845SWolfgang Denk then \ 5790e42ada3SWolfgang Denk if [ -z "$(findstring _DDR,$@)" ];\ 580ed1cf845SWolfgang Denk then \ 581f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 582ed1cf845SWolfgang Denk fi; \ 5830e42ada3SWolfgang Denk fi 5844819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 5850e42ada3SWolfgang Denk echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h 586463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 5870e42ada3SWolfgang Denk echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h 588ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 5890e42ada3SWolfgang Denk echo "#define CONFIG_PRS200" >>$(obj)include/config.h 590a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200 59186ea5f93SWolfgang Denk 592699f0512SWolfgang DenkMVBC_P_config: unconfig 593699f0512SWolfgang Denk @mkdir -p $(obj)include 594699f0512SWolfgang Denk @mkdir -p $(obj)board/mvbc_p 595699f0512SWolfgang Denk @ >$(obj)include/config.h 596699f0512SWolfgang Denk @[ -z "$(findstring MVBC_P,$@)" ] || \ 5970e42ada3SWolfgang Denk echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h 598ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision 599699f0512SWolfgang Denk 6001f2463d7SAndre SchwarzMVSMR_config: unconfig 6011f2463d7SAndre Schwarz @mkdir -p $(obj)include 6021f2463d7SAndre Schwarz @mkdir -p $(obj)board/matrix_vision/mvsmr 603ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision 6041f2463d7SAndre Schwarz 605c9969947SJon Smirlpcm030_config \ 606c9969947SJon Smirlpcm030_LOWBOOT_config: unconfig 607341245a2SWolfgang Denk @mkdir -p $(obj)include $(obj)board/phytec/pcm030 6080a87dd90SWolfgang Denk @ >$(obj)include/config.h 609c9969947SJon Smirl @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 6100e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp 6110e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec 612c9969947SJon Smirl 61389394047SwdenkPM520_config \ 61489394047SwdenkPM520_DDR_config \ 61589394047SwdenkPM520_ROMBOOT_config \ 61689394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 617f9328639SMarian Balakowicz @mkdir -p $(obj)include 61889394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 6190e42ada3SWolfgang Denk echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 62089394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 6210e42ada3SWolfgang Denk echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h 6220e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520 62389394047Swdenk 62445a212c4SWolfgang DenkTB5200_B_config \ 625b87dfd28SWolfgang DenkTB5200_config: unconfig 626f9328639SMarian Balakowicz @mkdir -p $(obj)include 62745a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 6280e42ada3SWolfgang Denk echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h 629a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc 630b87dfd28SWolfgang Denk 631d4ca31c4SwdenkMINI5200_config \ 632d4ca31c4SwdenkEVAL5200_config \ 633d4ca31c4SwdenkTOP5200_config: unconfig 634f9328639SMarian Balakowicz @mkdir -p $(obj)include 635f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 636a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk 637d4ca31c4Swdenk 6386c7a1408SwdenkTotal5200_config \ 6396c7a1408SwdenkTotal5200_lowboot_config \ 6406c7a1408SwdenkTotal5200_Rev2_config \ 6416c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 642f9328639SMarian Balakowicz @mkdir -p $(obj)include 643f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 6446c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 6450e42ada3SWolfgang Denk echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h 6466c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 6470e42ada3SWolfgang Denk echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h 6486c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 6490e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp 6500e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200 6516c7a1408Swdenk 6525196a7a0SWolfgang Denkcam5200_config \ 653d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6545196a7a0SWolfgang Denkfo300_config \ 6555196a7a0SWolfgang DenkMiniFAP_config \ 6565078cce8SWolfgang DenkTQM5200S_config \ 6575078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6585196a7a0SWolfgang DenkTQM5200_B_config \ 6595196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 6605196a7a0SWolfgang DenkTQM5200_config \ 6615196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 662f9328639SMarian Balakowicz @mkdir -p $(obj)include 6634677988cSWolfgang Grandegger @mkdir -p $(obj)board/tqc/tqm5200 664135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 665f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 666f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 667f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 6685078cce8SWolfgang Denk } 669d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 6700e42ada3SWolfgang Denk echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h 6716d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 6720e42ada3SWolfgang Denk echo "#define CONFIG_FO300" >>$(obj)include/config.h 673cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 6740e42ada3SWolfgang Denk echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h 675cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 6760e42ada3SWolfgang Denk echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h 6775078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 6780e42ada3SWolfgang Denk echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h 6795078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 680f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 681f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 68245a212c4SWolfgang Denk } 683978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 6840e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp 685a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc 686699f0512SWolfgang Denk 687945af8d7Swdenk######################################################################### 6888993e54bSRafal Jaworowski## MPC512x Systems 6898993e54bSRafal Jaworowski######################################################################### 690699f0512SWolfgang Denk 69172601d04SWolfgang Denkmpc5121ads_config \ 69272601d04SWolfgang Denkmpc5121ads_rev2_config \ 6935f91db7fSJohn Rigby : unconfig 694210ed200SWolfgang Denk @mkdir -p $(obj)include 695f31c49dbSMartha Marx @if [ "$(findstring rev2,$@)" ] ; then \ 696f31c49dbSMartha Marx echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \ 6975f91db7fSJohn Rigby fi 6980e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale 6998993e54bSRafal Jaworowski 7008993e54bSRafal Jaworowski######################################################################### 7017ebf7443Swdenk## MPC8xx Systems 7027ebf7443Swdenk######################################################################### 7037ebf7443Swdenk 7042d24a3a7SwdenkAdder87x_config \ 70526238132SwdenkAdderII_config \ 7060e42ada3SWolfgang DenkAdderUSB_config \ 7070e42ada3SWolfgang DenkAdder_config \ 7082d24a3a7Swdenk : unconfig 709f9328639SMarian Balakowicz @mkdir -p $(obj)include 71026238132Swdenk $(if $(findstring AdderII,$@), \ 711f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 7120e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder 71316c8d5e7SWolfgang Denk 714180d3f74SwdenkADS860_config \ 715180d3f74SwdenkFADS823_config \ 716180d3f74SwdenkFADS850SAR_config \ 717180d3f74SwdenkMPC86xADS_config \ 7181114257cSwdenkMPC885ADS_config \ 719180d3f74SwdenkFADS860T_config: unconfig 720ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads 7217ebf7443Swdenk 7227aa78614SwdenkGEN860T_SC_config \ 7237ebf7443SwdenkGEN860T_config: unconfig 724f9328639SMarian Balakowicz @mkdir -p $(obj)include 7257aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 7260e42ada3SWolfgang Denk echo "#define CONFIG_SC" >>$(obj)include/config.h 727ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t 7287ebf7443Swdenk 7297ebf7443SwdenkICU862_100MHz_config \ 7307ebf7443SwdenkICU862_config: unconfig 731f9328639SMarian Balakowicz @mkdir -p $(obj)include 7327ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 7330e42ada3SWolfgang Denk echo "#define CONFIG_100MHz" >>$(obj)include/config.h 734ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862 7357ebf7443Swdenk 7367ebf7443SwdenkIVML24_256_config \ 7377ebf7443SwdenkIVML24_128_config \ 7387ebf7443SwdenkIVML24_config: unconfig 739f9328639SMarian Balakowicz @mkdir -p $(obj)include 7407ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 7410e42ada3SWolfgang Denk echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h 7427ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 7430e42ada3SWolfgang Denk echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h 7447ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 7450e42ada3SWolfgang Denk echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h 7460e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm 7477ebf7443Swdenk 7487ebf7443SwdenkIVMS8_256_config \ 7497ebf7443SwdenkIVMS8_128_config \ 7507ebf7443SwdenkIVMS8_config: unconfig 751f9328639SMarian Balakowicz @mkdir -p $(obj)include 7527ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 7530e42ada3SWolfgang Denk echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h 7547ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 7550e42ada3SWolfgang Denk echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h 7567ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 7570e42ada3SWolfgang Denk echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h 7580e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm 7597ebf7443Swdenk 7607ebf7443SwdenkMBX_config \ 7617ebf7443SwdenkMBX860T_config: unconfig 762ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx 7637ebf7443Swdenk 764993cad93SwdenkNETVIA_V2_config \ 7657ebf7443SwdenkNETVIA_config: unconfig 766f9328639SMarian Balakowicz @mkdir -p $(obj)include 767993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 7680e42ada3SWolfgang Denk echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h 769993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 7700e42ada3SWolfgang Denk echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h 771ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia 772c26e454dSwdenk 773c26e454dSwdenkNETPHONE_V2_config \ 77404a85b3bSwdenkNETPHONE_config: unconfig 775f9328639SMarian Balakowicz @mkdir -p $(obj)include 776c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 7770e42ada3SWolfgang Denk echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h 778c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 7790e42ada3SWolfgang Denk echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h 780ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone 78104a85b3bSwdenk 78279fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 78379fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 78479fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 78579fa88f3SwdenkNETTA_SWAPHOOK_config \ 78679fa88f3SwdenkNETTA_ISDN_6412_config \ 78704a85b3bSwdenkNETTA_ISDN_config \ 78879fa88f3SwdenkNETTA_6412_config \ 78904a85b3bSwdenkNETTA_config: unconfig 790f9328639SMarian Balakowicz @mkdir -p $(obj)include 79179fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 7920e42ada3SWolfgang Denk echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h 79379fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 7940e42ada3SWolfgang Denk echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h 79579fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 7960e42ada3SWolfgang Denk echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h 79779fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 7980e42ada3SWolfgang Denk echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h 79979fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 8000e42ada3SWolfgang Denk echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h 80179fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 8020e42ada3SWolfgang Denk echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h 803ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta 80479fa88f3Swdenk 80579fa88f3SwdenkNETTA2_V2_config \ 80679fa88f3SwdenkNETTA2_config: unconfig 807f9328639SMarian Balakowicz @mkdir -p $(obj)include 80879fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 8090e42ada3SWolfgang Denk echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h 81079fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 8110e42ada3SWolfgang Denk echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h 812ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2 81379fa88f3Swdenk 814a367d426Sdzu@denx.deNC650_Rev1_config \ 815a367d426Sdzu@denx.deNC650_Rev2_config \ 816a367d426Sdzu@denx.deCP850_config: unconfig 817f9328639SMarian Balakowicz @mkdir -p $(obj)include 818a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 819f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 820f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 821a367d426Sdzu@denx.de } 822a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 823f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 824a367d426Sdzu@denx.de } 825a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 826f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 827a367d426Sdzu@denx.de } 8280e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650 8297ca202f5Swdenk 830e63c8ee3SwdenkRPXlite_DW_64_config \ 831e63c8ee3SwdenkRPXlite_DW_LCD_config \ 832e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 833e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 834e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 835e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 836e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 837e63c8ee3SwdenkRPXlite_DW_config: unconfig 838f9328639SMarian Balakowicz @mkdir -p $(obj)include 839e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 8400e42ada3SWolfgang Denk echo "#define RPXlite_64MHz" >>$(obj)include/config.h 841e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 842f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 843f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 844e63c8ee3Swdenk } 845e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 8460e42ada3SWolfgang Denk echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h 8470e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw 848e63c8ee3Swdenk 8497ebf7443SwdenkRRvision_LCD_config: unconfig 850f9328639SMarian Balakowicz @mkdir -p $(obj)include 851f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 852f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 853a47a12beSStefan Roese @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision 8547ebf7443Swdenk 8557ebf7443SwdenkSPD823TS_config: unconfig 856ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc8xx spd8xx 8577ebf7443Swdenk 8587ebf7443SwdenkSXNI855T_config: unconfig 859ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc8xx sixnet 8607ebf7443Swdenk 8617ebf7443Swdenk# Play some tricks for configuration selection 862e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 863e9132ea9Swdenk# and only 823 boards may have LCD support 864ed7a196cSWolfgang Denkxtract_8xx = $(subst _LCD,,$1) 8657ebf7443Swdenk 8667ebf7443SwdenkFPS850L_config \ 867384ae025SwdenkFPS860L_config \ 868f12e568cSwdenkNSCU_config \ 8697ebf7443SwdenkTQM823L_config \ 8707ebf7443SwdenkTQM823L_LCD_config \ 8717ebf7443SwdenkTQM850L_config \ 8727ebf7443SwdenkTQM855L_config \ 8737ebf7443SwdenkTQM860L_config \ 874d126bfbdSwdenkTQM862L_config \ 875ae3af05eSwdenkTQM823M_config \ 876ae3af05eSwdenkTQM850M_config \ 877f12e568cSwdenkTQM855M_config \ 878f12e568cSwdenkTQM860M_config \ 879f12e568cSwdenkTQM862M_config \ 8808cba090cSWolfgang DenkTQM866M_config \ 881090eb735SMarkus KlotzbuecherTQM885D_config \ 882efc6f447SGuennadi LiakhovetskiTK885D_config \ 8838cba090cSWolfgang Denkvirtlab2_config: unconfig 884f9328639SMarian Balakowicz @mkdir -p $(obj)include 8857ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 886f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 887f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 8887ebf7443Swdenk } 8890e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc 8907ebf7443Swdenk 8917ebf7443SwdenkTTTech_config: unconfig 892f9328639SMarian Balakowicz @mkdir -p $(obj)include 893f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 894f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 895a47a12beSStefan Roese @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 8967ebf7443Swdenk 897608c9146Swdenkv37_config: unconfig 898f9328639SMarian Balakowicz @mkdir -p $(obj)include 899f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 900f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 901ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc8xx v37 902608c9146Swdenk 90391e940d9Sdzuwtk_config: unconfig 904f9328639SMarian Balakowicz @mkdir -p $(obj)include 905f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 906f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 907a47a12beSStefan Roese @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 90891e940d9Sdzu 9097ebf7443Swdenk######################################################################### 9107ebf7443Swdenk## PPC4xx Systems 9117ebf7443Swdenk######################################################################### 9127ebf7443Swdenk 913c440bfe6SStefan Roeseacadia_nand_config: unconfig 91463e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 91563e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 916c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 917c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 918c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 919ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc 920c440bfe6SStefan Roese 921cf959c7dSStefan Roesebamboo_nand_config: unconfig 92263e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 92363e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 924cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 925cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 926cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 927ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc 928cf959c7dSStefan Roese 929f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images 930f09f09d3SAdam Grahamarches_config \ 9314c9e8557SStefan Roesecanyonlands_config \ 9324c9e8557SStefan Roeseglacier_config: unconfig 9334c9e8557SStefan Roese @mkdir -p $(obj)include 9344c9e8557SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 9354c9e8557SStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 936a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 937c813f1f8SStefan Roese 938fe7c0db6SStefan Roesecanyonlands_nand_config \ 939fe7c0db6SStefan Roeseglacier_nand_config: unconfig 94071665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 94171665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 94271665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 943fe7c0db6SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 944fe7c0db6SStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 94571665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 94671665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 9470e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 94871665ebfSStefan Roese 9491d6f9720SwdenkCATcenter_config \ 9501d6f9720SwdenkCATcenter_25_config \ 9511d6f9720SwdenkCATcenter_33_config: unconfig 952f9328639SMarian Balakowicz @mkdir -p $(obj)include 953f9328639SMarian Balakowicz @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 954f9328639SMarian Balakowicz @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 9551d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 9560e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h 9571d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 9580e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h 959ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave 96010767ccbSwdenk 9611951f847SMatthias FuchsCPCI405_config \ 962549826eaSstroeseCPCI4052_config \ 963c419d1d6SstroeseCPCI405DT_config \ 964549826eaSstroeseCPCI405AB_config: unconfig 965dd794323SMatthias Fuchs @mkdir -p $(obj)board/esd/cpci405 966ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd 9677ebf7443Swdenk 9685deb8022SGeorg Schardtfx12mm_flash_config: unconfig 9695deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 9705deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 9715deb8022SGeorg Schardt @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 9725deb8022SGeorg Schardt > $(obj)board/avnet/fx12mm/config.tmp 9735deb8022SGeorg Schardt @echo "TEXT_BASE := 0xFFCB0000" \ 9745deb8022SGeorg Schardt >> $(obj)board/avnet/fx12mm/config.tmp 975a47a12beSStefan Roese @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 9765deb8022SGeorg Schardt 9775deb8022SGeorg Schardtfx12mm_config: unconfig 9785deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 9795deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 9805deb8022SGeorg Schardt @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 9815deb8022SGeorg Schardt > $(obj)board/avnet/fx12mm/config.tmp 9825deb8022SGeorg Schardt @echo "TEXT_BASE := 0x03000000" \ 9835deb8022SGeorg Schardt >> $(obj)board/avnet/fx12mm/config.tmp 984a47a12beSStefan Roese @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 9855deb8022SGeorg Schardt 9864c188367SDirk Eibach# Compact-Center(codename intip) & DevCon-Center use different U-Boot images 9874c188367SDirk Eibachintip_config \ 9884c188367SDirk Eibachdevconcenter_config: unconfig 9894c188367SDirk Eibach @mkdir -p $(obj)include 9904c188367SDirk Eibach @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 9914c188367SDirk Eibach tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 992a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys 9934c188367SDirk Eibach 994a6862bc1SWolfgang Denkhcu4_config \ 995a6862bc1SWolfgang Denkhcu5_config \ 996a6862bc1SWolfgang Denkmcu25_config: unconfig 997a6862bc1SWolfgang Denk @mkdir -p $(obj)board/netstal/common 998a6862bc1SWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal 999a6862bc1SWolfgang Denk 1000353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1001353f2688SStefan Roesekilauea_config \ 1002353f2688SStefan Roesehaleakala_config: unconfig 1003ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc 1004566806caSStefan Roese 10053d6cb3b2SStefan Roesekilauea_nand_config \ 10063d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 10073d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 10083d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 10093d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 10103d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 10113d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 10120e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc 10133d6cb3b2SStefan Roese 1014f3e0de60SwdenkMIP405T_config: unconfig 1015f9328639SMarian Balakowicz @mkdir -p $(obj)include 1016f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1017ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1018a47a12beSStefan Roese @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl 1019f3e0de60Swdenk 102001a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig 1021880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 102201a00431SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1023880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1024880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ml507/config.tmp 1025880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 1026880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ml507/config.tmp 1027a47a12beSStefan Roese @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx 102801a00431SRicardo Ribalda Delgado 1029086511fcSRicardo Ribalda Delgadoml507_config: unconfig 1030880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 103101a00431SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1032880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1033880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ml507/config.tmp 1034880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 1035880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ml507/config.tmp 1036ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx 1037086511fcSRicardo Ribalda Delgado 10387ebf7443SwdenkOCRTC_config \ 10397ebf7443SwdenkORSG_config: unconfig 1040ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd 10417ebf7443Swdenk 1042281e00a3SwdenkPPChameleonEVB_config \ 1043e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1044e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1045e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1046e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1047e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1048e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1049f9328639SMarian Balakowicz @mkdir -p $(obj)include 10501d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 10510e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h 10521d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 10530e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h 10541d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 10550e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h 1056e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 10570e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h 1058e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 10590e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h 1060ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave 106112f34241Swdenk 1062430f1b0fSStefan Roesesequoia_config \ 1063854bc8daSStefan Roeserainier_config: unconfig 10648318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1065430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1066430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1067a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1068854bc8daSStefan Roese 1069430f1b0fSStefan Roesesequoia_nand_config \ 1070854bc8daSStefan Roeserainier_nand_config: unconfig 107163e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 107263e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 10738318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1074430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1075430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 10768318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 10778318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 10780e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1079652a10c0Swdenk 1080d873133fSStefan Roesesequoia_ramboot_config \ 1081d873133fSStefan Roeserainier_ramboot_config: unconfig 1082d873133fSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1083d873133fSStefan Roese @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h 1084d873133fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1085d873133fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1086d873133fSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1087d873133fSStefan Roese @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \ 1088d873133fSStefan Roese $(obj)board/amcc/sequoia/config.tmp 10890e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1090d873133fSStefan Roese 1091e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig 1092880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1093e07f4a80SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1094880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1095880f6a5dSRicardo Ribalda Delgado > $(obj)board/avnet/v5fx30teval/config.tmp 1096880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x03000000" \ 1097880f6a5dSRicardo Ribalda Delgado >> $(obj)board/avnet/v5fx30teval/config.tmp 1098ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet 1099e07f4a80SRicardo Ribalda Delgado 1100e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig 1101880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1102e07f4a80SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1103880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 11042bec498eSRicardo Ribalda Delgado > $(obj)board/avnet/v5fx30teval/config.tmp 1105880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFF1C0000" \ 11062bec498eSRicardo Ribalda Delgado >> $(obj)board/avnet/v5fx30teval/config.tmp 1107a47a12beSStefan Roese @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet 1108e07f4a80SRicardo Ribalda Delgado 11097ebf7443SwdenkW7OLMC_config \ 11107ebf7443SwdenkW7OLMG_config: unconfig 1111ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx w7o 11127ebf7443Swdenk 1113430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1114430f1b0fSStefan Roesewalnut_config \ 1115430f1b0fSStefan Roesesycamore_config: unconfig 1116ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc 11177ebf7443Swdenk 11181f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig 11191f4d5326SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 11201f4d5326SRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 11211f4d5326SRicardo Ribalda Delgado > $(obj)board/xilinx/ppc405-generic/config.tmp 11221f4d5326SRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 11231f4d5326SRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc405-generic/config.tmp 1124a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 11251f4d5326SRicardo Ribalda Delgado 11261f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig 11271f4d5326SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 11281f4d5326SRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 11291f4d5326SRicardo Ribalda Delgado > $(obj)board/xilinx/ppc405-generic/config.tmp 11301f4d5326SRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 11311f4d5326SRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc405-generic/config.tmp 1132a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 11331f4d5326SRicardo Ribalda Delgado 1134e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig 1135880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1136880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1137880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ppc440-generic/config.tmp 1138880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 1139880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc440-generic/config.tmp 1140a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1141e07f4a80SRicardo Ribalda Delgado 1142e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig 1143880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1144880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1145880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ppc440-generic/config.tmp 1146880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 1147880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc440-generic/config.tmp 1148a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1149e07f4a80SRicardo Ribalda Delgado 1150430f1b0fSStefan Roeseyosemite_config \ 11518a316c9bSStefan Roeseyellowstone_config: unconfig 1152700200c6SStefan Roese @mkdir -p $(obj)include 1153430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1154430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1155a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc 11568a316c9bSStefan Roese 11577ebf7443Swdenk######################################################################### 11587ebf7443Swdenk## MPC824x Systems 11597ebf7443Swdenk######################################################################### 11603bac3513Swdenk 11618c994630SWolfgang DenkeXalion_config: unconfig 11628c994630SWolfgang Denk @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion 11637ebf7443Swdenk 11643bac3513SwdenkCPC45_config \ 11653bac3513SwdenkCPC45_ROMBOOT_config: unconfig 11660e42ada3SWolfgang Denk @mkdir -p $(obj)include ; \ 11673bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 11680e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 11693bac3513Swdenk else \ 11700e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 11713bac3513Swdenk fi; \ 11720e42ada3SWolfgang Denk echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1173ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45 11743bac3513Swdenk 117561525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 117661525f2fSGuennadi Liakhovetski# time permits. 117761525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \ 117861525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed 117961525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig 118061525f2fSGuennadi Liakhovetski @mkdir -p $(obj)include 118161525f2fSGuennadi Liakhovetski @case $@ in \ 118261525f2fSGuennadi Liakhovetski *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 118361525f2fSGuennadi Liakhovetski *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 118461525f2fSGuennadi Liakhovetski esac 1185a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation 118661525f2fSGuennadi Liakhovetski 11877ebf7443SwdenkSandpoint8240_config: unconfig 1188ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc824x sandpoint 11897ebf7443Swdenk 11907ebf7443SwdenkSandpoint8245_config: unconfig 1191ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc824x sandpoint 11927ebf7443Swdenk 11937ebf7443Swdenk######################################################################### 11947ebf7443Swdenk## MPC8260 Systems 11957ebf7443Swdenk######################################################################### 11967ebf7443Swdenk 11977ebf7443Swdenkcogent_mpc8260_config: unconfig 11988c994630SWolfgang Denk @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent 11997ebf7443Swdenk 12007ebf7443SwdenkCPU86_config \ 12017ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 12020e42ada3SWolfgang Denk @mkdir -p $(obj)include ; \ 12037ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 12040e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 12057ebf7443Swdenk else \ 12060e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 12077ebf7443Swdenk fi; \ 12080e42ada3SWolfgang Denk echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1209ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86 12107ebf7443Swdenk 1211384cc687SwdenkCPU87_config \ 1212384cc687SwdenkCPU87_ROMBOOT_config: unconfig 12130e42ada3SWolfgang Denk @mkdir -p $(obj)include ; \ 1214384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 12150e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 1216384cc687Swdenk else \ 12170e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 1218384cc687Swdenk fi; \ 12190e42ada3SWolfgang Denk echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1220ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87 1221384cc687Swdenk 1222f901a83bSWolfgang Denkep8248_config \ 1223f901a83bSWolfgang Denkep8248E_config : unconfig 12240e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248 1225f901a83bSWolfgang Denk 1226c3c7f861SwdenkISPAN_config \ 1227c3c7f861SwdenkISPAN_REVB_config: unconfig 1228f9328639SMarian Balakowicz @mkdir -p $(obj)include 1229c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 12306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \ 1231c3c7f861Swdenk fi 12320e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan 1233c3c7f861Swdenk 123404a85b3bSwdenkMPC8260ADS_config \ 1235901787d6SwdenkMPC8260ADS_lowboot_config \ 123604a85b3bSwdenkMPC8260ADS_33MHz_config \ 1237901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 123804a85b3bSwdenkMPC8260ADS_40MHz_config \ 1239901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 124004a85b3bSwdenkMPC8272ADS_config \ 1241901787d6SwdenkMPC8272ADS_lowboot_config \ 124204a85b3bSwdenkPQ2FADS_config \ 1243901787d6SwdenkPQ2FADS_lowboot_config \ 124404a85b3bSwdenkPQ2FADS-VR_config \ 1245901787d6SwdenkPQ2FADS-VR_lowboot_config \ 124604a85b3bSwdenkPQ2FADS-ZU_config \ 1247901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 124804a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1249901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 125004a85b3bSwdenk : unconfig 1251f9328639SMarian Balakowicz @mkdir -p $(obj)include 1252b7e24d28SJon Loeliger @mkdir -p $(obj)board/freescale/mpc8260ads 125304a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 12546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \ 12556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 125604a85b3bSwdenk $(if $(findstring MHz,$@), \ 1257f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 125804a85b3bSwdenk $(if $(findstring VR,$@), \ 1259f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1260901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 12610e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp 12620e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale 12637ebf7443Swdenk 1264adf22b66SHeiko Schochermuas3001_dev_config \ 1265adf22b66SHeiko Schochermuas3001_config : unconfig 1266adf22b66SHeiko Schocher @mkdir -p $(obj)include 1267adf22b66SHeiko Schocher @mkdir -p $(obj)board/muas3001 1268adf22b66SHeiko Schocher @if [ "$(findstring dev,$@)" ] ; then \ 1269adf22b66SHeiko Schocher echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \ 1270adf22b66SHeiko Schocher fi 12710e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001 1272adf22b66SHeiko Schocher 1273efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 127410f67017SwdenkPM825_config \ 1275efa329cbSwdenkPM825_ROMBOOT_config \ 1276efa329cbSwdenkPM825_BIGFLASH_config \ 1277efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 12787ebf7443SwdenkPM826_config \ 1279efa329cbSwdenkPM826_ROMBOOT_config \ 1280efa329cbSwdenkPM826_BIGFLASH_config \ 1281efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1282f9328639SMarian Balakowicz @mkdir -p $(obj)include 1283f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1284efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1285f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 12867ebf7443Swdenk else \ 1287f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1288efa329cbSwdenk fi 1289efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1290f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1291f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1292efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1293f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 12947ebf7443Swdenk fi; \ 1295efa329cbSwdenk else \ 1296efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1297ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1298f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1299f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1300efa329cbSwdenk else \ 1301f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1302efa329cbSwdenk fi; \ 1303efa329cbSwdenk fi 13040e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826 1305efa329cbSwdenk 1306efa329cbSwdenkPM828_config \ 1307efa329cbSwdenkPM828_PCI_config \ 1308efa329cbSwdenkPM828_ROMBOOT_config \ 1309efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1310f9328639SMarian Balakowicz @mkdir -p $(obj)include 1311f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 131217076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1313f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1314efa329cbSwdenk fi 1315efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1316f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1317f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1318efa329cbSwdenk fi 13190e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828 13207ebf7443Swdenk 13218b0bfc68SwdenkRattler8248_config \ 13228b0bfc68SwdenkRattler_config: unconfig 1323f9328639SMarian Balakowicz @mkdir -p $(obj)include 13248b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1325f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 13260e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler 13278b0bfc68Swdenk 132827b207fdSwdenkTQM8255_AA_config \ 132927b207fdSwdenkTQM8260_AA_config \ 133027b207fdSwdenkTQM8260_AB_config \ 133127b207fdSwdenkTQM8260_AC_config \ 133227b207fdSwdenkTQM8260_AD_config \ 133327b207fdSwdenkTQM8260_AE_config \ 133427b207fdSwdenkTQM8260_AF_config \ 133527b207fdSwdenkTQM8260_AG_config \ 133627b207fdSwdenkTQM8260_AH_config \ 13371f62bc2dSWolfgang DenkTQM8260_AI_config \ 133827b207fdSwdenkTQM8265_AA_config: unconfig 1339f9328639SMarian Balakowicz @mkdir -p $(obj)include 134027b207fdSwdenk @case "$@" in \ 134127b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 134227b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 134327b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 134427b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 134527b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 134627b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 134727b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 134827b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 134927b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 13501f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 135127b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 135227b207fdSwdenk esac; \ 135327b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1354f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 135527b207fdSwdenk fi; \ 1356f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 13571aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1358f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 13597ebf7443Swdenk else \ 1360f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 136127b207fdSwdenk fi; \ 13621aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1363f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 136427b207fdSwdenk else \ 1365f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 13667ebf7443Swdenk fi 13670e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc 13687ebf7443Swdenk 1369ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1370ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1371f9328639SMarian Balakowicz @mkdir -p $(obj)include 1372f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 13730e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk 1374ba91e26aSwdenk 13754e5ca3ebSwdenk######################################################################### 13764e5ca3ebSwdenk## Coldfire 13774e5ca3ebSwdenk######################################################################### 13784e5ca3ebSwdenk 13799d79e575SWolfgang Wegnerastro_mcf5373l_config \ 13809d79e575SWolfgang Wegnerastro_mcf5373l_RAM_config : unconfig 1381ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro 13829d79e575SWolfgang Wegner 1383a21d0c2cSTsiChung LiewM52277EVB_config \ 1384a21d0c2cSTsiChung LiewM52277EVB_spansion_config \ 1385a21d0c2cSTsiChung LiewM52277EVB_stmicro_config : unconfig 1386a21d0c2cSTsiChung Liew @case "$@" in \ 1387a21d0c2cSTsiChung Liew M52277EVB_config) FLASH=SPANSION;; \ 1388a21d0c2cSTsiChung Liew M52277EVB_spansion_config) FLASH=SPANSION;; \ 1389a21d0c2cSTsiChung Liew M52277EVB_stmicro_config) FLASH=STMICRO;; \ 1390a21d0c2cSTsiChung Liew esac; \ 1391a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "SPANSION" ] ; then \ 1392a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ 1393a21d0c2cSTsiChung Liew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 1394a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ 1395a21d0c2cSTsiChung Liew fi; \ 1396a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 1397a21d0c2cSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 1398a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 1399a21d0c2cSTsiChung Liew echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 1400a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ 1401a21d0c2cSTsiChung Liew fi 14020e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale 14031552af70STsiChungLiew 14044a442d31STsiChungLiewM5235EVB_config \ 14054a442d31STsiChungLiewM5235EVB_Flash16_config \ 14064a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 14074a442d31STsiChungLiew @case "$@" in \ 14084a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 14094a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 14104a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 14114a442d31STsiChungLiew esac; \ 14124a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1413ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 14144a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 14154a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 14164a442d31STsiChungLiew else \ 14174a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 14184a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 14194a442d31STsiChungLiew fi 14200e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale 14214a442d31STsiChungLiew 14227481266eSWolfgang Denkcobra5272_config : unconfig 1423ed7a196cSWolfgang Denk @$(MKCONFIG) $@ m68k mcf52x2 cobra5272 14247481266eSWolfgang Denk 14254176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1426f9328639SMarian Balakowicz @mkdir -p $(obj)include 1427f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1428f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 14290e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 14304176c799SWolfgang Denk 14314176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1432f9328639SMarian Balakowicz @mkdir -p $(obj)include 1433f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1434f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 14350e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 14364176c799SWolfgang Denk 14378e585f02STsiChung LiewM5329AFEE_config \ 14388e585f02STsiChung LiewM5329BFEE_config : unconfig 14398e585f02STsiChung Liew @case "$@" in \ 14408e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 14418e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 14428e585f02STsiChung Liew esac; \ 14438e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1444ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 14458e585f02STsiChung Liew fi 14460e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale 14478e585f02STsiChung Liew 1448aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1449aa5f1f9dSTsiChungLiew @case "$@" in \ 1450aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1451aa5f1f9dSTsiChungLiew esac; \ 1452aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1453aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1454aa5f1f9dSTsiChungLiew fi 1455aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1456aa5f1f9dSTsiChungLiew 145705316f8eSTsiChung LiewM54451EVB_config \ 145805316f8eSTsiChung LiewM54451EVB_stmicro_config : unconfig 145905316f8eSTsiChung Liew @case "$@" in \ 1460709b384bSTsiChung Liew M54451EVB_config) FLASH=NOR;; \ 146105316f8eSTsiChung Liew M54451EVB_stmicro_config) FLASH=STMICRO;; \ 146205316f8eSTsiChung Liew esac; \ 1463709b384bSTsiChung Liew if [ "$${FLASH}" = "NOR" ] ; then \ 146405316f8eSTsiChung Liew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 146505316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ 146605316f8eSTsiChung Liew fi; \ 146705316f8eSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 146805316f8eSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 14696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 147005316f8eSTsiChung Liew echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 147105316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ 147205316f8eSTsiChung Liew fi; \ 14736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; 14740e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale 147505316f8eSTsiChung Liew 14768ae158cdSTsiChungLiewM54455EVB_config \ 14778ae158cdSTsiChungLiewM54455EVB_atmel_config \ 14788ae158cdSTsiChungLiewM54455EVB_intel_config \ 14798ae158cdSTsiChungLiewM54455EVB_a33_config \ 14808ae158cdSTsiChungLiewM54455EVB_a66_config \ 14818ae158cdSTsiChungLiewM54455EVB_i33_config \ 14829f751551STsiChung LiewM54455EVB_i66_config \ 14839f751551STsiChung LiewM54455EVB_stm33_config : unconfig 14848ae158cdSTsiChungLiew @case "$@" in \ 14858ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 14868ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 14878ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 14888ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 14898ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 14908ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 14918ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 14929f751551STsiChung Liew M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ 14938ae158cdSTsiChungLiew esac; \ 14941aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 14956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ 1496e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1497e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 14989f751551STsiChung Liew fi; \ 14999f751551STsiChung Liew if [ "$${FLASH}" = "ATMEL" ] ; then \ 15006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1501e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1502e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 15038ae158cdSTsiChungLiew fi; \ 15049f751551STsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 15059f751551STsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 15066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 15079f751551STsiChung Liew echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 15089f751551STsiChung Liew cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 15099f751551STsiChung Liew fi; \ 15106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 15110e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale 15128ae158cdSTsiChungLiew 151357a12720STsiChungLiewM5475AFE_config \ 151457a12720STsiChungLiewM5475BFE_config \ 151557a12720STsiChungLiewM5475CFE_config \ 151657a12720STsiChungLiewM5475DFE_config \ 151757a12720STsiChungLiewM5475EFE_config \ 151857a12720STsiChungLiewM5475FFE_config \ 151957a12720STsiChungLiewM5475GFE_config : unconfig 152057a12720STsiChungLiew @case "$@" in \ 152157a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 152257a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 152357a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 152457a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 152557a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 152657a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 152757a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 152857a12720STsiChungLiew esac; \ 15296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ 15306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 15316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 153257a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 15336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 153457a12720STsiChungLiew fi; \ 153557a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 15366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 153757a12720STsiChungLiew fi; \ 153857a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 15396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 154057a12720STsiChungLiew fi; \ 154157a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 15426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 154357a12720STsiChungLiew fi 15440e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale 154557a12720STsiChungLiew 154657a12720STsiChungLiewM5485AFE_config \ 154757a12720STsiChungLiewM5485BFE_config \ 154857a12720STsiChungLiewM5485CFE_config \ 154957a12720STsiChungLiewM5485DFE_config \ 155057a12720STsiChungLiewM5485EFE_config \ 155157a12720STsiChungLiewM5485FFE_config \ 155257a12720STsiChungLiewM5485GFE_config \ 155357a12720STsiChungLiewM5485HFE_config : unconfig 155457a12720STsiChungLiew @case "$@" in \ 155557a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 155657a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 155757a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 155857a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 155957a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 156057a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 156157a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 15624d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 156357a12720STsiChungLiew esac; \ 15646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ 15656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 15666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 156757a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 15686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 156957a12720STsiChungLiew fi; \ 157057a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 15716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 157257a12720STsiChungLiew fi; \ 157357a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 15746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 157557a12720STsiChungLiew fi; \ 157657a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 15776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 157857a12720STsiChungLiew fi 15790e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale 158057a12720STsiChungLiew 15817ebf7443Swdenk######################################################################### 1582f046ccd1SEran Liberty## MPC83xx Systems 1583f046ccd1SEran Liberty######################################################################### 1584f046ccd1SEran Liberty 15855c5d3242SKim PhillipsMPC8313ERDB_33_config \ 1586e4c09508SScott WoodMPC8313ERDB_66_config \ 1587e4c09508SScott WoodMPC8313ERDB_NAND_33_config \ 1588e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig 1589cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1590e4c09508SScott Wood @mkdir -p $(obj)board/freescale/mpc8313erdb 1591c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 15926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \ 15935c5d3242SKim Phillips fi ; \ 15945c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 15956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \ 1596e4c09508SScott Wood fi ; \ 1597e4c09508SScott Wood if [ "$(findstring _NAND_,$@)" ] ; then \ 1598f4e55a49SKim Phillips echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \ 1599e4c09508SScott Wood echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \ 16005c5d3242SKim Phillips fi ; 160164ac1eb5SNick Spence @if [ "$(findstring _NAND_,$@)" ] ; then \ 160264ac1eb5SNick Spence echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \ 160364ac1eb5SNick Spence fi ; 16040e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale 16055c5d3242SKim Phillips 16062e95004dSAnton VorontsovMPC8315ERDB_NAND_config \ 16078bd522ceSDave LiuMPC8315ERDB_config: unconfig 1608ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale 16098bd522ceSDave Liu 16104decd84eSKim PhillipsMPC832XEMDS_config \ 16114decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 16124decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1613281df457STony LiMPC832XEMDS_SLAVE_config \ 1614281df457STony LiMPC832XEMDS_ATM_config: unconfig 1615cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1616c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 1617cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 16184decd84eSKim Phillips fi ; \ 16194decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1620cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1621cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 16224decd84eSKim Phillips fi ; \ 16234decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 1624cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1625281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 16264decd84eSKim Phillips fi ; \ 16274decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1628cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1629281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1630281df457STony Li fi ; \ 1631281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1632281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1633281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 16344decd84eSKim Phillips fi ; 16350e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale 1636e6f2e902SMarian Balakowicz 16377a78f148STimur TabiMPC8349ITX_config \ 16387a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 16397a78f148STimur TabiMPC8349ITXGP_config: unconfig 16407a78f148STimur Tabi @mkdir -p $(obj)include 1641e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 16427a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 16437a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 1644e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 16457a78f148STimur Tabi fi 16467a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 1647e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 16487a78f148STimur Tabi fi 16490e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale 16504decd84eSKim Phillips 16515f820439SDave LiuMPC8360EMDS_config \ 16525f820439SDave LiuMPC8360EMDS_HOST_33_config \ 16535f820439SDave LiuMPC8360EMDS_HOST_66_config \ 1654281df457STony LiMPC8360EMDS_SLAVE_config \ 1655281df457STony LiMPC8360EMDS_ATM_config: unconfig 1656cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1657c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 1658cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 16595f820439SDave Liu fi ; \ 16605f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1661cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1662cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 16635f820439SDave Liu fi ; \ 16645f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 1665cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1666281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 16675f820439SDave Liu fi ; \ 16685f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 1669cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1670281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1671281df457STony Li fi ; \ 1672281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1673281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1674281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 16755f820439SDave Liu fi ; 16760e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale 16775f820439SDave Liu 1678fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 1679fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 168091c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 1681fab6f556SAnton Vorontsov @mkdir -p $(obj)include 1682c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 1683fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 1684fab6f556SAnton Vorontsov fi ; 16850e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale 1686fab6f556SAnton Vorontsov 168719580e66SDave LiuMPC837XEMDS_config \ 168819580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 168919580e66SDave Liu @mkdir -p $(obj)include 1690c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 169119580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 169219580e66SDave Liu fi ; 16930e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale 169419580e66SDave Liu 1695c0d660fbSPaul Gortmakersbc8349_config \ 1696c0d660fbSPaul Gortmakersbc8349_PCI_33_config \ 1697c0d660fbSPaul Gortmakersbc8349_PCI_66_config: unconfig 1698ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349 169991e25769SPaul Gortmaker 17005bb907a4SRon MadridSIMPC8313_LP_config \ 17015bb907a4SRon MadridSIMPC8313_SP_config: unconfig 17025bb907a4SRon Madrid @mkdir -p $(obj)include 17035bb907a4SRon Madrid @mkdir -p $(obj)board/sheldon/simpc8313 17045bb907a4SRon Madrid @if [ "$(findstring _LP_,$@)" ] ; then \ 17055bb907a4SRon Madrid echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \ 17065bb907a4SRon Madrid fi ; \ 17075bb907a4SRon Madrid if [ "$(findstring _SP_,$@)" ] ; then \ 17085bb907a4SRon Madrid echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \ 17095bb907a4SRon Madrid fi ; 17105bb907a4SRon Madrid @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 17110e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon 17125bb907a4SRon Madrid 17131dee9be6SReinhard Arltcaddy2_config \ 1714c2e49f70SReinhard Arltvme8349_config: unconfig 1715ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd 17162ad6b513STimur Tabi 1717f046ccd1SEran Liberty######################################################################### 171842d1f039Swdenk## MPC85xx Systems 171942d1f039Swdenk######################################################################### 172042d1f039Swdenk 17219a1a0aedSMingkai HuMPC8536DS_NAND_config \ 1722e40ac487SMingkai HuMPC8536DS_SDCARD_config \ 1723e40ac487SMingkai HuMPC8536DS_SPIFLASH_config \ 1724337f9fdeSKumar GalaMPC8536DS_36BIT_config \ 17259490a7f1SKumar GalaMPC8536DS_config: unconfig 1726ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale 17279490a7f1SKumar Gala 1728b0e32949SLunsheng WangMPC8540EVAL_config \ 1729b0e32949SLunsheng WangMPC8540EVAL_33_config \ 1730b0e32949SLunsheng WangMPC8540EVAL_66_config \ 1731b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 1732b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 1733f9328639SMarian Balakowicz @mkdir -p $(obj)include 17340e42ada3SWolfgang Denk @if [ -z "$(findstring _33_,$@)" ] ; then \ 1735f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 1736b0e32949SLunsheng Wang fi ; \ 1737b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 1738f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 1739b0e32949SLunsheng Wang fi 17400e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval 1741b0e32949SLunsheng Wang 17427f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 174303f5c550SwdenkMPC8541CDS_config: unconfig 17447f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1745c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 17467f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 17477f3f2bd2SRandy Vinson fi 17480e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale 174903f5c550Swdenk 17507f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 1751d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 17527f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1753c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 17547f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 17557f3f2bd2SRandy Vinson fi 17560e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale 1757d9b94f28SJon Loeliger 17587f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 175903f5c550SwdenkMPC8555CDS_config: unconfig 17607f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1761c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 17627f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 17637f3f2bd2SRandy Vinson fi 17640e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale 17657abf0c58Swdenk 1766c95d541eSLiu YuMPC8569MDS_ATM_config \ 1767674ef7bdSLiu YuMPC8569MDS_NAND_config \ 1768765547dcSHaiying WangMPC8569MDS_config: unconfig 1769ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale 1770765547dcSHaiying Wang 177118af1c5fSKumar GalaMPC8572DS_36BIT_config \ 1772129ba616SKumar GalaMPC8572DS_config: unconfig 1773ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale 1774129ba616SKumar Gala 1775feb7838fSSrikanth SrinivasanP2020DS_36BIT_config \ 1776feb7838fSSrikanth SrinivasanP2020DS_config: unconfig 1777ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale 1778feb7838fSSrikanth Srinivasan 177962ca21c4SKumar GalaP1011RDB_config \ 1780f7780ec9SDipen DudhatP1011RDB_NAND_config \ 1781fad15096SDipen DudhatP1011RDB_SDCARD_config \ 1782fad15096SDipen DudhatP1011RDB_SPIFLASH_config \ 178362ca21c4SKumar GalaP1020RDB_config \ 1784f7780ec9SDipen DudhatP1020RDB_NAND_config \ 1785fad15096SDipen DudhatP1020RDB_SDCARD_config \ 1786fad15096SDipen DudhatP1020RDB_SPIFLASH_config \ 178762ca21c4SKumar GalaP2010RDB_config \ 1788f7780ec9SDipen DudhatP2010RDB_NAND_config \ 1789fad15096SDipen DudhatP2010RDB_SDCARD_config \ 1790fad15096SDipen DudhatP2010RDB_SPIFLASH_config \ 1791394c46caSyorkP2020DS_DDR2_config \ 1792f7780ec9SDipen DudhatP2020RDB_config \ 1793fad15096SDipen DudhatP2020RDB_NAND_config \ 1794fad15096SDipen DudhatP2020RDB_SDCARD_config \ 1795fad15096SDipen DudhatP2020RDB_SPIFLASH_config: unconfig 1796ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale 1797728ece34SPoonam Aggrwal 1798c15f3120Swdenksbc8540_config \ 1799c15f3120Swdenksbc8540_33_config \ 1800c15f3120Swdenksbc8540_66_config: unconfig 1801ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560 1802c15f3120Swdenk 18032738bc8dSPaul Gortmakersbc8548_config \ 18042738bc8dSPaul Gortmakersbc8548_PCI_33_config \ 18052738bc8dSPaul Gortmakersbc8548_PCI_66_config \ 18062738bc8dSPaul Gortmakersbc8548_PCI_33_PCIE_config \ 18072738bc8dSPaul Gortmakersbc8548_PCI_66_PCIE_config: unconfig 1808ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548 180911c45ebdSJoe Hamman 1810466b7410Swdenksbc8560_config \ 1811466b7410Swdenksbc8560_33_config \ 1812466b7410Swdenksbc8560_66_config: unconfig 1813ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560 18148b07a110Swdenk 1815ee152983SWolfgang Denkstxssa_config \ 1816ee152983SWolfgang Denkstxssa_4M_config: unconfig 1817ee152983SWolfgang Denk @mkdir -p $(obj)include 1818ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 1819ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 1820ee152983SWolfgang Denk fi 18210e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx 182235171dc0SDan Malek 1823d96f41e0SStefan RoeseTQM8540_config \ 1824d96f41e0SStefan RoeseTQM8541_config \ 18251287e0c5SWolfgang GrandeggerTQM8548_config \ 1826a865bcdaSWolfgang GrandeggerTQM8548_AG_config \ 1827ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config \ 1828d96f41e0SStefan RoeseTQM8555_config \ 1829f5c5ef4aSwdenkTQM8560_config: unconfig 1830f9328639SMarian Balakowicz @mkdir -p $(obj)include 1831ad7ee5d4SWolfgang Grandegger @BTYPE=$(@:_config=); \ 1832a865bcdaSWolfgang Grandegger CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \ 1833f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 1834ad7ee5d4SWolfgang Grandegger echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \ 1835f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 1836ad7ee5d4SWolfgang Grandegger echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h; 1837ad7ee5d4SWolfgang Grandegger @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk; 18380e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc 1839f5c5ef4aSwdenk 184042d1f039Swdenk######################################################################### 1841debb7354SJon Loeliger## MPC86xx Systems 1842debb7354SJon Loeliger######################################################################### 1843debb7354SJon Loeliger 18448db0400aSBecky BruceMPC8641HPCN_36BIT_config \ 1845debb7354SJon LoeligerMPC8641HPCN_config: unconfig 18468db0400aSBecky Bruce @mkdir -p $(obj)include 18478db0400aSBecky Bruce @if [ "$(findstring _36BIT_,$@)" ] ; then \ 18488db0400aSBecky Bruce echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ 18498db0400aSBecky Bruce fi 18500e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale 1851debb7354SJon Loeliger 1852debb7354SJon Loeliger######################################################################### 18537ebf7443Swdenk## 74xx/7xx Systems 18547ebf7443Swdenk######################################################################### 18557ebf7443Swdenk 18567ebf7443SwdenkEVB64260_config \ 18577ebf7443SwdenkEVB64260_750CX_config: unconfig 18580e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260 18597ebf7443Swdenk 18601eac2a71SStefan Roesep3m750_config \ 18611eac2a71SStefan Roesep3m7448_config: unconfig 18621eac2a71SStefan Roese @mkdir -p $(obj)include 18631eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 18641eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 18651eac2a71SStefan Roese else \ 18661eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 18671eac2a71SStefan Roese fi 18680e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive 18691eac2a71SStefan Roese 18707ebf7443SwdenkPCIPPC2_config \ 18717ebf7443SwdenkPCIPPC6_config: unconfig 1872ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2 18737ebf7443Swdenk 18747ebf7443Swdenk#======================================================================== 18757ebf7443Swdenk# ARM 18767ebf7443Swdenk#======================================================================== 187743a5f0dfSPo-Yu Chuang 1878a4b46ed6SUlf Samuelsson######################################################################### 1879a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems 1880a4b46ed6SUlf Samuelsson######################################################################### 188120b197c6SStelian Pop 1882d8380c9dSTom RixCPUAT91_RAM_config \ 1883d8380c9dSTom RixCPUAT91_config : unconfig 1884d8380c9dSTom Rix @mkdir -p $(obj)include 1885d8380c9dSTom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 1886*af4b8b4bSEric Bénard @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91 1887d8380c9dSTom Rix 1888a4b46ed6SUlf Samuelsson######################################################################### 188934be1065SMatthias Weisser## ARM926EJ-S Systems 1890a4b46ed6SUlf Samuelsson######################################################################### 1891a4b46ed6SUlf Samuelsson 189289a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \ 189389a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \ 189489a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \ 1895df486b1fSNicolas Ferreat91sam9260ek_config \ 1896df486b1fSNicolas Ferreat91sam9g20ek_nandflash_config \ 1897df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs0_config \ 1898df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs1_config \ 1899df486b1fSNicolas Ferreat91sam9g20ek_config : unconfig 1900e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 1901df486b1fSNicolas Ferre @if [ "$(findstring 9g20,$@)" ] ; then \ 1902df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \ 1903df486b1fSNicolas Ferre else \ 1904df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \ 1905df486b1fSNicolas Ferre fi; 190689a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 190789a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 190889a7a87fSNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 190989a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 191089a7a87fSNicolas Ferre else \ 191189a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 191289a7a87fSNicolas Ferre fi; 19130e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 1914a4b46ed6SUlf Samuelsson 19154e170b16SNicolas Ferreat91sam9xeek_nandflash_config \ 19164e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \ 19174e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \ 19184e170b16SNicolas Ferreat91sam9xeek_config : unconfig 19194e170b16SNicolas Ferre @mkdir -p $(obj)include 19204e170b16SNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 19214e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 19224e170b16SNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 19234e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 19244e170b16SNicolas Ferre else \ 19254e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 19264e170b16SNicolas Ferre fi; 19270e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 19284e170b16SNicolas Ferre 192989a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \ 193089a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \ 193189a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \ 19325ccc2d99SSedji Gaouaouat91sam9261ek_config \ 19335ccc2d99SSedji Gaouaouat91sam9g10ek_nandflash_config \ 19345ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs0_config \ 19355ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs3_config \ 19365ccc2d99SSedji Gaouaouat91sam9g10ek_config : unconfig 1937e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 19385ccc2d99SSedji Gaouaou @if [ "$(findstring 9g10,$@)" ] ; then \ 19395ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ 19405ccc2d99SSedji Gaouaou else \ 19415ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ 19425ccc2d99SSedji Gaouaou fi; 194389a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 194489a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 19455ccc2d99SSedji Gaouaou elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 194689a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ 194789a7a87fSNicolas Ferre else \ 194889a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 194989a7a87fSNicolas Ferre fi; 19500e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 195128962f5aSJean-Christophe PLAGNIOL-VILLARD 19521b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_config \ 19531b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_boot_config \ 195489a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \ 195589a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \ 195689a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \ 195728962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config : unconfig 1958e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 195989a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 196089a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 19611b3b7c64SJean-Christophe PLAGNIOL-VILLARD elif [ "$(findstring norflash,$@)" ] ; then \ 19621b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ 196389a7a87fSNicolas Ferre else \ 196489a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 196589a7a87fSNicolas Ferre fi; 19661b3b7c64SJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring norflash_boot,$@)" ] ; then \ 19671b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ 19681b3b7c64SJean-Christophe PLAGNIOL-VILLARD fi; 19690e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 197028962f5aSJean-Christophe PLAGNIOL-VILLARD 197189a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \ 197289a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \ 197389a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \ 197428962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config : unconfig 1975e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 197689a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 197789a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 197889a7a87fSNicolas Ferre else \ 197989a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 198089a7a87fSNicolas Ferre fi; 19810e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 198228962f5aSJean-Christophe PLAGNIOL-VILLARD 198323b80982STom RixCPU9G20_128M_config \ 198423b80982STom RixCPU9G20_config \ 198523b80982STom RixCPU9260_128M_config \ 198623b80982STom RixCPU9260_config : unconfig 198723b80982STom Rix @mkdir -p $(obj)include 198823b80982STom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 19890e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91 199023b80982STom Rix 199122ee6473SSedji Gaouaouat91sam9m10g45ek_nandflash_config \ 199222ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_config \ 199322ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_cs0_config \ 199422ee6473SSedji Gaouaouat91sam9m10g45ek_config \ 199522ee6473SSedji Gaouaouat91sam9g45ekes_nandflash_config \ 199622ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_config \ 199722ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_cs0_config \ 199822ee6473SSedji Gaouaouat91sam9g45ekes_config : unconfig 199922ee6473SSedji Gaouaou @mkdir -p $(obj)include 200022ee6473SSedji Gaouaou @if [ "$(findstring 9m10,$@)" ] ; then \ 200122ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ 200222ee6473SSedji Gaouaou else \ 200322ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ 200422ee6473SSedji Gaouaou fi; 200522ee6473SSedji Gaouaou @if [ "$(findstring _nandflash,$@)" ] ; then \ 200622ee6473SSedji Gaouaou echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 200722ee6473SSedji Gaouaou else \ 200822ee6473SSedji Gaouaou echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ 200922ee6473SSedji Gaouaou fi; 20100e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 201122ee6473SSedji Gaouaou 2012b5d289fcSAsen Dimovpm9g45_config : unconfig 2013b5d289fcSAsen Dimov @mkdir -p $(obj)include 2014b5d289fcSAsen Dimov @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91 2015b5d289fcSAsen Dimov 20169453967eSAlbin TonnerreSBC35_A9G20_NANDFLASH_config \ 20179453967eSAlbin TonnerreSBC35_A9G20_EEPROM_config \ 20189453967eSAlbin TonnerreSBC35_A9G20_config : unconfig 20199453967eSAlbin Tonnerre @mkdir -p $(obj)include 20209453967eSAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 20210e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91 20229453967eSAlbin Tonnerre 20232dc851e3SAlbin TonnerreTNY_A9G20_NANDFLASH_config \ 20242dc851e3SAlbin TonnerreTNY_A9G20_EEPROM_config \ 20252dc851e3SAlbin TonnerreTNY_A9G20_config \ 20262dc851e3SAlbin TonnerreTNY_A9260_NANDFLASH_config \ 20272dc851e3SAlbin TonnerreTNY_A9260_EEPROM_config \ 20282dc851e3SAlbin TonnerreTNY_A9260_config : unconfig 20292dc851e3SAlbin Tonnerre @mkdir -p $(obj)include 20302dc851e3SAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 20310e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91 20322dc851e3SAlbin Tonnerre 203374f4304eSWolfgang Denk######################################################################## 203487cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 203587cb6862SWolfgang Denkintegratorap_config \ 203687cb6862SWolfgang Denkap_config \ 203787cb6862SWolfgang Denkap966_config \ 203887cb6862SWolfgang Denkap922_config \ 203987cb6862SWolfgang Denkap922_XA10_config \ 204087cb6862SWolfgang Denkap7_config \ 204187cb6862SWolfgang Denkap720t_config \ 204287cb6862SWolfgang Denkap920t_config \ 204387cb6862SWolfgang Denkap926ejs_config \ 204487cb6862SWolfgang Denkap946es_config: unconfig 2045576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh ap $@ 20463d3befa7Swdenk 204787cb6862SWolfgang Denkintegratorcp_config \ 204887cb6862SWolfgang Denkcp_config \ 204987cb6862SWolfgang Denkcp920t_config \ 205087cb6862SWolfgang Denkcp926ejs_config \ 205187cb6862SWolfgang Denkcp946es_config \ 205287cb6862SWolfgang Denkcp1136_config \ 205387cb6862SWolfgang Denkcp966_config \ 205487cb6862SWolfgang Denkcp922_config \ 205587cb6862SWolfgang Denkcp922_XA10_config \ 205687cb6862SWolfgang Denkcp1026_config: unconfig 2057576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh cp $@ 205825d6712aSwdenk 2059ee1363f2SAlessandro Rubininhk8815_config \ 2060ee1363f2SAlessandro Rubininhk8815_onenand_config: unconfig 2061d5254f14SAlessandro Rubini @mkdir -p $(obj)include 2062d5254f14SAlessandro Rubini @ > $(obj)include/config.h 2063d5254f14SAlessandro Rubini @if [ "$(findstring _onenand, $@)" ] ; then \ 2064d5254f14SAlessandro Rubini echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \ 2065d5254f14SAlessandro Rubini fi 20660e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik 2067d5254f14SAlessandro Rubini 2068a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2069a4b46ed6SUlf Samuelsson 207063e73c9aSwdenkomap1610inn_config \ 207163e73c9aSwdenkomap1610inn_cs0boot_config \ 207263e73c9aSwdenkomap1610inn_cs3boot_config \ 20733ff02c27Swdenkomap1610inn_cs_autoboot_config \ 207463e73c9aSwdenkomap1610h2_config \ 207563e73c9aSwdenkomap1610h2_cs0boot_config \ 20763ff02c27Swdenkomap1610h2_cs3boot_config \ 20773ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2078f9328639SMarian Balakowicz @mkdir -p $(obj)include 207963e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2080cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 20813ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2082cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 208363e73c9aSwdenk else \ 2084cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 208563e73c9aSwdenk fi; 20860e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap 20876f21347dSwdenk 2088a56bd922Swdenkomap730p2_config \ 2089a56bd922Swdenkomap730p2_cs0boot_config \ 2090a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2091f9328639SMarian Balakowicz @mkdir -p $(obj)include 2092a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2093f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2094a56bd922Swdenk else \ 2095f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2096a56bd922Swdenk fi; 2097ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap 2098a56bd922Swdenk 2099080cfee7SVipin KUMARspear300_config \ 21007da69236SVipin KUMARspear310_config \ 21017da69236SVipin KUMARspear320_config : unconfig 2102ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear 21037e074158SVipin KUMAR 2104566c9c16SVipin KUMARspear600_config : unconfig 2105ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear 2106566c9c16SVipin KUMAR 210747fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \ 21082d24a3a7SwdenkSX1_config: unconfig 210947fd3bffSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 211047fd3bffSJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ 211147fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 211247fd3bffSJean-Christophe PLAGNIOL-VILLARD else \ 211347fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 211447fd3bffSJean-Christophe PLAGNIOL-VILLARD fi; 21150e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ SX1 arm arm925t sx1 21162d24a3a7Swdenk 2117b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 211843d9616cSwdenktrab_config \ 2119b0639ca3Swdenktrab_bigram_config \ 2120b0639ca3Swdenktrab_bigflash_config \ 2121f54ebdfaSwdenktrab_old_config: unconfig 2122f9328639SMarian Balakowicz @mkdir -p $(obj)include 2123f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2124b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2125f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2126f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2127b0639ca3Swdenk } 2128b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2129f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2130f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2131f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2132b0639ca3Swdenk } 2133f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2134f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2135f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2136f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 213743d9616cSwdenk } 2138a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0 21397ebf7443Swdenk 21406895d451SJohn Rigbytx25_config : unconfig 21416895d451SJohn Rigby @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 2142ed7a196cSWolfgang Denk @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25 21436895d451SJohn Rigby 2144a6862bc1SWolfgang Denkedb9301_config \ 2145a6862bc1SWolfgang Denkedb9302_config \ 2146a6862bc1SWolfgang Denkedb9302a_config \ 2147a6862bc1SWolfgang Denkedb9307_config \ 2148a6862bc1SWolfgang Denkedb9307a_config \ 2149a6862bc1SWolfgang Denkedb9312_config \ 2150a6862bc1SWolfgang Denkedb9315_config \ 2151a6862bc1SWolfgang Denkedb9315a_config: unconfig 2152a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx 2153a6862bc1SWolfgang Denk 2154699f0512SWolfgang Denk######################################################################### 215587cb6862SWolfgang Denk# ARM supplied Versatile development boards 2156699f0512SWolfgang Denk######################################################################### 2157699f0512SWolfgang Denk 215887cb6862SWolfgang Denkversatile_config \ 215987cb6862SWolfgang Denkversatileab_config \ 216087cb6862SWolfgang Denkversatilepb_config : unconfig 2161e4943ec5SJean-Christophe PLAGNIOL-VILLARD @board/armltd/versatile/split_by_variant.sh $@ 2162074cff0dSwdenk 2163074cff0dSwdenk######################################################################### 216443d9616cSwdenk## XScale Systems 21657ebf7443Swdenk######################################################################### 21667ebf7443Swdenk 21679d8d5a5bSStefan Roesepdnb3_config \ 21689d8d5a5bSStefan Roesescpu_config: unconfig 2169cdd917a4SWolfgang Denk @mkdir -p $(obj)include 21709d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2171cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 21729d8d5a5bSStefan Roese fi 21730e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive 2174ba94a1bbSWolfgang Denk 2175040f8f63SStefano Babicpolaris_config \ 21765e5803e1Sstefano babictrizepsiv_config : unconfig 2177040f8f63SStefano Babic @mkdir -p $(obj)include 2178040f8f63SStefano Babic @if [ "$(findstring polaris,$@)" ] ; then \ 2179040f8f63SStefano Babic echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \ 2180040f8f63SStefano Babic fi; 21810e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv 21825e5803e1Sstefano babic 218318a00dfdSMarek Vasutvpac270_nor_config \ 218418a00dfdSMarek Vasutvpac270_onenand_config : unconfig 218518a00dfdSMarek Vasut @mkdir -p $(obj)include 218618a00dfdSMarek Vasut @if [ "$(findstring onenand,$@)" ] ; then \ 218718a00dfdSMarek Vasut echo "#define CONFIG_ONENAND_U_BOOT" \ 218818a00dfdSMarek Vasut >>$(obj)include/config.h ; \ 218918a00dfdSMarek Vasut fi; 219018a00dfdSMarek Vasut @$(MKCONFIG) -n $@ -a vpac270 arm pxa vpac270 219118a00dfdSMarek Vasut 21928ed96046Swdenk######################################################################### 21938ed96046Swdenk## ARM1136 Systems 21948ed96046Swdenk######################################################################### 21955ca9881aSPeter Pearse 21965ca9881aSPeter Pearseapollon_config : unconfig 21978cbf4e4fSWolfgang Denk @mkdir -p $(obj)include 2198751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 2199751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 2200a6862bc1SWolfgang Denk @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx 22018ed96046Swdenk 2202a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \ 22035ad86216SSascha Hauerimx31_phycore_config : unconfig 220469c5bf29SGuennadi Liakhovetski @mkdir -p $(obj)include 2205a2bb7105SGuennadi Liakhovetski @if [ -n "$(findstring _eet_,$@)" ]; then \ 2206a2bb7105SGuennadi Liakhovetski echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ 2207a2bb7105SGuennadi Liakhovetski fi 2208a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31 22095ad86216SSascha Hauer 2210d08e5ca3SMagnus Liljamx31pdk_config \ 2211d08e5ca3SMagnus Liljamx31pdk_nand_config : unconfig 2212d08e5ca3SMagnus Lilja @mkdir -p $(obj)include 2213d08e5ca3SMagnus Lilja @if [ -n "$(findstring _nand_,$@)" ]; then \ 2214d08e5ca3SMagnus Lilja echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ 2215d08e5ca3SMagnus Lilja else \ 2216d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ 2217d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \ 2218d08e5ca3SMagnus Lilja fi 22190e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31 22208449f287SMagnus Lilja 222111edcfe2SGuennadi Liakhovetski######################################################################### 222211edcfe2SGuennadi Liakhovetski## ARM1176 Systems 222311edcfe2SGuennadi Liakhovetski######################################################################### 222411edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config \ 222511edcfe2SGuennadi Liakhovetskismdk6400_config : unconfig 222611edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 222711edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 222811edcfe2SGuennadi Liakhovetski @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 22290e42ada3SWolfgang Denk @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 223011edcfe2SGuennadi Liakhovetski @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ 223111edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 223211edcfe2SGuennadi Liakhovetski else \ 223311edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 223411edcfe2SGuennadi Liakhovetski fi 223554e19a7dSWolfgang Denk @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx 223611edcfe2SGuennadi Liakhovetski @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 223711edcfe2SGuennadi Liakhovetski 22382262cfeeSwdenk#======================================================================== 223943d9616cSwdenk# MIPS 224043d9616cSwdenk#======================================================================== 22417ebf7443Swdenk######################################################################### 224243d9616cSwdenk## MIPS32 4Kc 224343d9616cSwdenk######################################################################### 224443d9616cSwdenk 2245e0ac62d7Swdenkincaip_100MHz_config \ 2246e0ac62d7Swdenkincaip_133MHz_config \ 2247e0ac62d7Swdenkincaip_150MHz_config \ 224843d9616cSwdenkincaip_config: unconfig 2249f9328639SMarian Balakowicz @mkdir -p $(obj)include 2250e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 22510e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h 2252e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 22530e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h 2254e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 22550e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h 22560e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a incaip mips mips incaip 2257e0ac62d7Swdenk 22582a61eff6SStefan Roesevct_premium_config \ 22592a61eff6SStefan Roesevct_premium_small_config \ 22602a61eff6SStefan Roesevct_premium_onenand_config \ 22612a61eff6SStefan Roesevct_premium_onenand_small_config \ 22622a61eff6SStefan Roesevct_platinum_config \ 22632a61eff6SStefan Roesevct_platinum_small_config \ 22642a61eff6SStefan Roesevct_platinum_onenand_config \ 22652a61eff6SStefan Roesevct_platinum_onenand_small_config \ 22662a61eff6SStefan Roesevct_platinumavc_config \ 22672a61eff6SStefan Roesevct_platinumavc_small_config \ 22682a61eff6SStefan Roesevct_platinumavc_onenand_config \ 22692a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig 22702a61eff6SStefan Roese @mkdir -p $(obj)include 22710e42ada3SWolfgang Denk @[ -z "$(findstring _premium,$@)" ] || \ 22720e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h 22730e42ada3SWolfgang Denk @[ -z "$(findstring _platinum_,$@)" ] || \ 22740e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h 22750e42ada3SWolfgang Denk @[ -z "$(findstring _platinumavc,$@)" ] || \ 22760e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h 22770e42ada3SWolfgang Denk @[ -z "$(findstring _onenand,$@)" ] || \ 22780e42ada3SWolfgang Denk echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h 22790e42ada3SWolfgang Denk @[ -z "$(findstring _small,$@)" ] || \ 22800e42ada3SWolfgang Denk echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h 22810e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a vct mips mips vct micronas 22822a61eff6SStefan Roese 2283e0ac62d7Swdenk######################################################################### 228469459791Swdenk## MIPS32 AU1X00 228569459791Swdenk######################################################################### 2286699f0512SWolfgang Denk 228769459791Swdenkdbau1000_config : unconfig 2288f9328639SMarian Balakowicz @mkdir -p $(obj)include 2289210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2290f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 229169459791Swdenk 229269459791Swdenkdbau1100_config : unconfig 2293f9328639SMarian Balakowicz @mkdir -p $(obj)include 2294210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2295f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 229669459791Swdenk 229769459791Swdenkdbau1500_config : unconfig 2298f9328639SMarian Balakowicz @mkdir -p $(obj)include 2299210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2300f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 230169459791Swdenk 2302ff36fd85Swdenkdbau1550_config : unconfig 2303f9328639SMarian Balakowicz @mkdir -p $(obj)include 2304210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2305f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2306ff36fd85Swdenk 2307ff36fd85Swdenkdbau1550_el_config : unconfig 2308f9328639SMarian Balakowicz @mkdir -p $(obj)include 2309210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2310f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2311ff36fd85Swdenk 23128a773983SShinya Kuribayashigth2_config : unconfig 23138a773983SShinya Kuribayashi @mkdir -p $(obj)include 23148a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 2315ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ mips mips gth2 23168a773983SShinya Kuribayashi 2317699f0512SWolfgang Denkpb1000_config : unconfig 2318699f0512SWolfgang Denk @mkdir -p $(obj)include 2319699f0512SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2320699f0512SWolfgang Denk @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2321699f0512SWolfgang Denk 23220764c164SVlad Lunguqemu_mips_config : unconfig 23230764c164SVlad Lungu @mkdir -p $(obj)include 2324210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 23250764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 23260764c164SVlad Lungu 23274a551709Swdenk#======================================================================== 23284a551709Swdenk# Nios 23294a551709Swdenk#======================================================================== 23304a551709Swdenk 23315c952cf0Swdenk######################################################################### 23325c952cf0Swdenk## Nios-II 23335c952cf0Swdenk######################################################################### 23345c952cf0Swdenk 23358cbb0dddSThomas Chou# nios2 generic boards 23368cbb0dddSThomas ChouNIOS2_GENERIC = nios2-generic 23378cbb0dddSThomas Chou 23388cbb0dddSThomas Chou$(NIOS2_GENERIC:%=%_config) : unconfig 2339ed7a196cSWolfgang Denk @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera 23408cbb0dddSThomas Chou 2341507bbe3eSwdenk#======================================================================== 234260fa72d6SMike Frysinger# Blackfin 234360fa72d6SMike Frysinger#======================================================================== 23440afe519aSWolfgang Denk 234510eafa10SMichael Hennerichbf527-ezkit-v2_config : unconfig 234610eafa10SMichael Hennerich @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \ 234710eafa10SMichael Hennerich bf527-ezkit blackfin blackfin bf527-ezkit 234810eafa10SMichael Hennerich 23495e3b0bc1SHaavard Skinnemoen#======================================================================== 2350699f0512SWolfgang Denk# SH3 (SuperH) 2351699f0512SWolfgang Denk#======================================================================== 23527ebf7443Swdenk 235369df3c4dSNobuhiro Iwamatsu######################################################################### 2354c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH) 2355c655fad0SNobuhiro Iwamatsu######################################################################### 2356c655fad0SNobuhiro Iwamatsursk7203_config: unconfig 2357a5b04d00SKieran Bingham @mkdir -p $(obj)include 23584d41650eSPeter Griffin @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h 2359ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas 2360c655fad0SNobuhiro Iwamatsu 2361c655fad0SNobuhiro Iwamatsu######################################################################### 2362b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2363b2b5e2bbSYoshihiro Shimoda######################################################################### 2364699f0512SWolfgang Denk 23653313e0e2SMark Jonasmpr2_config: unconfig 23663ab4827cSWolfgang Denk @mkdir -p $(obj)include 23673ab4827cSWolfgang Denk @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h 2368ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh3 mpr2 23693313e0e2SMark Jonas 2370b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 23713ab4827cSWolfgang Denk @mkdir -p $(obj)include 23723ab4827cSWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h 2373ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh3 ms7720se 2374b2b5e2bbSYoshihiro Shimoda 2375b2b5e2bbSYoshihiro Shimoda######################################################################### 237669df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 237769df3c4dSNobuhiro Iwamatsu######################################################################### 2378699f0512SWolfgang Denk 2379699f0512SWolfgang DenkMigoR_config : unconfig 2380699f0512SWolfgang Denk @mkdir -p $(obj)include 2381699f0512SWolfgang Denk @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h 2382ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 MigoR renesas 2383699f0512SWolfgang Denk 238469df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 23853ab4827cSWolfgang Denk @mkdir -p $(obj)include 2386210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 2387ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 ms7750se 238869df3c4dSNobuhiro Iwamatsu 2389d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 23903ab4827cSWolfgang Denk @mkdir -p $(obj)include 2391210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 2392ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 ms7722se 23937a8e9bedSwdenk 2394699f0512SWolfgang Denkr2dplus_config : unconfig 23953ab4827cSWolfgang Denk @mkdir -p $(obj)include 2396699f0512SWolfgang Denk @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h 2397ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas 2398c2042f59Sgoda.yusuke 2399c133c1fbSYusuke Godar7780mp_config: unconfig 24003ab4827cSWolfgang Denk @mkdir -p $(obj)include 24013ab4827cSWolfgang Denk @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h 2402ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas 2403c133c1fbSYusuke Goda 24047faddaecSNobuhiro Iwamatsush7763rdp_config : unconfig 24053ab4827cSWolfgang Denk @mkdir -p $(obj)include 24063ab4827cSWolfgang Denk @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h 2407ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas 24087faddaecSNobuhiro Iwamatsu 2409ada93182SYoshihiro Shimodash7785lcr_32bit_config \ 24100d53a47dSNobuhiro Iwamatsush7785lcr_config : unconfig 2411ce298172SJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 2412ce298172SJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)board/renesas/sh7785lcr 2413ce298172SJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h 2414ada93182SYoshihiro Shimoda @if [ "$(findstring 32bit, $@)" ] ; then \ 2415ada93182SYoshihiro Shimoda echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \ 2416ada93182SYoshihiro Shimoda echo "TEXT_BASE = 0x8ff80000" > \ 2417ada93182SYoshihiro Shimoda $(obj)board/renesas/sh7785lcr/config.tmp ; \ 2418ada93182SYoshihiro Shimoda fi 2419ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas 24200d53a47dSNobuhiro Iwamatsu 24216f0da497SNobuhiro Iwamatsuap325rxa_config : unconfig 24226f0da497SNobuhiro Iwamatsu @mkdir -p $(obj)include 24236f0da497SNobuhiro Iwamatsu @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h 2424ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas 24256f0da497SNobuhiro Iwamatsu 242674d9c16aSNobuhiro Iwamatsuespt_config : unconfig 242774d9c16aSNobuhiro Iwamatsu @mkdir -p $(obj)include 242874d9c16aSNobuhiro Iwamatsu @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h 2429ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 espt 243074d9c16aSNobuhiro Iwamatsu 24317ebf7443Swdenk######################################################################### 24327ebf7443Swdenk######################################################################### 243385ec0bccSwdenk 24343e38691eSwdenkclean: 24351bc15386SPeter Tyser @rm -f $(obj)examples/standalone/82559_eeprom \ 2436d640ac58SWolfgang Denk $(obj)examples/standalone/atmel_df_pow2 \ 24371bc15386SPeter Tyser $(obj)examples/standalone/eepro100_eeprom \ 24381bc15386SPeter Tyser $(obj)examples/standalone/hello_world \ 24391bc15386SPeter Tyser $(obj)examples/standalone/interrupt \ 24401bc15386SPeter Tyser $(obj)examples/standalone/mem_to_mem_idma2intr \ 24411bc15386SPeter Tyser $(obj)examples/standalone/sched \ 24421bc15386SPeter Tyser $(obj)examples/standalone/smc91111_eeprom \ 24431bc15386SPeter Tyser $(obj)examples/standalone/test_burst \ 24441bc15386SPeter Tyser $(obj)examples/standalone/timer 2445d4abc757SPeter Tyser @rm -f $(obj)examples/api/demo{,.bin} 2446f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 2447f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 2448f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 2449f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 2450f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 2451f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 2452f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 2453f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 2454f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 2455f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 24561dcb50afSWolfgang Denk $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ 24571aada9cdSWolfgang Denk $(obj)u-boot.lds \ 2458c6fb83d2SPeter Tyser $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] 2459dc7746d8SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 24601aada9cdSWolfgang Denk @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map} 2461ca6189dbSKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map} 2462ca6189dbSKyungmin Park @rm -f $(ONENAND_BIN) 24631aada9cdSWolfgang Denk @rm -f $(obj)onenand_ipl/u-boot.lds 2464d4abc757SPeter Tyser @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) 2465ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 24667ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 24672b48f7d5SPeter Tyser -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ 24687ebf7443Swdenk | xargs rm -f 24697ebf7443Swdenk 24707ebf7443Swdenkclobber: clean 2471ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 24724c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 24734c0d4c3bSwdenk -print0 \ 24744c0d4c3bSwdenk | xargs -0 rm -f 2475ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 24765013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 2477ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2478aa0c7a86SPrafulla Wadaskar @rm -f $(obj)u-boot.kwb 2479c5fb70c9SStefano Babic @rm -f $(obj)u-boot.imx 2480fb8b33c1SPeter Tyser @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} 2481a47a12beSStefan Roese @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c 2482ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2483a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f 2484a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f 24857ebf7443Swdenk 2486f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 24877ebf7443Swdenkmrproper \ 24887ebf7443Swdenkdistclean: clobber unconfig 2489f9328639SMarian Balakowiczelse 2490f9328639SMarian Balakowiczmrproper \ 2491f9328639SMarian Balakowiczdistclean: clobber unconfig 2492ae6d1056SWolfgang Denk rm -rf $(obj)* 2493f9328639SMarian Balakowiczendif 24947ebf7443Swdenk 24957ebf7443Swdenkbackup: 24967ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 2497d6b93714SIlya Yanok gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 24987ebf7443Swdenk 24997ebf7443Swdenk######################################################################### 2500