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 252d941de9SWolfgang DenkPATCHLEVEL = 09 268b9e4787SWolfgang DenkSUBLEVEL = 27*1e4e5ef0SWolfgang 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 256852bd07cSMinkyu Kangifeq ($(SOC),s5pc1xx) 257852bd07cSMinkyu KangLIBS += $(CPUDIR)/s5p-common/libs5p-common.a 258852bd07cSMinkyu Kangendif 259852bd07cSMinkyu Kangifeq ($(SOC),s5pc2xx) 260852bd07cSMinkyu KangLIBS += $(CPUDIR)/s5p-common/libs5p-common.a 261852bd07cSMinkyu Kangendif 262852bd07cSMinkyu Kang 263f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 264561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE) 265a8c7c708Swdenk 266de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 267de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 268de109d90SWolfgang Denk 2694f7cb08eSwdenk# Add GCC lib 27052b1bf2cSWolfgang Denkifdef USE_PRIVATE_LIBGCC 27152b1bf2cSWolfgang Denkifeq ("$(USE_PRIVATE_LIBGCC)", "yes") 272ea0364f1SPeter TyserPLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc 27352b1bf2cSWolfgang Denkelse 27452b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc 27552b1bf2cSWolfgang Denkendif 27652b1bf2cSWolfgang Denkelse 27752b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 27852b1bf2cSWolfgang Denkendif 27952b1bf2cSWolfgang DenkPLATFORM_LIBS += $(PLATFORM_LIBGCC) 28052b1bf2cSWolfgang Denkexport PLATFORM_LIBS 2813d3befa7Swdenk 2826ac9f479SMike Frysinger# Special flags for CPP when processing the linker script. 2836ac9f479SMike Frysinger# Pass the version down so we can handle backwards compatibility 2846ac9f479SMike Frysinger# on the fly. 2856ac9f479SMike FrysingerLDPPFLAGS += \ 2866ac9f479SMike Frysinger -include $(TOPDIR)/include/u-boot/u-boot.lds.h \ 2876ac9f479SMike Frysinger $(shell $(LD) --version | \ 2886ac9f479SMike Frysinger sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') 2896ac9f479SMike Frysinger 290887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 291887e2ec9SStefan RoeseNAND_SPL = nand_spl 292887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 293887e2ec9SStefan Roeseendif 294887e2ec9SStefan Roese 295751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 296751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 297751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 298ca6189dbSKyungmin ParkONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin 299751b9b51SKyungmin Parkendif 300751b9b51SKyungmin Park 301f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 302de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 303f9328639SMarian Balakowicz 3047ebf7443Swdenk######################################################################### 305bdccc4feSwdenk######################################################################### 3067ebf7443Swdenk 3073e88337bSMike Frysinger# Always append ALL so that arch config.mk's can add custom ones 308751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 3097ebf7443Swdenk 310bdccc4feSwdenkall: $(ALL) 3117ebf7443Swdenk 312f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 3136310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 3146310eb9dSwdenk 315f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 3160817d688SRicardo Ribalda Delgado $(OBJCOPY) -O srec $< $@ 3177ebf7443Swdenk 318f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 3197ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 3207ebf7443Swdenk 32194a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 32276d82187SMike Frysinger $(CREATE_LDR_ENV) 32368e56324SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) 32494a91e24SMike Frysinger 32594a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 32694a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 32794a91e24SMike Frysinger 32894a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 32994a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 33094a91e24SMike Frysinger 331f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 332a2a0a717SWolfgang Denk $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \ 333bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 334881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 335bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 336bdccc4feSwdenk -d $< $@ 337bdccc4feSwdenk 3388edcde5eSStefano Babic$(obj)u-boot.imx: $(obj)u-boot.bin 3398edcde5eSStefano Babic $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \ 3408edcde5eSStefano Babic -e $(TEXT_BASE) -d $< $@ 3418edcde5eSStefano Babic 342aa0c7a86SPrafulla Wadaskar$(obj)u-boot.kwb: $(obj)u-boot.bin 343aa0c7a86SPrafulla Wadaskar $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \ 344aa0c7a86SPrafulla Wadaskar -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@ 345aa0c7a86SPrafulla Wadaskar 346566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 34701159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 348566a494fSHeiko Schocher 349f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3507ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3517ebf7443Swdenk 352ecb1dc89SMike FrysingerGEN_UBOOT = \ 353de109d90SWolfgang Denk UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 354de109d90SWolfgang Denk sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 355f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 356f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 357b2184c31Swdenk -Map u-boot.map -o u-boot 3581aada9cdSWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds 359ecb1dc89SMike Frysinger $(GEN_UBOOT) 360ecb1dc89SMike Frysingerifeq ($(CONFIG_KALLSYMS),y) 3611aada9cdSWolfgang Denk smap=`$(call SYSTEM_MAP,u-boot) | \ 3621aada9cdSWolfgang Denk awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \ 3631aada9cdSWolfgang Denk $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \ 3641aada9cdSWolfgang Denk -c common/system_map.c -o $(obj)common/system_map.o 365ecb1dc89SMike Frysinger $(GEN_UBOOT) $(obj)common/system_map.o 366ecb1dc89SMike Frysingerendif 3677ebf7443Swdenk 368d0d6144eSPeter Tyser$(OBJS): depend 36903b7004dSPeter Tyser $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 370f9328639SMarian Balakowicz 371d0d6144eSPeter Tyser$(LIBS): depend $(SUBDIRS) 372f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 373a8c7c708Swdenk 374d0d6144eSPeter Tyser$(LIBBOARD): depend $(LIBS) 375de109d90SWolfgang Denk $(MAKE) -C $(dir $(subst $(obj),,$@)) 376de109d90SWolfgang Denk 377d0d6144eSPeter Tyser$(SUBDIRS): depend 378b028f715Swdenk $(MAKE) -C $@ all 3797ebf7443Swdenk 380d0d6144eSPeter Tyser$(LDSCRIPT): depend 381f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 382f65c9812SMike Frysinger 3831aada9cdSWolfgang Denk$(obj)u-boot.lds: $(LDSCRIPT) 3841aada9cdSWolfgang Denk $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ 3851aada9cdSWolfgang Denk 386561858eeSPeter Tyser$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 3878318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 388887e2ec9SStefan Roese 389d0d6144eSPeter Tyser$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 3908318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 391887e2ec9SStefan Roese 392561858eeSPeter Tyser$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 393f2302d44SStefan Roese $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 394751b9b51SKyungmin Park 395d0d6144eSPeter Tyser$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 396ca6189dbSKyungmin Park cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 397751b9b51SKyungmin Park 398ae6d1056SWolfgang Denk$(VERSION_FILE): 399aa737945SMike Frysinger @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 400434c51a5SPeter Tyser '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp 4010ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 402881a87ecSWolfgang Denk 403561858eeSPeter Tyser$(TIMESTAMP_FILE): 404d6b93714SIlya Yanok @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ 405d6b93714SIlya Yanok @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ 406561858eeSPeter Tyser 4078f713fdfSdzugdbtools: 408f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 409f9328639SMarian Balakowicz 410f9328639SMarian Balakowiczupdater: 411f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 412f9328639SMarian Balakowicz 413f9328639SMarian Balakowiczenv: 41464b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 4158f713fdfSdzu 4162a998793SDaniel Hobi# Explicitly make _depend in subdirs containing multiple targets to prevent 4172a998793SDaniel Hobi# parallel sub-makes creating .depend files simultaneously. 418d0d6144eSPeter Tyserdepend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 41903b7004dSPeter Tyser for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \ 4202a998793SDaniel Hobi $(MAKE) -C $$dir _depend ; done 4217ebf7443Swdenk 422e5e4e705SLi YangTAG_SUBDIRS = $(SUBDIRS) 423e5e4e705SLi YangTAG_SUBDIRS += $(dir $(__LIBS)) 424a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 425a340c325SJean-Christophe PLAGNIOL-VILLARD 426f9328639SMarian Balakowicztags ctags: 427e5e4e705SLi Yang ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ 428e5e4e705SLi Yang -name '*.[chS]' -print` 4297ebf7443Swdenk 4307ebf7443Swdenketags: 431e5e4e705SLi Yang etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ 432e5e4e705SLi Yang -name '*.[chS]' -print` 433ffda586fSLi Yangcscope: 434e5e4e705SLi Yang find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files 435ffda586fSLi Yang cscope -b -q -k 4367ebf7443Swdenk 437ecb1dc89SMike FrysingerSYSTEM_MAP = \ 438ecb1dc89SMike Frysinger $(NM) $1 | \ 4397ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 440ecb1dc89SMike Frysinger LC_ALL=C sort 441ecb1dc89SMike Frysinger$(obj)System.map: $(obj)u-boot 442ecb1dc89SMike Frysinger @$(call SYSTEM_MAP,$<) > $(obj)System.map 4437ebf7443Swdenk 4442f155f6cSGrant Likely# 4452f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4462f155f6cSGrant Likely# 4472f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4482f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4492f155f6cSGrant Likely# to regenerate the autoconf.mk file. 4501510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h 4511510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 45216fe7775SMike Frysinger set -e ; \ 453ae6d1056SWolfgang Denk : Generate the dependancies ; \ 4549aef7388SMike Frysinger $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ 4551510b82dSWolfgang Denk -MQ $(obj)include/autoconf.mk include/common.h > $@ 4561510b82dSWolfgang Denk 4571510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h 4581510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 4591510b82dSWolfgang Denk set -e ; \ 460ae6d1056SWolfgang Denk : Extract the config macros ; \ 4611510b82dSWolfgang Denk $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ 4624a0f7538SWolfgang Denk sed -n -f tools/scripts/define2mk.sed > $@.tmp && \ 4634a0f7538SWolfgang Denk mv $@.tmp $@ 4642f155f6cSGrant Likely 4657ebf7443Swdenk######################################################################### 466ae6d1056SWolfgang Denkelse # !config.mk 467f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 468f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 469c7c0d542SMike Frysinger$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \ 470c7c0d542SMike Frysingerupdater env depend dep tags ctags etags cscope $(obj)System.map: 4717ebf7443Swdenk @echo "System not configured - see README" >&2 4727ebf7443Swdenk @ exit 1 473c7c0d542SMike Frysinger 474c7c0d542SMike Frysingertools: 475c7c0d542SMike Frysinger $(MAKE) -C tools 476c7c0d542SMike Frysingertools-all: 477c7c0d542SMike Frysinger $(MAKE) -C tools HOST_TOOLS_ALL=y 478ae6d1056SWolfgang Denkendif # config.mk 4797ebf7443Swdenk 4804e53a258SWolfgang Denk.PHONY : CHANGELOG 4814e53a258SWolfgang DenkCHANGELOG: 482b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 483b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4844e53a258SWolfgang Denk 4850a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING 4860a823aa2SHarald Welte cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h 4877ebf7443Swdenk######################################################################### 4887ebf7443Swdenk 4897ebf7443Swdenkunconfig: 490887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4912f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4922f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4937ebf7443Swdenk 494a6862bc1SWolfgang Denk%_config:: unconfig 495a6862bc1SWolfgang Denk @$(MKCONFIG) -A $(@:_config=) 496a6862bc1SWolfgang Denk 497a6862bc1SWolfgang Denk##%: %_config 498a6862bc1SWolfgang Denk## $(MAKE) 4999f4a4206SMike Frysinger 5008c994630SWolfgang Denk# 5018c994630SWolfgang Denk# Functions to generate common board directory names 5028c994630SWolfgang Denk# 5038c994630SWolfgang Denklcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/') 5048c994630SWolfgang Denkucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/') 5058c994630SWolfgang Denk 5067ebf7443Swdenk#======================================================================== 5077ebf7443Swdenk# PowerPC 5087ebf7443Swdenk#======================================================================== 5090db5bca8Swdenk 5100db5bca8Swdenk######################################################################### 511945af8d7Swdenk## MPC5xxx Systems 512945af8d7Swdenk######################################################################### 513a87589daSwdenk 5145c4fa9b4SGrzegorz Bernackidigsy_mtc_config \ 5155c4fa9b4SGrzegorz Bernackidigsy_mtc_LOWBOOT_config \ 5165c4fa9b4SGrzegorz Bernackidigsy_mtc_RAMBOOT_config: unconfig 5175c4fa9b4SGrzegorz Bernacki @mkdir -p $(obj)include 5185c4fa9b4SGrzegorz Bernacki @mkdir -p $(obj)board/digsy_mtc 5195c4fa9b4SGrzegorz Bernacki @ >$(obj)include/config.h 5205c4fa9b4SGrzegorz Bernacki @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 5210e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp 5225c4fa9b4SGrzegorz Bernacki @[ -z "$(findstring RAMBOOT_,$@)" ] || \ 5230e42ada3SWolfgang Denk echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp 5240e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc 5255c4fa9b4SGrzegorz Bernacki 5265b53b29bSEric Millbrandtgalaxy5200_LOWBOOT_config \ 5275b53b29bSEric Millbrandtgalaxy5200_config: unconfig 5285b53b29bSEric Millbrandt @mkdir -p $(obj)include 5295b53b29bSEric Millbrandt @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 5300e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200 5315b53b29bSEric Millbrandt 532e35745bbSwdenkLite5200_config \ 533e35745bbSwdenkLite5200_LOWBOOT_config \ 534e35745bbSwdenkLite5200_LOWBOOT08_config \ 535e35745bbSwdenkicecube_5200_config \ 536e35745bbSwdenkicecube_5200_LOWBOOT_config \ 537e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 538b2001f27Swdenkicecube_5200_DDR_config \ 53979d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 540fd428c05SDetlev Zundelicecube_5200_DDR_LOWBOOT08_config: unconfig 541f9328639SMarian Balakowicz @mkdir -p $(obj)include 542f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 54317d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 5440e42ada3SWolfgang Denk if [ "$(findstring DDR,$@)" ] ; \ 545f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 546f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 5470e42ada3SWolfgang Denk fi 5485cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 5490e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp 550b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 5510e42ada3SWolfgang Denk echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 5520e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube 553945af8d7Swdenk 55409e4b0c5SWolfgang Denklite5200b_config \ 555d3832e8fSDomen Puncerlite5200b_PM_config \ 55609e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 557f9328639SMarian Balakowicz @mkdir -p $(obj)include 558f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 559f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 560f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 561d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 5620e42ada3SWolfgang Denk echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h 56309e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 5640e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp 5650e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube 56609e4b0c5SWolfgang Denk 567f1ee9825SStefan Roesemcc200_config \ 568ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 569ed1cf845SWolfgang Denkmcc200_highboot_config \ 570ed1cf845SWolfgang Denkmcc200_COM12_config \ 571ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 572113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 573113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 574ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 575ed1cf845SWolfgang Denkprs200_config \ 576ed1cf845SWolfgang Denkprs200_DDR_config \ 577ed1cf845SWolfgang Denkprs200_highboot_config \ 578ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 579f9328639SMarian Balakowicz @mkdir -p $(obj)include 580f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 5814819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 5820e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp 5834819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 5840e42ada3SWolfgang Denk if [ -n "$(findstring prs200,$@)" ]; \ 585ed1cf845SWolfgang Denk then \ 5860e42ada3SWolfgang Denk if [ -z "$(findstring _DDR,$@)" ];\ 587ed1cf845SWolfgang Denk then \ 588f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 589ed1cf845SWolfgang Denk fi; \ 5900e42ada3SWolfgang Denk fi 5914819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 5920e42ada3SWolfgang Denk echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h 593463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 5940e42ada3SWolfgang Denk echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h 595ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 5960e42ada3SWolfgang Denk echo "#define CONFIG_PRS200" >>$(obj)include/config.h 597a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200 59886ea5f93SWolfgang Denk 599699f0512SWolfgang DenkMVBC_P_config: unconfig 600699f0512SWolfgang Denk @mkdir -p $(obj)include 601699f0512SWolfgang Denk @mkdir -p $(obj)board/mvbc_p 602699f0512SWolfgang Denk @ >$(obj)include/config.h 603699f0512SWolfgang Denk @[ -z "$(findstring MVBC_P,$@)" ] || \ 6040e42ada3SWolfgang Denk echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h 605ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision 606699f0512SWolfgang Denk 6071f2463d7SAndre SchwarzMVSMR_config: unconfig 6081f2463d7SAndre Schwarz @mkdir -p $(obj)include 6091f2463d7SAndre Schwarz @mkdir -p $(obj)board/matrix_vision/mvsmr 610ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision 6111f2463d7SAndre Schwarz 612c9969947SJon Smirlpcm030_config \ 613c9969947SJon Smirlpcm030_LOWBOOT_config: unconfig 614341245a2SWolfgang Denk @mkdir -p $(obj)include $(obj)board/phytec/pcm030 6150a87dd90SWolfgang Denk @ >$(obj)include/config.h 616c9969947SJon Smirl @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 6170e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp 6180e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec 619c9969947SJon Smirl 62089394047SwdenkPM520_config \ 62189394047SwdenkPM520_DDR_config \ 62289394047SwdenkPM520_ROMBOOT_config \ 62389394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 624f9328639SMarian Balakowicz @mkdir -p $(obj)include 62589394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 6260e42ada3SWolfgang Denk echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 62789394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 6280e42ada3SWolfgang Denk echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h 6290e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520 63089394047Swdenk 63145a212c4SWolfgang DenkTB5200_B_config \ 632b87dfd28SWolfgang DenkTB5200_config: unconfig 633f9328639SMarian Balakowicz @mkdir -p $(obj)include 63445a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 6350e42ada3SWolfgang Denk echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h 636a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc 637b87dfd28SWolfgang Denk 638d4ca31c4SwdenkMINI5200_config \ 639d4ca31c4SwdenkEVAL5200_config \ 640d4ca31c4SwdenkTOP5200_config: unconfig 641f9328639SMarian Balakowicz @mkdir -p $(obj)include 642f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 643a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk 644d4ca31c4Swdenk 6456c7a1408SwdenkTotal5200_config \ 6466c7a1408SwdenkTotal5200_lowboot_config \ 6476c7a1408SwdenkTotal5200_Rev2_config \ 6486c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 649f9328639SMarian Balakowicz @mkdir -p $(obj)include 650f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 6516c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 6520e42ada3SWolfgang Denk echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h 6536c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 6540e42ada3SWolfgang Denk echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h 6556c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 6560e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp 6570e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200 6586c7a1408Swdenk 6595196a7a0SWolfgang Denkcam5200_config \ 660d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6615196a7a0SWolfgang Denkfo300_config \ 6625196a7a0SWolfgang DenkMiniFAP_config \ 6635078cce8SWolfgang DenkTQM5200S_config \ 6645078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6655196a7a0SWolfgang DenkTQM5200_B_config \ 6665196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 6675196a7a0SWolfgang DenkTQM5200_config \ 6685196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 669f9328639SMarian Balakowicz @mkdir -p $(obj)include 6704677988cSWolfgang Grandegger @mkdir -p $(obj)board/tqc/tqm5200 671135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 672f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 673f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 674f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 6755078cce8SWolfgang Denk } 676d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 6770e42ada3SWolfgang Denk echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h 6786d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 6790e42ada3SWolfgang Denk echo "#define CONFIG_FO300" >>$(obj)include/config.h 680cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 6810e42ada3SWolfgang Denk echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h 682cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 6830e42ada3SWolfgang Denk echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h 6845078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 6850e42ada3SWolfgang Denk echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h 6865078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 687f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 688f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 68945a212c4SWolfgang Denk } 690978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 6910e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp 692a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc 693699f0512SWolfgang Denk 694945af8d7Swdenk######################################################################### 6958993e54bSRafal Jaworowski## MPC512x Systems 6968993e54bSRafal Jaworowski######################################################################### 697699f0512SWolfgang Denk 69872601d04SWolfgang Denkmpc5121ads_config \ 69972601d04SWolfgang Denkmpc5121ads_rev2_config \ 7005f91db7fSJohn Rigby : unconfig 701210ed200SWolfgang Denk @mkdir -p $(obj)include 702f31c49dbSMartha Marx @if [ "$(findstring rev2,$@)" ] ; then \ 703f31c49dbSMartha Marx echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \ 7045f91db7fSJohn Rigby fi 7050e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale 7068993e54bSRafal Jaworowski 7078993e54bSRafal Jaworowski######################################################################### 7087ebf7443Swdenk## MPC8xx Systems 7097ebf7443Swdenk######################################################################### 7107ebf7443Swdenk 7112d24a3a7SwdenkAdder87x_config \ 71226238132SwdenkAdderII_config \ 7130e42ada3SWolfgang DenkAdderUSB_config \ 7140e42ada3SWolfgang DenkAdder_config \ 7152d24a3a7Swdenk : unconfig 716f9328639SMarian Balakowicz @mkdir -p $(obj)include 71726238132Swdenk $(if $(findstring AdderII,$@), \ 718f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 7190e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder 72016c8d5e7SWolfgang Denk 721180d3f74SwdenkADS860_config \ 722180d3f74SwdenkFADS823_config \ 723180d3f74SwdenkFADS850SAR_config \ 724180d3f74SwdenkMPC86xADS_config \ 7251114257cSwdenkMPC885ADS_config \ 726180d3f74SwdenkFADS860T_config: unconfig 727ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads 7287ebf7443Swdenk 7297aa78614SwdenkGEN860T_SC_config \ 7307ebf7443SwdenkGEN860T_config: unconfig 731f9328639SMarian Balakowicz @mkdir -p $(obj)include 7327aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 7330e42ada3SWolfgang Denk echo "#define CONFIG_SC" >>$(obj)include/config.h 734ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t 7357ebf7443Swdenk 7367ebf7443SwdenkICU862_100MHz_config \ 7377ebf7443SwdenkICU862_config: unconfig 738f9328639SMarian Balakowicz @mkdir -p $(obj)include 7397ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 7400e42ada3SWolfgang Denk echo "#define CONFIG_100MHz" >>$(obj)include/config.h 741ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862 7427ebf7443Swdenk 7437ebf7443SwdenkIVML24_256_config \ 7447ebf7443SwdenkIVML24_128_config \ 7457ebf7443SwdenkIVML24_config: unconfig 746f9328639SMarian Balakowicz @mkdir -p $(obj)include 7477ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 7480e42ada3SWolfgang Denk echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h 7497ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 7500e42ada3SWolfgang Denk echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h 7517ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 7520e42ada3SWolfgang Denk echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h 7530e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm 7547ebf7443Swdenk 7557ebf7443SwdenkIVMS8_256_config \ 7567ebf7443SwdenkIVMS8_128_config \ 7577ebf7443SwdenkIVMS8_config: unconfig 758f9328639SMarian Balakowicz @mkdir -p $(obj)include 7597ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 7600e42ada3SWolfgang Denk echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h 7617ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 7620e42ada3SWolfgang Denk echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h 7637ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 7640e42ada3SWolfgang Denk echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h 7650e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm 7667ebf7443Swdenk 7677ebf7443SwdenkMBX_config \ 7687ebf7443SwdenkMBX860T_config: unconfig 769ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx 7707ebf7443Swdenk 771993cad93SwdenkNETVIA_V2_config \ 7727ebf7443SwdenkNETVIA_config: unconfig 773f9328639SMarian Balakowicz @mkdir -p $(obj)include 774993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 7750e42ada3SWolfgang Denk echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h 776993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 7770e42ada3SWolfgang Denk echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h 778ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia 779c26e454dSwdenk 780c26e454dSwdenkNETPHONE_V2_config \ 78104a85b3bSwdenkNETPHONE_config: unconfig 782f9328639SMarian Balakowicz @mkdir -p $(obj)include 783c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 7840e42ada3SWolfgang Denk echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h 785c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 7860e42ada3SWolfgang Denk echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h 787ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone 78804a85b3bSwdenk 78979fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 79079fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 79179fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 79279fa88f3SwdenkNETTA_SWAPHOOK_config \ 79379fa88f3SwdenkNETTA_ISDN_6412_config \ 79404a85b3bSwdenkNETTA_ISDN_config \ 79579fa88f3SwdenkNETTA_6412_config \ 79604a85b3bSwdenkNETTA_config: unconfig 797f9328639SMarian Balakowicz @mkdir -p $(obj)include 79879fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 7990e42ada3SWolfgang Denk echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h 80079fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 8010e42ada3SWolfgang Denk echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h 80279fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 8030e42ada3SWolfgang Denk echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h 80479fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 8050e42ada3SWolfgang Denk echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h 80679fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 8070e42ada3SWolfgang Denk echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h 80879fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 8090e42ada3SWolfgang Denk echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h 810ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta 81179fa88f3Swdenk 81279fa88f3SwdenkNETTA2_V2_config \ 81379fa88f3SwdenkNETTA2_config: unconfig 814f9328639SMarian Balakowicz @mkdir -p $(obj)include 81579fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 8160e42ada3SWolfgang Denk echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h 81779fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 8180e42ada3SWolfgang Denk echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h 819ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2 82079fa88f3Swdenk 821a367d426Sdzu@denx.deNC650_Rev1_config \ 822a367d426Sdzu@denx.deNC650_Rev2_config \ 823a367d426Sdzu@denx.deCP850_config: unconfig 824f9328639SMarian Balakowicz @mkdir -p $(obj)include 825a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 826f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 827f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 828a367d426Sdzu@denx.de } 829a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 830f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 831a367d426Sdzu@denx.de } 832a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 833f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 834a367d426Sdzu@denx.de } 8350e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650 8367ca202f5Swdenk 837e63c8ee3SwdenkRPXlite_DW_64_config \ 838e63c8ee3SwdenkRPXlite_DW_LCD_config \ 839e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 840e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 841e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 842e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 843e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 844e63c8ee3SwdenkRPXlite_DW_config: unconfig 845f9328639SMarian Balakowicz @mkdir -p $(obj)include 846e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 8470e42ada3SWolfgang Denk echo "#define RPXlite_64MHz" >>$(obj)include/config.h 848e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 849f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 850f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 851e63c8ee3Swdenk } 852e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 8530e42ada3SWolfgang Denk echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h 8540e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw 855e63c8ee3Swdenk 8567ebf7443SwdenkRRvision_LCD_config: unconfig 857f9328639SMarian Balakowicz @mkdir -p $(obj)include 858f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 859f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 860a47a12beSStefan Roese @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision 8617ebf7443Swdenk 8627ebf7443SwdenkSPD823TS_config: unconfig 863ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc8xx spd8xx 8647ebf7443Swdenk 8657ebf7443SwdenkSXNI855T_config: unconfig 866ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc8xx sixnet 8677ebf7443Swdenk 8687ebf7443Swdenk# Play some tricks for configuration selection 869e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 870e9132ea9Swdenk# and only 823 boards may have LCD support 871ed7a196cSWolfgang Denkxtract_8xx = $(subst _LCD,,$1) 8727ebf7443Swdenk 8737ebf7443SwdenkFPS850L_config \ 874384ae025SwdenkFPS860L_config \ 875f12e568cSwdenkNSCU_config \ 8767ebf7443SwdenkTQM823L_config \ 8777ebf7443SwdenkTQM823L_LCD_config \ 8787ebf7443SwdenkTQM850L_config \ 8797ebf7443SwdenkTQM855L_config \ 8807ebf7443SwdenkTQM860L_config \ 881d126bfbdSwdenkTQM862L_config \ 882ae3af05eSwdenkTQM823M_config \ 883ae3af05eSwdenkTQM850M_config \ 884f12e568cSwdenkTQM855M_config \ 885f12e568cSwdenkTQM860M_config \ 886f12e568cSwdenkTQM862M_config \ 8878cba090cSWolfgang DenkTQM866M_config \ 888090eb735SMarkus KlotzbuecherTQM885D_config \ 889efc6f447SGuennadi LiakhovetskiTK885D_config \ 8908cba090cSWolfgang Denkvirtlab2_config: unconfig 891f9328639SMarian Balakowicz @mkdir -p $(obj)include 8927ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 893f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 894f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 8957ebf7443Swdenk } 8960e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc 8977ebf7443Swdenk 8987ebf7443SwdenkTTTech_config: unconfig 899f9328639SMarian Balakowicz @mkdir -p $(obj)include 900f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 901f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 902a47a12beSStefan Roese @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 9037ebf7443Swdenk 904608c9146Swdenkv37_config: unconfig 905f9328639SMarian Balakowicz @mkdir -p $(obj)include 906f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 907f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 908ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc8xx v37 909608c9146Swdenk 91091e940d9Sdzuwtk_config: unconfig 911f9328639SMarian Balakowicz @mkdir -p $(obj)include 912f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 913f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 914a47a12beSStefan Roese @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc 91591e940d9Sdzu 9167ebf7443Swdenk######################################################################### 9177ebf7443Swdenk## PPC4xx Systems 9187ebf7443Swdenk######################################################################### 9197ebf7443Swdenk 920c440bfe6SStefan Roeseacadia_nand_config: unconfig 92163e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 92263e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 923c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 924c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 925c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 926ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc 927c440bfe6SStefan Roese 928cf959c7dSStefan Roesebamboo_nand_config: unconfig 92963e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 93063e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 931cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 932cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 933cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 934ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc 935cf959c7dSStefan Roese 936f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images 937f09f09d3SAdam Grahamarches_config \ 9384c9e8557SStefan Roesecanyonlands_config \ 9394c9e8557SStefan Roeseglacier_config: unconfig 9404c9e8557SStefan Roese @mkdir -p $(obj)include 9414c9e8557SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 9424c9e8557SStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 943a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 944c813f1f8SStefan Roese 945fe7c0db6SStefan Roesecanyonlands_nand_config \ 946fe7c0db6SStefan Roeseglacier_nand_config: unconfig 94771665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 94871665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 94971665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 950fe7c0db6SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 951fe7c0db6SStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 95271665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 95371665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 9540e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc 95571665ebfSStefan Roese 9561d6f9720SwdenkCATcenter_config \ 9571d6f9720SwdenkCATcenter_25_config \ 9581d6f9720SwdenkCATcenter_33_config: unconfig 959f9328639SMarian Balakowicz @mkdir -p $(obj)include 960f9328639SMarian Balakowicz @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 961f9328639SMarian Balakowicz @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 9621d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 9630e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h 9641d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 9650e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h 966ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave 96710767ccbSwdenk 9681951f847SMatthias FuchsCPCI405_config \ 969549826eaSstroeseCPCI4052_config \ 970c419d1d6SstroeseCPCI405DT_config \ 971549826eaSstroeseCPCI405AB_config: unconfig 972dd794323SMatthias Fuchs @mkdir -p $(obj)board/esd/cpci405 973ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd 9747ebf7443Swdenk 9755deb8022SGeorg Schardtfx12mm_flash_config: unconfig 9765deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 9775deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 9785deb8022SGeorg Schardt @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 9795deb8022SGeorg Schardt > $(obj)board/avnet/fx12mm/config.tmp 9805deb8022SGeorg Schardt @echo "TEXT_BASE := 0xFFCB0000" \ 9815deb8022SGeorg Schardt >> $(obj)board/avnet/fx12mm/config.tmp 982a47a12beSStefan Roese @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 9835deb8022SGeorg Schardt 9845deb8022SGeorg Schardtfx12mm_config: unconfig 9855deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 9865deb8022SGeorg Schardt @mkdir -p $(obj)include $(obj)board/avnet/fx12mm 9875deb8022SGeorg Schardt @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 9885deb8022SGeorg Schardt > $(obj)board/avnet/fx12mm/config.tmp 9895deb8022SGeorg Schardt @echo "TEXT_BASE := 0x03000000" \ 9905deb8022SGeorg Schardt >> $(obj)board/avnet/fx12mm/config.tmp 991a47a12beSStefan Roese @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet 9925deb8022SGeorg Schardt 9934c188367SDirk Eibach# Compact-Center(codename intip) & DevCon-Center use different U-Boot images 9944c188367SDirk Eibachintip_config \ 9954c188367SDirk Eibachdevconcenter_config: unconfig 9964c188367SDirk Eibach @mkdir -p $(obj)include 9974c188367SDirk Eibach @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 9984c188367SDirk Eibach tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 999a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys 10004c188367SDirk Eibach 1001a6862bc1SWolfgang Denkhcu4_config \ 1002a6862bc1SWolfgang Denkhcu5_config \ 1003a6862bc1SWolfgang Denkmcu25_config: unconfig 1004a6862bc1SWolfgang Denk @mkdir -p $(obj)board/netstal/common 1005a6862bc1SWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal 1006a6862bc1SWolfgang Denk 1007353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1008353f2688SStefan Roesekilauea_config \ 1009353f2688SStefan Roesehaleakala_config: unconfig 1010ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc 1011566806caSStefan Roese 10123d6cb3b2SStefan Roesekilauea_nand_config \ 10133d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 10143d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 10153d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 10163d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 10173d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 10183d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 10190e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc 10203d6cb3b2SStefan Roese 1021f3e0de60SwdenkMIP405T_config: unconfig 1022f9328639SMarian Balakowicz @mkdir -p $(obj)include 1023f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1024ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1025a47a12beSStefan Roese @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl 1026f3e0de60Swdenk 102701a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig 1028880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 102901a00431SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1030880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1031880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ml507/config.tmp 1032880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 1033880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ml507/config.tmp 1034a47a12beSStefan Roese @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx 103501a00431SRicardo Ribalda Delgado 1036086511fcSRicardo Ribalda Delgadoml507_config: unconfig 1037880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 103801a00431SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ml507 1039880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1040880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ml507/config.tmp 1041880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 1042880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ml507/config.tmp 1043ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx 1044086511fcSRicardo Ribalda Delgado 10457ebf7443SwdenkOCRTC_config \ 10467ebf7443SwdenkORSG_config: unconfig 1047ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd 10487ebf7443Swdenk 1049281e00a3SwdenkPPChameleonEVB_config \ 1050e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1051e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1052e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1053e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1054e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1055e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1056f9328639SMarian Balakowicz @mkdir -p $(obj)include 10571d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 10580e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h 10591d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 10600e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h 10611d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 10620e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h 1063e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 10640e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h 1065e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 10660e42ada3SWolfgang Denk echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h 1067ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave 106812f34241Swdenk 1069430f1b0fSStefan Roesesequoia_config \ 1070854bc8daSStefan Roeserainier_config: unconfig 10718318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1072430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1073430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1074a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1075854bc8daSStefan Roese 1076430f1b0fSStefan Roesesequoia_nand_config \ 1077854bc8daSStefan Roeserainier_nand_config: unconfig 107863e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 107963e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 10808318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1081430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1082430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 10838318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 10848318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 10850e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1086652a10c0Swdenk 1087d873133fSStefan Roesesequoia_ramboot_config \ 1088d873133fSStefan Roeserainier_ramboot_config: unconfig 1089d873133fSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1090d873133fSStefan Roese @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h 1091d873133fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1092d873133fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1093d873133fSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1094d873133fSStefan Roese @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \ 1095d873133fSStefan Roese $(obj)board/amcc/sequoia/config.tmp 10960e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc 1097d873133fSStefan Roese 1098e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig 1099880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1100e07f4a80SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1101880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1102880f6a5dSRicardo Ribalda Delgado > $(obj)board/avnet/v5fx30teval/config.tmp 1103880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x03000000" \ 1104880f6a5dSRicardo Ribalda Delgado >> $(obj)board/avnet/v5fx30teval/config.tmp 1105ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet 1106e07f4a80SRicardo Ribalda Delgado 1107e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig 1108880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1109e07f4a80SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval 1110880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 11112bec498eSRicardo Ribalda Delgado > $(obj)board/avnet/v5fx30teval/config.tmp 1112880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFF1C0000" \ 11132bec498eSRicardo Ribalda Delgado >> $(obj)board/avnet/v5fx30teval/config.tmp 1114a47a12beSStefan Roese @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet 1115e07f4a80SRicardo Ribalda Delgado 11167ebf7443SwdenkW7OLMC_config \ 11177ebf7443SwdenkW7OLMG_config: unconfig 1118ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc ppc4xx w7o 11197ebf7443Swdenk 1120430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1121430f1b0fSStefan Roesewalnut_config \ 1122430f1b0fSStefan Roesesycamore_config: unconfig 1123ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc 11247ebf7443Swdenk 11251f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig 11261f4d5326SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 11271f4d5326SRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ 11281f4d5326SRicardo Ribalda Delgado > $(obj)board/xilinx/ppc405-generic/config.tmp 11291f4d5326SRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 11301f4d5326SRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc405-generic/config.tmp 1131a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 11321f4d5326SRicardo Ribalda Delgado 11331f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig 11341f4d5326SRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic 11351f4d5326SRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ 11361f4d5326SRicardo Ribalda Delgado > $(obj)board/xilinx/ppc405-generic/config.tmp 11371f4d5326SRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 11381f4d5326SRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc405-generic/config.tmp 1139a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx 11401f4d5326SRicardo Ribalda Delgado 1141e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig 1142880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1143880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ 1144880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ppc440-generic/config.tmp 1145880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0xFE360000" \ 1146880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc440-generic/config.tmp 1147a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1148e07f4a80SRicardo Ribalda Delgado 1149e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig 1150880f6a5dSRicardo Ribalda Delgado @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic 1151880f6a5dSRicardo Ribalda Delgado @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ 1152880f6a5dSRicardo Ribalda Delgado > $(obj)board/xilinx/ppc440-generic/config.tmp 1153880f6a5dSRicardo Ribalda Delgado @echo "TEXT_BASE := 0x04000000" \ 1154880f6a5dSRicardo Ribalda Delgado >> $(obj)board/xilinx/ppc440-generic/config.tmp 1155a47a12beSStefan Roese @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx 1156e07f4a80SRicardo Ribalda Delgado 1157430f1b0fSStefan Roeseyosemite_config \ 11588a316c9bSStefan Roeseyellowstone_config: unconfig 1159700200c6SStefan Roese @mkdir -p $(obj)include 1160430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1161430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1162a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc 11638a316c9bSStefan Roese 11647ebf7443Swdenk######################################################################### 11657ebf7443Swdenk## MPC824x Systems 11667ebf7443Swdenk######################################################################### 11673bac3513Swdenk 11688c994630SWolfgang DenkeXalion_config: unconfig 11698c994630SWolfgang Denk @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion 11707ebf7443Swdenk 11713bac3513SwdenkCPC45_config \ 11723bac3513SwdenkCPC45_ROMBOOT_config: unconfig 11730e42ada3SWolfgang Denk @mkdir -p $(obj)include ; \ 11743bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 11750e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 11763bac3513Swdenk else \ 11770e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 11783bac3513Swdenk fi; \ 11790e42ada3SWolfgang Denk echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1180ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45 11813bac3513Swdenk 118261525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 118361525f2fSGuennadi Liakhovetski# time permits. 118461525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \ 118561525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed 118661525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig 118761525f2fSGuennadi Liakhovetski @mkdir -p $(obj)include 118861525f2fSGuennadi Liakhovetski @case $@ in \ 118961525f2fSGuennadi Liakhovetski *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 119061525f2fSGuennadi Liakhovetski *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 119161525f2fSGuennadi Liakhovetski esac 1192a47a12beSStefan Roese @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation 119361525f2fSGuennadi Liakhovetski 11947ebf7443SwdenkSandpoint8240_config: unconfig 1195ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc824x sandpoint 11967ebf7443Swdenk 11977ebf7443SwdenkSandpoint8245_config: unconfig 1198ed7a196cSWolfgang Denk @$(MKCONFIG) $@ powerpc mpc824x sandpoint 11997ebf7443Swdenk 12007ebf7443Swdenk######################################################################### 12017ebf7443Swdenk## MPC8260 Systems 12027ebf7443Swdenk######################################################################### 12037ebf7443Swdenk 12047ebf7443Swdenkcogent_mpc8260_config: unconfig 12058c994630SWolfgang Denk @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent 12067ebf7443Swdenk 12077ebf7443SwdenkCPU86_config \ 12087ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 12090e42ada3SWolfgang Denk @mkdir -p $(obj)include ; \ 12107ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 12110e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 12127ebf7443Swdenk else \ 12130e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 12147ebf7443Swdenk fi; \ 12150e42ada3SWolfgang Denk echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1216ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86 12177ebf7443Swdenk 1218384cc687SwdenkCPU87_config \ 1219384cc687SwdenkCPU87_ROMBOOT_config: unconfig 12200e42ada3SWolfgang Denk @mkdir -p $(obj)include ; \ 1221384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 12220e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \ 1223384cc687Swdenk else \ 12240e42ada3SWolfgang Denk echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \ 1225384cc687Swdenk fi; \ 12260e42ada3SWolfgang Denk echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk; 1227ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87 1228384cc687Swdenk 1229f901a83bSWolfgang Denkep8248_config \ 1230f901a83bSWolfgang Denkep8248E_config : unconfig 12310e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248 1232f901a83bSWolfgang Denk 1233c3c7f861SwdenkISPAN_config \ 1234c3c7f861SwdenkISPAN_REVB_config: unconfig 1235f9328639SMarian Balakowicz @mkdir -p $(obj)include 1236c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 12376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \ 1238c3c7f861Swdenk fi 12390e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan 1240c3c7f861Swdenk 124104a85b3bSwdenkMPC8260ADS_config \ 1242901787d6SwdenkMPC8260ADS_lowboot_config \ 124304a85b3bSwdenkMPC8260ADS_33MHz_config \ 1244901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 124504a85b3bSwdenkMPC8260ADS_40MHz_config \ 1246901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 124704a85b3bSwdenkMPC8272ADS_config \ 1248901787d6SwdenkMPC8272ADS_lowboot_config \ 124904a85b3bSwdenkPQ2FADS_config \ 1250901787d6SwdenkPQ2FADS_lowboot_config \ 125104a85b3bSwdenkPQ2FADS-VR_config \ 1252901787d6SwdenkPQ2FADS-VR_lowboot_config \ 125304a85b3bSwdenkPQ2FADS-ZU_config \ 1254901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 125504a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1256901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 125704a85b3bSwdenk : unconfig 1258f9328639SMarian Balakowicz @mkdir -p $(obj)include 1259b7e24d28SJon Loeliger @mkdir -p $(obj)board/freescale/mpc8260ads 126004a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 12616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \ 12626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 126304a85b3bSwdenk $(if $(findstring MHz,$@), \ 1264f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 126504a85b3bSwdenk $(if $(findstring VR,$@), \ 1266f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1267901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 12680e42ada3SWolfgang Denk echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp 12690e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale 12707ebf7443Swdenk 1271adf22b66SHeiko Schochermuas3001_dev_config \ 1272adf22b66SHeiko Schochermuas3001_config : unconfig 1273adf22b66SHeiko Schocher @mkdir -p $(obj)include 1274adf22b66SHeiko Schocher @mkdir -p $(obj)board/muas3001 1275adf22b66SHeiko Schocher @if [ "$(findstring dev,$@)" ] ; then \ 1276adf22b66SHeiko Schocher echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \ 1277adf22b66SHeiko Schocher fi 12780e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001 1279adf22b66SHeiko Schocher 1280efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 128110f67017SwdenkPM825_config \ 1282efa329cbSwdenkPM825_ROMBOOT_config \ 1283efa329cbSwdenkPM825_BIGFLASH_config \ 1284efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 12857ebf7443SwdenkPM826_config \ 1286efa329cbSwdenkPM826_ROMBOOT_config \ 1287efa329cbSwdenkPM826_BIGFLASH_config \ 1288efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1289f9328639SMarian Balakowicz @mkdir -p $(obj)include 1290f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1291efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1292f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 12937ebf7443Swdenk else \ 1294f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1295efa329cbSwdenk fi 1296efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1297f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1298f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1299efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1300f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 13017ebf7443Swdenk fi; \ 1302efa329cbSwdenk else \ 1303efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1304ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1305f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1306f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1307efa329cbSwdenk else \ 1308f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1309efa329cbSwdenk fi; \ 1310efa329cbSwdenk fi 13110e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826 1312efa329cbSwdenk 1313efa329cbSwdenkPM828_config \ 1314efa329cbSwdenkPM828_PCI_config \ 1315efa329cbSwdenkPM828_ROMBOOT_config \ 1316efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1317f9328639SMarian Balakowicz @mkdir -p $(obj)include 1318f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 131917076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1320f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1321efa329cbSwdenk fi 1322efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1323f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1324f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1325efa329cbSwdenk fi 13260e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828 13277ebf7443Swdenk 13288b0bfc68SwdenkRattler8248_config \ 13298b0bfc68SwdenkRattler_config: unconfig 1330f9328639SMarian Balakowicz @mkdir -p $(obj)include 13318b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1332f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 13330e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler 13348b0bfc68Swdenk 133527b207fdSwdenkTQM8255_AA_config \ 133627b207fdSwdenkTQM8260_AA_config \ 133727b207fdSwdenkTQM8260_AB_config \ 133827b207fdSwdenkTQM8260_AC_config \ 133927b207fdSwdenkTQM8260_AD_config \ 134027b207fdSwdenkTQM8260_AE_config \ 134127b207fdSwdenkTQM8260_AF_config \ 134227b207fdSwdenkTQM8260_AG_config \ 134327b207fdSwdenkTQM8260_AH_config \ 13441f62bc2dSWolfgang DenkTQM8260_AI_config \ 134527b207fdSwdenkTQM8265_AA_config: unconfig 1346f9328639SMarian Balakowicz @mkdir -p $(obj)include 134727b207fdSwdenk @case "$@" in \ 134827b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 134927b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 135027b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 135127b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 135227b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 135327b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 135427b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 135527b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 135627b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 13571f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 135827b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 135927b207fdSwdenk esac; \ 136027b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1361f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 136227b207fdSwdenk fi; \ 1363f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 13641aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1365f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 13667ebf7443Swdenk else \ 1367f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 136827b207fdSwdenk fi; \ 13691aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1370f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 137127b207fdSwdenk else \ 1372f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 13737ebf7443Swdenk fi 13740e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc 13757ebf7443Swdenk 1376ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1377ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1378f9328639SMarian Balakowicz @mkdir -p $(obj)include 1379f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 13800e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk 1381ba91e26aSwdenk 13824e5ca3ebSwdenk######################################################################### 13834e5ca3ebSwdenk## Coldfire 13844e5ca3ebSwdenk######################################################################### 13854e5ca3ebSwdenk 13869d79e575SWolfgang Wegnerastro_mcf5373l_config \ 13879d79e575SWolfgang Wegnerastro_mcf5373l_RAM_config : unconfig 1388ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro 13899d79e575SWolfgang Wegner 1390a21d0c2cSTsiChung LiewM52277EVB_config \ 1391a21d0c2cSTsiChung LiewM52277EVB_spansion_config \ 1392a21d0c2cSTsiChung LiewM52277EVB_stmicro_config : unconfig 1393a21d0c2cSTsiChung Liew @case "$@" in \ 1394a21d0c2cSTsiChung Liew M52277EVB_config) FLASH=SPANSION;; \ 1395a21d0c2cSTsiChung Liew M52277EVB_spansion_config) FLASH=SPANSION;; \ 1396a21d0c2cSTsiChung Liew M52277EVB_stmicro_config) FLASH=STMICRO;; \ 1397a21d0c2cSTsiChung Liew esac; \ 1398a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "SPANSION" ] ; then \ 1399a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ 1400a21d0c2cSTsiChung Liew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 1401a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ 1402a21d0c2cSTsiChung Liew fi; \ 1403a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 1404a21d0c2cSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 1405a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 1406a21d0c2cSTsiChung Liew echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 1407a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ 1408a21d0c2cSTsiChung Liew fi 14090e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale 14101552af70STsiChungLiew 14114a442d31STsiChungLiewM5235EVB_config \ 14124a442d31STsiChungLiewM5235EVB_Flash16_config \ 14134a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 14144a442d31STsiChungLiew @case "$@" in \ 14154a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 14164a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 14174a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 14184a442d31STsiChungLiew esac; \ 14194a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1420ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 14214a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 14224a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 14234a442d31STsiChungLiew else \ 14244a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 14254a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 14264a442d31STsiChungLiew fi 14270e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale 14284a442d31STsiChungLiew 14297481266eSWolfgang Denkcobra5272_config : unconfig 1430ed7a196cSWolfgang Denk @$(MKCONFIG) $@ m68k mcf52x2 cobra5272 14317481266eSWolfgang Denk 14324176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1433f9328639SMarian Balakowicz @mkdir -p $(obj)include 1434f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1435f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 14360e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 14374176c799SWolfgang Denk 14384176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1439f9328639SMarian Balakowicz @mkdir -p $(obj)include 1440f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1441f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 14420e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 14434176c799SWolfgang Denk 14448e585f02STsiChung LiewM5329AFEE_config \ 14458e585f02STsiChung LiewM5329BFEE_config : unconfig 14468e585f02STsiChung Liew @case "$@" in \ 14478e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 14488e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 14498e585f02STsiChung Liew esac; \ 14508e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1451ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 14528e585f02STsiChung Liew fi 14530e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale 14548e585f02STsiChung Liew 1455aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1456aa5f1f9dSTsiChungLiew @case "$@" in \ 1457aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1458aa5f1f9dSTsiChungLiew esac; \ 1459aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1460aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1461aa5f1f9dSTsiChungLiew fi 1462aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1463aa5f1f9dSTsiChungLiew 146405316f8eSTsiChung LiewM54451EVB_config \ 146505316f8eSTsiChung LiewM54451EVB_stmicro_config : unconfig 146605316f8eSTsiChung Liew @case "$@" in \ 1467709b384bSTsiChung Liew M54451EVB_config) FLASH=NOR;; \ 146805316f8eSTsiChung Liew M54451EVB_stmicro_config) FLASH=STMICRO;; \ 146905316f8eSTsiChung Liew esac; \ 1470709b384bSTsiChung Liew if [ "$${FLASH}" = "NOR" ] ; then \ 147105316f8eSTsiChung Liew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 147205316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ 147305316f8eSTsiChung Liew fi; \ 147405316f8eSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 147505316f8eSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 14766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 147705316f8eSTsiChung Liew echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 147805316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ 147905316f8eSTsiChung Liew fi; \ 14806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; 14810e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale 148205316f8eSTsiChung Liew 14838ae158cdSTsiChungLiewM54455EVB_config \ 14848ae158cdSTsiChungLiewM54455EVB_atmel_config \ 14858ae158cdSTsiChungLiewM54455EVB_intel_config \ 14868ae158cdSTsiChungLiewM54455EVB_a33_config \ 14878ae158cdSTsiChungLiewM54455EVB_a66_config \ 14888ae158cdSTsiChungLiewM54455EVB_i33_config \ 14899f751551STsiChung LiewM54455EVB_i66_config \ 14909f751551STsiChung LiewM54455EVB_stm33_config : unconfig 14918ae158cdSTsiChungLiew @case "$@" in \ 14928ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 14938ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 14948ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 14958ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 14968ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 14978ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 14988ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 14999f751551STsiChung Liew M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ 15008ae158cdSTsiChungLiew esac; \ 15011aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 15026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ 1503e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1504e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 15059f751551STsiChung Liew fi; \ 15069f751551STsiChung Liew if [ "$${FLASH}" = "ATMEL" ] ; then \ 15076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1508e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1509e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 15108ae158cdSTsiChungLiew fi; \ 15119f751551STsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 15129f751551STsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 15136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 15149f751551STsiChung Liew echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 15159f751551STsiChung Liew cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 15169f751551STsiChung Liew fi; \ 15176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 15180e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale 15198ae158cdSTsiChungLiew 152057a12720STsiChungLiewM5475AFE_config \ 152157a12720STsiChungLiewM5475BFE_config \ 152257a12720STsiChungLiewM5475CFE_config \ 152357a12720STsiChungLiewM5475DFE_config \ 152457a12720STsiChungLiewM5475EFE_config \ 152557a12720STsiChungLiewM5475FFE_config \ 152657a12720STsiChungLiewM5475GFE_config : unconfig 152757a12720STsiChungLiew @case "$@" in \ 152857a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 152957a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 153057a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 153157a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 153257a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 153357a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 153457a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 153557a12720STsiChungLiew esac; \ 15366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ 15376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 15386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 153957a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 15406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 154157a12720STsiChungLiew fi; \ 154257a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 15436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 154457a12720STsiChungLiew fi; \ 154557a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 15466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 154757a12720STsiChungLiew fi; \ 154857a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 15496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 155057a12720STsiChungLiew fi 15510e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale 155257a12720STsiChungLiew 155357a12720STsiChungLiewM5485AFE_config \ 155457a12720STsiChungLiewM5485BFE_config \ 155557a12720STsiChungLiewM5485CFE_config \ 155657a12720STsiChungLiewM5485DFE_config \ 155757a12720STsiChungLiewM5485EFE_config \ 155857a12720STsiChungLiewM5485FFE_config \ 155957a12720STsiChungLiewM5485GFE_config \ 156057a12720STsiChungLiewM5485HFE_config : unconfig 156157a12720STsiChungLiew @case "$@" in \ 156257a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 156357a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 156457a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 156557a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 156657a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 156757a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 156857a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 15694d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 157057a12720STsiChungLiew esac; \ 15716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ 15726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 15736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 157457a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 15756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 157657a12720STsiChungLiew fi; \ 157757a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 15786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 157957a12720STsiChungLiew fi; \ 158057a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 15816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 158257a12720STsiChungLiew fi; \ 158357a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 15846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 158557a12720STsiChungLiew fi 15860e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale 158757a12720STsiChungLiew 15887ebf7443Swdenk######################################################################### 1589f046ccd1SEran Liberty## MPC83xx Systems 1590f046ccd1SEran Liberty######################################################################### 1591f046ccd1SEran Liberty 15925c5d3242SKim PhillipsMPC8313ERDB_33_config \ 1593e4c09508SScott WoodMPC8313ERDB_66_config \ 1594e4c09508SScott WoodMPC8313ERDB_NAND_33_config \ 1595e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig 1596cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1597e4c09508SScott Wood @mkdir -p $(obj)board/freescale/mpc8313erdb 1598c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 15996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \ 16005c5d3242SKim Phillips fi ; \ 16015c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 16026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \ 1603e4c09508SScott Wood fi ; \ 1604e4c09508SScott Wood if [ "$(findstring _NAND_,$@)" ] ; then \ 1605f4e55a49SKim Phillips echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \ 1606e4c09508SScott Wood echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \ 16075c5d3242SKim Phillips fi ; 160864ac1eb5SNick Spence @if [ "$(findstring _NAND_,$@)" ] ; then \ 160964ac1eb5SNick Spence echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \ 161064ac1eb5SNick Spence fi ; 16110e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale 16125c5d3242SKim Phillips 16132e95004dSAnton VorontsovMPC8315ERDB_NAND_config \ 16148bd522ceSDave LiuMPC8315ERDB_config: unconfig 1615ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale 16168bd522ceSDave Liu 16174decd84eSKim PhillipsMPC832XEMDS_config \ 16184decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 16194decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1620281df457STony LiMPC832XEMDS_SLAVE_config \ 1621281df457STony LiMPC832XEMDS_ATM_config: unconfig 1622cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1623c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 1624cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 16254decd84eSKim Phillips fi ; \ 16264decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1627cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1628cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 16294decd84eSKim Phillips fi ; \ 16304decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 1631cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1632281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 16334decd84eSKim Phillips fi ; \ 16344decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1635cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1636281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1637281df457STony Li fi ; \ 1638281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1639281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1640281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 16414decd84eSKim Phillips fi ; 16420e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale 1643e6f2e902SMarian Balakowicz 16447a78f148STimur TabiMPC8349ITX_config \ 16457a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 16467a78f148STimur TabiMPC8349ITXGP_config: unconfig 16477a78f148STimur Tabi @mkdir -p $(obj)include 1648e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 16497a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 16507a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 1651e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 16527a78f148STimur Tabi fi 16537a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 1654e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 16557a78f148STimur Tabi fi 16560e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale 16574decd84eSKim Phillips 16585f820439SDave LiuMPC8360EMDS_config \ 16595f820439SDave LiuMPC8360EMDS_HOST_33_config \ 16605f820439SDave LiuMPC8360EMDS_HOST_66_config \ 1661281df457STony LiMPC8360EMDS_SLAVE_config \ 1662281df457STony LiMPC8360EMDS_ATM_config: unconfig 1663cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1664c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 1665cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 16665f820439SDave Liu fi ; \ 16675f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1668cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1669cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 16705f820439SDave Liu fi ; \ 16715f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 1672cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1673281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 16745f820439SDave Liu fi ; \ 16755f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 1676cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1677281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1678281df457STony Li fi ; \ 1679281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1680281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1681281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 16825f820439SDave Liu fi ; 16830e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale 16845f820439SDave Liu 1685fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 1686fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 168791c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 1688fab6f556SAnton Vorontsov @mkdir -p $(obj)include 1689c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 1690fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 1691fab6f556SAnton Vorontsov fi ; 16920e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale 1693fab6f556SAnton Vorontsov 169419580e66SDave LiuMPC837XEMDS_config \ 169519580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 169619580e66SDave Liu @mkdir -p $(obj)include 1697c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 169819580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 169919580e66SDave Liu fi ; 17000e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale 170119580e66SDave Liu 1702c0d660fbSPaul Gortmakersbc8349_config \ 1703c0d660fbSPaul Gortmakersbc8349_PCI_33_config \ 1704c0d660fbSPaul Gortmakersbc8349_PCI_66_config: unconfig 1705ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349 170691e25769SPaul Gortmaker 17075bb907a4SRon MadridSIMPC8313_LP_config \ 17085bb907a4SRon MadridSIMPC8313_SP_config: unconfig 17095bb907a4SRon Madrid @mkdir -p $(obj)include 17105bb907a4SRon Madrid @mkdir -p $(obj)board/sheldon/simpc8313 17115bb907a4SRon Madrid @if [ "$(findstring _LP_,$@)" ] ; then \ 17125bb907a4SRon Madrid echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \ 17135bb907a4SRon Madrid fi ; \ 17145bb907a4SRon Madrid if [ "$(findstring _SP_,$@)" ] ; then \ 17155bb907a4SRon Madrid echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \ 17165bb907a4SRon Madrid fi ; 17175bb907a4SRon Madrid @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 17180e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon 17195bb907a4SRon Madrid 17201dee9be6SReinhard Arltcaddy2_config \ 1721c2e49f70SReinhard Arltvme8349_config: unconfig 1722ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd 17232ad6b513STimur Tabi 1724f046ccd1SEran Liberty######################################################################### 172542d1f039Swdenk## MPC85xx Systems 172642d1f039Swdenk######################################################################### 172742d1f039Swdenk 17289a1a0aedSMingkai HuMPC8536DS_NAND_config \ 1729e40ac487SMingkai HuMPC8536DS_SDCARD_config \ 1730e40ac487SMingkai HuMPC8536DS_SPIFLASH_config \ 1731337f9fdeSKumar GalaMPC8536DS_36BIT_config \ 17329490a7f1SKumar GalaMPC8536DS_config: unconfig 1733ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale 17349490a7f1SKumar Gala 1735b0e32949SLunsheng WangMPC8540EVAL_config \ 1736b0e32949SLunsheng WangMPC8540EVAL_33_config \ 1737b0e32949SLunsheng WangMPC8540EVAL_66_config \ 1738b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 1739b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 1740f9328639SMarian Balakowicz @mkdir -p $(obj)include 17410e42ada3SWolfgang Denk @if [ -z "$(findstring _33_,$@)" ] ; then \ 1742f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 1743b0e32949SLunsheng Wang fi ; \ 1744b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 1745f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 1746b0e32949SLunsheng Wang fi 17470e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval 1748b0e32949SLunsheng Wang 17497f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 175003f5c550SwdenkMPC8541CDS_config: unconfig 17517f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1752c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 17537f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 17547f3f2bd2SRandy Vinson fi 17550e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale 175603f5c550Swdenk 17577f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 1758d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 17597f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1760c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 17617f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 17627f3f2bd2SRandy Vinson fi 17630e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale 1764d9b94f28SJon Loeliger 17657f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 176603f5c550SwdenkMPC8555CDS_config: unconfig 17677f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1768c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 17697f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 17707f3f2bd2SRandy Vinson fi 17710e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale 17727abf0c58Swdenk 1773c95d541eSLiu YuMPC8569MDS_ATM_config \ 1774674ef7bdSLiu YuMPC8569MDS_NAND_config \ 1775765547dcSHaiying WangMPC8569MDS_config: unconfig 1776ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale 1777765547dcSHaiying Wang 177818af1c5fSKumar GalaMPC8572DS_36BIT_config \ 1779129ba616SKumar GalaMPC8572DS_config: unconfig 1780ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale 1781129ba616SKumar Gala 1782feb7838fSSrikanth SrinivasanP2020DS_36BIT_config \ 1783feb7838fSSrikanth SrinivasanP2020DS_config: unconfig 1784ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale 1785feb7838fSSrikanth Srinivasan 178662ca21c4SKumar GalaP1011RDB_config \ 1787f7780ec9SDipen DudhatP1011RDB_NAND_config \ 1788fad15096SDipen DudhatP1011RDB_SDCARD_config \ 1789fad15096SDipen DudhatP1011RDB_SPIFLASH_config \ 179062ca21c4SKumar GalaP1020RDB_config \ 1791f7780ec9SDipen DudhatP1020RDB_NAND_config \ 1792fad15096SDipen DudhatP1020RDB_SDCARD_config \ 1793fad15096SDipen DudhatP1020RDB_SPIFLASH_config \ 179462ca21c4SKumar GalaP2010RDB_config \ 1795f7780ec9SDipen DudhatP2010RDB_NAND_config \ 1796fad15096SDipen DudhatP2010RDB_SDCARD_config \ 1797fad15096SDipen DudhatP2010RDB_SPIFLASH_config \ 1798394c46caSyorkP2020DS_DDR2_config \ 1799f7780ec9SDipen DudhatP2020RDB_config \ 1800fad15096SDipen DudhatP2020RDB_NAND_config \ 1801fad15096SDipen DudhatP2020RDB_SDCARD_config \ 1802fad15096SDipen DudhatP2020RDB_SPIFLASH_config: unconfig 1803ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale 1804728ece34SPoonam Aggrwal 1805c15f3120Swdenksbc8540_config \ 1806c15f3120Swdenksbc8540_33_config \ 1807c15f3120Swdenksbc8540_66_config: unconfig 1808ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560 1809c15f3120Swdenk 18102738bc8dSPaul Gortmakersbc8548_config \ 18112738bc8dSPaul Gortmakersbc8548_PCI_33_config \ 18122738bc8dSPaul Gortmakersbc8548_PCI_66_config \ 18132738bc8dSPaul Gortmakersbc8548_PCI_33_PCIE_config \ 18142738bc8dSPaul Gortmakersbc8548_PCI_66_PCIE_config: unconfig 1815ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548 181611c45ebdSJoe Hamman 1817466b7410Swdenksbc8560_config \ 1818466b7410Swdenksbc8560_33_config \ 1819466b7410Swdenksbc8560_66_config: unconfig 1820ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560 18218b07a110Swdenk 1822ee152983SWolfgang Denkstxssa_config \ 1823ee152983SWolfgang Denkstxssa_4M_config: unconfig 1824ee152983SWolfgang Denk @mkdir -p $(obj)include 1825ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 1826ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 1827ee152983SWolfgang Denk fi 18280e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx 182935171dc0SDan Malek 1830d96f41e0SStefan RoeseTQM8540_config \ 1831d96f41e0SStefan RoeseTQM8541_config \ 18321287e0c5SWolfgang GrandeggerTQM8548_config \ 1833a865bcdaSWolfgang GrandeggerTQM8548_AG_config \ 1834ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config \ 1835d96f41e0SStefan RoeseTQM8555_config \ 1836f5c5ef4aSwdenkTQM8560_config: unconfig 1837f9328639SMarian Balakowicz @mkdir -p $(obj)include 1838ad7ee5d4SWolfgang Grandegger @BTYPE=$(@:_config=); \ 1839a865bcdaSWolfgang Grandegger CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \ 1840f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 1841ad7ee5d4SWolfgang Grandegger echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \ 1842f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 1843ad7ee5d4SWolfgang Grandegger echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h; 1844ad7ee5d4SWolfgang Grandegger @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk; 18450e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc 1846f5c5ef4aSwdenk 184742d1f039Swdenk######################################################################### 1848debb7354SJon Loeliger## MPC86xx Systems 1849debb7354SJon Loeliger######################################################################### 1850debb7354SJon Loeliger 18518db0400aSBecky BruceMPC8641HPCN_36BIT_config \ 1852debb7354SJon LoeligerMPC8641HPCN_config: unconfig 18538db0400aSBecky Bruce @mkdir -p $(obj)include 18548db0400aSBecky Bruce @if [ "$(findstring _36BIT_,$@)" ] ; then \ 18558db0400aSBecky Bruce echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ 18568db0400aSBecky Bruce fi 18570e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale 1858debb7354SJon Loeliger 1859debb7354SJon Loeliger######################################################################### 18607ebf7443Swdenk## 74xx/7xx Systems 18617ebf7443Swdenk######################################################################### 18627ebf7443Swdenk 18637ebf7443SwdenkEVB64260_config \ 18647ebf7443SwdenkEVB64260_750CX_config: unconfig 18650e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260 18667ebf7443Swdenk 18671eac2a71SStefan Roesep3m750_config \ 18681eac2a71SStefan Roesep3m7448_config: unconfig 18691eac2a71SStefan Roese @mkdir -p $(obj)include 18701eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 18711eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 18721eac2a71SStefan Roese else \ 18731eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 18741eac2a71SStefan Roese fi 18750e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive 18761eac2a71SStefan Roese 18777ebf7443SwdenkPCIPPC2_config \ 18787ebf7443SwdenkPCIPPC6_config: unconfig 1879ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2 18807ebf7443Swdenk 18817ebf7443Swdenk#======================================================================== 18827ebf7443Swdenk# ARM 18837ebf7443Swdenk#======================================================================== 188443a5f0dfSPo-Yu Chuang 1885a4b46ed6SUlf Samuelsson######################################################################### 1886a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems 1887a4b46ed6SUlf Samuelsson######################################################################### 188820b197c6SStelian Pop 1889d8380c9dSTom RixCPUAT91_RAM_config \ 1890d8380c9dSTom RixCPUAT91_config : unconfig 1891d8380c9dSTom Rix @mkdir -p $(obj)include 1892d8380c9dSTom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 1893af4b8b4bSEric Bénard @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91 1894d8380c9dSTom Rix 1895a4b46ed6SUlf Samuelsson######################################################################### 189634be1065SMatthias Weisser## ARM926EJ-S Systems 1897a4b46ed6SUlf Samuelsson######################################################################### 1898a4b46ed6SUlf Samuelsson 189989a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \ 190089a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \ 190189a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \ 1902df486b1fSNicolas Ferreat91sam9260ek_config \ 1903df486b1fSNicolas Ferreat91sam9g20ek_nandflash_config \ 1904df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs0_config \ 1905df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs1_config \ 1906df486b1fSNicolas Ferreat91sam9g20ek_config : unconfig 1907e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 1908df486b1fSNicolas Ferre @if [ "$(findstring 9g20,$@)" ] ; then \ 1909df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \ 1910df486b1fSNicolas Ferre else \ 1911df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \ 1912df486b1fSNicolas Ferre fi; 191389a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 191489a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 191589a7a87fSNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 191689a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 191789a7a87fSNicolas Ferre else \ 191889a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 191989a7a87fSNicolas Ferre fi; 19200e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 1921a4b46ed6SUlf Samuelsson 19224e170b16SNicolas Ferreat91sam9xeek_nandflash_config \ 19234e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \ 19244e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \ 19254e170b16SNicolas Ferreat91sam9xeek_config : unconfig 19264e170b16SNicolas Ferre @mkdir -p $(obj)include 19274e170b16SNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 19284e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 19294e170b16SNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 19304e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 19314e170b16SNicolas Ferre else \ 19324e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 19334e170b16SNicolas Ferre fi; 19340e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 19354e170b16SNicolas Ferre 193689a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \ 193789a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \ 193889a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \ 19395ccc2d99SSedji Gaouaouat91sam9261ek_config \ 19405ccc2d99SSedji Gaouaouat91sam9g10ek_nandflash_config \ 19415ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs0_config \ 19425ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs3_config \ 19435ccc2d99SSedji Gaouaouat91sam9g10ek_config : unconfig 1944e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 19455ccc2d99SSedji Gaouaou @if [ "$(findstring 9g10,$@)" ] ; then \ 19465ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ 19475ccc2d99SSedji Gaouaou else \ 19485ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ 19495ccc2d99SSedji Gaouaou fi; 195089a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 195189a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 19525ccc2d99SSedji Gaouaou elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 195389a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ 195489a7a87fSNicolas Ferre else \ 195589a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 195689a7a87fSNicolas Ferre fi; 19570e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 195828962f5aSJean-Christophe PLAGNIOL-VILLARD 19591b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_config \ 19601b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_boot_config \ 196189a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \ 196289a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \ 196389a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \ 196428962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config : unconfig 1965e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 196689a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 196789a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 19681b3b7c64SJean-Christophe PLAGNIOL-VILLARD elif [ "$(findstring norflash,$@)" ] ; then \ 19691b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ 197089a7a87fSNicolas Ferre else \ 197189a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 197289a7a87fSNicolas Ferre fi; 19731b3b7c64SJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring norflash_boot,$@)" ] ; then \ 19741b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ 19751b3b7c64SJean-Christophe PLAGNIOL-VILLARD fi; 19760e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 197728962f5aSJean-Christophe PLAGNIOL-VILLARD 197889a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \ 197989a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \ 198089a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \ 198128962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config : unconfig 1982e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 198389a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 198489a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 198589a7a87fSNicolas Ferre else \ 198689a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 198789a7a87fSNicolas Ferre fi; 19880e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 198928962f5aSJean-Christophe PLAGNIOL-VILLARD 199023b80982STom RixCPU9G20_128M_config \ 199123b80982STom RixCPU9G20_config \ 199223b80982STom RixCPU9260_128M_config \ 199323b80982STom RixCPU9260_config : unconfig 199423b80982STom Rix @mkdir -p $(obj)include 199523b80982STom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 19960e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91 199723b80982STom Rix 199822ee6473SSedji Gaouaouat91sam9m10g45ek_nandflash_config \ 199922ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_config \ 200022ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_cs0_config \ 200122ee6473SSedji Gaouaouat91sam9m10g45ek_config \ 200222ee6473SSedji Gaouaouat91sam9g45ekes_nandflash_config \ 200322ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_config \ 200422ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_cs0_config \ 200522ee6473SSedji Gaouaouat91sam9g45ekes_config : unconfig 200622ee6473SSedji Gaouaou @mkdir -p $(obj)include 200722ee6473SSedji Gaouaou @if [ "$(findstring 9m10,$@)" ] ; then \ 200822ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ 200922ee6473SSedji Gaouaou else \ 201022ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ 201122ee6473SSedji Gaouaou fi; 201222ee6473SSedji Gaouaou @if [ "$(findstring _nandflash,$@)" ] ; then \ 201322ee6473SSedji Gaouaou echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 201422ee6473SSedji Gaouaou else \ 201522ee6473SSedji Gaouaou echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ 201622ee6473SSedji Gaouaou fi; 20170e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 201822ee6473SSedji Gaouaou 2019b5d289fcSAsen Dimovpm9g45_config : unconfig 2020b5d289fcSAsen Dimov @mkdir -p $(obj)include 2021b5d289fcSAsen Dimov @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91 2022b5d289fcSAsen Dimov 20239453967eSAlbin TonnerreSBC35_A9G20_NANDFLASH_config \ 20249453967eSAlbin TonnerreSBC35_A9G20_EEPROM_config \ 20259453967eSAlbin TonnerreSBC35_A9G20_config : unconfig 20269453967eSAlbin Tonnerre @mkdir -p $(obj)include 20279453967eSAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 20280e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91 20299453967eSAlbin Tonnerre 20302dc851e3SAlbin TonnerreTNY_A9G20_NANDFLASH_config \ 20312dc851e3SAlbin TonnerreTNY_A9G20_EEPROM_config \ 20322dc851e3SAlbin TonnerreTNY_A9G20_config \ 20332dc851e3SAlbin TonnerreTNY_A9260_NANDFLASH_config \ 20342dc851e3SAlbin TonnerreTNY_A9260_EEPROM_config \ 20352dc851e3SAlbin TonnerreTNY_A9260_config : unconfig 20362dc851e3SAlbin Tonnerre @mkdir -p $(obj)include 20372dc851e3SAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 20380e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91 20392dc851e3SAlbin Tonnerre 204074f4304eSWolfgang Denk######################################################################## 204187cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 204287cb6862SWolfgang Denkintegratorap_config \ 204387cb6862SWolfgang Denkap_config \ 204487cb6862SWolfgang Denkap966_config \ 204587cb6862SWolfgang Denkap922_config \ 204687cb6862SWolfgang Denkap922_XA10_config \ 204787cb6862SWolfgang Denkap7_config \ 204887cb6862SWolfgang Denkap720t_config \ 204987cb6862SWolfgang Denkap920t_config \ 205087cb6862SWolfgang Denkap926ejs_config \ 205187cb6862SWolfgang Denkap946es_config: unconfig 2052576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh ap $@ 20533d3befa7Swdenk 205487cb6862SWolfgang Denkintegratorcp_config \ 205587cb6862SWolfgang Denkcp_config \ 205687cb6862SWolfgang Denkcp920t_config \ 205787cb6862SWolfgang Denkcp926ejs_config \ 205887cb6862SWolfgang Denkcp946es_config \ 205987cb6862SWolfgang Denkcp1136_config \ 206087cb6862SWolfgang Denkcp966_config \ 206187cb6862SWolfgang Denkcp922_config \ 206287cb6862SWolfgang Denkcp922_XA10_config \ 206387cb6862SWolfgang Denkcp1026_config: unconfig 2064576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh cp $@ 206525d6712aSwdenk 2066ee1363f2SAlessandro Rubininhk8815_config \ 2067ee1363f2SAlessandro Rubininhk8815_onenand_config: unconfig 2068d5254f14SAlessandro Rubini @mkdir -p $(obj)include 2069d5254f14SAlessandro Rubini @ > $(obj)include/config.h 2070d5254f14SAlessandro Rubini @if [ "$(findstring _onenand, $@)" ] ; then \ 2071d5254f14SAlessandro Rubini echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \ 2072d5254f14SAlessandro Rubini fi 20730e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik 2074d5254f14SAlessandro Rubini 2075a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2076a4b46ed6SUlf Samuelsson 207763e73c9aSwdenkomap1610inn_config \ 207863e73c9aSwdenkomap1610inn_cs0boot_config \ 207963e73c9aSwdenkomap1610inn_cs3boot_config \ 20803ff02c27Swdenkomap1610inn_cs_autoboot_config \ 208163e73c9aSwdenkomap1610h2_config \ 208263e73c9aSwdenkomap1610h2_cs0boot_config \ 20833ff02c27Swdenkomap1610h2_cs3boot_config \ 20843ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2085f9328639SMarian Balakowicz @mkdir -p $(obj)include 208663e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2087cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 20883ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2089cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 209063e73c9aSwdenk else \ 2091cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 209263e73c9aSwdenk fi; 20930e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap 20946f21347dSwdenk 2095a56bd922Swdenkomap730p2_config \ 2096a56bd922Swdenkomap730p2_cs0boot_config \ 2097a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2098f9328639SMarian Balakowicz @mkdir -p $(obj)include 2099a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2100f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2101a56bd922Swdenk else \ 2102f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2103a56bd922Swdenk fi; 2104ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap 2105a56bd922Swdenk 2106080cfee7SVipin KUMARspear300_config \ 21077da69236SVipin KUMARspear310_config \ 21087da69236SVipin KUMARspear320_config : unconfig 2109ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear 21107e074158SVipin KUMAR 2111566c9c16SVipin KUMARspear600_config : unconfig 2112ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear 2113566c9c16SVipin KUMAR 211447fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \ 21152d24a3a7SwdenkSX1_config: unconfig 211647fd3bffSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 211747fd3bffSJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ 211847fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 211947fd3bffSJean-Christophe PLAGNIOL-VILLARD else \ 212047fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 212147fd3bffSJean-Christophe PLAGNIOL-VILLARD fi; 21220e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ SX1 arm arm925t sx1 21232d24a3a7Swdenk 2124b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 212543d9616cSwdenktrab_config \ 2126b0639ca3Swdenktrab_bigram_config \ 2127b0639ca3Swdenktrab_bigflash_config \ 2128f54ebdfaSwdenktrab_old_config: unconfig 2129f9328639SMarian Balakowicz @mkdir -p $(obj)include 2130f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2131b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2132f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2133f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2134b0639ca3Swdenk } 2135b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2136f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2137f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2138f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2139b0639ca3Swdenk } 2140f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2141f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2142f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2143f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 214443d9616cSwdenk } 2145a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0 21467ebf7443Swdenk 21476895d451SJohn Rigbytx25_config : unconfig 21486895d451SJohn Rigby @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 2149ed7a196cSWolfgang Denk @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25 21506895d451SJohn Rigby 2151a6862bc1SWolfgang Denkedb9301_config \ 2152a6862bc1SWolfgang Denkedb9302_config \ 2153a6862bc1SWolfgang Denkedb9302a_config \ 2154a6862bc1SWolfgang Denkedb9307_config \ 2155a6862bc1SWolfgang Denkedb9307a_config \ 2156a6862bc1SWolfgang Denkedb9312_config \ 2157a6862bc1SWolfgang Denkedb9315_config \ 2158a6862bc1SWolfgang Denkedb9315a_config: unconfig 2159a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx 2160a6862bc1SWolfgang Denk 2161699f0512SWolfgang Denk######################################################################### 216287cb6862SWolfgang Denk# ARM supplied Versatile development boards 2163699f0512SWolfgang Denk######################################################################### 2164699f0512SWolfgang Denk 216587cb6862SWolfgang Denkversatile_config \ 216687cb6862SWolfgang Denkversatileab_config \ 216787cb6862SWolfgang Denkversatilepb_config : unconfig 2168e4943ec5SJean-Christophe PLAGNIOL-VILLARD @board/armltd/versatile/split_by_variant.sh $@ 2169074cff0dSwdenk 2170074cff0dSwdenk######################################################################### 217143d9616cSwdenk## XScale Systems 21727ebf7443Swdenk######################################################################### 21737ebf7443Swdenk 21749d8d5a5bSStefan Roesepdnb3_config \ 21759d8d5a5bSStefan Roesescpu_config: unconfig 2176cdd917a4SWolfgang Denk @mkdir -p $(obj)include 21779d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2178cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 21799d8d5a5bSStefan Roese fi 21800e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive 2181ba94a1bbSWolfgang Denk 2182040f8f63SStefano Babicpolaris_config \ 21835e5803e1Sstefano babictrizepsiv_config : unconfig 2184040f8f63SStefano Babic @mkdir -p $(obj)include 2185040f8f63SStefano Babic @if [ "$(findstring polaris,$@)" ] ; then \ 2186040f8f63SStefano Babic echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \ 2187040f8f63SStefano Babic fi; 21880e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv 21895e5803e1Sstefano babic 219018a00dfdSMarek Vasutvpac270_nor_config \ 219118a00dfdSMarek Vasutvpac270_onenand_config : unconfig 219218a00dfdSMarek Vasut @mkdir -p $(obj)include 219318a00dfdSMarek Vasut @if [ "$(findstring onenand,$@)" ] ; then \ 219418a00dfdSMarek Vasut echo "#define CONFIG_ONENAND_U_BOOT" \ 219518a00dfdSMarek Vasut >>$(obj)include/config.h ; \ 219618a00dfdSMarek Vasut fi; 219718a00dfdSMarek Vasut @$(MKCONFIG) -n $@ -a vpac270 arm pxa vpac270 219818a00dfdSMarek Vasut 21998ed96046Swdenk######################################################################### 22008ed96046Swdenk## ARM1136 Systems 22018ed96046Swdenk######################################################################### 22025ca9881aSPeter Pearse 22035ca9881aSPeter Pearseapollon_config : unconfig 22048cbf4e4fSWolfgang Denk @mkdir -p $(obj)include 2205751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 2206751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 2207a6862bc1SWolfgang Denk @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx 22088ed96046Swdenk 2209a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \ 22105ad86216SSascha Hauerimx31_phycore_config : unconfig 221169c5bf29SGuennadi Liakhovetski @mkdir -p $(obj)include 2212a2bb7105SGuennadi Liakhovetski @if [ -n "$(findstring _eet_,$@)" ]; then \ 2213a2bb7105SGuennadi Liakhovetski echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ 2214a2bb7105SGuennadi Liakhovetski fi 2215a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31 22165ad86216SSascha Hauer 2217d08e5ca3SMagnus Liljamx31pdk_config \ 2218d08e5ca3SMagnus Liljamx31pdk_nand_config : unconfig 2219d08e5ca3SMagnus Lilja @mkdir -p $(obj)include 2220d08e5ca3SMagnus Lilja @if [ -n "$(findstring _nand_,$@)" ]; then \ 2221d08e5ca3SMagnus Lilja echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ 2222d08e5ca3SMagnus Lilja else \ 2223d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ 2224d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \ 2225d08e5ca3SMagnus Lilja fi 22260e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31 22278449f287SMagnus Lilja 222811edcfe2SGuennadi Liakhovetski######################################################################### 222911edcfe2SGuennadi Liakhovetski## ARM1176 Systems 223011edcfe2SGuennadi Liakhovetski######################################################################### 223111edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config \ 223211edcfe2SGuennadi Liakhovetskismdk6400_config : unconfig 223311edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 223411edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 223511edcfe2SGuennadi Liakhovetski @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 22360e42ada3SWolfgang Denk @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 223711edcfe2SGuennadi Liakhovetski @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ 223811edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 223911edcfe2SGuennadi Liakhovetski else \ 224011edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 224111edcfe2SGuennadi Liakhovetski fi 224254e19a7dSWolfgang Denk @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx 224311edcfe2SGuennadi Liakhovetski @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 224411edcfe2SGuennadi Liakhovetski 22452262cfeeSwdenk#======================================================================== 224643d9616cSwdenk# MIPS 224743d9616cSwdenk#======================================================================== 22487ebf7443Swdenk######################################################################### 224943d9616cSwdenk## MIPS32 4Kc 225043d9616cSwdenk######################################################################### 225143d9616cSwdenk 2252e0ac62d7Swdenkincaip_100MHz_config \ 2253e0ac62d7Swdenkincaip_133MHz_config \ 2254e0ac62d7Swdenkincaip_150MHz_config \ 225543d9616cSwdenkincaip_config: unconfig 2256f9328639SMarian Balakowicz @mkdir -p $(obj)include 2257e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 22580e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h 2259e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 22600e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h 2261e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 22620e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h 22630e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a incaip mips mips incaip 2264e0ac62d7Swdenk 22652a61eff6SStefan Roesevct_premium_config \ 22662a61eff6SStefan Roesevct_premium_small_config \ 22672a61eff6SStefan Roesevct_premium_onenand_config \ 22682a61eff6SStefan Roesevct_premium_onenand_small_config \ 22692a61eff6SStefan Roesevct_platinum_config \ 22702a61eff6SStefan Roesevct_platinum_small_config \ 22712a61eff6SStefan Roesevct_platinum_onenand_config \ 22722a61eff6SStefan Roesevct_platinum_onenand_small_config \ 22732a61eff6SStefan Roesevct_platinumavc_config \ 22742a61eff6SStefan Roesevct_platinumavc_small_config \ 22752a61eff6SStefan Roesevct_platinumavc_onenand_config \ 22762a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig 22772a61eff6SStefan Roese @mkdir -p $(obj)include 22780e42ada3SWolfgang Denk @[ -z "$(findstring _premium,$@)" ] || \ 22790e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h 22800e42ada3SWolfgang Denk @[ -z "$(findstring _platinum_,$@)" ] || \ 22810e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h 22820e42ada3SWolfgang Denk @[ -z "$(findstring _platinumavc,$@)" ] || \ 22830e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h 22840e42ada3SWolfgang Denk @[ -z "$(findstring _onenand,$@)" ] || \ 22850e42ada3SWolfgang Denk echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h 22860e42ada3SWolfgang Denk @[ -z "$(findstring _small,$@)" ] || \ 22870e42ada3SWolfgang Denk echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h 22880e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a vct mips mips vct micronas 22892a61eff6SStefan Roese 2290e0ac62d7Swdenk######################################################################### 229169459791Swdenk## MIPS32 AU1X00 229269459791Swdenk######################################################################### 2293699f0512SWolfgang Denk 229469459791Swdenkdbau1000_config : unconfig 2295f9328639SMarian Balakowicz @mkdir -p $(obj)include 2296210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2297f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 229869459791Swdenk 229969459791Swdenkdbau1100_config : unconfig 2300f9328639SMarian Balakowicz @mkdir -p $(obj)include 2301210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2302f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 230369459791Swdenk 230469459791Swdenkdbau1500_config : unconfig 2305f9328639SMarian Balakowicz @mkdir -p $(obj)include 2306210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2307f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 230869459791Swdenk 2309ff36fd85Swdenkdbau1550_config : unconfig 2310f9328639SMarian Balakowicz @mkdir -p $(obj)include 2311210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2312f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2313ff36fd85Swdenk 2314ff36fd85Swdenkdbau1550_el_config : unconfig 2315f9328639SMarian Balakowicz @mkdir -p $(obj)include 2316210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2317f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2318ff36fd85Swdenk 23198a773983SShinya Kuribayashigth2_config : unconfig 23208a773983SShinya Kuribayashi @mkdir -p $(obj)include 23218a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 2322ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ mips mips gth2 23238a773983SShinya Kuribayashi 2324699f0512SWolfgang Denkpb1000_config : unconfig 2325699f0512SWolfgang Denk @mkdir -p $(obj)include 2326699f0512SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2327699f0512SWolfgang Denk @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2328699f0512SWolfgang Denk 23290764c164SVlad Lunguqemu_mips_config : unconfig 23300764c164SVlad Lungu @mkdir -p $(obj)include 2331210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 23320764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 23330764c164SVlad Lungu 23344a551709Swdenk#======================================================================== 23354a551709Swdenk# Nios 23364a551709Swdenk#======================================================================== 23374a551709Swdenk 23385c952cf0Swdenk######################################################################### 23395c952cf0Swdenk## Nios-II 23405c952cf0Swdenk######################################################################### 23415c952cf0Swdenk 23428cbb0dddSThomas Chou# nios2 generic boards 23438cbb0dddSThomas ChouNIOS2_GENERIC = nios2-generic 23448cbb0dddSThomas Chou 23458cbb0dddSThomas Chou$(NIOS2_GENERIC:%=%_config) : unconfig 2346ed7a196cSWolfgang Denk @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera 23478cbb0dddSThomas Chou 2348507bbe3eSwdenk#======================================================================== 234960fa72d6SMike Frysinger# Blackfin 235060fa72d6SMike Frysinger#======================================================================== 23510afe519aSWolfgang Denk 235210eafa10SMichael Hennerichbf527-ezkit-v2_config : unconfig 235310eafa10SMichael Hennerich @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \ 235410eafa10SMichael Hennerich bf527-ezkit blackfin blackfin bf527-ezkit 235510eafa10SMichael Hennerich 23565e3b0bc1SHaavard Skinnemoen#======================================================================== 2357699f0512SWolfgang Denk# SH3 (SuperH) 2358699f0512SWolfgang Denk#======================================================================== 23597ebf7443Swdenk 236069df3c4dSNobuhiro Iwamatsu######################################################################### 2361c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH) 2362c655fad0SNobuhiro Iwamatsu######################################################################### 2363c655fad0SNobuhiro Iwamatsursk7203_config: unconfig 2364a5b04d00SKieran Bingham @mkdir -p $(obj)include 23654d41650eSPeter Griffin @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h 2366ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas 2367c655fad0SNobuhiro Iwamatsu 2368c655fad0SNobuhiro Iwamatsu######################################################################### 2369b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2370b2b5e2bbSYoshihiro Shimoda######################################################################### 2371699f0512SWolfgang Denk 23723313e0e2SMark Jonasmpr2_config: unconfig 23733ab4827cSWolfgang Denk @mkdir -p $(obj)include 23743ab4827cSWolfgang Denk @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h 2375ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh3 mpr2 23763313e0e2SMark Jonas 2377b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 23783ab4827cSWolfgang Denk @mkdir -p $(obj)include 23793ab4827cSWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h 2380ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh3 ms7720se 2381b2b5e2bbSYoshihiro Shimoda 2382b2b5e2bbSYoshihiro Shimoda######################################################################### 238369df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 238469df3c4dSNobuhiro Iwamatsu######################################################################### 2385699f0512SWolfgang Denk 2386699f0512SWolfgang DenkMigoR_config : unconfig 2387699f0512SWolfgang Denk @mkdir -p $(obj)include 2388699f0512SWolfgang Denk @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h 2389ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 MigoR renesas 2390699f0512SWolfgang Denk 239169df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 23923ab4827cSWolfgang Denk @mkdir -p $(obj)include 2393210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 2394ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 ms7750se 239569df3c4dSNobuhiro Iwamatsu 2396d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 23973ab4827cSWolfgang Denk @mkdir -p $(obj)include 2398210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 2399ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 ms7722se 24007a8e9bedSwdenk 2401699f0512SWolfgang Denkr2dplus_config : unconfig 24023ab4827cSWolfgang Denk @mkdir -p $(obj)include 2403699f0512SWolfgang Denk @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h 2404ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas 2405c2042f59Sgoda.yusuke 2406c133c1fbSYusuke Godar7780mp_config: unconfig 24073ab4827cSWolfgang Denk @mkdir -p $(obj)include 24083ab4827cSWolfgang Denk @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h 2409ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas 2410c133c1fbSYusuke Goda 24117faddaecSNobuhiro Iwamatsush7763rdp_config : unconfig 24123ab4827cSWolfgang Denk @mkdir -p $(obj)include 24133ab4827cSWolfgang Denk @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h 2414ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas 24157faddaecSNobuhiro Iwamatsu 2416ada93182SYoshihiro Shimodash7785lcr_32bit_config \ 24170d53a47dSNobuhiro Iwamatsush7785lcr_config : unconfig 2418ce298172SJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 2419ce298172SJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)board/renesas/sh7785lcr 2420ce298172SJean-Christophe PLAGNIOL-VILLARD @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h 2421ada93182SYoshihiro Shimoda @if [ "$(findstring 32bit, $@)" ] ; then \ 2422ada93182SYoshihiro Shimoda echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \ 2423ada93182SYoshihiro Shimoda echo "TEXT_BASE = 0x8ff80000" > \ 2424ada93182SYoshihiro Shimoda $(obj)board/renesas/sh7785lcr/config.tmp ; \ 2425ada93182SYoshihiro Shimoda fi 2426ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas 24270d53a47dSNobuhiro Iwamatsu 24286f0da497SNobuhiro Iwamatsuap325rxa_config : unconfig 24296f0da497SNobuhiro Iwamatsu @mkdir -p $(obj)include 24306f0da497SNobuhiro Iwamatsu @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h 2431ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas 24326f0da497SNobuhiro Iwamatsu 243374d9c16aSNobuhiro Iwamatsuespt_config : unconfig 243474d9c16aSNobuhiro Iwamatsu @mkdir -p $(obj)include 243574d9c16aSNobuhiro Iwamatsu @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h 2436ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ sh sh4 espt 243774d9c16aSNobuhiro Iwamatsu 24387ebf7443Swdenk######################################################################### 24397ebf7443Swdenk######################################################################### 244085ec0bccSwdenk 24413e38691eSwdenkclean: 24421bc15386SPeter Tyser @rm -f $(obj)examples/standalone/82559_eeprom \ 2443d640ac58SWolfgang Denk $(obj)examples/standalone/atmel_df_pow2 \ 24441bc15386SPeter Tyser $(obj)examples/standalone/eepro100_eeprom \ 24451bc15386SPeter Tyser $(obj)examples/standalone/hello_world \ 24461bc15386SPeter Tyser $(obj)examples/standalone/interrupt \ 24471bc15386SPeter Tyser $(obj)examples/standalone/mem_to_mem_idma2intr \ 24481bc15386SPeter Tyser $(obj)examples/standalone/sched \ 24491bc15386SPeter Tyser $(obj)examples/standalone/smc91111_eeprom \ 24501bc15386SPeter Tyser $(obj)examples/standalone/test_burst \ 24511bc15386SPeter Tyser $(obj)examples/standalone/timer 2452d4abc757SPeter Tyser @rm -f $(obj)examples/api/demo{,.bin} 2453f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 2454f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 2455f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 2456f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 2457f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 2458f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 2459f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 2460f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 2461f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 2462f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 24631dcb50afSWolfgang Denk $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ 24641aada9cdSWolfgang Denk $(obj)u-boot.lds \ 2465c6fb83d2SPeter Tyser $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] 2466dc7746d8SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 24671aada9cdSWolfgang Denk @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map} 2468ca6189dbSKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map} 2469ca6189dbSKyungmin Park @rm -f $(ONENAND_BIN) 24701aada9cdSWolfgang Denk @rm -f $(obj)onenand_ipl/u-boot.lds 2471d4abc757SPeter Tyser @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) 2472ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 24737ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 24742b48f7d5SPeter Tyser -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ 24757ebf7443Swdenk | xargs rm -f 24767ebf7443Swdenk 24777ebf7443Swdenkclobber: clean 2478ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 24794c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 24804c0d4c3bSwdenk -print0 \ 24814c0d4c3bSwdenk | xargs -0 rm -f 2482ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 24835013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 2484ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2485aa0c7a86SPrafulla Wadaskar @rm -f $(obj)u-boot.kwb 2486c5fb70c9SStefano Babic @rm -f $(obj)u-boot.imx 2487fb8b33c1SPeter Tyser @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} 2488a47a12beSStefan Roese @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c 2489ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2490a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f 2491a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f 24927ebf7443Swdenk 2493f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 24947ebf7443Swdenkmrproper \ 24957ebf7443Swdenkdistclean: clobber unconfig 2496f9328639SMarian Balakowiczelse 2497f9328639SMarian Balakowiczmrproper \ 2498f9328639SMarian Balakowiczdistclean: clobber unconfig 2499ae6d1056SWolfgang Denk rm -rf $(obj)* 2500f9328639SMarian Balakowiczendif 25017ebf7443Swdenk 25027ebf7443Swdenkbackup: 25037ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 2504d6b93714SIlya Yanok gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 25057ebf7443Swdenk 25067ebf7443Swdenk######################################################################### 2507