17ebf7443Swdenk# 2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008 37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 47ebf7443Swdenk# 57ebf7443Swdenk# See file CREDITS for list of people who contributed to this 67ebf7443Swdenk# project. 77ebf7443Swdenk# 87ebf7443Swdenk# This program is free software; you can redistribute it and/or 97ebf7443Swdenk# modify it under the terms of the GNU General Public License as 1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of 117ebf7443Swdenk# the License, or (at your option) any later version. 127ebf7443Swdenk# 137ebf7443Swdenk# This program is distributed in the hope that it will be useful, 147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 167ebf7443Swdenk# GNU General Public License for more details. 177ebf7443Swdenk# 187ebf7443Swdenk# You should have received a copy of the GNU General Public License 197ebf7443Swdenk# along with this program; if not, write to the Free Software 207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 217ebf7443Swdenk# MA 02111-1307 USA 227ebf7443Swdenk# 237ebf7443Swdenk 24881a87ecSWolfgang DenkVERSION = 1 25754bac48SWolfgang DenkPATCHLEVEL = 3 268d4f040aSWolfgang DenkSUBLEVEL = 1 279a337ddcSWolfgang DenkEXTRAVERSION = 28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h 30881a87ecSWolfgang Denk 317ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 327ebf7443Swdenk sed -e s/i.86/i386/ \ 337ebf7443Swdenk -e s/sun4u/sparc64/ \ 347ebf7443Swdenk -e s/arm.*/arm/ \ 357ebf7443Swdenk -e s/sa110/arm/ \ 367ebf7443Swdenk -e s/powerpc/ppc/ \ 37a2280646SKumar Gala -e s/ppc64/ppc/ \ 387ebf7443Swdenk -e s/macppc/ppc/) 397ebf7443Swdenk 40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 417ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 427ebf7443Swdenk 43f9d77ed3SWolfgang Denkexport HOSTARCH HOSTOS 447ebf7443Swdenk 457ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 467ebf7443SwdenkVENDOR= 477ebf7443Swdenk 487ebf7443Swdenk######################################################################### 49ae6d1056SWolfgang Denk# Allow for silent builds 50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS))) 51ae6d1056SWolfgang DenkXECHO = echo 52ae6d1056SWolfgang Denkelse 53ae6d1056SWolfgang DenkXECHO = : 54ae6d1056SWolfgang Denkendif 55ae6d1056SWolfgang Denk 56ae6d1056SWolfgang Denk######################################################################### 57f9328639SMarian Balakowicz# 58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external 59f9328639SMarian Balakowicz# directory. Two use cases are supported: 60f9328639SMarian Balakowicz# 61f9328639SMarian Balakowicz# 1) Add O= to the make command line 62f9328639SMarian Balakowicz# 'make O=/tmp/build all' 63f9328639SMarian Balakowicz# 64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location 65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 66f9328639SMarian Balakowicz# 'make' 67f9328639SMarian Balakowicz# 68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script 69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 70f9328639SMarian Balakowicz# './MAKEALL' 71f9328639SMarian Balakowicz# 72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable. 73f9328639SMarian Balakowicz# 74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and 75f9328639SMarian Balakowicz# the object files are placed in the source directory. 76f9328639SMarian Balakowicz# 777ebf7443Swdenk 78f9328639SMarian Balakowiczifdef O 79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line") 80f9328639SMarian BalakowiczBUILD_DIR := $(O) 81f9328639SMarian Balakowiczendif 82f9328639SMarian Balakowiczendif 837ebf7443Swdenk 84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),) 85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR) 864f0645ebSMarian Balakowicz 874f0645ebSMarian Balakowicz# Attempt to create a output directory. 884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 894f0645ebSMarian Balakowicz 904f0645ebSMarian Balakowicz# Verify if it was successful. 91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),) 94f9328639SMarian Balakowicz 95f9328639SMarian BalakowiczOBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 96f9328639SMarian BalakowiczSRCTREE := $(CURDIR) 97f9328639SMarian BalakowiczTOPDIR := $(SRCTREE) 98f9328639SMarian BalakowiczLNDIR := $(OBJTREE) 99f9328639SMarian Balakowiczexport TOPDIR SRCTREE OBJTREE 100f9328639SMarian Balakowicz 101f9328639SMarian BalakowiczMKCONFIG := $(SRCTREE)/mkconfig 102f9328639SMarian Balakowiczexport MKCONFIG 103f9328639SMarian Balakowicz 104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 105f9328639SMarian BalakowiczREMOTE_BUILD := 1 106f9328639SMarian Balakowiczexport REMOTE_BUILD 107f9328639SMarian Balakowiczendif 108f9328639SMarian Balakowicz 109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile 110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for 111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc. 112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 113f9328639SMarian Balakowiczobj := $(OBJTREE)/ 114f9328639SMarian Balakowiczsrc := $(SRCTREE)/ 115f9328639SMarian Balakowiczelse 116f9328639SMarian Balakowiczobj := 117f9328639SMarian Balakowiczsrc := 118f9328639SMarian Balakowiczendif 119f9328639SMarian Balakowiczexport obj src 120f9328639SMarian Balakowicz 121f9328639SMarian Balakowicz######################################################################### 122f9328639SMarian Balakowicz 123ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 124f9328639SMarian Balakowicz 1257ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 126ae6d1056SWolfgang Denkinclude $(obj)include/config.mk 1271d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 128f9328639SMarian Balakowicz 1297ebf7443Swdenkifndef CROSS_COMPILE 130a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 1317ebf7443SwdenkCROSS_COMPILE = 1327ebf7443Swdenkelse 1337ebf7443Swdenkifeq ($(ARCH),ppc) 13416c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx- 1357ebf7443Swdenkendif 1367ebf7443Swdenkifeq ($(ARCH),arm) 137dc7c9a1aSwdenkCROSS_COMPILE = arm-linux- 1387ebf7443Swdenkendif 1392262cfeeSwdenkifeq ($(ARCH),i386) 1407a8e9bedSwdenkCROSS_COMPILE = i386-linux- 1417a8e9bedSwdenkendif 14243d9616cSwdenkifeq ($(ARCH),mips) 14343d9616cSwdenkCROSS_COMPILE = mips_4KC- 14443d9616cSwdenkendif 1454a551709Swdenkifeq ($(ARCH),nios) 1464a551709SwdenkCROSS_COMPILE = nios-elf- 1474a551709Swdenkendif 1485c952cf0Swdenkifeq ($(ARCH),nios2) 1495c952cf0SwdenkCROSS_COMPILE = nios2-elf- 1505c952cf0Swdenkendif 1514e5ca3ebSwdenkifeq ($(ARCH),m68k) 1524e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 1534e5ca3ebSwdenkendif 154507bbe3eSwdenkifeq ($(ARCH),microblaze) 155507bbe3eSwdenkCROSS_COMPILE = mb- 156507bbe3eSwdenkendif 1570afe519aSWolfgang Denkifeq ($(ARCH),blackfin) 158ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux- 1590afe519aSWolfgang Denkendif 1607b64fef3SWolfgang Denkifeq ($(ARCH),avr32) 1615374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux- 1627b64fef3SWolfgang Denkendif 1630b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh) 1640b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux- 165ae6d1056SWolfgang Denkendif # sh 166ae6d1056SWolfgang Denkendif # HOSTARCH,ARCH 167ae6d1056SWolfgang Denkendif # CROSS_COMPILE 1687ebf7443Swdenk 1697ebf7443Swdenkexport CROSS_COMPILE 1707ebf7443Swdenk 17192b197f0SWolfgang Denk# load other configuration 17292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 17392b197f0SWolfgang Denk 1747ebf7443Swdenk######################################################################### 1757ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1767ebf7443Swdenk 1777ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 1782262cfeeSwdenkifeq ($(CPU),i386) 1792262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 1802262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 1812262cfeeSwdenkendif 1827ebf7443Swdenkifeq ($(CPU),ppc4xx) 1837ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 1847ebf7443Swdenkendif 18542d1f039Swdenkifeq ($(CPU),mpc85xx) 18642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 18742d1f039Swdenkendif 1887ebf7443Swdenk 189f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 190f9328639SMarian Balakowicz 1919fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 1927608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 1937608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 1949fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 1957ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1961d9f4105Swdenkifdef SOC 1971d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 1981d9f4105Swdenkendif 199323bfa8fSStefan Roeseifeq ($(CPU),ixp) 200323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a 201323bfa8fSStefan Roeseendif 2027ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 203518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 204c419d1d6Sstroese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 2057ebf7443SwdenkLIBS += net/libnet.a 2067ebf7443SwdenkLIBS += disk/libdisk.a 2070f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 20833daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 20957a12720STsiChungLiewLIBS += drivers/dma/libdma.a 210f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 211080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 21216b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 213318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 21459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 21559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 21659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a 21759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 2188e585f02STsiChung LiewLIBS += drivers/net/libnet.a 2192439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a 22093a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 22173646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 22204a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2237737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2247737d5c6SDave LiuLIBS += drivers/qe/qe.a 2257737d5c6SDave Liuendif 226da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 227da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 228da9d4610SAndy Flemingendif 22959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2308e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 23159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a 23259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 233ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a 234ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \ 235ad5bb451SWolfgang Denk "post/lib_$(ARCH)/libpost$(ARCH).a"; fi) 236b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \ 237b4489621SSergei Poselenov "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi) 238ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \ 239ad5bb451SWolfgang Denk "post/cpu/$(CPU)/libpost$(CPU).a"; fi) 240ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ 241ad5bb451SWolfgang Denk "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) 2427ebf7443SwdenkLIBS += common/libcommon.a 2437651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 244500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y) 245500856ebSRafal JaworowskiLIBS += api/libapi.a 246500856ebSRafal Jaworowskiendif 247f9328639SMarian Balakowicz 248f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 2499fd5e31fSwdenk.PHONY : $(LIBS) 250a8c7c708Swdenk 2514f7cb08eSwdenk# Add GCC lib 2521a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 2533d3befa7Swdenk 254a8c7c708Swdenk# The "tools" are needed early, so put this first 255a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 256a8c7c708SwdenkSUBDIRS = tools \ 257ad5bb451SWolfgang Denk examples 258ad5bb451SWolfgang Denk 259500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y) 260500856ebSRafal JaworowskiSUBDIRS += api_examples 261500856ebSRafal Jaworowskiendif 262500856ebSRafal Jaworowski 263b028f715Swdenk.PHONY : $(SUBDIRS) 264a8c7c708Swdenk 265887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 266887e2ec9SStefan RoeseNAND_SPL = nand_spl 267887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 268887e2ec9SStefan Roeseendif 269887e2ec9SStefan Roese 270f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 271f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS)) 272f9328639SMarian Balakowicz 2737ebf7443Swdenk######################################################################### 274bdccc4feSwdenk######################################################################### 2757ebf7443Swdenk 276566a494fSHeiko SchocherALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) 277*94a91e24SMike Frysingerifeq ($(ARCH),blackfin) 278*94a91e24SMike FrysingerALL += $(obj)u-boot.ldr 279*94a91e24SMike Frysingerendif 2807ebf7443Swdenk 281bdccc4feSwdenkall: $(ALL) 2827ebf7443Swdenk 283f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2846310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2856310eb9dSwdenk 286f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 2877ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 2887ebf7443Swdenk 289f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 2907ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 2917ebf7443Swdenk 292*94a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 293*94a91e24SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS) 294*94a91e24SMike Frysinger 295*94a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 296*94a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 297*94a91e24SMike Frysinger 298*94a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 299*94a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 300*94a91e24SMike Frysinger 301f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 302bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 303bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 304881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 305bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 306bdccc4feSwdenk -d $< $@ 307bdccc4feSwdenk 308566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 30901159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 310566a494fSHeiko Schocher 311f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3127ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3137ebf7443Swdenk 314dd531aacSWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 3150858b835SMike Frysinger UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 316f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 317f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 318b2184c31Swdenk -Map u-boot.map -o u-boot 3197ebf7443Swdenk 320dd531aacSWolfgang Denk$(OBJS): $(obj)include/autoconf.mk 321f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 322f9328639SMarian Balakowicz 323dd531aacSWolfgang Denk$(LIBS): $(obj)include/autoconf.mk 324f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 325a8c7c708Swdenk 326dd531aacSWolfgang Denk$(SUBDIRS): $(obj)include/autoconf.mk 327b028f715Swdenk $(MAKE) -C $@ all 3287ebf7443Swdenk 329dd531aacSWolfgang Denk$(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3308318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 331887e2ec9SStefan Roese 332dd531aacSWolfgang Denk$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3338318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 334887e2ec9SStefan Roese 335ae6d1056SWolfgang Denk$(VERSION_FILE): 336ae6d1056SWolfgang Denk @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \ 337ae6d1056SWolfgang Denk echo -n "$(U_BOOT_VERSION)" ; \ 338881a87ecSWolfgang Denk echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ 339ae6d1056SWolfgang Denk $(TOPDIR)) ; \ 340ae6d1056SWolfgang Denk echo "\"" ) > $(VERSION_FILE) 341881a87ecSWolfgang Denk 3428f713fdfSdzugdbtools: 343f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 344f9328639SMarian Balakowicz 345f9328639SMarian Balakowiczupdater: 346f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 347f9328639SMarian Balakowicz 348f9328639SMarian Balakowiczenv: 34964b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 3508f713fdfSdzu 351ae6d1056SWolfgang Denkdepend dep: $(VERSION_FILE) 352f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 3537ebf7443Swdenk 354a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 355a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR) 356a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU) 357a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH) 358a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs 359a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat 360a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos 361a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2 362a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net 363a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk 364a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common 365a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator 366a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block 367a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon 368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c 369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input 370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc 371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd 372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand 373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy 374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand 375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net 376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin 377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci 378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia 379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe 380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc 381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial 38204a9e118SBen WarrenTAG_SUBDIRS += drivers/spi 383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb 384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video 385a340c325SJean-Christophe PLAGNIOL-VILLARD 386f9328639SMarian Balakowicztags ctags: 387ae6d1056SWolfgang Denk ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 38888fed9a1SWolfgang Denk -name '*.[ch]' -print` 3897ebf7443Swdenk 3907ebf7443Swdenketags: 391ae6d1056SWolfgang Denk etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 39288fed9a1SWolfgang Denk -name '*.[ch]' -print` 3937ebf7443Swdenk 394f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 3957ebf7443Swdenk @$(NM) $< | \ 3967ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 397f9328639SMarian Balakowicz sort > $(obj)System.map 3987ebf7443Swdenk 3992f155f6cSGrant Likely# 4002f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4012f155f6cSGrant Likely# 4022f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4032f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4042f155f6cSGrant Likely# to regenerate the autoconf.mk file. 405ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE) 406ae6d1056SWolfgang Denk @$(XECHO) Generating include/autoconf.mk ; \ 407ae6d1056SWolfgang Denk : Generate the dependancies ; \ 408ae6d1056SWolfgang Denk $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \ 409ae6d1056SWolfgang Denk : Extract the config macros ; \ 410ae6d1056SWolfgang Denk $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@ 4112f155f6cSGrant Likely 412ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep 4132f155f6cSGrant Likely 4147ebf7443Swdenk######################################################################### 415ae6d1056SWolfgang Denkelse # !config.mk 416f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 417f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 418ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \ 419f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map: 4207ebf7443Swdenk @echo "System not configured - see README" >&2 4217ebf7443Swdenk @ exit 1 422ae6d1056SWolfgang Denkendif # config.mk 4237ebf7443Swdenk 4244e53a258SWolfgang Denk.PHONY : CHANGELOG 4254e53a258SWolfgang DenkCHANGELOG: 426b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 427b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4284e53a258SWolfgang Denk 4297ebf7443Swdenk######################################################################### 4307ebf7443Swdenk 4317ebf7443Swdenkunconfig: 432887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4332f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4342f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4357ebf7443Swdenk 4367ebf7443Swdenk#======================================================================== 4377ebf7443Swdenk# PowerPC 4387ebf7443Swdenk#======================================================================== 4390db5bca8Swdenk 4400db5bca8Swdenk######################################################################### 4410db5bca8Swdenk## MPC5xx Systems 4420db5bca8Swdenk######################################################################### 4430db5bca8Swdenk 4445e5f9ed2Swdenkcanmb_config: unconfig 445f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 4465e5f9ed2Swdenk 4470db5bca8Swdenkcmi_mpc5xx_config: unconfig 448f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 4490db5bca8Swdenk 450b6e4c403SwdenkPATI_config: unconfig 451f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 452b6e4c403Swdenk 4537ebf7443Swdenk######################################################################### 454945af8d7Swdenk## MPC5xxx Systems 455945af8d7Swdenk######################################################################### 456a87589daSwdenk 457dafba16eSWolfgang Denkaev_config: unconfig 458f9328639SMarian Balakowicz @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 459dafba16eSWolfgang Denk 4606ca24c64Sdzu@denx.deBC3450_config: unconfig 461f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 4626ca24c64Sdzu@denx.de 4635e4b3361SStefan Roesecpci5200_config: unconfig 464f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 4655e4b3361SStefan Roese 466a87589daSwdenkhmi1001_config: unconfig 467f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 468a87589daSwdenk 469e35745bbSwdenkLite5200_config \ 470e35745bbSwdenkLite5200_LOWBOOT_config \ 471e35745bbSwdenkLite5200_LOWBOOT08_config \ 472e35745bbSwdenkicecube_5200_config \ 473e35745bbSwdenkicecube_5200_LOWBOOT_config \ 474e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 475b2001f27Swdenkicecube_5200_DDR_config \ 47679d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 47779d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 478e35745bbSwdenkicecube_5100_config: unconfig 479f9328639SMarian Balakowicz @mkdir -p $(obj)include 480f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 481f9328639SMarian Balakowicz @ >$(obj)include/config.h 48217d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 48317d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 484f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 485f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 48617d704ebSwdenk fi ; \ 487ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 4885cf9da48Swdenk } 4895cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 490f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 4915cf9da48Swdenk echo "... with 8 MB flash only" ; \ 492ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 4935cf9da48Swdenk } 494b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 495f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 496ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 497b2001f27Swdenk } 498d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 499f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 500ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 501d4ca31c4Swdenk } 502a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 503f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 504ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 505945af8d7Swdenk } 506f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 507945af8d7Swdenk 5082605e90bSHeiko Schocherjupiter_config: unconfig 5092605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 5102605e90bSHeiko Schocher 5114707fb50SBartlomiej Siekav38b_config: unconfig 51290b1b2d6SGrant Likely @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 5134707fb50SBartlomiej Sieka 514138ff60cSwdenkinka4x0_config: unconfig 515f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 516138ff60cSwdenk 51709e4b0c5SWolfgang Denklite5200b_config \ 518d3832e8fSDomen Puncerlite5200b_PM_config \ 51909e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 520f9328639SMarian Balakowicz @mkdir -p $(obj)include 521f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 522f9328639SMarian Balakowicz @ >$(obj)include/config.h 523f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 524ae6d1056SWolfgang Denk @ $(XECHO) "... DDR memory revision" 525f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 526f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 527d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 528d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 529ae6d1056SWolfgang Denk $(XECHO) "... with power management (low-power mode) support" ; \ 530d3832e8fSDomen Puncer } 53109e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 532f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 533ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 53409e4b0c5SWolfgang Denk } 535ae6d1056SWolfgang Denk @ $(XECHO) "... with MPC5200B processor" 536f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 53709e4b0c5SWolfgang Denk 538f1ee9825SStefan Roesemcc200_config \ 539ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 540ed1cf845SWolfgang Denkmcc200_highboot_config \ 541ed1cf845SWolfgang Denkmcc200_COM12_config \ 542ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 543113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 544113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 545ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 546ed1cf845SWolfgang Denkprs200_config \ 547ed1cf845SWolfgang Denkprs200_DDR_config \ 548ed1cf845SWolfgang Denkprs200_highboot_config \ 549ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 550f9328639SMarian Balakowicz @mkdir -p $(obj)include 551f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 552f9328639SMarian Balakowicz @ >$(obj)include/config.h 5534819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 554ae6d1056SWolfgang Denk { $(XECHO) "... with lowboot configuration" ; \ 555f1ee9825SStefan Roese } 5564819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 557f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 558ae6d1056SWolfgang Denk $(XECHO) "... with highboot configuration" ; \ 5594819fad9SWolfgang Denk } 5604819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 561ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 562ed1cf845SWolfgang Denk then \ 563ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 564ed1cf845SWolfgang Denk else \ 565ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 566ed1cf845SWolfgang Denk then \ 567ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 568ed1cf845SWolfgang Denk else \ 569f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 570ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 571ed1cf845SWolfgang Denk fi; \ 572ed1cf845SWolfgang Denk fi; \ 5734819fad9SWolfgang Denk } 5744819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 575f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 576ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 5774819fad9SWolfgang Denk } 578463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 579f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 580ae6d1056SWolfgang Denk $(XECHO) "... with console on COM12" ; \ 581463764c8SWolfgang Denk } 582ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 583f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 584ed1cf845SWolfgang Denk } 585f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 58686ea5f93SWolfgang Denk 5878b7d1f0aSStefan Roesemecp5200_config: unconfig 588ae6d1056SWolfgang Denk @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 5898b7d1f0aSStefan Roese 5906341d9d7SHeiko Schochermunices_config: unconfig 591ae6d1056SWolfgang Denk @$(MKCONFIG) munices ppc mpc5xxx munices 5926341d9d7SHeiko Schocher 593df04a3dfSWolfgang Denko2dnt_config: 594f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 595df04a3dfSWolfgang Denk 5965e4b3361SStefan Roesepf5200_config: unconfig 597f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 5985e4b3361SStefan Roese 59989394047SwdenkPM520_config \ 60089394047SwdenkPM520_DDR_config \ 60189394047SwdenkPM520_ROMBOOT_config \ 60289394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 603f9328639SMarian Balakowicz @mkdir -p $(obj)include 604f9328639SMarian Balakowicz @ >$(obj)include/config.h 60589394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 606f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 607ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 60889394047Swdenk } 60989394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 610f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 611ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 61289394047Swdenk } 613f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 61489394047Swdenk 6156624b687SWolfgang Denksmmaco4_config: unconfig 616f9328639SMarian Balakowicz @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 6179cdc8386SWolfgang Denk 61886b116b1SBartlomiej Siekacm5200_config: unconfig 61986b116b1SBartlomiej Sieka @./mkconfig -a cm5200 ppc mpc5xxx cm5200 620fa1df308SBartlomiej Sieka 6219cdc8386SWolfgang Denkspieval_config: unconfig 622f9328639SMarian Balakowicz @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 6239cdc8386SWolfgang Denk 62445a212c4SWolfgang DenkTB5200_B_config \ 625b87dfd28SWolfgang DenkTB5200_config: unconfig 626f9328639SMarian Balakowicz @mkdir -p $(obj)include 62745a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 628f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 629ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200B processor" ; \ 63045a212c4SWolfgang Denk } 631f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 632b87dfd28SWolfgang Denk 633d4ca31c4SwdenkMINI5200_config \ 634d4ca31c4SwdenkEVAL5200_config \ 635d4ca31c4SwdenkTOP5200_config: unconfig 636f9328639SMarian Balakowicz @mkdir -p $(obj)include 637f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 638f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 639d4ca31c4Swdenk 6406c7a1408SwdenkTotal5100_config \ 6416c7a1408SwdenkTotal5200_config \ 6426c7a1408SwdenkTotal5200_lowboot_config \ 6436c7a1408SwdenkTotal5200_Rev2_config \ 6446c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 645f9328639SMarian Balakowicz @mkdir -p $(obj)include 646f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 647f9328639SMarian Balakowicz @ >$(obj)include/config.h 6486c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 649f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 650ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 6516c7a1408Swdenk } 6526c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 653f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 654ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 6556c7a1408Swdenk } 6566c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 657f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 658ae6d1056SWolfgang Denk $(XECHO) "... revision 1 board" ; \ 6596c7a1408Swdenk } 6606c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 661f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 662ae6d1056SWolfgang Denk $(XECHO) "... revision 2 board" ; \ 6636c7a1408Swdenk } 6646c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 665f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 666ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 6676c7a1408Swdenk } 668f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 6696c7a1408Swdenk 6705196a7a0SWolfgang Denkcam5200_config \ 671d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6725196a7a0SWolfgang Denkfo300_config \ 6735196a7a0SWolfgang DenkMiniFAP_config \ 6745078cce8SWolfgang DenkTQM5200S_config \ 6755078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6765196a7a0SWolfgang DenkTQM5200_B_config \ 6775196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 6785196a7a0SWolfgang DenkTQM5200_config \ 6795196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 680f9328639SMarian Balakowicz @mkdir -p $(obj)include 681f9328639SMarian Balakowicz @mkdir -p $(obj)board/tqm5200 682f9328639SMarian Balakowicz @ >$(obj)include/config.h 683135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 684f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 685f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 686f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 687ae6d1056SWolfgang Denk $(XECHO) "... TQM5200S on Cam5200" ; \ 6885078cce8SWolfgang Denk } 689d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 690d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 691ae6d1056SWolfgang Denk $(XECHO) "... with NIOS flash driver" ; \ 692d9384de2SMarian Balakowicz } 6936d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 694f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 695ae6d1056SWolfgang Denk $(XECHO) "... TQM5200 on FO300" ; \ 6966d3bc9b8SMarian Balakowicz } 697cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 698f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 699ae6d1056SWolfgang Denk $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 700978b1096SWolfgang Denk } 701cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 702f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 703ae6d1056SWolfgang Denk $(XECHO) "... on a STK52XX.100 base board" ; \ 70456523f12Swdenk } 7055078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 706f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 7075078cce8SWolfgang Denk } 7085078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 709f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 710f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 71145a212c4SWolfgang Denk } 712978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 713f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 714978b1096SWolfgang Denk } 715f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 7166dedf3d4SHeiko Schocheruc101_config: unconfig 7176dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 71853d4a498SBartlomiej Siekamotionpro_config: unconfig 71953d4a498SBartlomiej Sieka @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 72053d4a498SBartlomiej Sieka 72156523f12Swdenk 722945af8d7Swdenk######################################################################### 7238993e54bSRafal Jaworowski## MPC512x Systems 7248993e54bSRafal Jaworowski######################################################################### 7258993e54bSRafal Jaworowskiads5121_config: unconfig 7268993e54bSRafal Jaworowski @$(MKCONFIG) ads5121 ppc mpc512x ads5121 7278993e54bSRafal Jaworowski 7288993e54bSRafal Jaworowski 7298993e54bSRafal Jaworowski######################################################################### 7307ebf7443Swdenk## MPC8xx Systems 7317ebf7443Swdenk######################################################################### 7327ebf7443Swdenk 7332d24a3a7SwdenkAdder_config \ 7342d24a3a7SwdenkAdder87x_config \ 73526238132SwdenkAdderII_config \ 7362d24a3a7Swdenk : unconfig 737f9328639SMarian Balakowicz @mkdir -p $(obj)include 73826238132Swdenk $(if $(findstring AdderII,$@), \ 739f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 740f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 7412d24a3a7Swdenk 74216c8d5e7SWolfgang DenkAdderUSB_config: unconfig 74316c8d5e7SWolfgang Denk @./mkconfig -a AdderUSB ppc mpc8xx adder 74416c8d5e7SWolfgang Denk 745180d3f74SwdenkADS860_config \ 746180d3f74SwdenkFADS823_config \ 747180d3f74SwdenkFADS850SAR_config \ 748180d3f74SwdenkMPC86xADS_config \ 7491114257cSwdenkMPC885ADS_config \ 750180d3f74SwdenkFADS860T_config: unconfig 751f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 7527ebf7443Swdenk 7537ebf7443SwdenkAMX860_config : unconfig 754f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 7557ebf7443Swdenk 7567ebf7443Swdenkc2mon_config: unconfig 757f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 7587ebf7443Swdenk 7597ebf7443SwdenkCCM_config: unconfig 760f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 7617ebf7443Swdenk 7627ebf7443Swdenkcogent_mpc8xx_config: unconfig 763f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 7647ebf7443Swdenk 7653bac3513SwdenkELPT860_config: unconfig 766f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 7673bac3513Swdenk 76884c960ceSWolfgang DenkEP88x_config: unconfig 769f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 77084c960ceSWolfgang Denk 7717ebf7443SwdenkESTEEM192E_config: unconfig 772f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 7737ebf7443Swdenk 7747ebf7443SwdenkETX094_config : unconfig 775f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 7767ebf7443Swdenk 7777ebf7443SwdenkFLAGADM_config: unconfig 778f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 7797ebf7443Swdenk 7807aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 7817aa78614Swdenk 7827aa78614SwdenkGEN860T_SC_config \ 7837ebf7443SwdenkGEN860T_config: unconfig 784f9328639SMarian Balakowicz @mkdir -p $(obj)include 785f9328639SMarian Balakowicz @ >$(obj)include/config.h 7867aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 787f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 788ae6d1056SWolfgang Denk $(XECHO) "With reduced H/W feature set (SC)..." ; \ 7897aa78614Swdenk } 790f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 7917ebf7443Swdenk 7927ebf7443SwdenkGENIETV_config: unconfig 793f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 7947ebf7443Swdenk 7957ebf7443SwdenkGTH_config: unconfig 796f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 7977ebf7443Swdenk 7987ebf7443Swdenkhermes_config : unconfig 799f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 8007ebf7443Swdenk 801c40b2956SwdenkHMI10_config : unconfig 802f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 803c40b2956Swdenk 8047ebf7443SwdenkIAD210_config: unconfig 805f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 8067ebf7443Swdenk 8077ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 8087ebf7443Swdenk 8097ebf7443SwdenkICU862_100MHz_config \ 8107ebf7443SwdenkICU862_config: unconfig 811f9328639SMarian Balakowicz @mkdir -p $(obj)include 812f9328639SMarian Balakowicz @ >$(obj)include/config.h 8137ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 814f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 815ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 8167ebf7443Swdenk } 817f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 8187ebf7443Swdenk 8197ebf7443SwdenkIP860_config : unconfig 820f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 8217ebf7443Swdenk 8227ebf7443SwdenkIVML24_256_config \ 8237ebf7443SwdenkIVML24_128_config \ 8247ebf7443SwdenkIVML24_config: unconfig 825f9328639SMarian Balakowicz @mkdir -p $(obj)include 826f9328639SMarian Balakowicz @ >$(obj)include/config.h 8277ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 828f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 8297ebf7443Swdenk } 8307ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 831f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 8327ebf7443Swdenk } 8337ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 834f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 8357ebf7443Swdenk } 836f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 8377ebf7443Swdenk 8387ebf7443SwdenkIVMS8_256_config \ 8397ebf7443SwdenkIVMS8_128_config \ 8407ebf7443SwdenkIVMS8_config: unconfig 841f9328639SMarian Balakowicz @mkdir -p $(obj)include 842f9328639SMarian Balakowicz @ >$(obj)include/config.h 8437ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 844f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 8457ebf7443Swdenk } 8467ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 847f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 8487ebf7443Swdenk } 8497ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 850f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 8517ebf7443Swdenk } 852f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 8537ebf7443Swdenk 85456f94be3SwdenkKUP4K_config : unconfig 855f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 8560608e04dSwdenk 8570608e04dSwdenkKUP4X_config : unconfig 858f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 85956f94be3Swdenk 8607ebf7443SwdenkLANTEC_config : unconfig 861f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 8627ebf7443Swdenk 8637ebf7443Swdenklwmon_config: unconfig 864f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 8657ebf7443Swdenk 8667ebf7443SwdenkMBX_config \ 8677ebf7443SwdenkMBX860T_config: unconfig 868f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 8697ebf7443Swdenk 870381e4e63SHeiko Schochermgsuvd_config: unconfig 871381e4e63SHeiko Schocher @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd 872381e4e63SHeiko Schocher 8737ebf7443SwdenkMHPC_config: unconfig 874f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 8757ebf7443Swdenk 8767ebf7443SwdenkMVS1_config : unconfig 877f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 8787ebf7443Swdenk 879993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 880993cad93Swdenk 881993cad93SwdenkNETVIA_V2_config \ 8827ebf7443SwdenkNETVIA_config: unconfig 883f9328639SMarian Balakowicz @mkdir -p $(obj)include 884f9328639SMarian Balakowicz @ >$(obj)include/config.h 885993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 886f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 887ae6d1056SWolfgang Denk $(XECHO) "... Version 1" ; \ 888993cad93Swdenk } 889993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 890f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 891ae6d1056SWolfgang Denk $(XECHO) "... Version 2" ; \ 892993cad93Swdenk } 893f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 8947ebf7443Swdenk 895c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 896c26e454dSwdenk 897c26e454dSwdenkNETPHONE_V2_config \ 89804a85b3bSwdenkNETPHONE_config: unconfig 899f9328639SMarian Balakowicz @mkdir -p $(obj)include 900f9328639SMarian Balakowicz @ >$(obj)include/config.h 901c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 902f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 903c26e454dSwdenk } 904c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 905f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 906c26e454dSwdenk } 907f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 90804a85b3bSwdenk 90979fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 91004a85b3bSwdenk 91179fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 91279fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 91379fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 91479fa88f3SwdenkNETTA_SWAPHOOK_config \ 91579fa88f3SwdenkNETTA_ISDN_6412_config \ 91604a85b3bSwdenkNETTA_ISDN_config \ 91779fa88f3SwdenkNETTA_6412_config \ 91804a85b3bSwdenkNETTA_config: unconfig 919f9328639SMarian Balakowicz @mkdir -p $(obj)include 920f9328639SMarian Balakowicz @ >$(obj)include/config.h 92179fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 922f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 92304a85b3bSwdenk } 92479fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 925f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 92679fa88f3Swdenk } 92779fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 928f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 92979fa88f3Swdenk } 93079fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 931f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 93279fa88f3Swdenk } 93379fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 934f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 93579fa88f3Swdenk } 93679fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 937f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 93879fa88f3Swdenk } 939f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 94004a85b3bSwdenk 94179fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 94279fa88f3Swdenk 94379fa88f3SwdenkNETTA2_V2_config \ 94479fa88f3SwdenkNETTA2_config: unconfig 945f9328639SMarian Balakowicz @mkdir -p $(obj)include 946f9328639SMarian Balakowicz @ >$(obj)include/config.h 94779fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 948f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 94979fa88f3Swdenk } 95079fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 951f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 95279fa88f3Swdenk } 953f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 95479fa88f3Swdenk 955a367d426Sdzu@denx.deNC650_Rev1_config \ 956a367d426Sdzu@denx.deNC650_Rev2_config \ 957a367d426Sdzu@denx.deCP850_config: unconfig 958f9328639SMarian Balakowicz @mkdir -p $(obj)include 959f9328639SMarian Balakowicz @ >$(obj)include/config.h 960a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 961f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 962f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 963a367d426Sdzu@denx.de } 964a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 965f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 966a367d426Sdzu@denx.de } 967a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 968f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 969a367d426Sdzu@denx.de } 970f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 9717ca202f5Swdenk 9727ebf7443SwdenkNX823_config: unconfig 973f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 9747ebf7443Swdenk 9757ebf7443Swdenkpcu_e_config: unconfig 976f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 9777ebf7443Swdenk 9783bbc899fSwdenkQS850_config: unconfig 979f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9803bbc899fSwdenk 9813bbc899fSwdenkQS823_config: unconfig 982f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9833bbc899fSwdenk 9843bbc899fSwdenkQS860T_config: unconfig 985f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 9863bbc899fSwdenk 987da93ed81Swdenkquantum_config: unconfig 988f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 989da93ed81Swdenk 9907ebf7443SwdenkR360MPI_config: unconfig 991f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 9927ebf7443Swdenk 993682011ffSwdenkRBC823_config: unconfig 994f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 995682011ffSwdenk 9967ebf7443SwdenkRPXClassic_config: unconfig 997f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 9987ebf7443Swdenk 9997ebf7443SwdenkRPXlite_config: unconfig 1000f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 10017ebf7443Swdenk 1002e63c8ee3SwdenkRPXlite_DW_64_config \ 1003e63c8ee3SwdenkRPXlite_DW_LCD_config \ 1004e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 1005e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 1006e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 1007e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 1008e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 1009e63c8ee3SwdenkRPXlite_DW_config: unconfig 1010f9328639SMarian Balakowicz @mkdir -p $(obj)include 1011f9328639SMarian Balakowicz @ >$(obj)include/config.h 1012e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 1013f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1014ae6d1056SWolfgang Denk $(XECHO) "... with 64MHz system clock ..."; \ 1015e63c8ee3Swdenk } 1016e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1017f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1018f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1019ae6d1056SWolfgang Denk $(XECHO) "... with LCD display ..."; \ 1020e63c8ee3Swdenk } 1021e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 1022f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1023ae6d1056SWolfgang Denk $(XECHO) "... with ENV in NVRAM ..."; \ 1024e63c8ee3Swdenk } 1025f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1026e63c8ee3Swdenk 102773a8b27cSwdenkrmu_config: unconfig 1028f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 102973a8b27cSwdenk 10307ebf7443SwdenkRRvision_config: unconfig 1031f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 10327ebf7443Swdenk 10337ebf7443SwdenkRRvision_LCD_config: unconfig 1034f9328639SMarian Balakowicz @mkdir -p $(obj)include 1035f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1036f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1037f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 10387ebf7443Swdenk 10397ebf7443SwdenkSM850_config : unconfig 1040f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 10417ebf7443Swdenk 1042b02d0177SMarkus Klotzbuecherspc1920_config: 1043f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1044b02d0177SMarkus Klotzbuecher 10457ebf7443SwdenkSPD823TS_config: unconfig 1046f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 10477ebf7443Swdenk 10486bdf4306SWolfgang Denkstxxtc_config: unconfig 1049f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 10506bdf4306SWolfgang Denk 1051dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1052f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1053dc7c9a1aSwdenk 10547ebf7443SwdenkSXNI855T_config: unconfig 1055f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 10567ebf7443Swdenk 1057db2f721fSwdenk# EMK MPC8xx based modules 1058db2f721fSwdenkTOP860_config: unconfig 1059f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1060db2f721fSwdenk 10617ebf7443Swdenk# Play some tricks for configuration selection 1062e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1063e9132ea9Swdenk# and only 823 boards may have LCD support 1064e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 10657ebf7443Swdenk 10667ebf7443SwdenkFPS850L_config \ 1067384ae025SwdenkFPS860L_config \ 1068f12e568cSwdenkNSCU_config \ 10697ebf7443SwdenkTQM823L_config \ 10707ebf7443SwdenkTQM823L_LCD_config \ 10717ebf7443SwdenkTQM850L_config \ 10727ebf7443SwdenkTQM855L_config \ 10737ebf7443SwdenkTQM860L_config \ 1074d126bfbdSwdenkTQM862L_config \ 1075ae3af05eSwdenkTQM823M_config \ 1076ae3af05eSwdenkTQM850M_config \ 1077f12e568cSwdenkTQM855M_config \ 1078f12e568cSwdenkTQM860M_config \ 1079f12e568cSwdenkTQM862M_config \ 10808cba090cSWolfgang DenkTQM866M_config \ 1081090eb735SMarkus KlotzbuecherTQM885D_config \ 1082efc6f447SGuennadi LiakhovetskiTK885D_config \ 10838cba090cSWolfgang Denkvirtlab2_config: unconfig 1084f9328639SMarian Balakowicz @mkdir -p $(obj)include 1085f9328639SMarian Balakowicz @ >$(obj)include/config.h 10867ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1087f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1088f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1089ae6d1056SWolfgang Denk $(XECHO) "... with LCD display" ; \ 10907ebf7443Swdenk } 1091f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 10927ebf7443Swdenk 10937ebf7443SwdenkTTTech_config: unconfig 1094f9328639SMarian Balakowicz @mkdir -p $(obj)include 1095f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1096f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1097f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 10987ebf7443Swdenk 1099ec0aee7bSwdenkuc100_config : unconfig 1100f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1101f7d1572bSwdenk 1102608c9146Swdenkv37_config: unconfig 1103f9328639SMarian Balakowicz @mkdir -p $(obj)include 1104f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1105f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1106f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1107608c9146Swdenk 110891e940d9Sdzuwtk_config: unconfig 1109f9328639SMarian Balakowicz @mkdir -p $(obj)include 1110f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1111f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1112f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 111391e940d9Sdzu 11147ebf7443Swdenk######################################################################### 11157ebf7443Swdenk## PPC4xx Systems 11167ebf7443Swdenk######################################################################### 1117e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 11187ebf7443Swdenk 111916c0cc1cSStefan Roeseacadia_config: unconfig 112016c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 112116c0cc1cSStefan Roese 1122c440bfe6SStefan Roeseacadia_nand_config: unconfig 112363e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 112463e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1125c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1126c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1127c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1128c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1129c440bfe6SStefan Roese 11307ebf7443SwdenkADCIOP_config: unconfig 1131f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 11327ebf7443Swdenk 1133899620c2SStefan Roesealpr_config: unconfig 113435d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1135899620c2SStefan Roese 11367521af1cSWolfgang DenkAP1000_config:unconfig 1137f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 11387521af1cSWolfgang Denk 1139c419d1d6SstroeseAPC405_config: unconfig 1140f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1141c419d1d6Sstroese 11427ebf7443SwdenkAR405_config: unconfig 1143f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 11447ebf7443Swdenk 1145549826eaSstroeseASH405_config: unconfig 1146f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1147549826eaSstroese 11488a316c9bSStefan Roesebamboo_config: unconfig 1149f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 11508a316c9bSStefan Roese 1151cf959c7dSStefan Roesebamboo_nand_config: unconfig 115263e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 115363e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1154cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1155f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1156cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1157cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1158cf959c7dSStefan Roese 11598a316c9bSStefan Roesebubinga_config: unconfig 1160f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1161549826eaSstroese 11627ebf7443SwdenkCANBT_config: unconfig 1163f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 11647ebf7443Swdenk 11651d6f9720SwdenkCATcenter_config \ 11661d6f9720SwdenkCATcenter_25_config \ 11671d6f9720SwdenkCATcenter_33_config: unconfig 1168f9328639SMarian Balakowicz @mkdir -p $(obj)include 1169f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1170f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 11711d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1172f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1173ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 11741d6f9720Swdenk } 11751d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1176f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1177ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 11781d6f9720Swdenk } 1179f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 118010767ccbSwdenk 11817644f16fSStefan RoeseCPCI2DP_config: unconfig 1182f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 11837644f16fSStefan Roese 11847ebf7443SwdenkCPCI405_config \ 1185549826eaSstroeseCPCI4052_config \ 1186c419d1d6SstroeseCPCI405DT_config \ 1187549826eaSstroeseCPCI405AB_config: unconfig 1188f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1189f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 11907ebf7443Swdenk 11917ebf7443SwdenkCPCIISER4_config: unconfig 1192f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 11937ebf7443Swdenk 11947ebf7443SwdenkCRAYL1_config: unconfig 1195f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 11967ebf7443Swdenk 1197cd0a9de6Swdenkcsb272_config: unconfig 1198f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1199cd0a9de6Swdenk 1200aa245090Swdenkcsb472_config: unconfig 1201f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1202aa245090Swdenk 12037ebf7443SwdenkDASA_SIM_config: unconfig 1204f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 12057ebf7443Swdenk 120672cd5aa7SstroeseDP405_config: unconfig 1207f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 120872cd5aa7Sstroese 12097ebf7443SwdenkDU405_config: unconfig 1210f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 12117ebf7443Swdenk 12121a3ac86bSMatthias FuchsDU440_config: unconfig 12131a3ac86bSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 12141a3ac86bSMatthias Fuchs 12158a316c9bSStefan Roeseebony_config: unconfig 1216f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 12177ebf7443Swdenk 12187ebf7443SwdenkERIC_config: unconfig 1219f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 12207ebf7443Swdenk 1221d1cbe85bSwdenkEXBITGEN_config: unconfig 1222f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1223d1cbe85bSwdenk 1224c419d1d6SstroeseG2000_config: unconfig 1225f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1226c419d1d6Sstroese 1227ac982ea5SNiklaus Gigerhcu4_config: unconfig 122835d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1229ac982ea5SNiklaus Giger 1230ac982ea5SNiklaus Gigerhcu5_config: unconfig 123135d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1232ac982ea5SNiklaus Giger 1233c419d1d6SstroeseHH405_config: unconfig 1234f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1235c419d1d6Sstroese 123672cd5aa7SstroeseHUB405_config: unconfig 1237f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 123872cd5aa7Sstroese 1239db01a2eaSwdenkJSE_config: unconfig 1240f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1241db01a2eaSwdenk 1242b79316f2SStefan RoeseKAREF_config: unconfig 1243f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1244b79316f2SStefan Roese 12454745acaaSStefan Roesekatmai_config: unconfig 12464745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 12474745acaaSStefan Roese 1248353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1249353f2688SStefan Roesekilauea_config \ 1250353f2688SStefan Roesehaleakala_config: unconfig 1251353f2688SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1252566806caSStefan Roese 12533d6cb3b2SStefan Roesekilauea_nand_config \ 12543d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 12553d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 12563d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 12573d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 12583d6cb3b2SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 12593d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 12603d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 12613d6cb3b2SStefan Roese 1262c591dffeSLarry Johnsonkorat_config: unconfig 1263c591dffeSLarry Johnson @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1264c591dffeSLarry Johnson 12656e7fb6eaSStefan Roeseluan_config: unconfig 1266f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 12676e7fb6eaSStefan Roese 1268b765ffb7SStefan Roeselwmon5_config: unconfig 1269b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1270b765ffb7SStefan Roese 1271211ea91aSStefan Roesemakalu_config: unconfig 1272211ea91aSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1273211ea91aSStefan Roese 1274b79316f2SStefan RoeseMETROBOX_config: unconfig 1275f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1276b79316f2SStefan Roese 12777ebf7443SwdenkMIP405_config: unconfig 1278f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 12797ebf7443Swdenk 1280f3e0de60SwdenkMIP405T_config: unconfig 1281f9328639SMarian Balakowicz @mkdir -p $(obj)include 1282f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1283ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1284f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1285f3e0de60Swdenk 12867ebf7443SwdenkML2_config: unconfig 1287f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 12887ebf7443Swdenk 1289028ab6b5Swdenkml300_config: unconfig 1290f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1291028ab6b5Swdenk 12928a316c9bSStefan Roeseocotea_config: unconfig 1293f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 12940e6d798cSwdenk 12957ebf7443SwdenkOCRTC_config \ 12967ebf7443SwdenkORSG_config: unconfig 1297f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 12987ebf7443Swdenk 12995568e613SStefan Roesep3p440_config: unconfig 1300f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 13015568e613SStefan Roese 13027ebf7443SwdenkPCI405_config: unconfig 1303f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 13047ebf7443Swdenk 1305a4c8d138SStefan Roesepcs440ep_config: unconfig 1306f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1307a4c8d138SStefan Roese 13087ebf7443SwdenkPIP405_config: unconfig 1309f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 13107ebf7443Swdenk 131172cd5aa7SstroesePLU405_config: unconfig 1312f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 131372cd5aa7Sstroese 1314549826eaSstroesePMC405_config: unconfig 1315f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1316549826eaSstroese 13178ba132caSMatthias FuchsPMC440_config: unconfig 13188ba132caSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 13198ba132caSMatthias Fuchs 1320281e00a3SwdenkPPChameleonEVB_config \ 1321e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1322e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1323e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1324e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1325e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1326e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1327f9328639SMarian Balakowicz @mkdir -p $(obj)include 1328f9328639SMarian Balakowicz @ >$(obj)include/config.h 13291d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1330f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1331ae6d1056SWolfgang Denk $(XECHO) "... BASIC model" ; \ 1332fbe4b5cbSwdenk } 13331d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1334f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1335ae6d1056SWolfgang Denk $(XECHO) "... MEDIUM model" ; \ 1336fbe4b5cbSwdenk } 13371d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1338f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1339ae6d1056SWolfgang Denk $(XECHO) "... HIGH-END model" ; \ 1340fbe4b5cbSwdenk } 1341e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1342f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1343ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 1344e55ca7e2Swdenk } 1345e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1346f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1347ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 1348e55ca7e2Swdenk } 1349f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 135012f34241Swdenk 1351430f1b0fSStefan Roesesbc405_config: unconfig 1352430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1353430f1b0fSStefan Roese 1354430f1b0fSStefan Roesesequoia_config \ 1355854bc8daSStefan Roeserainier_config: unconfig 13568318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1357430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1358430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 13592aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1360854bc8daSStefan Roese 1361430f1b0fSStefan Roesesequoia_nand_config \ 1362854bc8daSStefan Roeserainier_nand_config: unconfig 136363e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 136463e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 13658318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1366430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1367430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1368430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 13698318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 13708318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1371652a10c0Swdenk 13726d3e0107SWolfgang Denksc3_config:unconfig 137335d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1374ca43ba18SHeiko Schocher 1375d4024bb7SJohn Otkentaihu_config: unconfig 1376d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1377d4024bb7SJohn Otken 13785fb692caSStefan Roesetaishan_config: unconfig 13795fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 13805fb692caSStefan Roese 138172cd5aa7SstroeseVOH405_config: unconfig 1382f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 138372cd5aa7Sstroese 1384c419d1d6SstroeseVOM405_config: unconfig 1385f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1386c419d1d6Sstroese 1387feaedfcfSStefan RoeseCMS700_config: unconfig 1388f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1389feaedfcfSStefan Roese 13907ebf7443SwdenkW7OLMC_config \ 13917ebf7443SwdenkW7OLMG_config: unconfig 1392f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 13937ebf7443Swdenk 1394430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1395430f1b0fSStefan Roesewalnut_config \ 1396430f1b0fSStefan Roesesycamore_config: unconfig 1397430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 13987ebf7443Swdenk 1399c419d1d6SstroeseWUH405_config: unconfig 1400f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1401c419d1d6Sstroese 1402ba56f625SwdenkXPEDITE1K_config: unconfig 1403f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1404ba56f625Swdenk 1405430f1b0fSStefan Roeseyosemite_config \ 14068a316c9bSStefan Roeseyellowstone_config: unconfig 1407700200c6SStefan Roese @mkdir -p $(obj)include 1408430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1409430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 14102aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 14118a316c9bSStefan Roese 14126c5879f3SMarian Balakowiczyucca_config: unconfig 1413f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 14146c5879f3SMarian Balakowicz 1415779e9751SStefan Roesezeus_config: unconfig 1416779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1417779e9751SStefan Roese 14187ebf7443Swdenk######################################################################### 1419983fda83Swdenk## MPC8220 Systems 1420983fda83Swdenk######################################################################### 1421dc17fb6dSWolfgang Denk 1422dc17fb6dSWolfgang DenkAlaska8220_config \ 1423dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1424f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1425983fda83Swdenk 142612b43d51Swdenksorcery_config: unconfig 1427f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 142812b43d51Swdenk 1429983fda83Swdenk######################################################################### 14307ebf7443Swdenk## MPC824x Systems 14317ebf7443Swdenk######################################################################### 1432efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 14333bac3513Swdenk 14340332990bSwdenkA3000_config: unconfig 1435f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 14360332990bSwdenk 14378e6f1a8eSWolfgang Denkbarco_config: unconfig 1438f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 14398e6f1a8eSWolfgang Denk 14407ebf7443SwdenkBMW_config: unconfig 1441f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 14427ebf7443Swdenk 14433bac3513SwdenkCPC45_config \ 14443bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1445f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1446f9328639SMarian Balakowicz @cd $(obj)include ; \ 14473bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 14483bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1449ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 14503bac3513Swdenk else \ 14513bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1452ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 14533bac3513Swdenk fi; \ 14543bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 14553bac3513Swdenk 14567ebf7443SwdenkCU824_config: unconfig 1457f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 14587ebf7443Swdenk 14597abf0c58Swdenkdebris_config: unconfig 1460f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 14617abf0c58Swdenk 146280885a9dSwdenkeXalion_config: unconfig 1463f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 146480885a9dSwdenk 1465756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1466f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1467756f586aSwdenk 146853dd6ce4SWolfgang Denkkvme080_config: unconfig 1469f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 147053dd6ce4SWolfgang Denk 14717ebf7443SwdenkMOUSSE_config: unconfig 1472f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 14737ebf7443Swdenk 14747ebf7443SwdenkMUSENKI_config: unconfig 1475f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 14767ebf7443Swdenk 1477b4676a25SwdenkMVBLUE_config: unconfig 1478f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1479b4676a25Swdenk 14807ebf7443SwdenkOXC_config: unconfig 1481f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 14827ebf7443Swdenk 14837ebf7443SwdenkPN62_config: unconfig 1484f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 14857ebf7443Swdenk 14867ebf7443SwdenkSandpoint8240_config: unconfig 1487f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 14887ebf7443Swdenk 14897ebf7443SwdenkSandpoint8245_config: unconfig 1490f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 14917ebf7443Swdenk 1492466b7410Swdenksbc8240_config: unconfig 1493f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1494466b7410Swdenk 1495d1cbe85bSwdenkSL8245_config: unconfig 1496f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1497d1cbe85bSwdenk 14987ebf7443Swdenkutx8245_config: unconfig 1499f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 15007ebf7443Swdenk 15017ebf7443Swdenk######################################################################### 15027ebf7443Swdenk## MPC8260 Systems 15037ebf7443Swdenk######################################################################### 15047ebf7443Swdenk 150554387ac9Swdenkatc_config: unconfig 1506f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 150754387ac9Swdenk 15087ebf7443Swdenkcogent_mpc8260_config: unconfig 1509f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 15107ebf7443Swdenk 15117ebf7443SwdenkCPU86_config \ 15127ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1513f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1514f9328639SMarian Balakowicz @cd $(obj)include ; \ 15157ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 15167ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1517ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 15187ebf7443Swdenk else \ 15197ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1520ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 15217ebf7443Swdenk fi; \ 15227ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 15237ebf7443Swdenk 1524384cc687SwdenkCPU87_config \ 1525384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1526f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1527f9328639SMarian Balakowicz @cd $(obj)include ; \ 1528384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1529384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1530ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1531384cc687Swdenk else \ 1532384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1533ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1534384cc687Swdenk fi; \ 1535384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1536384cc687Swdenk 1537f901a83bSWolfgang Denkep8248_config \ 1538f901a83bSWolfgang Denkep8248E_config : unconfig 1539f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1540f901a83bSWolfgang Denk 15417ebf7443Swdenkep8260_config: unconfig 1542f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 15437ebf7443Swdenk 15448d4ac794SWolfgang Denkep82xxm_config: unconfig 154590b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 15468d4ac794SWolfgang Denk 15477ebf7443Swdenkgw8260_config: unconfig 1548f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 15497ebf7443Swdenk 15507ebf7443Swdenkhymod_config: unconfig 1551f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 15527ebf7443Swdenk 15539dd41a7bSwdenkIDS8247_config: unconfig 1554f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 15559dd41a7bSwdenk 15567ebf7443SwdenkIPHASE4539_config: unconfig 1557f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 15587ebf7443Swdenk 1559c3c7f861SwdenkISPAN_config \ 1560c3c7f861SwdenkISPAN_REVB_config: unconfig 1561f9328639SMarian Balakowicz @mkdir -p $(obj)include 1562c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1563f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1564c3c7f861Swdenk fi 1565f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1566c3c7f861Swdenk 1567ac9db066SHeiko Schochermgcoge_config : unconfig 1568ac9db066SHeiko Schocher @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge 1569ac9db066SHeiko Schocher 157004a85b3bSwdenkMPC8260ADS_config \ 1571901787d6SwdenkMPC8260ADS_lowboot_config \ 157204a85b3bSwdenkMPC8260ADS_33MHz_config \ 1573901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 157404a85b3bSwdenkMPC8260ADS_40MHz_config \ 1575901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 157604a85b3bSwdenkMPC8272ADS_config \ 1577901787d6SwdenkMPC8272ADS_lowboot_config \ 157804a85b3bSwdenkPQ2FADS_config \ 1579901787d6SwdenkPQ2FADS_lowboot_config \ 158004a85b3bSwdenkPQ2FADS-VR_config \ 1581901787d6SwdenkPQ2FADS-VR_lowboot_config \ 158204a85b3bSwdenkPQ2FADS-ZU_config \ 1583901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 158404a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1585901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 158604a85b3bSwdenk : unconfig 1587f9328639SMarian Balakowicz @mkdir -p $(obj)include 1588f9328639SMarian Balakowicz @mkdir -p $(obj)board/mpc8260ads 158904a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1590f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1591f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 159204a85b3bSwdenk $(if $(findstring MHz,$@), \ 1593f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 159404a85b3bSwdenk $(if $(findstring VR,$@), \ 1595f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1596901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1597f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \ 1598ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 1599901787d6Swdenk } 1600f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads 16017ebf7443Swdenk 1602db2f721fSwdenkMPC8266ADS_config: unconfig 1603f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads 1604db2f721fSwdenk 1605efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 160610f67017SwdenkPM825_config \ 1607efa329cbSwdenkPM825_ROMBOOT_config \ 1608efa329cbSwdenkPM825_BIGFLASH_config \ 1609efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 16107ebf7443SwdenkPM826_config \ 1611efa329cbSwdenkPM826_ROMBOOT_config \ 1612efa329cbSwdenkPM826_BIGFLASH_config \ 1613efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1614f9328639SMarian Balakowicz @mkdir -p $(obj)include 1615f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1616efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1617f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 16187ebf7443Swdenk else \ 1619f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1620efa329cbSwdenk fi 1621efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1622ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1623f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1624f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1625efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1626ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1627f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 16287ebf7443Swdenk fi; \ 1629efa329cbSwdenk else \ 1630ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1631efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1632ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1633f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1634f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1635efa329cbSwdenk else \ 1636f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1637efa329cbSwdenk fi; \ 1638efa329cbSwdenk fi 1639f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1640efa329cbSwdenk 1641efa329cbSwdenkPM828_config \ 1642efa329cbSwdenkPM828_PCI_config \ 1643efa329cbSwdenkPM828_ROMBOOT_config \ 1644efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1645f9328639SMarian Balakowicz @mkdir -p $(obj)include 1646f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 164717076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1648f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1649ae6d1056SWolfgang Denk $(XECHO) "... with PCI enabled" ; \ 1650efa329cbSwdenk else \ 1651f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1652efa329cbSwdenk fi 1653efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1654ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1655f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1656f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1657efa329cbSwdenk fi 1658f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 16597ebf7443Swdenk 16607ebf7443Swdenkppmc8260_config: unconfig 1661f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 16627ebf7443Swdenk 16638b0bfc68SwdenkRattler8248_config \ 16648b0bfc68SwdenkRattler_config: unconfig 1665f9328639SMarian Balakowicz @mkdir -p $(obj)include 16668b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1667f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1668f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 16698b0bfc68Swdenk 16707ebf7443SwdenkRPXsuper_config: unconfig 1671f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 16727ebf7443Swdenk 16737ebf7443Swdenkrsdproto_config: unconfig 1674f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 16757ebf7443Swdenk 16767ebf7443Swdenksacsng_config: unconfig 1677f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 16787ebf7443Swdenk 16797ebf7443Swdenksbc8260_config: unconfig 1680f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 16817ebf7443Swdenk 16827ebf7443SwdenkSCM_config: unconfig 1683f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 16847ebf7443Swdenk 168527b207fdSwdenkTQM8255_AA_config \ 168627b207fdSwdenkTQM8260_AA_config \ 168727b207fdSwdenkTQM8260_AB_config \ 168827b207fdSwdenkTQM8260_AC_config \ 168927b207fdSwdenkTQM8260_AD_config \ 169027b207fdSwdenkTQM8260_AE_config \ 169127b207fdSwdenkTQM8260_AF_config \ 169227b207fdSwdenkTQM8260_AG_config \ 169327b207fdSwdenkTQM8260_AH_config \ 16941f62bc2dSWolfgang DenkTQM8260_AI_config \ 169527b207fdSwdenkTQM8265_AA_config: unconfig 1696f9328639SMarian Balakowicz @mkdir -p $(obj)include 169727b207fdSwdenk @case "$@" in \ 169827b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 169927b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 170027b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 170127b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 170227b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 170327b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 170427b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 170527b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 170627b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 17071f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 170827b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 170927b207fdSwdenk esac; \ 1710f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 171127b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1712f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 171327b207fdSwdenk fi; \ 1714f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 171527b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 17161aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1717f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1718ae6d1056SWolfgang Denk $(XECHO) "... with L2 Cache support" ; \ 17197ebf7443Swdenk else \ 1720f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1721ae6d1056SWolfgang Denk $(XECHO) "... without L2 Cache support" ; \ 172227b207fdSwdenk fi; \ 17231aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1724f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1725ae6d1056SWolfgang Denk $(XECHO) "... with 60x Bus Mode" ; \ 172627b207fdSwdenk else \ 1727f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1728ae6d1056SWolfgang Denk $(XECHO) "... without 60x Bus Mode" ; \ 17297ebf7443Swdenk fi 1730f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 17317ebf7443Swdenk 1732fa230445SHeiko SchocherTQM8272_config: unconfig 1733fa230445SHeiko Schocher @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272 1734fa230445SHeiko Schocher 1735ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1736ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1737f9328639SMarian Balakowicz @mkdir -p $(obj)include 1738f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1739f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1740ba91e26aSwdenk 174154387ac9SwdenkZPC1900_config: unconfig 1742f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 17437aa78614Swdenk 17444e5ca3ebSwdenk######################################################################### 17454e5ca3ebSwdenk## Coldfire 17464e5ca3ebSwdenk######################################################################### 17474e5ca3ebSwdenk 17481552af70STsiChungLiewM52277EVB_config: unconfig 17491552af70STsiChungLiew @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 17501552af70STsiChungLiew 17514a442d31STsiChungLiewM5235EVB_config \ 17524a442d31STsiChungLiewM5235EVB_Flash16_config \ 17534a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 17544a442d31STsiChungLiew @case "$@" in \ 17554a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 17564a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 17574a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 17584a442d31STsiChungLiew esac; \ 1759ae6d1056SWolfgang Denk >$(obj)include/config.h ; \ 17604a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1761ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 17624a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 17634a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 17644a442d31STsiChungLiew else \ 17654a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 17664a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 17674a442d31STsiChungLiew fi 17684a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 17694a442d31STsiChungLiew 1770a605aacdSTsiChungLiewM5249EVB_config : unconfig 1771a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1772a605aacdSTsiChungLiew 1773a1436a84STsiChungLiewM5253EVBE_config : unconfig 1774a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1775a1436a84STsiChungLiew 17767481266eSWolfgang Denkcobra5272_config : unconfig 1777f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 17787481266eSWolfgang Denk 17794176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1780f9328639SMarian Balakowicz @mkdir -p $(obj)include 1781f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1782f9328639SMarian Balakowicz @ >$(obj)include/config.h 1783f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1784f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 17854176c799SWolfgang Denk 17864176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1787f9328639SMarian Balakowicz @mkdir -p $(obj)include 1788f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1789f9328639SMarian Balakowicz @ >$(obj)include/config.h 1790f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1791f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 17924176c799SWolfgang Denk 1793daa6e418SBartlomiej Siekaidmr_config : unconfig 1794daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1795daa6e418SBartlomiej Sieka 17964176c799SWolfgang DenkM5271EVB_config : unconfig 1797f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 17984176c799SWolfgang Denk 17994e5ca3ebSwdenkM5272C3_config : unconfig 1800f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 18014e5ca3ebSwdenk 18024e5ca3ebSwdenkM5282EVB_config : unconfig 1803f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 18044e5ca3ebSwdenk 1805c419d1d6SstroeseTASREG_config : unconfig 1806f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1807c419d1d6Sstroese 18083a108ed8SZachary P. Landaur5200_config : unconfig 1809f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200 18103a108ed8SZachary P. Landau 18118e585f02STsiChung LiewM5329AFEE_config \ 18128e585f02STsiChung LiewM5329BFEE_config : unconfig 18138e585f02STsiChung Liew @case "$@" in \ 18148e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 18158e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 18168e585f02STsiChung Liew esac; \ 1817ae6d1056SWolfgang Denk >$(obj)include/config.h ; \ 18188e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1819ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 18208e585f02STsiChung Liew fi 18218e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 18228e585f02STsiChung Liew 1823aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1824aa5f1f9dSTsiChungLiew @case "$@" in \ 1825aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1826aa5f1f9dSTsiChungLiew esac; \ 1827aa5f1f9dSTsiChungLiew >include/config.h ; \ 1828aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1829aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1830aa5f1f9dSTsiChungLiew fi 1831aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1832aa5f1f9dSTsiChungLiew 18338ae158cdSTsiChungLiewM54455EVB_config \ 18348ae158cdSTsiChungLiewM54455EVB_atmel_config \ 18358ae158cdSTsiChungLiewM54455EVB_intel_config \ 18368ae158cdSTsiChungLiewM54455EVB_a33_config \ 18378ae158cdSTsiChungLiewM54455EVB_a66_config \ 18388ae158cdSTsiChungLiewM54455EVB_i33_config \ 18398ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 18408ae158cdSTsiChungLiew @case "$@" in \ 18418ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 18428ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 18438ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 18448ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 18458ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 18468ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 18478ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 18488ae158cdSTsiChungLiew esac; \ 1849ae6d1056SWolfgang Denk >$(obj)include/config.h ; \ 18501aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 18514a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1852e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1853e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1854ae6d1056SWolfgang Denk $(XECHO) "... with INTEL boot..." ; \ 18558ae158cdSTsiChungLiew else \ 18564a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1857e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1858e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1859ae6d1056SWolfgang Denk $(XECHO) "... with ATMEL boot..." ; \ 18608ae158cdSTsiChungLiew fi; \ 18614a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1862ae6d1056SWolfgang Denk $(XECHO) "... with $${FREQ}Hz input clock" 18638ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 18648ae158cdSTsiChungLiew 186557a12720STsiChungLiewM5475AFE_config \ 186657a12720STsiChungLiewM5475BFE_config \ 186757a12720STsiChungLiewM5475CFE_config \ 186857a12720STsiChungLiewM5475DFE_config \ 186957a12720STsiChungLiewM5475EFE_config \ 187057a12720STsiChungLiewM5475FFE_config \ 187157a12720STsiChungLiewM5475GFE_config : unconfig 187257a12720STsiChungLiew @case "$@" in \ 187357a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 187457a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 187557a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 187657a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 187757a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 187857a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 187957a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 188057a12720STsiChungLiew esac; \ 188157a12720STsiChungLiew >include/config.h ; \ 188257a12720STsiChungLiew echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \ 188357a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 188457a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 188557a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 188657a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 188757a12720STsiChungLiew fi; \ 188857a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 188957a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 189057a12720STsiChungLiew fi; \ 189157a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 189257a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 189357a12720STsiChungLiew fi; \ 189457a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 189557a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 189657a12720STsiChungLiew fi 189757a12720STsiChungLiew @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 189857a12720STsiChungLiew 189957a12720STsiChungLiewM5485AFE_config \ 190057a12720STsiChungLiewM5485BFE_config \ 190157a12720STsiChungLiewM5485CFE_config \ 190257a12720STsiChungLiewM5485DFE_config \ 190357a12720STsiChungLiewM5485EFE_config \ 190457a12720STsiChungLiewM5485FFE_config \ 190557a12720STsiChungLiewM5485GFE_config \ 190657a12720STsiChungLiewM5485HFE_config : unconfig 190757a12720STsiChungLiew @case "$@" in \ 190857a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 190957a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 191057a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 191157a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 191257a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 191357a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 191457a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 191557a12720STsiChungLiew M5485HFE_config) BOOT=2;CODE=;VID=1;USB=0;RAM=64;RAM1=0;; \ 191657a12720STsiChungLiew esac; \ 191757a12720STsiChungLiew >include/config.h ; \ 191857a12720STsiChungLiew echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \ 191957a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 192057a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 192157a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 192257a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 192357a12720STsiChungLiew fi; \ 192457a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 192557a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 192657a12720STsiChungLiew fi; \ 192757a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 192857a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 192957a12720STsiChungLiew fi; \ 193057a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 193157a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 193257a12720STsiChungLiew fi 193357a12720STsiChungLiew @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 193457a12720STsiChungLiew 19357ebf7443Swdenk######################################################################### 1936f046ccd1SEran Liberty## MPC83xx Systems 1937f046ccd1SEran Liberty######################################################################### 1938f046ccd1SEran Liberty 19395c5d3242SKim PhillipsMPC8313ERDB_33_config \ 19405c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 1941cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1942cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 19435c5d3242SKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 1944ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 1945cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 19465c5d3242SKim Phillips fi ; \ 19475c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1948ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 1949cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 19505c5d3242SKim Phillips fi ; 1951e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 19525c5d3242SKim Phillips 19538bd522ceSDave LiuMPC8315ERDB_config: unconfig 19548bd522ceSDave Liu @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 19558bd522ceSDave Liu 19561c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 19571c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 19581c274c4eSKim Phillips 19594decd84eSKim PhillipsMPC832XEMDS_config \ 19604decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 19614decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1962281df457STony LiMPC832XEMDS_SLAVE_config \ 1963281df457STony LiMPC832XEMDS_ATM_config: unconfig 1964cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1965cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 19664decd84eSKim Phillips if [ "$(findstring _HOST_,$@)" ] ; then \ 1967ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 1968cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 19694decd84eSKim Phillips fi ; \ 19704decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1971ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 1972cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1973cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 19744decd84eSKim Phillips fi ; \ 19754decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 1976ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 1977cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1978281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 19794decd84eSKim Phillips fi ; \ 19804decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1981ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 1982cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1983281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1984281df457STony Li fi ; \ 1985281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1986ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 1987281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1988281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 19894decd84eSKim Phillips fi ; 1990e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 1991e6f2e902SMarian Balakowicz 1992991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 1993e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 1994991425feSMarian Balakowicz 19957a78f148STimur TabiMPC8349ITX_config \ 19967a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 19977a78f148STimur TabiMPC8349ITXGP_config: unconfig 19987a78f148STimur Tabi @mkdir -p $(obj)include 1999e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 20007a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 20017a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 2002e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20037a78f148STimur Tabi fi 20047a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2005e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20067a78f148STimur Tabi fi 2007e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 20084decd84eSKim Phillips 20095f820439SDave LiuMPC8360EMDS_config \ 20105f820439SDave LiuMPC8360EMDS_HOST_33_config \ 20115f820439SDave LiuMPC8360EMDS_HOST_66_config \ 2012281df457STony LiMPC8360EMDS_SLAVE_config \ 2013281df457STony LiMPC8360EMDS_ATM_config: unconfig 2014cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2015cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 20165f820439SDave Liu if [ "$(findstring _HOST_,$@)" ] ; then \ 2017ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2018cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20195f820439SDave Liu fi ; \ 20205f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2021ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2022cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2023cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20245f820439SDave Liu fi ; \ 20255f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 2026ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2027cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2028281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20295f820439SDave Liu fi ; \ 20305f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 2031ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2032cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2033281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2034281df457STony Li fi ; \ 2035281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2036ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2037281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2038281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20395f820439SDave Liu fi ; 2040e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 20415f820439SDave Liu 2042fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 2043fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 2044fab6f556SAnton VorontsovMPC8360ERDK_config: 2045fab6f556SAnton Vorontsov @mkdir -p $(obj)include 2046fab6f556SAnton Vorontsov @echo "" >$(obj)include/config.h ; \ 2047fab6f556SAnton Vorontsov if [ "$(findstring _33_,$@)" ] ; then \ 2048ae6d1056SWolfgang Denk $(XECHO) -n "... CLKIN 33MHz " ; \ 2049fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2050fab6f556SAnton Vorontsov fi ; 2051fab6f556SAnton Vorontsov @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2052fab6f556SAnton Vorontsov 205319580e66SDave LiuMPC837XEMDS_config \ 205419580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 205519580e66SDave Liu @mkdir -p $(obj)include 205619580e66SDave Liu @echo "" >$(obj)include/config.h ; \ 205719580e66SDave Liu if [ "$(findstring _HOST_,$@)" ] ; then \ 2058ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 205919580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 206019580e66SDave Liu fi ; 206119580e66SDave Liu @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 206219580e66SDave Liu 20635e918a98SKim PhillipsMPC837XERDB_config: unconfig 20645e918a98SKim Phillips @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 20655e918a98SKim Phillips 206691e25769SPaul Gortmakersbc8349_config: unconfig 206791e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 206891e25769SPaul Gortmaker 20694decd84eSKim PhillipsTQM834x_config: unconfig 20704decd84eSKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 20714decd84eSKim Phillips 20722ad6b513STimur Tabi 2073f046ccd1SEran Liberty######################################################################### 207442d1f039Swdenk## MPC85xx Systems 207542d1f039Swdenk######################################################################### 207642d1f039Swdenk 20777bd6104bSrobert lazarskiATUM8548_config: unconfig 20787bd6104bSrobert lazarski @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 20797bd6104bSrobert lazarski 208042d1f039SwdenkMPC8540ADS_config: unconfig 2081c2d943ffSKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 208242d1f039Swdenk 2083b0e32949SLunsheng WangMPC8540EVAL_config \ 2084b0e32949SLunsheng WangMPC8540EVAL_33_config \ 2085b0e32949SLunsheng WangMPC8540EVAL_66_config \ 2086b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 2087b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 2088f9328639SMarian Balakowicz @mkdir -p $(obj)include 2089f9328639SMarian Balakowicz @echo "" >$(obj)include/config.h ; \ 2090b0e32949SLunsheng Wang if [ "$(findstring _33_,$@)" ] ; then \ 2091ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2092b0e32949SLunsheng Wang else \ 2093f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2094ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2095b0e32949SLunsheng Wang fi ; \ 2096b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 2097f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2098ae6d1056SWolfgang Denk $(XECHO) " slave" ; \ 2099b0e32949SLunsheng Wang else \ 2100ae6d1056SWolfgang Denk $(XECHO) " host" ; \ 2101b0e32949SLunsheng Wang fi 2102f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2103b0e32949SLunsheng Wang 210442d1f039SwdenkMPC8560ADS_config: unconfig 2105870ceac5SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 210642d1f039Swdenk 21077f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 210803f5c550SwdenkMPC8541CDS_config: unconfig 21097f3f2bd2SRandy Vinson @mkdir -p $(obj)include 21107f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 21117f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 21127f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2113ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21147f3f2bd2SRandy Vinson fi 2115415a613bSKumar Gala @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 211603f5c550Swdenk 211781f481caSAndy FlemingMPC8544DS_config: unconfig 211881f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 211981f481caSAndy Fleming 21207f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 2121d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 21227f3f2bd2SRandy Vinson @mkdir -p $(obj)include 21237f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 21247f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 21257f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2126ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21277f3f2bd2SRandy Vinson fi 2128415a613bSKumar Gala @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2129d9b94f28SJon Loeliger 21307f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 213103f5c550SwdenkMPC8555CDS_config: unconfig 21327f3f2bd2SRandy Vinson @mkdir -p $(obj)include 21337f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 21347f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 21357f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2136ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21377f3f2bd2SRandy Vinson fi 2138415a613bSKumar Gala @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 21397abf0c58Swdenk 214067431059SAndy FlemingMPC8568MDS_config: unconfig 2141acbca876SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 214267431059SAndy Fleming 2143384cc687SwdenkPM854_config: unconfig 2144f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2145384cc687Swdenk 2146b20d0032SWolfgang DenkPM856_config: unconfig 2147f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2148b20d0032SWolfgang Denk 2149c15f3120Swdenksbc8540_config \ 2150c15f3120Swdenksbc8540_33_config \ 2151c15f3120Swdenksbc8540_66_config: unconfig 2152f9328639SMarian Balakowicz @mkdir -p $(obj)include 2153c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2154f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2155ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2156c15f3120Swdenk else \ 2157f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2158ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2159c15f3120Swdenk fi 2160f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2161c15f3120Swdenk 216211c45ebdSJoe Hammansbc8548_config: unconfig 216311c45ebdSJoe Hamman @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 216411c45ebdSJoe Hamman 2165466b7410Swdenksbc8560_config \ 2166466b7410Swdenksbc8560_33_config \ 2167466b7410Swdenksbc8560_66_config: unconfig 2168f9328639SMarian Balakowicz @mkdir -p $(obj)include 21698b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2170f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2171ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 21728b07a110Swdenk else \ 2173f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2174ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 21758b07a110Swdenk fi 2176f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 21778b07a110Swdenk 217803f5c550Swdenkstxgp3_config: unconfig 2179f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 218003f5c550Swdenk 2181ee152983SWolfgang Denkstxssa_config \ 2182ee152983SWolfgang Denkstxssa_4M_config: unconfig 2183ee152983SWolfgang Denk @mkdir -p $(obj)include 2184ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2185ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2186ae6d1056SWolfgang Denk $(XECHO) "... with 4 MiB flash memory" ; \ 2187ee152983SWolfgang Denk else \ 2188ee152983SWolfgang Denk >$(obj)include/config.h ; \ 2189ee152983SWolfgang Denk fi 2190ee152983SWolfgang Denk @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 219135171dc0SDan Malek 2192d96f41e0SStefan RoeseTQM8540_config \ 2193d96f41e0SStefan RoeseTQM8541_config \ 2194d96f41e0SStefan RoeseTQM8555_config \ 2195f5c5ef4aSwdenkTQM8560_config: unconfig 2196f9328639SMarian Balakowicz @mkdir -p $(obj)include 2197a889bd27SWolfgang Denk @CTYPE=$(subst TQM,,$(@:_config=)); \ 2198f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2199ae6d1056SWolfgang Denk $(XECHO) "... TQM"$${CTYPE}; \ 2200f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2201f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2202f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2203f9328639SMarian Balakowicz echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 22048a783a65SGrant Likely echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 2205f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 2206f5c5ef4aSwdenk 220742d1f039Swdenk######################################################################### 2208debb7354SJon Loeliger## MPC86xx Systems 2209debb7354SJon Loeliger######################################################################### 2210debb7354SJon Loeliger 22113c89d754SJon LoeligerMPC8610HPCD_config: unconfig 22123c89d754SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 22133c89d754SJon Loeliger 2214debb7354SJon LoeligerMPC8641HPCN_config: unconfig 22154ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2216debb7354SJon Loeliger 2217c646bba6SJoe Hammansbc8641d_config: unconfig 2218c646bba6SJoe Hamman @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d 2219debb7354SJon Loeliger 2220debb7354SJon Loeliger######################################################################### 22217ebf7443Swdenk## 74xx/7xx Systems 22227ebf7443Swdenk######################################################################### 22237ebf7443Swdenk 2224c7de829cSwdenkAmigaOneG3SE_config: unconfig 2225f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2226c7de829cSwdenk 222715647dc7SwdenkBAB7xx_config: unconfig 2228f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 222915647dc7Swdenk 2230c419d1d6SstroeseCPCI750_config: unconfig 2231f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2232c419d1d6Sstroese 22333a473b2aSwdenkDB64360_config: unconfig 2234f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 22353a473b2aSwdenk 22363a473b2aSwdenkDB64460_config: unconfig 2237f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 22383a473b2aSwdenk 223915647dc7SwdenkELPPC_config: unconfig 2240f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 224115647dc7Swdenk 22427ebf7443SwdenkEVB64260_config \ 22437ebf7443SwdenkEVB64260_750CX_config: unconfig 2244f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 22457ebf7443Swdenk 22464c52783bSroy zangmpc7448hpc2_config: unconfig 2247ee311214Sroy zang @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 22484c52783bSroy zang 224915647dc7SwdenkP3G4_config: unconfig 2250f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 22517ebf7443Swdenk 22521eac2a71SStefan Roesep3m750_config \ 22531eac2a71SStefan Roesep3m7448_config: unconfig 22541eac2a71SStefan Roese @mkdir -p $(obj)include 22551eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 22561eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 22571eac2a71SStefan Roese else \ 22581eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 22591eac2a71SStefan Roese fi 22601eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 22611eac2a71SStefan Roese 22627ebf7443SwdenkPCIPPC2_config \ 22637ebf7443SwdenkPCIPPC6_config: unconfig 2264f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 22657ebf7443Swdenk 226615647dc7SwdenkZUMA_config: unconfig 2267f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 226812f34241Swdenk 2269f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2270f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2271f5e0d039SHeiko Schocher 22727ebf7443Swdenk#======================================================================== 22737ebf7443Swdenk# ARM 22747ebf7443Swdenk#======================================================================== 22757ebf7443Swdenk######################################################################### 22767ebf7443Swdenk## StrongARM Systems 22777ebf7443Swdenk######################################################################### 22787ebf7443Swdenk 2279ea66bc88Swdenkassabet_config : unconfig 2280f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2281ea66bc88Swdenk 22827ebf7443Swdenkdnp1110_config : unconfig 2283f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 22847ebf7443Swdenk 2285855a496fSwdenkgcplus_config : unconfig 2286f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2287855a496fSwdenk 2288855a496fSwdenklart_config : unconfig 2289f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2290855a496fSwdenk 22917ebf7443Swdenkshannon_config : unconfig 2292f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 22937ebf7443Swdenk 22947ebf7443Swdenk######################################################################### 22952e5983d2Swdenk## ARM92xT Systems 22967ebf7443Swdenk######################################################################### 22977ebf7443Swdenk 2298b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 229943d9616cSwdenk 23003ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 230163e73c9aSwdenk 2302a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2303a56bd922Swdenk 2304a85f9f21Swdenkat91rm9200dk_config : unconfig 2305f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200 2306a85f9f21Swdenk 2307a85f9f21Swdenkcmc_pu2_config : unconfig 2308f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2309a85f9f21Swdenk 2310645da510SWolfgang Denkcsb637_config : unconfig 2311f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2312645da510SWolfgang Denk 23130e4018d2SWolfgang Denkmp2usb_config : unconfig 2314f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 23150e4018d2SWolfgang Denk 231687cb6862SWolfgang Denk 231774f4304eSWolfgang Denk######################################################################## 231887cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 231987cb6862SWolfgang Denkintegratorap_config \ 232087cb6862SWolfgang Denkap_config \ 232187cb6862SWolfgang Denkap966_config \ 232287cb6862SWolfgang Denkap922_config \ 232387cb6862SWolfgang Denkap922_XA10_config \ 232487cb6862SWolfgang Denkap7_config \ 232587cb6862SWolfgang Denkap720t_config \ 232687cb6862SWolfgang Denkap920t_config \ 232787cb6862SWolfgang Denkap926ejs_config \ 232887cb6862SWolfgang Denkap946es_config: unconfig 232996782c63SWolfgang Denk @board/integratorap/split_by_variant.sh $@ 23303d3befa7Swdenk 233187cb6862SWolfgang Denkintegratorcp_config \ 233287cb6862SWolfgang Denkcp_config \ 233387cb6862SWolfgang Denkcp920t_config \ 233487cb6862SWolfgang Denkcp926ejs_config \ 233587cb6862SWolfgang Denkcp946es_config \ 233687cb6862SWolfgang Denkcp1136_config \ 233787cb6862SWolfgang Denkcp966_config \ 233887cb6862SWolfgang Denkcp922_config \ 233987cb6862SWolfgang Denkcp922_XA10_config \ 234087cb6862SWolfgang Denkcp1026_config: unconfig 234196782c63SWolfgang Denk @board/integratorcp/split_by_variant.sh $@ 234225d6712aSwdenk 234399b0d285SWolfgang Denkkb9202_config : unconfig 2344f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 234599b0d285SWolfgang Denk 2346f832d8a1Swdenklpd7a400_config \ 2347f832d8a1Swdenklpd7a404_config: unconfig 2348f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 23493d3befa7Swdenk 2350281e00a3Swdenkmx1ads_config : unconfig 2351f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2352281e00a3Swdenk 2353281e00a3Swdenkmx1fs2_config : unconfig 2354f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2355281e00a3Swdenk 2356ac7eb8a3SWolfgang Denknetstar_32_config \ 2357ac7eb8a3SWolfgang Denknetstar_config: unconfig 2358f9328639SMarian Balakowicz @mkdir -p $(obj)include 2359ac7eb8a3SWolfgang Denk @if [ "$(findstring _32_,$@)" ] ; then \ 2360ae6d1056SWolfgang Denk $(XECHO) "... 32MB SDRAM" ; \ 2361f9328639SMarian Balakowicz echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \ 2362ac7eb8a3SWolfgang Denk else \ 2363ae6d1056SWolfgang Denk $(XECHO) "... 64MB SDRAM" ; \ 2364f9328639SMarian Balakowicz echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \ 2365ac7eb8a3SWolfgang Denk fi 2366f9328639SMarian Balakowicz @$(MKCONFIG) -a netstar arm arm925t netstar 2367ac7eb8a3SWolfgang Denk 23682e5983d2Swdenkomap1510inn_config : unconfig 2369f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 23702e5983d2Swdenk 23711eaeb58eSwdenkomap5912osk_config : unconfig 2372f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 23731eaeb58eSwdenk 2374c74b2108SSergey Kubushyndavinci_dvevm_config : unconfig 2375c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2376c74b2108SSergey Kubushyn 2377c74b2108SSergey Kubushyndavinci_schmoogie_config : unconfig 2378c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2379c74b2108SSergey Kubushyn 2380c74b2108SSergey Kubushyndavinci_sonata_config : unconfig 2381c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2382c74b2108SSergey Kubushyn 238363e73c9aSwdenkomap1610inn_config \ 238463e73c9aSwdenkomap1610inn_cs0boot_config \ 238563e73c9aSwdenkomap1610inn_cs3boot_config \ 23863ff02c27Swdenkomap1610inn_cs_autoboot_config \ 238763e73c9aSwdenkomap1610h2_config \ 238863e73c9aSwdenkomap1610h2_cs0boot_config \ 23893ff02c27Swdenkomap1610h2_cs3boot_config \ 23903ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2391f9328639SMarian Balakowicz @mkdir -p $(obj)include 239263e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2393cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2394ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 23953ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2396cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2397ae6d1056SWolfgang Denk $(XECHO) "... configured for CS_AUTO boot"; \ 239863e73c9aSwdenk else \ 2399cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2400ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 240163e73c9aSwdenk fi; 2402f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 24036f21347dSwdenk 2404a56bd922Swdenkomap730p2_config \ 2405a56bd922Swdenkomap730p2_cs0boot_config \ 2406a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2407f9328639SMarian Balakowicz @mkdir -p $(obj)include 2408a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2409f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2410ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 2411a56bd922Swdenk else \ 2412f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2413ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 2414a56bd922Swdenk fi; 2415f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2416a56bd922Swdenk 241732cb2c70SWolfgang Denksbc2410x_config: unconfig 2418f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 241932cb2c70SWolfgang Denk 2420281e00a3Swdenkscb9328_config : unconfig 2421f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2422281e00a3Swdenk 24237ebf7443Swdenksmdk2400_config : unconfig 2424f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 24257ebf7443Swdenk 24267ebf7443Swdenksmdk2410_config : unconfig 2427f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 24287ebf7443Swdenk 24292d24a3a7SwdenkSX1_config : unconfig 2430f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 24312d24a3a7Swdenk 2432b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 243343d9616cSwdenktrab_config \ 2434b0639ca3Swdenktrab_bigram_config \ 2435b0639ca3Swdenktrab_bigflash_config \ 2436f54ebdfaSwdenktrab_old_config: unconfig 2437f9328639SMarian Balakowicz @mkdir -p $(obj)include 2438f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2439f9328639SMarian Balakowicz @ >$(obj)include/config.h 2440b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2441f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2442f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2443ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2444b0639ca3Swdenk } 2445b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2446f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2447f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2448ae6d1056SWolfgang Denk $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2449f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2450b0639ca3Swdenk } 2451f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2452f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2453f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2454ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2455f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 245643d9616cSwdenk } 2457f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 24587ebf7443Swdenk 24591cb8e980SwdenkVCMA9_config : unconfig 2460f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 24611cb8e980Swdenk 246287cb6862SWolfgang Denk#======================================================================== 246387cb6862SWolfgang Denk# ARM supplied Versatile development boards 246487cb6862SWolfgang Denk#======================================================================== 246587cb6862SWolfgang Denkversatile_config \ 246687cb6862SWolfgang Denkversatileab_config \ 246787cb6862SWolfgang Denkversatilepb_config : unconfig 246896782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2469074cff0dSwdenk 24703c2b3d45Swdenkvoiceblue_smallflash_config \ 24713c2b3d45Swdenkvoiceblue_config: unconfig 2472f9328639SMarian Balakowicz @mkdir -p $(obj)include 2473f9328639SMarian Balakowicz @mkdir -p $(obj)board/voiceblue 24743c2b3d45Swdenk @if [ "$(findstring _smallflash_,$@)" ] ; then \ 2475ae6d1056SWolfgang Denk $(XECHO) "... boot from lower flash bank" ; \ 2476f9328639SMarian Balakowicz echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \ 2477f9328639SMarian Balakowicz echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \ 24783c2b3d45Swdenk else \ 2479ae6d1056SWolfgang Denk $(XECHO) "... boot from upper flash bank" ; \ 2480f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2481f9328639SMarian Balakowicz echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \ 24823c2b3d45Swdenk fi 2483f9328639SMarian Balakowicz @$(MKCONFIG) -a voiceblue arm arm925t voiceblue 24843c2b3d45Swdenk 248516b013e7Swdenkcm4008_config : unconfig 2486f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 248716b013e7Swdenk 248816b013e7Swdenkcm41xx_config : unconfig 2489f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 249016b013e7Swdenk 24910c32d96dSWolfgang Denkgth2_config : unconfig 2492f9328639SMarian Balakowicz @mkdir -p $(obj)include 2493f9328639SMarian Balakowicz @ >$(obj)include/config.h 2494f9328639SMarian Balakowicz @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h 2495f9328639SMarian Balakowicz @$(MKCONFIG) -a gth2 mips mips gth2 24960c32d96dSWolfgang Denk 2497074cff0dSwdenk######################################################################### 2498074cff0dSwdenk## S3C44B0 Systems 2499074cff0dSwdenk######################################################################### 2500074cff0dSwdenk 2501074cff0dSwdenkB2_config : unconfig 2502f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2503074cff0dSwdenk 25047ebf7443Swdenk######################################################################### 25057ebf7443Swdenk## ARM720T Systems 25067ebf7443Swdenk######################################################################### 25077ebf7443Swdenk 2508c570b2fdSWolfgang Denkarmadillo_config: unconfig 2509f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2510c570b2fdSWolfgang Denk 25117ebf7443Swdenkep7312_config : unconfig 2512f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 25137ebf7443Swdenk 25142d24a3a7Swdenkimpa7_config : unconfig 2515f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 25162d24a3a7Swdenk 25172d1a537dSwdenkmodnet50_config : unconfig 2518f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 25192d1a537dSwdenk 252039539887Swdenkevb4510_config : unconfig 2521f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 252239539887Swdenk 25236bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2524b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2525b0d8f5bfSPeter Pearse 2526b0d8f5bfSPeter PearseSMN42_config : unconfig 2527b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 25286bd2447eSGary Jennejohn 25297ebf7443Swdenk######################################################################### 253043d9616cSwdenk## XScale Systems 25317ebf7443Swdenk######################################################################### 25327ebf7443Swdenk 2533799891efSMichael Schwingenactux1_config : unconfig 2534799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux1 2535799891efSMichael Schwingen 2536799891efSMichael Schwingenactux2_config : unconfig 2537799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux2 2538799891efSMichael Schwingen 2539799891efSMichael Schwingenactux3_config : unconfig 2540799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux3 2541799891efSMichael Schwingen 2542799891efSMichael Schwingenactux4_config : unconfig 2543799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux4 2544799891efSMichael Schwingen 254520787e23Swdenkadsvix_config : unconfig 2546f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa adsvix 254720787e23Swdenk 2548fabd46acSwdenkcerf250_config : unconfig 2549f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2550fabd46acSwdenk 25517ebf7443Swdenkcradle_config : unconfig 2552f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 25537ebf7443Swdenk 25547ebf7443Swdenkcsb226_config : unconfig 2555f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 25567ebf7443Swdenk 25570be248faSWolfgang Denkdelta_config : 2558f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 25590be248faSWolfgang Denk 256043d9616cSwdenkinnokom_config : unconfig 2561f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 256243d9616cSwdenk 25632d5b561eSwdenkixdp425_config : unconfig 2564f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 25652d5b561eSwdenk 2566ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2567f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2568ba94a1bbSWolfgang Denk 256943d9616cSwdenklubbock_config : unconfig 2570f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 257143d9616cSwdenk 25725720df78SHeiko Schocherpleb2_config : unconfig 2573f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 25745720df78SHeiko Schocher 257552f52c14Swdenklogodl_config : unconfig 2576f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 257752f52c14Swdenk 25789d8d5a5bSStefan Roesepdnb3_config \ 25799d8d5a5bSStefan Roesescpu_config: unconfig 2580cdd917a4SWolfgang Denk @mkdir -p $(obj)include 25819d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2582cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2583ae6d1056SWolfgang Denk $(XECHO) "... on SCPU board variant" ; \ 25849d8d5a5bSStefan Roese else \ 2585cdd917a4SWolfgang Denk >$(obj)include/config.h ; \ 25869d8d5a5bSStefan Roese fi 25879d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2588ba94a1bbSWolfgang Denk 2589f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2590f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2591f57f70aaSWolfgang Denk 25925e5803e1Sstefano babictrizepsiv_config : unconfig 25935e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 25945e5803e1Sstefano babic 25953e38691eSwdenkwepep250_config : unconfig 2596f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 25973e38691eSwdenk 25984ec3a7f0Swdenkxaeniax_config : unconfig 2599f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 26004ec3a7f0Swdenk 2601efa329cbSwdenkxm250_config : unconfig 2602f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2603efa329cbSwdenk 2604ca0e7748Swdenkxsengine_config : unconfig 2605f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2606ca0e7748Swdenk 2607e0269579SMarkus Klotzbücherzylonite_config : 2608f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2609e0269579SMarkus Klotzbücher 26108ed96046Swdenk######################################################################### 26118ed96046Swdenk## ARM1136 Systems 26128ed96046Swdenk######################################################################### 26138ed96046Swdenkomap2420h4_config : unconfig 2614f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 26155ca9881aSPeter Pearse 26165ca9881aSPeter Pearseapollon_config : unconfig 26175ca9881aSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm1136 apollon 26188ed96046Swdenk 26192262cfeeSwdenk#======================================================================== 26202262cfeeSwdenk# i386 26212262cfeeSwdenk#======================================================================== 26222262cfeeSwdenk######################################################################### 26232262cfeeSwdenk## AMD SC520 CDP 26242262cfeeSwdenk######################################################################### 26252262cfeeSwdenksc520_cdp_config : unconfig 2626f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 26272262cfeeSwdenk 26287a8e9bedSwdenksc520_spunk_config : unconfig 2629f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26307a8e9bedSwdenk 26317a8e9bedSwdenksc520_spunk_rel_config : unconfig 2632f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26337a8e9bedSwdenk 263443d9616cSwdenk#======================================================================== 263543d9616cSwdenk# MIPS 263643d9616cSwdenk#======================================================================== 26377ebf7443Swdenk######################################################################### 263843d9616cSwdenk## MIPS32 4Kc 263943d9616cSwdenk######################################################################### 264043d9616cSwdenk 2641e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2642e0ac62d7Swdenk 2643e0ac62d7Swdenkincaip_100MHz_config \ 2644e0ac62d7Swdenkincaip_133MHz_config \ 2645e0ac62d7Swdenkincaip_150MHz_config \ 264643d9616cSwdenkincaip_config: unconfig 2647f9328639SMarian Balakowicz @mkdir -p $(obj)include 2648f9328639SMarian Balakowicz @ >$(obj)include/config.h 2649e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2650f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2651ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 2652e0ac62d7Swdenk } 2653e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2654f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2655ae6d1056SWolfgang Denk $(XECHO) "... with 133MHz system clock" ; \ 2656e0ac62d7Swdenk } 2657e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2658f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2659ae6d1056SWolfgang Denk $(XECHO) "... with 150MHz system clock" ; \ 2660e0ac62d7Swdenk } 2661f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2662e0ac62d7Swdenk 2663f4863a7aSwdenktb0229_config: unconfig 2664f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2665f4863a7aSwdenk 2666e0ac62d7Swdenk######################################################################### 266769459791Swdenk## MIPS32 AU1X00 266869459791Swdenk######################################################################### 266969459791Swdenkdbau1000_config : unconfig 2670f9328639SMarian Balakowicz @mkdir -p $(obj)include 2671f9328639SMarian Balakowicz @ >$(obj)include/config.h 2672f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h 2673f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 267469459791Swdenk 267569459791Swdenkdbau1100_config : unconfig 2676f9328639SMarian Balakowicz @mkdir -p $(obj)include 2677f9328639SMarian Balakowicz @ >$(obj)include/config.h 2678f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h 2679f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 268069459791Swdenk 268169459791Swdenkdbau1500_config : unconfig 2682f9328639SMarian Balakowicz @mkdir -p $(obj)include 2683f9328639SMarian Balakowicz @ >$(obj)include/config.h 2684f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h 2685f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 268669459791Swdenk 2687ff36fd85Swdenkdbau1550_config : unconfig 2688f9328639SMarian Balakowicz @mkdir -p $(obj)include 2689f9328639SMarian Balakowicz @ >$(obj)include/config.h 2690f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2691f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2692ff36fd85Swdenk 2693ff36fd85Swdenkdbau1550_el_config : unconfig 2694f9328639SMarian Balakowicz @mkdir -p $(obj)include 2695f9328639SMarian Balakowicz @ >$(obj)include/config.h 2696f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2697f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2698ff36fd85Swdenk 2699265817c7SWolfgang Denkpb1000_config : unconfig 2700f9328639SMarian Balakowicz @mkdir -p $(obj)include 2701f9328639SMarian Balakowicz @ >$(obj)include/config.h 2702f9328639SMarian Balakowicz @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h 2703f9328639SMarian Balakowicz @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2704265817c7SWolfgang Denk 27050764c164SVlad Lunguqemu_mips_config: unconfig 27060764c164SVlad Lungu @mkdir -p $(obj)include 27070764c164SVlad Lungu @ >$(obj)include/config.h 27080764c164SVlad Lungu @echo "#define CONFIG_QEMU_MIPS 1" >>$(obj)include/config.h 27090764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 27100764c164SVlad Lungu 271169459791Swdenk######################################################################### 2712e0ac62d7Swdenk## MIPS64 5Kc 2713e0ac62d7Swdenk######################################################################### 271443d9616cSwdenk 27153e38691eSwdenkpurple_config : unconfig 2716f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 271743d9616cSwdenk 27184a551709Swdenk#======================================================================== 27194a551709Swdenk# Nios 27204a551709Swdenk#======================================================================== 27214a551709Swdenk######################################################################### 27224a551709Swdenk## Nios32 27234a551709Swdenk######################################################################### 27244a551709Swdenk 2725c935d3bdSwdenkDK1C20_safe_32_config \ 2726c935d3bdSwdenkDK1C20_standard_32_config \ 27274a551709SwdenkDK1C20_config: unconfig 2728f9328639SMarian Balakowicz @mkdir -p $(obj)include 2729f9328639SMarian Balakowicz @ >$(obj)include/config.h 2730c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2731f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2732ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2733c935d3bdSwdenk } 2734c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2735f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2736ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2737c935d3bdSwdenk } 2738c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2739f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2740ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2741c935d3bdSwdenk } 2742f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2743c935d3bdSwdenk 2744c935d3bdSwdenkDK1S10_safe_32_config \ 2745c935d3bdSwdenkDK1S10_standard_32_config \ 2746ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2747c935d3bdSwdenkDK1S10_config: unconfig 2748f9328639SMarian Balakowicz @mkdir -p $(obj)include 2749f9328639SMarian Balakowicz @ >$(obj)include/config.h 2750c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2751f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2752ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2753c935d3bdSwdenk } 2754c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2755f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2756ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2757c935d3bdSwdenk } 2758ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2759f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2760ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 2761ec4c544bSwdenk } 2762c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2763f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2764ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2765c935d3bdSwdenk } 2766f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 27674a551709Swdenk 2768aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 2769aaf224abSwdenkADNPESC1_base_32_config \ 2770aaf224abSwdenkADNPESC1_config: unconfig 2771f9328639SMarian Balakowicz @mkdir -p $(obj)include 2772f9328639SMarian Balakowicz @ >$(obj)include/config.h 2773aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2774f9328639SMarian Balakowicz { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2775ae6d1056SWolfgang Denk $(XECHO) "... DNP/EVA2 configuration" ; \ 2776aaf224abSwdenk } 2777aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 2778f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2779ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration" ; \ 2780aaf224abSwdenk } 2781aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2782f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2783ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2784aaf224abSwdenk } 2785f9328639SMarian Balakowicz @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2786aaf224abSwdenk 27875c952cf0Swdenk######################################################################### 27885c952cf0Swdenk## Nios-II 27895c952cf0Swdenk######################################################################### 27905c952cf0Swdenk 27919cc83378SScott McNuttEP1C20_config : unconfig 2792f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 27939cc83378SScott McNutt 27949cc83378SScott McNuttEP1S10_config : unconfig 2795f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 27969cc83378SScott McNutt 27979cc83378SScott McNuttEP1S40_config : unconfig 2798f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 27999cc83378SScott McNutt 28005c952cf0SwdenkPK1C20_config : unconfig 2801f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 28025c952cf0Swdenk 28035c952cf0SwdenkPCI5441_config : unconfig 2804f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 28054a551709Swdenk 2806507bbe3eSwdenk#======================================================================== 2807507bbe3eSwdenk# MicroBlaze 2808507bbe3eSwdenk#======================================================================== 2809507bbe3eSwdenk######################################################################### 2810507bbe3eSwdenk## Microblaze 2811507bbe3eSwdenk######################################################################### 2812507bbe3eSwdenksuzaku_config: unconfig 2813f9328639SMarian Balakowicz @mkdir -p $(obj)include 2814f9328639SMarian Balakowicz @ >$(obj)include/config.h 2815f9328639SMarian Balakowicz @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h 2816f9328639SMarian Balakowicz @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2817507bbe3eSwdenk 2818cfc67116SMichal Simekml401_config: unconfig 2819cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2820cdd917a4SWolfgang Denk @ >$(obj)include/config.h 2821cdd917a4SWolfgang Denk @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h 282290b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2823cfc67116SMichal Simek 282417980495SMichal Simekxupv2p_config: unconfig 2825cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2826cdd917a4SWolfgang Denk @ >$(obj)include/config.h 2827cdd917a4SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h 282890b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 282917980495SMichal Simek 283060fa72d6SMike Frysinger#======================================================================== 283160fa72d6SMike Frysinger# Blackfin 283260fa72d6SMike Frysinger#======================================================================== 28330afe519aSWolfgang Denk 283460fa72d6SMike Frysinger# Analog Devices boards 283560fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit 28360afe519aSWolfgang Denk 283760fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config) : unconfig 283860fa72d6SMike Frysinger @$(MKCONFIG) $(@:_config=) blackfin $(firstword $(subst -, ,$@)) $(@:_config=) 283926bf7decSAubrey Li 284060fa72d6SMike Frysinger$(BFIN_BOARDS): 284160fa72d6SMike Frysinger $(MAKE) $@_config 284260fa72d6SMike Frysinger $(MAKE) 28430afe519aSWolfgang Denk 28445e3b0bc1SHaavard Skinnemoen#======================================================================== 28455e3b0bc1SHaavard Skinnemoen# AVR32 28465e3b0bc1SHaavard Skinnemoen#======================================================================== 28475e3b0bc1SHaavard Skinnemoen######################################################################### 28485e3b0bc1SHaavard Skinnemoen## AT32AP7xxx 28495e3b0bc1SHaavard Skinnemoen######################################################################### 28505e3b0bc1SHaavard Skinnemoen 28515e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 285236f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28535e3b0bc1SHaavard Skinnemoen 2854667568dbSHaavard Skinnemoenatstk1003_config : unconfig 2855667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2856667568dbSHaavard Skinnemoen 285764ff2357SHaavard Skinnemoenatstk1004_config : unconfig 285864ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28590afe519aSWolfgang Denk 28606b443944SHaavard Skinnemoenatngw100_config : unconfig 28616b443944SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 28626b443944SHaavard Skinnemoen 28630afe519aSWolfgang Denk######################################################################### 28640afe519aSWolfgang Denk######################################################################### 28653e38691eSwdenk######################################################################### 28667ebf7443Swdenk 286769df3c4dSNobuhiro Iwamatsu######################################################################### 2868b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2869b2b5e2bbSYoshihiro Shimoda######################################################################### 2870b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 2871b2b5e2bbSYoshihiro Shimoda @ >include/config.h 2872b2b5e2bbSYoshihiro Shimoda @echo "#define CONFIG_MS7720SE 1" >> include/config.h 2873b2b5e2bbSYoshihiro Shimoda @./mkconfig -a $(@:_config=) sh sh3 ms7720se 2874b2b5e2bbSYoshihiro Shimoda 2875b2b5e2bbSYoshihiro Shimoda######################################################################### 287669df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 287769df3c4dSNobuhiro Iwamatsu######################################################################### 287869df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 2879ae6d1056SWolfgang Denk @ >$(obj)include/config.h 2880ae6d1056SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" >> $(obj)include/config.h 288169df3c4dSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 ms7750se 288269df3c4dSNobuhiro Iwamatsu 2883d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 2884ae6d1056SWolfgang Denk @ >$(obj)include/config.h 2885ae6d1056SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" >> $(obj)include/config.h 2886d91ea45dSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 ms7722se 28877a8e9bedSwdenk 28887a8e9bedSwdenk######################################################################### 28897ebf7443Swdenk######################################################################### 28907ebf7443Swdenk######################################################################### 28917ebf7443Swdenk 2892228f29acSwdenkclean: 2893ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 28947f70e853Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 28957ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 28967ebf7443Swdenk | xargs rm -f 2897ae6d1056SWolfgang Denk @rm -f $(obj)examples/hello_world $(obj)examples/timer \ 2898f9328639SMarian Balakowicz $(obj)examples/eepro100_eeprom $(obj)examples/sched \ 2899f9328639SMarian Balakowicz $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \ 2900d214fbbdSWolfgang Denk $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \ 2901f9328639SMarian Balakowicz $(obj)examples/test_burst 2902ae6d1056SWolfgang Denk @rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \ 2903566a494fSHeiko Schocher $(obj)tools/gen_eth_addr $(obj)tools/ubsha1 2904ae6d1056SWolfgang Denk @rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb 2905ae6d1056SWolfgang Denk @rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo 2906ae6d1056SWolfgang Denk @rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend 2907ae6d1056SWolfgang Denk @rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv 2908ae6d1056SWolfgang Denk @rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image 2909ae6d1056SWolfgang Denk @rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit 2910ae6d1056SWolfgang Denk @rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin 2911ae6d1056SWolfgang Denk @rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom 2912ae6d1056SWolfgang Denk @rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds 2913ae6d1056SWolfgang Denk @rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds 2914ae6d1056SWolfgang Denk @rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds 2915ae6d1056SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 2916ae6d1056SWolfgang Denk @rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map 2917ae6d1056SWolfgang Denk @rm -f $(obj)api_examples/demo $(VERSION_FILE) 29187ebf7443Swdenk 29197ebf7443Swdenkclobber: clean 2920ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 29214c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 29224c0d4c3bSwdenk -print0 \ 29234c0d4c3bSwdenk | xargs -0 rm -f 2924ae6d1056SWolfgang Denk @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS 2925ae6d1056SWolfgang Denk @rm -fr $(obj)*.*~ 2926ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2927ae6d1056SWolfgang Denk @rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c 2928ae6d1056SWolfgang Denk @rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c 2929ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2930ae6d1056SWolfgang Denk @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 2931ae6d1056SWolfgang Denk @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f 29327ebf7443Swdenk 2933f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 29347ebf7443Swdenkmrproper \ 29357ebf7443Swdenkdistclean: clobber unconfig 2936f9328639SMarian Balakowiczelse 2937f9328639SMarian Balakowiczmrproper \ 2938f9328639SMarian Balakowiczdistclean: clobber unconfig 2939ae6d1056SWolfgang Denk rm -rf $(obj)* 2940f9328639SMarian Balakowiczendif 29417ebf7443Swdenk 29427ebf7443Swdenkbackup: 29437ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 29447ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 29457ebf7443Swdenk 29467ebf7443Swdenk######################################################################### 2947