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 2667a4389eSWolfgang DenkSUBLEVEL = 2 2746cb5074SWolfgang 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 1215013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere 1225013c09fSWolfgang Denkunexport CDPATH 1235013c09fSWolfgang Denk 124f9328639SMarian Balakowicz######################################################################### 125f9328639SMarian Balakowicz 126ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 127f9328639SMarian Balakowicz 1287ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 129ae6d1056SWolfgang Denkinclude $(obj)include/config.mk 1301d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 131f9328639SMarian Balakowicz 1327ebf7443Swdenkifndef CROSS_COMPILE 133a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 1347ebf7443SwdenkCROSS_COMPILE = 1357ebf7443Swdenkelse 1367ebf7443Swdenkifeq ($(ARCH),ppc) 13716c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx- 1387ebf7443Swdenkendif 1397ebf7443Swdenkifeq ($(ARCH),arm) 140dc7c9a1aSwdenkCROSS_COMPILE = arm-linux- 1417ebf7443Swdenkendif 1422262cfeeSwdenkifeq ($(ARCH),i386) 1437a8e9bedSwdenkCROSS_COMPILE = i386-linux- 1447a8e9bedSwdenkendif 14543d9616cSwdenkifeq ($(ARCH),mips) 14643d9616cSwdenkCROSS_COMPILE = mips_4KC- 14743d9616cSwdenkendif 1484a551709Swdenkifeq ($(ARCH),nios) 1494a551709SwdenkCROSS_COMPILE = nios-elf- 1504a551709Swdenkendif 1515c952cf0Swdenkifeq ($(ARCH),nios2) 1525c952cf0SwdenkCROSS_COMPILE = nios2-elf- 1535c952cf0Swdenkendif 1544e5ca3ebSwdenkifeq ($(ARCH),m68k) 1554e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 1564e5ca3ebSwdenkendif 157507bbe3eSwdenkifeq ($(ARCH),microblaze) 158507bbe3eSwdenkCROSS_COMPILE = mb- 159507bbe3eSwdenkendif 1600afe519aSWolfgang Denkifeq ($(ARCH),blackfin) 161ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux- 1620afe519aSWolfgang Denkendif 1637b64fef3SWolfgang Denkifeq ($(ARCH),avr32) 1645374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux- 1657b64fef3SWolfgang Denkendif 1660b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh) 1670b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux- 168ae6d1056SWolfgang Denkendif # sh 169ae6d1056SWolfgang Denkendif # HOSTARCH,ARCH 170ae6d1056SWolfgang Denkendif # CROSS_COMPILE 1717ebf7443Swdenk 1727ebf7443Swdenkexport CROSS_COMPILE 1737ebf7443Swdenk 17492b197f0SWolfgang Denk# load other configuration 17592b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 17692b197f0SWolfgang Denk 1777ebf7443Swdenk######################################################################### 1787ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1797ebf7443Swdenk 1807ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 1812262cfeeSwdenkifeq ($(CPU),i386) 1822262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 1832262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 1842262cfeeSwdenkendif 1857ebf7443Swdenkifeq ($(CPU),ppc4xx) 1867ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 1877ebf7443Swdenkendif 18842d1f039Swdenkifeq ($(CPU),mpc85xx) 18942d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 19042d1f039Swdenkendif 1917ebf7443Swdenk 192f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 193f9328639SMarian Balakowicz 1949fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 1957608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 1967608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 1979fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 1987ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1991d9f4105Swdenkifdef SOC 2001d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 2011d9f4105Swdenkendif 202323bfa8fSStefan Roeseifeq ($(CPU),ixp) 203323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a 204323bfa8fSStefan Roeseendif 2057ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 206518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 207c419d1d6Sstroese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 2087ebf7443SwdenkLIBS += net/libnet.a 2097ebf7443SwdenkLIBS += disk/libdisk.a 2100f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 21133daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 21257a12720STsiChungLiewLIBS += drivers/dma/libdma.a 213f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 214080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 21516b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 216318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 21759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 21859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 21959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a 22059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 2218e585f02STsiChung LiewLIBS += drivers/net/libnet.a 2222439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a 22393a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 22473646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 22504a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2267737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2277737d5c6SDave LiuLIBS += drivers/qe/qe.a 2287737d5c6SDave Liuendif 229da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 230da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 231da9d4610SAndy Flemingendif 23259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2338e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 23459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a 23559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 236ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a 237ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \ 238ad5bb451SWolfgang Denk "post/lib_$(ARCH)/libpost$(ARCH).a"; fi) 239b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \ 240b4489621SSergei Poselenov "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi) 241ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \ 242ad5bb451SWolfgang Denk "post/cpu/$(CPU)/libpost$(CPU).a"; fi) 243ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ 244ad5bb451SWolfgang Denk "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) 2457ebf7443SwdenkLIBS += common/libcommon.a 2467651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 247500856ebSRafal JaworowskiLIBS += api/libapi.a 248f9328639SMarian Balakowicz 249f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 250019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE) 251a8c7c708Swdenk 2524f7cb08eSwdenk# Add GCC lib 2531a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 2543d3befa7Swdenk 255a8c7c708Swdenk# The "tools" are needed early, so put this first 256a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 257a8c7c708SwdenkSUBDIRS = tools \ 2580dc1fc22SRafal Jaworowski examples \ 2590dc1fc22SRafal Jaworowski api_examples 260500856ebSRafal Jaworowski 261b028f715Swdenk.PHONY : $(SUBDIRS) 262a8c7c708Swdenk 263887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 264887e2ec9SStefan RoeseNAND_SPL = nand_spl 265887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 266887e2ec9SStefan Roeseendif 267887e2ec9SStefan Roese 268751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 269751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 270751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 271751b9b51SKyungmin Parkendif 272751b9b51SKyungmin Park 273f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 274f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS)) 275f9328639SMarian Balakowicz 2767ebf7443Swdenk######################################################################### 277bdccc4feSwdenk######################################################################### 2787ebf7443Swdenk 279751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 28094a91e24SMike Frysingerifeq ($(ARCH),blackfin) 28194a91e24SMike FrysingerALL += $(obj)u-boot.ldr 28294a91e24SMike Frysingerendif 2837ebf7443Swdenk 284bdccc4feSwdenkall: $(ALL) 2857ebf7443Swdenk 286f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2876310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2886310eb9dSwdenk 289f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 2907ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 2917ebf7443Swdenk 292f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 2937ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 2947ebf7443Swdenk 29594a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 29694a91e24SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS) 29794a91e24SMike Frysinger 29894a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 29994a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 30094a91e24SMike Frysinger 30194a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 30294a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 30394a91e24SMike Frysinger 304f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 305bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 306bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 307881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 308bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 309bdccc4feSwdenk -d $< $@ 310bdccc4feSwdenk 311566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 31201159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 313566a494fSHeiko Schocher 314f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3157ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3167ebf7443Swdenk 317dd531aacSWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 3180858b835SMike Frysinger UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 319f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 320f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 321b2184c31Swdenk -Map u-boot.map -o u-boot 3227ebf7443Swdenk 32388f72527SJohannes Stezenbach$(OBJS): depend $(obj)include/autoconf.mk 324f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 325f9328639SMarian Balakowicz 32688f72527SJohannes Stezenbach$(LIBS): depend $(obj)include/autoconf.mk 327f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 328a8c7c708Swdenk 32988f72527SJohannes Stezenbach$(SUBDIRS): depend $(obj)include/autoconf.mk 330b028f715Swdenk $(MAKE) -C $@ all 3317ebf7443Swdenk 332f65c9812SMike Frysinger$(LDSCRIPT): depend $(obj)include/autoconf.mk 333f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 334f65c9812SMike Frysinger 335dd531aacSWolfgang Denk$(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3368318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 337887e2ec9SStefan Roese 338dd531aacSWolfgang Denk$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3398318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 340887e2ec9SStefan Roese 341751b9b51SKyungmin Park$(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk 342751b9b51SKyungmin Park $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 343751b9b51SKyungmin Park 344751b9b51SKyungmin Park$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 345751b9b51SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 346751b9b51SKyungmin Park 347ae6d1056SWolfgang Denk$(VERSION_FILE): 348ae6d1056SWolfgang Denk @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \ 349ae6d1056SWolfgang Denk echo -n "$(U_BOOT_VERSION)" ; \ 350881a87ecSWolfgang Denk echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ 351ae6d1056SWolfgang Denk $(TOPDIR)) ; \ 3520ec7a061SMike Frysinger echo "\"" ) > $@.tmp 3530ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 354881a87ecSWolfgang Denk 3558f713fdfSdzugdbtools: 356f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 357f9328639SMarian Balakowicz 358f9328639SMarian Balakowiczupdater: 359f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 360f9328639SMarian Balakowicz 361f9328639SMarian Balakowiczenv: 36264b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 3638f713fdfSdzu 364ae6d1056SWolfgang Denkdepend dep: $(VERSION_FILE) 365f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 3667ebf7443Swdenk 367a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR) 369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU) 370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH) 371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs 372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat 373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos 374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2 375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net 376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk 377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common 378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator 379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block 380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon 381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c 382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input 383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc 384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd 385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand 386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy 387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand 388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net 389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin 390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci 391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia 392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe 393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc 394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial 39504a9e118SBen WarrenTAG_SUBDIRS += drivers/spi 396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb 397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video 398a340c325SJean-Christophe PLAGNIOL-VILLARD 399f9328639SMarian Balakowicztags ctags: 400ae6d1056SWolfgang Denk ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 40188fed9a1SWolfgang Denk -name '*.[ch]' -print` 4027ebf7443Swdenk 4037ebf7443Swdenketags: 404ae6d1056SWolfgang Denk etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 40588fed9a1SWolfgang Denk -name '*.[ch]' -print` 406ffda586fSLi Yangcscope: 407ffda586fSLi Yang find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \ 408ffda586fSLi Yang > cscope.files 409ffda586fSLi Yang cscope -b -q -k 4107ebf7443Swdenk 411f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 4127ebf7443Swdenk @$(NM) $< | \ 4137ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 414f9328639SMarian Balakowicz sort > $(obj)System.map 4157ebf7443Swdenk 4162f155f6cSGrant Likely# 4172f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4182f155f6cSGrant Likely# 4192f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4202f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4212f155f6cSGrant Likely# to regenerate the autoconf.mk file. 422ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE) 423ae6d1056SWolfgang Denk @$(XECHO) Generating include/autoconf.mk ; \ 42416fe7775SMike Frysinger set -e ; \ 425ae6d1056SWolfgang Denk : Generate the dependancies ; \ 426ae6d1056SWolfgang Denk $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \ 427ae6d1056SWolfgang Denk : Extract the config macros ; \ 428ae6d1056SWolfgang Denk $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@ 4292f155f6cSGrant Likely 430ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep 4312f155f6cSGrant Likely 4327ebf7443Swdenk######################################################################### 433ae6d1056SWolfgang Denkelse # !config.mk 434f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 435f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 436ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \ 437ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map: 4387ebf7443Swdenk @echo "System not configured - see README" >&2 4397ebf7443Swdenk @ exit 1 440ae6d1056SWolfgang Denkendif # config.mk 4417ebf7443Swdenk 4424e53a258SWolfgang Denk.PHONY : CHANGELOG 4434e53a258SWolfgang DenkCHANGELOG: 444b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 445b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4464e53a258SWolfgang Denk 4477ebf7443Swdenk######################################################################### 4487ebf7443Swdenk 4497ebf7443Swdenkunconfig: 450887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4512f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4522f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4537ebf7443Swdenk 4547ebf7443Swdenk#======================================================================== 4557ebf7443Swdenk# PowerPC 4567ebf7443Swdenk#======================================================================== 4570db5bca8Swdenk 4580db5bca8Swdenk######################################################################### 4590db5bca8Swdenk## MPC5xx Systems 4600db5bca8Swdenk######################################################################### 4610db5bca8Swdenk 4625e5f9ed2Swdenkcanmb_config: unconfig 463f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 4645e5f9ed2Swdenk 4650db5bca8Swdenkcmi_mpc5xx_config: unconfig 466f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 4670db5bca8Swdenk 468b6e4c403SwdenkPATI_config: unconfig 469f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 470b6e4c403Swdenk 4717ebf7443Swdenk######################################################################### 472945af8d7Swdenk## MPC5xxx Systems 473945af8d7Swdenk######################################################################### 474a87589daSwdenk 475dafba16eSWolfgang Denkaev_config: unconfig 476f9328639SMarian Balakowicz @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 477dafba16eSWolfgang Denk 4786ca24c64Sdzu@denx.deBC3450_config: unconfig 479f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 4806ca24c64Sdzu@denx.de 4815e4b3361SStefan Roesecpci5200_config: unconfig 482f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 4835e4b3361SStefan Roese 484a87589daSwdenkhmi1001_config: unconfig 485f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 486a87589daSwdenk 487e35745bbSwdenkLite5200_config \ 488e35745bbSwdenkLite5200_LOWBOOT_config \ 489e35745bbSwdenkLite5200_LOWBOOT08_config \ 490e35745bbSwdenkicecube_5200_config \ 491e35745bbSwdenkicecube_5200_LOWBOOT_config \ 492e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 493b2001f27Swdenkicecube_5200_DDR_config \ 49479d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 49579d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 496e35745bbSwdenkicecube_5100_config: unconfig 497f9328639SMarian Balakowicz @mkdir -p $(obj)include 498f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 49917d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 50017d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 501f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 502f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 50317d704ebSwdenk fi ; \ 504ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5055cf9da48Swdenk } 5065cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 507f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 5085cf9da48Swdenk echo "... with 8 MB flash only" ; \ 509ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5105cf9da48Swdenk } 511b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 512f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 513ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 514b2001f27Swdenk } 515d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 516f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 517ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 518d4ca31c4Swdenk } 519a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 520f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 521ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 522945af8d7Swdenk } 523f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 524945af8d7Swdenk 5252605e90bSHeiko Schocherjupiter_config: unconfig 5262605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 5272605e90bSHeiko Schocher 5284707fb50SBartlomiej Siekav38b_config: unconfig 52990b1b2d6SGrant Likely @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 5304707fb50SBartlomiej Sieka 531138ff60cSwdenkinka4x0_config: unconfig 532f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 533138ff60cSwdenk 53409e4b0c5SWolfgang Denklite5200b_config \ 535d3832e8fSDomen Puncerlite5200b_PM_config \ 53609e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 537f9328639SMarian Balakowicz @mkdir -p $(obj)include 538f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 539f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 540ae6d1056SWolfgang Denk @ $(XECHO) "... DDR memory revision" 541f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 542f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 543d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 544d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 545ae6d1056SWolfgang Denk $(XECHO) "... with power management (low-power mode) support" ; \ 546d3832e8fSDomen Puncer } 54709e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 548f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 549ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 55009e4b0c5SWolfgang Denk } 551ae6d1056SWolfgang Denk @ $(XECHO) "... with MPC5200B processor" 552f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 55309e4b0c5SWolfgang Denk 554f1ee9825SStefan Roesemcc200_config \ 555ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 556ed1cf845SWolfgang Denkmcc200_highboot_config \ 557ed1cf845SWolfgang Denkmcc200_COM12_config \ 558ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 559113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 560113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 561ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 562ed1cf845SWolfgang Denkprs200_config \ 563ed1cf845SWolfgang Denkprs200_DDR_config \ 564ed1cf845SWolfgang Denkprs200_highboot_config \ 565ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 566f9328639SMarian Balakowicz @mkdir -p $(obj)include 567f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 5684819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 569ae6d1056SWolfgang Denk { $(XECHO) "... with lowboot configuration" ; \ 570f1ee9825SStefan Roese } 5714819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 572f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 573ae6d1056SWolfgang Denk $(XECHO) "... with highboot configuration" ; \ 5744819fad9SWolfgang Denk } 5754819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 576ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 577ed1cf845SWolfgang Denk then \ 578ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 579ed1cf845SWolfgang Denk else \ 580ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 581ed1cf845SWolfgang Denk then \ 582ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 583ed1cf845SWolfgang Denk else \ 584f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 585ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 586ed1cf845SWolfgang Denk fi; \ 587ed1cf845SWolfgang Denk fi; \ 5884819fad9SWolfgang Denk } 5894819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 590f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 591ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 5924819fad9SWolfgang Denk } 593463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 594f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 595ae6d1056SWolfgang Denk $(XECHO) "... with console on COM12" ; \ 596463764c8SWolfgang Denk } 597ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 598f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 599ed1cf845SWolfgang Denk } 600f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 60186ea5f93SWolfgang Denk 6028b7d1f0aSStefan Roesemecp5200_config: unconfig 603ae6d1056SWolfgang Denk @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 6048b7d1f0aSStefan Roese 6056341d9d7SHeiko Schochermunices_config: unconfig 606ae6d1056SWolfgang Denk @$(MKCONFIG) munices ppc mpc5xxx munices 6076341d9d7SHeiko Schocher 60891c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config: unconfig 609f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 610df04a3dfSWolfgang Denk 6115e4b3361SStefan Roesepf5200_config: unconfig 612f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 6135e4b3361SStefan Roese 61489394047SwdenkPM520_config \ 61589394047SwdenkPM520_DDR_config \ 61689394047SwdenkPM520_ROMBOOT_config \ 61789394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 618f9328639SMarian Balakowicz @mkdir -p $(obj)include 61989394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 620f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 621ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 62289394047Swdenk } 62389394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 624f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 625ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 62689394047Swdenk } 627f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 62889394047Swdenk 6296624b687SWolfgang Denksmmaco4_config: unconfig 630f9328639SMarian Balakowicz @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 6319cdc8386SWolfgang Denk 63286b116b1SBartlomiej Siekacm5200_config: unconfig 63391c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200 634fa1df308SBartlomiej Sieka 6359cdc8386SWolfgang Denkspieval_config: unconfig 636f9328639SMarian Balakowicz @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 6379cdc8386SWolfgang Denk 63845a212c4SWolfgang DenkTB5200_B_config \ 639b87dfd28SWolfgang DenkTB5200_config: unconfig 640f9328639SMarian Balakowicz @mkdir -p $(obj)include 64145a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 642f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 643ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200B processor" ; \ 64445a212c4SWolfgang Denk } 645f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 646b87dfd28SWolfgang Denk 647d4ca31c4SwdenkMINI5200_config \ 648d4ca31c4SwdenkEVAL5200_config \ 649d4ca31c4SwdenkTOP5200_config: unconfig 650f9328639SMarian Balakowicz @mkdir -p $(obj)include 651f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 652f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 653d4ca31c4Swdenk 6546c7a1408SwdenkTotal5100_config \ 6556c7a1408SwdenkTotal5200_config \ 6566c7a1408SwdenkTotal5200_lowboot_config \ 6576c7a1408SwdenkTotal5200_Rev2_config \ 6586c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 659f9328639SMarian Balakowicz @mkdir -p $(obj)include 660f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 6616c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 662f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 663ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 6646c7a1408Swdenk } 6656c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 666f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 667ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 6686c7a1408Swdenk } 6696c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 670f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 671ae6d1056SWolfgang Denk $(XECHO) "... revision 1 board" ; \ 6726c7a1408Swdenk } 6736c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 674f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 675ae6d1056SWolfgang Denk $(XECHO) "... revision 2 board" ; \ 6766c7a1408Swdenk } 6776c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 678f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 679ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 6806c7a1408Swdenk } 681f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 6826c7a1408Swdenk 6835196a7a0SWolfgang Denkcam5200_config \ 684d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6855196a7a0SWolfgang Denkfo300_config \ 6865196a7a0SWolfgang DenkMiniFAP_config \ 6875078cce8SWolfgang DenkTQM5200S_config \ 6885078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6895196a7a0SWolfgang DenkTQM5200_B_config \ 6905196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 6915196a7a0SWolfgang DenkTQM5200_config \ 6925196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 693f9328639SMarian Balakowicz @mkdir -p $(obj)include 694f9328639SMarian Balakowicz @mkdir -p $(obj)board/tqm5200 695135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 696f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 697f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 698f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 699ae6d1056SWolfgang Denk $(XECHO) "... TQM5200S on Cam5200" ; \ 7005078cce8SWolfgang Denk } 701d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 702d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 703ae6d1056SWolfgang Denk $(XECHO) "... with NIOS flash driver" ; \ 704d9384de2SMarian Balakowicz } 7056d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 706f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 707ae6d1056SWolfgang Denk $(XECHO) "... TQM5200 on FO300" ; \ 7086d3bc9b8SMarian Balakowicz } 709cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 710f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 711ae6d1056SWolfgang Denk $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 712978b1096SWolfgang Denk } 713cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 714f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 715ae6d1056SWolfgang Denk $(XECHO) "... on a STK52XX.100 base board" ; \ 71656523f12Swdenk } 7175078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 718f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 7195078cce8SWolfgang Denk } 7205078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 721f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 722f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 72345a212c4SWolfgang Denk } 724978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 725f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 726978b1096SWolfgang Denk } 727f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 7286dedf3d4SHeiko Schocheruc101_config: unconfig 7296dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 73053d4a498SBartlomiej Siekamotionpro_config: unconfig 73153d4a498SBartlomiej Sieka @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 73253d4a498SBartlomiej Sieka 73356523f12Swdenk 734945af8d7Swdenk######################################################################### 7358993e54bSRafal Jaworowski## MPC512x Systems 7368993e54bSRafal Jaworowski######################################################################### 7375f91db7fSJohn Rigbyads5121_config \ 7385f91db7fSJohn Rigbyads5121_PCI_config \ 7395f91db7fSJohn Rigby : unconfig 740210ed200SWolfgang Denk @mkdir -p $(obj)include 7415f91db7fSJohn Rigby @if [ "$(findstring _PCI_,$@)" ] ; then \ 7425f91db7fSJohn Rigby echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 7435f91db7fSJohn Rigby $(XECHO) "... with PCI enabled" ; \ 7445f91db7fSJohn Rigby fi 7455f91db7fSJohn Rigby @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121 7468993e54bSRafal Jaworowski 7478993e54bSRafal Jaworowski 7488993e54bSRafal Jaworowski######################################################################### 7497ebf7443Swdenk## MPC8xx Systems 7507ebf7443Swdenk######################################################################### 7517ebf7443Swdenk 7522d24a3a7SwdenkAdder_config \ 7532d24a3a7SwdenkAdder87x_config \ 75426238132SwdenkAdderII_config \ 7552d24a3a7Swdenk : unconfig 756f9328639SMarian Balakowicz @mkdir -p $(obj)include 75726238132Swdenk $(if $(findstring AdderII,$@), \ 758f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 759f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 7602d24a3a7Swdenk 76116c8d5e7SWolfgang DenkAdderUSB_config: unconfig 76291c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder 76316c8d5e7SWolfgang Denk 764180d3f74SwdenkADS860_config \ 765180d3f74SwdenkFADS823_config \ 766180d3f74SwdenkFADS850SAR_config \ 767180d3f74SwdenkMPC86xADS_config \ 7681114257cSwdenkMPC885ADS_config \ 769180d3f74SwdenkFADS860T_config: unconfig 770f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 7717ebf7443Swdenk 7727ebf7443SwdenkAMX860_config : unconfig 773f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 7747ebf7443Swdenk 7757ebf7443Swdenkc2mon_config: unconfig 776f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 7777ebf7443Swdenk 7787ebf7443SwdenkCCM_config: unconfig 779f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 7807ebf7443Swdenk 7817ebf7443Swdenkcogent_mpc8xx_config: unconfig 782f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 7837ebf7443Swdenk 7843bac3513SwdenkELPT860_config: unconfig 785f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 7863bac3513Swdenk 78784c960ceSWolfgang DenkEP88x_config: unconfig 788f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 78984c960ceSWolfgang Denk 7907ebf7443SwdenkESTEEM192E_config: unconfig 791f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 7927ebf7443Swdenk 7937ebf7443SwdenkETX094_config : unconfig 794f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 7957ebf7443Swdenk 7967ebf7443SwdenkFLAGADM_config: unconfig 797f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 7987ebf7443Swdenk 7997aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 8007aa78614Swdenk 8017aa78614SwdenkGEN860T_SC_config \ 8027ebf7443SwdenkGEN860T_config: unconfig 803f9328639SMarian Balakowicz @mkdir -p $(obj)include 8047aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 805f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 806ae6d1056SWolfgang Denk $(XECHO) "With reduced H/W feature set (SC)..." ; \ 8077aa78614Swdenk } 808f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 8097ebf7443Swdenk 8107ebf7443SwdenkGENIETV_config: unconfig 811f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 8127ebf7443Swdenk 8137ebf7443SwdenkGTH_config: unconfig 814f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 8157ebf7443Swdenk 8167ebf7443Swdenkhermes_config : unconfig 817f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 8187ebf7443Swdenk 819c40b2956SwdenkHMI10_config : unconfig 820f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 821c40b2956Swdenk 8227ebf7443SwdenkIAD210_config: unconfig 823f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 8247ebf7443Swdenk 8257ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 8267ebf7443Swdenk 8277ebf7443SwdenkICU862_100MHz_config \ 8287ebf7443SwdenkICU862_config: unconfig 829f9328639SMarian Balakowicz @mkdir -p $(obj)include 8307ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 831f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 832ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 8337ebf7443Swdenk } 834f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 8357ebf7443Swdenk 8367ebf7443SwdenkIP860_config : unconfig 837f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 8387ebf7443Swdenk 8397ebf7443SwdenkIVML24_256_config \ 8407ebf7443SwdenkIVML24_128_config \ 8417ebf7443SwdenkIVML24_config: unconfig 842f9328639SMarian Balakowicz @mkdir -p $(obj)include 8437ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 844f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 8457ebf7443Swdenk } 8467ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 847f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 8487ebf7443Swdenk } 8497ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 850f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 8517ebf7443Swdenk } 852f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 8537ebf7443Swdenk 8547ebf7443SwdenkIVMS8_256_config \ 8557ebf7443SwdenkIVMS8_128_config \ 8567ebf7443SwdenkIVMS8_config: unconfig 857f9328639SMarian Balakowicz @mkdir -p $(obj)include 8587ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 859f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 8607ebf7443Swdenk } 8617ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 862f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 8637ebf7443Swdenk } 8647ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 865f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 8667ebf7443Swdenk } 867f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 8687ebf7443Swdenk 86956f94be3SwdenkKUP4K_config : unconfig 870f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 8710608e04dSwdenk 8720608e04dSwdenkKUP4X_config : unconfig 873f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 87456f94be3Swdenk 8757ebf7443SwdenkLANTEC_config : unconfig 876f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 8777ebf7443Swdenk 8787ebf7443Swdenklwmon_config: unconfig 879f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 8807ebf7443Swdenk 8817ebf7443SwdenkMBX_config \ 8827ebf7443SwdenkMBX860T_config: unconfig 883f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 8847ebf7443Swdenk 885381e4e63SHeiko Schochermgsuvd_config: unconfig 886381e4e63SHeiko Schocher @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd 887381e4e63SHeiko Schocher 8887ebf7443SwdenkMHPC_config: unconfig 889f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 8907ebf7443Swdenk 8917ebf7443SwdenkMVS1_config : unconfig 892f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 8937ebf7443Swdenk 894993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 895993cad93Swdenk 896993cad93SwdenkNETVIA_V2_config \ 8977ebf7443SwdenkNETVIA_config: unconfig 898f9328639SMarian Balakowicz @mkdir -p $(obj)include 899993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 900f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 901ae6d1056SWolfgang Denk $(XECHO) "... Version 1" ; \ 902993cad93Swdenk } 903993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 904f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 905ae6d1056SWolfgang Denk $(XECHO) "... Version 2" ; \ 906993cad93Swdenk } 907f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 9087ebf7443Swdenk 909c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 910c26e454dSwdenk 911c26e454dSwdenkNETPHONE_V2_config \ 91204a85b3bSwdenkNETPHONE_config: unconfig 913f9328639SMarian Balakowicz @mkdir -p $(obj)include 914c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 915f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 916c26e454dSwdenk } 917c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 918f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 919c26e454dSwdenk } 920f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 92104a85b3bSwdenk 92279fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 92304a85b3bSwdenk 92479fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 92579fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 92679fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 92779fa88f3SwdenkNETTA_SWAPHOOK_config \ 92879fa88f3SwdenkNETTA_ISDN_6412_config \ 92904a85b3bSwdenkNETTA_ISDN_config \ 93079fa88f3SwdenkNETTA_6412_config \ 93104a85b3bSwdenkNETTA_config: unconfig 932f9328639SMarian Balakowicz @mkdir -p $(obj)include 93379fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 934f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 93504a85b3bSwdenk } 93679fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 937f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 93879fa88f3Swdenk } 93979fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 940f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 94179fa88f3Swdenk } 94279fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 943f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 94479fa88f3Swdenk } 94579fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 946f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 94779fa88f3Swdenk } 94879fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 949f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 95079fa88f3Swdenk } 951f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 95204a85b3bSwdenk 95379fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 95479fa88f3Swdenk 95579fa88f3SwdenkNETTA2_V2_config \ 95679fa88f3SwdenkNETTA2_config: unconfig 957f9328639SMarian Balakowicz @mkdir -p $(obj)include 95879fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 959f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 96079fa88f3Swdenk } 96179fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 962f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 96379fa88f3Swdenk } 964f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 96579fa88f3Swdenk 966a367d426Sdzu@denx.deNC650_Rev1_config \ 967a367d426Sdzu@denx.deNC650_Rev2_config \ 968a367d426Sdzu@denx.deCP850_config: unconfig 969f9328639SMarian Balakowicz @mkdir -p $(obj)include 970a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 971f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 972f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 973a367d426Sdzu@denx.de } 974a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 975f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 976a367d426Sdzu@denx.de } 977a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 978f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 979a367d426Sdzu@denx.de } 980f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 9817ca202f5Swdenk 9827ebf7443SwdenkNX823_config: unconfig 983f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 9847ebf7443Swdenk 9857ebf7443Swdenkpcu_e_config: unconfig 986f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 9877ebf7443Swdenk 9883bbc899fSwdenkQS850_config: unconfig 989f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9903bbc899fSwdenk 9913bbc899fSwdenkQS823_config: unconfig 992f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9933bbc899fSwdenk 9943bbc899fSwdenkQS860T_config: unconfig 995f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 9963bbc899fSwdenk 997da93ed81Swdenkquantum_config: unconfig 998f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 999da93ed81Swdenk 10007ebf7443SwdenkR360MPI_config: unconfig 1001f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 10027ebf7443Swdenk 1003682011ffSwdenkRBC823_config: unconfig 1004f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 1005682011ffSwdenk 10067ebf7443SwdenkRPXClassic_config: unconfig 1007f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 10087ebf7443Swdenk 10097ebf7443SwdenkRPXlite_config: unconfig 1010f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 10117ebf7443Swdenk 1012e63c8ee3SwdenkRPXlite_DW_64_config \ 1013e63c8ee3SwdenkRPXlite_DW_LCD_config \ 1014e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 1015e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 1016e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 1017e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 1018e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 1019e63c8ee3SwdenkRPXlite_DW_config: unconfig 1020f9328639SMarian Balakowicz @mkdir -p $(obj)include 1021e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 1022f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1023ae6d1056SWolfgang Denk $(XECHO) "... with 64MHz system clock ..."; \ 1024e63c8ee3Swdenk } 1025e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1026f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1027f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1028ae6d1056SWolfgang Denk $(XECHO) "... with LCD display ..."; \ 1029e63c8ee3Swdenk } 1030e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 1031f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1032ae6d1056SWolfgang Denk $(XECHO) "... with ENV in NVRAM ..."; \ 1033e63c8ee3Swdenk } 1034f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1035e63c8ee3Swdenk 103673a8b27cSwdenkrmu_config: unconfig 1037f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 103873a8b27cSwdenk 10397ebf7443SwdenkRRvision_config: unconfig 1040f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 10417ebf7443Swdenk 10427ebf7443SwdenkRRvision_LCD_config: unconfig 1043f9328639SMarian Balakowicz @mkdir -p $(obj)include 1044f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1045f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1046f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 10477ebf7443Swdenk 10487ebf7443SwdenkSM850_config : unconfig 1049f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 10507ebf7443Swdenk 105191c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config: unconfig 1052f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1053b02d0177SMarkus Klotzbuecher 10547ebf7443SwdenkSPD823TS_config: unconfig 1055f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 10567ebf7443Swdenk 10576bdf4306SWolfgang Denkstxxtc_config: unconfig 1058f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 10596bdf4306SWolfgang Denk 1060dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1061f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1062dc7c9a1aSwdenk 10637ebf7443SwdenkSXNI855T_config: unconfig 1064f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 10657ebf7443Swdenk 1066db2f721fSwdenk# EMK MPC8xx based modules 1067db2f721fSwdenkTOP860_config: unconfig 1068f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1069db2f721fSwdenk 10707ebf7443Swdenk# Play some tricks for configuration selection 1071e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1072e9132ea9Swdenk# and only 823 boards may have LCD support 1073e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 10747ebf7443Swdenk 10757ebf7443SwdenkFPS850L_config \ 1076384ae025SwdenkFPS860L_config \ 1077f12e568cSwdenkNSCU_config \ 10787ebf7443SwdenkTQM823L_config \ 10797ebf7443SwdenkTQM823L_LCD_config \ 10807ebf7443SwdenkTQM850L_config \ 10817ebf7443SwdenkTQM855L_config \ 10827ebf7443SwdenkTQM860L_config \ 1083d126bfbdSwdenkTQM862L_config \ 1084ae3af05eSwdenkTQM823M_config \ 1085ae3af05eSwdenkTQM850M_config \ 1086f12e568cSwdenkTQM855M_config \ 1087f12e568cSwdenkTQM860M_config \ 1088f12e568cSwdenkTQM862M_config \ 10898cba090cSWolfgang DenkTQM866M_config \ 1090090eb735SMarkus KlotzbuecherTQM885D_config \ 1091efc6f447SGuennadi LiakhovetskiTK885D_config \ 10928cba090cSWolfgang Denkvirtlab2_config: unconfig 1093f9328639SMarian Balakowicz @mkdir -p $(obj)include 10947ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1095f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1096f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1097ae6d1056SWolfgang Denk $(XECHO) "... with LCD display" ; \ 10987ebf7443Swdenk } 1099f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 11007ebf7443Swdenk 11017ebf7443SwdenkTTTech_config: unconfig 1102f9328639SMarian Balakowicz @mkdir -p $(obj)include 1103f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1104f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1105f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 11067ebf7443Swdenk 1107ec0aee7bSwdenkuc100_config : unconfig 1108f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1109f7d1572bSwdenk 1110608c9146Swdenkv37_config: unconfig 1111f9328639SMarian Balakowicz @mkdir -p $(obj)include 1112f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1113f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1114f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1115608c9146Swdenk 111691e940d9Sdzuwtk_config: unconfig 1117f9328639SMarian Balakowicz @mkdir -p $(obj)include 1118f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1119f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1120f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 112191e940d9Sdzu 11227ebf7443Swdenk######################################################################### 11237ebf7443Swdenk## PPC4xx Systems 11247ebf7443Swdenk######################################################################### 1125e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 11267ebf7443Swdenk 112716c0cc1cSStefan Roeseacadia_config: unconfig 112816c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 112916c0cc1cSStefan Roese 1130c440bfe6SStefan Roeseacadia_nand_config: unconfig 113163e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 113263e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1133c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1134c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1135c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1136c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1137c440bfe6SStefan Roese 11387ebf7443SwdenkADCIOP_config: unconfig 1139f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 11407ebf7443Swdenk 1141899620c2SStefan Roesealpr_config: unconfig 114235d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1143899620c2SStefan Roese 11447521af1cSWolfgang DenkAP1000_config:unconfig 1145f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 11467521af1cSWolfgang Denk 1147c419d1d6SstroeseAPC405_config: unconfig 1148f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1149c419d1d6Sstroese 11507ebf7443SwdenkAR405_config: unconfig 1151f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 11527ebf7443Swdenk 1153549826eaSstroeseASH405_config: unconfig 1154f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1155549826eaSstroese 11568a316c9bSStefan Roesebamboo_config: unconfig 1157f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 11588a316c9bSStefan Roese 1159cf959c7dSStefan Roesebamboo_nand_config: unconfig 116063e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 116163e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1162cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1163f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1164cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1165cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1166cf959c7dSStefan Roese 11678a316c9bSStefan Roesebubinga_config: unconfig 1168f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1169549826eaSstroese 11707ebf7443SwdenkCANBT_config: unconfig 1171f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 11727ebf7443Swdenk 1173c813f1f8SStefan Roesecanyonlands_config: unconfig 1174c813f1f8SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx canyonlands amcc 1175c813f1f8SStefan Roese 117671665ebfSStefan Roesecanyonlands_nand_config: unconfig 117771665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 117871665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 117971665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 118071665ebfSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 118171665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 118271665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 118371665ebfSStefan Roese 11841d6f9720SwdenkCATcenter_config \ 11851d6f9720SwdenkCATcenter_25_config \ 11861d6f9720SwdenkCATcenter_33_config: unconfig 1187f9328639SMarian Balakowicz @mkdir -p $(obj)include 1188f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1189f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 11901d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1191f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1192ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 11931d6f9720Swdenk } 11941d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1195f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1196ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 11971d6f9720Swdenk } 1198f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 119910767ccbSwdenk 12007644f16fSStefan RoeseCPCI2DP_config: unconfig 1201f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 12027644f16fSStefan Roese 12037ebf7443SwdenkCPCI405_config \ 1204549826eaSstroeseCPCI4052_config \ 1205c419d1d6SstroeseCPCI405DT_config \ 1206549826eaSstroeseCPCI405AB_config: unconfig 1207f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1208f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 12097ebf7443Swdenk 12107ebf7443SwdenkCPCIISER4_config: unconfig 1211f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 12127ebf7443Swdenk 12137ebf7443SwdenkCRAYL1_config: unconfig 1214f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 12157ebf7443Swdenk 1216cd0a9de6Swdenkcsb272_config: unconfig 1217f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1218cd0a9de6Swdenk 1219aa245090Swdenkcsb472_config: unconfig 1220f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1221aa245090Swdenk 12227ebf7443SwdenkDASA_SIM_config: unconfig 1223f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 12247ebf7443Swdenk 122572cd5aa7SstroeseDP405_config: unconfig 1226f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 122772cd5aa7Sstroese 12287ebf7443SwdenkDU405_config: unconfig 1229f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 12307ebf7443Swdenk 12311a3ac86bSMatthias FuchsDU440_config: unconfig 12321a3ac86bSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 12331a3ac86bSMatthias Fuchs 12348a316c9bSStefan Roeseebony_config: unconfig 1235f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 12367ebf7443Swdenk 12377ebf7443SwdenkERIC_config: unconfig 1238f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 12397ebf7443Swdenk 1240d1cbe85bSwdenkEXBITGEN_config: unconfig 1241f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1242d1cbe85bSwdenk 1243c419d1d6SstroeseG2000_config: unconfig 1244f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1245c419d1d6Sstroese 1246ac982ea5SNiklaus Gigerhcu4_config: unconfig 1247b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 124835d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1249ac982ea5SNiklaus Giger 1250ac982ea5SNiklaus Gigerhcu5_config: unconfig 1251b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 125235d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1253ac982ea5SNiklaus Giger 1254c419d1d6SstroeseHH405_config: unconfig 1255f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1256c419d1d6Sstroese 125772cd5aa7SstroeseHUB405_config: unconfig 1258f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 125972cd5aa7Sstroese 1260db01a2eaSwdenkJSE_config: unconfig 1261f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1262db01a2eaSwdenk 1263b79316f2SStefan RoeseKAREF_config: unconfig 1264f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1265b79316f2SStefan Roese 12664745acaaSStefan Roesekatmai_config: unconfig 12674745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 12684745acaaSStefan Roese 1269353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1270353f2688SStefan Roesekilauea_config \ 1271353f2688SStefan Roesehaleakala_config: unconfig 1272353f2688SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1273566806caSStefan Roese 12743d6cb3b2SStefan Roesekilauea_nand_config \ 12753d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 12763d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 12773d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 12783d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 12793d6cb3b2SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 12803d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 12813d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 12823d6cb3b2SStefan Roese 1283c591dffeSLarry Johnsonkorat_config: unconfig 1284c591dffeSLarry Johnson @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1285c591dffeSLarry Johnson 12866e7fb6eaSStefan Roeseluan_config: unconfig 1287f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 12886e7fb6eaSStefan Roese 1289b765ffb7SStefan Roeselwmon5_config: unconfig 1290b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1291b765ffb7SStefan Roese 1292211ea91aSStefan Roesemakalu_config: unconfig 1293211ea91aSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1294211ea91aSStefan Roese 1295b05f3543SNiklaus Gigermcu25_config: unconfig 1296b05f3543SNiklaus Giger @mkdir -p $(obj)board/netstal/common 1297b05f3543SNiklaus Giger @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal 1298b05f3543SNiklaus Giger 1299b79316f2SStefan RoeseMETROBOX_config: unconfig 1300f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1301b79316f2SStefan Roese 13027ebf7443SwdenkMIP405_config: unconfig 1303f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 13047ebf7443Swdenk 1305f3e0de60SwdenkMIP405T_config: unconfig 1306f9328639SMarian Balakowicz @mkdir -p $(obj)include 1307f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1308ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1309f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1310f3e0de60Swdenk 13117ebf7443SwdenkML2_config: unconfig 1312f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 13137ebf7443Swdenk 1314028ab6b5Swdenkml300_config: unconfig 1315f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1316028ab6b5Swdenk 13178a316c9bSStefan Roeseocotea_config: unconfig 1318f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 13190e6d798cSwdenk 13207ebf7443SwdenkOCRTC_config \ 13217ebf7443SwdenkORSG_config: unconfig 1322f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 13237ebf7443Swdenk 13245568e613SStefan Roesep3p440_config: unconfig 1325f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 13265568e613SStefan Roese 13277ebf7443SwdenkPCI405_config: unconfig 1328f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 13297ebf7443Swdenk 1330a4c8d138SStefan Roesepcs440ep_config: unconfig 1331f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1332a4c8d138SStefan Roese 13337ebf7443SwdenkPIP405_config: unconfig 1334f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 13357ebf7443Swdenk 133672cd5aa7SstroesePLU405_config: unconfig 1337f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 133872cd5aa7Sstroese 1339549826eaSstroesePMC405_config: unconfig 1340f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1341549826eaSstroese 13428ba132caSMatthias FuchsPMC440_config: unconfig 13438ba132caSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 13448ba132caSMatthias Fuchs 1345281e00a3SwdenkPPChameleonEVB_config \ 1346e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1347e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1348e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1349e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1350e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1351e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1352f9328639SMarian Balakowicz @mkdir -p $(obj)include 13531d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1354f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1355ae6d1056SWolfgang Denk $(XECHO) "... BASIC model" ; \ 1356fbe4b5cbSwdenk } 13571d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1358f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1359ae6d1056SWolfgang Denk $(XECHO) "... MEDIUM model" ; \ 1360fbe4b5cbSwdenk } 13611d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1362f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1363ae6d1056SWolfgang Denk $(XECHO) "... HIGH-END model" ; \ 1364fbe4b5cbSwdenk } 1365e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1366f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1367ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 1368e55ca7e2Swdenk } 1369e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1370f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1371ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 1372e55ca7e2Swdenk } 1373f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 137412f34241Swdenk 1375430f1b0fSStefan Roesesbc405_config: unconfig 1376430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1377430f1b0fSStefan Roese 1378430f1b0fSStefan Roesesequoia_config \ 1379854bc8daSStefan Roeserainier_config: unconfig 13808318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1381430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1382430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 13832aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1384854bc8daSStefan Roese 1385430f1b0fSStefan Roesesequoia_nand_config \ 1386854bc8daSStefan Roeserainier_nand_config: unconfig 138763e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 138863e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 13898318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1390430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1391430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1392430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 13938318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 13948318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1395652a10c0Swdenk 13966d3e0107SWolfgang Denksc3_config:unconfig 139735d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1398ca43ba18SHeiko Schocher 1399d4024bb7SJohn Otkentaihu_config: unconfig 1400d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1401d4024bb7SJohn Otken 14025fb692caSStefan Roesetaishan_config: unconfig 14035fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 14045fb692caSStefan Roese 140572cd5aa7SstroeseVOH405_config: unconfig 1406f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 140772cd5aa7Sstroese 1408c419d1d6SstroeseVOM405_config: unconfig 1409f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1410c419d1d6Sstroese 1411feaedfcfSStefan RoeseCMS700_config: unconfig 1412f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1413feaedfcfSStefan Roese 14147ebf7443SwdenkW7OLMC_config \ 14157ebf7443SwdenkW7OLMG_config: unconfig 1416f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 14177ebf7443Swdenk 1418430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1419430f1b0fSStefan Roesewalnut_config \ 1420430f1b0fSStefan Roesesycamore_config: unconfig 1421430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 14227ebf7443Swdenk 1423c419d1d6SstroeseWUH405_config: unconfig 1424f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1425c419d1d6Sstroese 1426ba56f625SwdenkXPEDITE1K_config: unconfig 1427f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1428ba56f625Swdenk 1429430f1b0fSStefan Roeseyosemite_config \ 14308a316c9bSStefan Roeseyellowstone_config: unconfig 1431700200c6SStefan Roese @mkdir -p $(obj)include 1432430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1433430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 14342aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 14358a316c9bSStefan Roese 14366c5879f3SMarian Balakowiczyucca_config: unconfig 1437f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 14386c5879f3SMarian Balakowicz 1439779e9751SStefan Roesezeus_config: unconfig 1440779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1441779e9751SStefan Roese 14427ebf7443Swdenk######################################################################### 1443983fda83Swdenk## MPC8220 Systems 1444983fda83Swdenk######################################################################### 1445dc17fb6dSWolfgang Denk 1446dc17fb6dSWolfgang DenkAlaska8220_config \ 1447dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1448f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1449983fda83Swdenk 145012b43d51Swdenksorcery_config: unconfig 1451f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 145212b43d51Swdenk 1453983fda83Swdenk######################################################################### 14547ebf7443Swdenk## MPC824x Systems 14557ebf7443Swdenk######################################################################### 1456efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 14573bac3513Swdenk 14580332990bSwdenkA3000_config: unconfig 1459f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 14600332990bSwdenk 14618e6f1a8eSWolfgang Denkbarco_config: unconfig 1462f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 14638e6f1a8eSWolfgang Denk 14647ebf7443SwdenkBMW_config: unconfig 1465f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 14667ebf7443Swdenk 14673bac3513SwdenkCPC45_config \ 14683bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1469f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1470f9328639SMarian Balakowicz @cd $(obj)include ; \ 14713bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 14723bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1473ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 14743bac3513Swdenk else \ 14753bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1476ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 14773bac3513Swdenk fi; \ 14783bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 14793bac3513Swdenk 14807ebf7443SwdenkCU824_config: unconfig 1481f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 14827ebf7443Swdenk 14837abf0c58Swdenkdebris_config: unconfig 1484f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 14857abf0c58Swdenk 148680885a9dSwdenkeXalion_config: unconfig 1487f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 148880885a9dSwdenk 1489756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1490f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1491756f586aSwdenk 149253dd6ce4SWolfgang Denkkvme080_config: unconfig 1493f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 149453dd6ce4SWolfgang Denk 14957ebf7443SwdenkMOUSSE_config: unconfig 1496f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 14977ebf7443Swdenk 14987ebf7443SwdenkMUSENKI_config: unconfig 1499f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 15007ebf7443Swdenk 1501b4676a25SwdenkMVBLUE_config: unconfig 1502f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1503b4676a25Swdenk 15047ebf7443SwdenkOXC_config: unconfig 1505f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 15067ebf7443Swdenk 15077ebf7443SwdenkPN62_config: unconfig 1508f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 15097ebf7443Swdenk 15107ebf7443SwdenkSandpoint8240_config: unconfig 1511f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15127ebf7443Swdenk 15137ebf7443SwdenkSandpoint8245_config: unconfig 1514f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15157ebf7443Swdenk 1516466b7410Swdenksbc8240_config: unconfig 1517f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1518466b7410Swdenk 1519d1cbe85bSwdenkSL8245_config: unconfig 1520f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1521d1cbe85bSwdenk 15227ebf7443Swdenkutx8245_config: unconfig 1523f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 15247ebf7443Swdenk 15257ebf7443Swdenk######################################################################### 15267ebf7443Swdenk## MPC8260 Systems 15277ebf7443Swdenk######################################################################### 15287ebf7443Swdenk 152954387ac9Swdenkatc_config: unconfig 1530f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 153154387ac9Swdenk 15327ebf7443Swdenkcogent_mpc8260_config: unconfig 1533f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 15347ebf7443Swdenk 15357ebf7443SwdenkCPU86_config \ 15367ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1537f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1538f9328639SMarian Balakowicz @cd $(obj)include ; \ 15397ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 15407ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1541ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 15427ebf7443Swdenk else \ 15437ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1544ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 15457ebf7443Swdenk fi; \ 15467ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 15477ebf7443Swdenk 1548384cc687SwdenkCPU87_config \ 1549384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1550f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1551f9328639SMarian Balakowicz @cd $(obj)include ; \ 1552384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1553384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1554ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1555384cc687Swdenk else \ 1556384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1557ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1558384cc687Swdenk fi; \ 1559384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1560384cc687Swdenk 1561f901a83bSWolfgang Denkep8248_config \ 1562f901a83bSWolfgang Denkep8248E_config : unconfig 1563f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1564f901a83bSWolfgang Denk 15657ebf7443Swdenkep8260_config: unconfig 1566f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 15677ebf7443Swdenk 15688d4ac794SWolfgang Denkep82xxm_config: unconfig 156990b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 15708d4ac794SWolfgang Denk 15717ebf7443Swdenkgw8260_config: unconfig 1572f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 15737ebf7443Swdenk 15747ebf7443Swdenkhymod_config: unconfig 1575f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 15767ebf7443Swdenk 15779dd41a7bSwdenkIDS8247_config: unconfig 1578f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 15799dd41a7bSwdenk 15807ebf7443SwdenkIPHASE4539_config: unconfig 1581f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 15827ebf7443Swdenk 1583c3c7f861SwdenkISPAN_config \ 1584c3c7f861SwdenkISPAN_REVB_config: unconfig 1585f9328639SMarian Balakowicz @mkdir -p $(obj)include 1586c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1587f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1588c3c7f861Swdenk fi 1589f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1590c3c7f861Swdenk 1591ac9db066SHeiko Schochermgcoge_config : unconfig 1592ac9db066SHeiko Schocher @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge 1593ac9db066SHeiko Schocher 159404a85b3bSwdenkMPC8260ADS_config \ 1595901787d6SwdenkMPC8260ADS_lowboot_config \ 159604a85b3bSwdenkMPC8260ADS_33MHz_config \ 1597901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 159804a85b3bSwdenkMPC8260ADS_40MHz_config \ 1599901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 160004a85b3bSwdenkMPC8272ADS_config \ 1601901787d6SwdenkMPC8272ADS_lowboot_config \ 160204a85b3bSwdenkPQ2FADS_config \ 1603901787d6SwdenkPQ2FADS_lowboot_config \ 160404a85b3bSwdenkPQ2FADS-VR_config \ 1605901787d6SwdenkPQ2FADS-VR_lowboot_config \ 160604a85b3bSwdenkPQ2FADS-ZU_config \ 1607901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 160804a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1609901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 161004a85b3bSwdenk : unconfig 1611f9328639SMarian Balakowicz @mkdir -p $(obj)include 1612f9328639SMarian Balakowicz @mkdir -p $(obj)board/mpc8260ads 161304a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1614f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1615f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 161604a85b3bSwdenk $(if $(findstring MHz,$@), \ 1617f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 161804a85b3bSwdenk $(if $(findstring VR,$@), \ 1619f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1620901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1621f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \ 1622ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 1623901787d6Swdenk } 1624f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads 16257ebf7443Swdenk 1626db2f721fSwdenkMPC8266ADS_config: unconfig 1627f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads 1628db2f721fSwdenk 1629efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 163010f67017SwdenkPM825_config \ 1631efa329cbSwdenkPM825_ROMBOOT_config \ 1632efa329cbSwdenkPM825_BIGFLASH_config \ 1633efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 16347ebf7443SwdenkPM826_config \ 1635efa329cbSwdenkPM826_ROMBOOT_config \ 1636efa329cbSwdenkPM826_BIGFLASH_config \ 1637efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1638f9328639SMarian Balakowicz @mkdir -p $(obj)include 1639f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1640efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1641f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 16427ebf7443Swdenk else \ 1643f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1644efa329cbSwdenk fi 1645efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1646ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1647f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1648f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1649efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1650ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1651f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 16527ebf7443Swdenk fi; \ 1653efa329cbSwdenk else \ 1654ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1655efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1656ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1657f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1658f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1659efa329cbSwdenk else \ 1660f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1661efa329cbSwdenk fi; \ 1662efa329cbSwdenk fi 1663f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1664efa329cbSwdenk 1665efa329cbSwdenkPM828_config \ 1666efa329cbSwdenkPM828_PCI_config \ 1667efa329cbSwdenkPM828_ROMBOOT_config \ 1668efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1669f9328639SMarian Balakowicz @mkdir -p $(obj)include 1670f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 167117076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1672f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1673ae6d1056SWolfgang Denk $(XECHO) "... with PCI enabled" ; \ 1674efa329cbSwdenk fi 1675efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1676ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1677f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1678f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1679efa329cbSwdenk fi 1680f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 16817ebf7443Swdenk 16827ebf7443Swdenkppmc8260_config: unconfig 1683f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 16847ebf7443Swdenk 16858b0bfc68SwdenkRattler8248_config \ 16868b0bfc68SwdenkRattler_config: unconfig 1687f9328639SMarian Balakowicz @mkdir -p $(obj)include 16888b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1689f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1690f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 16918b0bfc68Swdenk 16927ebf7443SwdenkRPXsuper_config: unconfig 1693f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 16947ebf7443Swdenk 16957ebf7443Swdenkrsdproto_config: unconfig 1696f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 16977ebf7443Swdenk 16987ebf7443Swdenksacsng_config: unconfig 1699f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 17007ebf7443Swdenk 17017ebf7443Swdenksbc8260_config: unconfig 1702f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 17037ebf7443Swdenk 17047ebf7443SwdenkSCM_config: unconfig 1705f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 17067ebf7443Swdenk 170727b207fdSwdenkTQM8255_AA_config \ 170827b207fdSwdenkTQM8260_AA_config \ 170927b207fdSwdenkTQM8260_AB_config \ 171027b207fdSwdenkTQM8260_AC_config \ 171127b207fdSwdenkTQM8260_AD_config \ 171227b207fdSwdenkTQM8260_AE_config \ 171327b207fdSwdenkTQM8260_AF_config \ 171427b207fdSwdenkTQM8260_AG_config \ 171527b207fdSwdenkTQM8260_AH_config \ 17161f62bc2dSWolfgang DenkTQM8260_AI_config \ 171727b207fdSwdenkTQM8265_AA_config: unconfig 1718f9328639SMarian Balakowicz @mkdir -p $(obj)include 171927b207fdSwdenk @case "$@" in \ 172027b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 172127b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 172227b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 172327b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 172427b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 172527b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 172627b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 172727b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 172827b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 17291f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 173027b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 173127b207fdSwdenk esac; \ 173227b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1733f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 173427b207fdSwdenk fi; \ 1735f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 173627b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 17371aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1738f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1739ae6d1056SWolfgang Denk $(XECHO) "... with L2 Cache support" ; \ 17407ebf7443Swdenk else \ 1741f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1742ae6d1056SWolfgang Denk $(XECHO) "... without L2 Cache support" ; \ 174327b207fdSwdenk fi; \ 17441aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1745f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1746ae6d1056SWolfgang Denk $(XECHO) "... with 60x Bus Mode" ; \ 174727b207fdSwdenk else \ 1748f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1749ae6d1056SWolfgang Denk $(XECHO) "... without 60x Bus Mode" ; \ 17507ebf7443Swdenk fi 1751f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 17527ebf7443Swdenk 1753fa230445SHeiko SchocherTQM8272_config: unconfig 1754210ed200SWolfgang Denk @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 1755fa230445SHeiko Schocher 1756ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1757ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1758f9328639SMarian Balakowicz @mkdir -p $(obj)include 1759f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1760f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1761ba91e26aSwdenk 176254387ac9SwdenkZPC1900_config: unconfig 1763f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 17647aa78614Swdenk 17654e5ca3ebSwdenk######################################################################### 17664e5ca3ebSwdenk## Coldfire 17674e5ca3ebSwdenk######################################################################### 17684e5ca3ebSwdenk 17691552af70STsiChungLiewM52277EVB_config: unconfig 17701552af70STsiChungLiew @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 17711552af70STsiChungLiew 17724a442d31STsiChungLiewM5235EVB_config \ 17734a442d31STsiChungLiewM5235EVB_Flash16_config \ 17744a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 17754a442d31STsiChungLiew @case "$@" in \ 17764a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 17774a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 17784a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 17794a442d31STsiChungLiew esac; \ 17804a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1781ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 17824a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 17834a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 17844a442d31STsiChungLiew else \ 17854a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 17864a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 17874a442d31STsiChungLiew fi 17884a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 17894a442d31STsiChungLiew 1790a605aacdSTsiChungLiewM5249EVB_config : unconfig 1791a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1792a605aacdSTsiChungLiew 1793a1436a84STsiChungLiewM5253EVBE_config : unconfig 1794a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1795a1436a84STsiChungLiew 17967481266eSWolfgang Denkcobra5272_config : unconfig 1797f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 17987481266eSWolfgang Denk 17994176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1800f9328639SMarian Balakowicz @mkdir -p $(obj)include 1801f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1802f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1803f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18044176c799SWolfgang Denk 18054176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1806f9328639SMarian Balakowicz @mkdir -p $(obj)include 1807f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1808f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1809f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18104176c799SWolfgang Denk 1811daa6e418SBartlomiej Siekaidmr_config : unconfig 1812daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1813daa6e418SBartlomiej Sieka 18144176c799SWolfgang DenkM5271EVB_config : unconfig 1815f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 18164176c799SWolfgang Denk 18174e5ca3ebSwdenkM5272C3_config : unconfig 1818f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 18194e5ca3ebSwdenk 18204e5ca3ebSwdenkM5282EVB_config : unconfig 1821f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 18224e5ca3ebSwdenk 1823c419d1d6SstroeseTASREG_config : unconfig 1824f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1825c419d1d6Sstroese 18263a108ed8SZachary P. Landaur5200_config : unconfig 1827f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200 18283a108ed8SZachary P. Landau 18298e585f02STsiChung LiewM5329AFEE_config \ 18308e585f02STsiChung LiewM5329BFEE_config : unconfig 18318e585f02STsiChung Liew @case "$@" in \ 18328e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 18338e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 18348e585f02STsiChung Liew esac; \ 18358e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1836ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 18378e585f02STsiChung Liew fi 18388e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 18398e585f02STsiChung Liew 1840aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1841aa5f1f9dSTsiChungLiew @case "$@" in \ 1842aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1843aa5f1f9dSTsiChungLiew esac; \ 1844aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1845aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1846aa5f1f9dSTsiChungLiew fi 1847aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1848aa5f1f9dSTsiChungLiew 18498ae158cdSTsiChungLiewM54455EVB_config \ 18508ae158cdSTsiChungLiewM54455EVB_atmel_config \ 18518ae158cdSTsiChungLiewM54455EVB_intel_config \ 18528ae158cdSTsiChungLiewM54455EVB_a33_config \ 18538ae158cdSTsiChungLiewM54455EVB_a66_config \ 18548ae158cdSTsiChungLiewM54455EVB_i33_config \ 18558ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 18568ae158cdSTsiChungLiew @case "$@" in \ 18578ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 18588ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 18598ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 18608ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 18618ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 18628ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 18638ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 18648ae158cdSTsiChungLiew esac; \ 18651aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 18664a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1867e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1868e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1869ae6d1056SWolfgang Denk $(XECHO) "... with INTEL boot..." ; \ 18708ae158cdSTsiChungLiew else \ 18714a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1872e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1873e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1874ae6d1056SWolfgang Denk $(XECHO) "... with ATMEL boot..." ; \ 18758ae158cdSTsiChungLiew fi; \ 18764a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1877ae6d1056SWolfgang Denk $(XECHO) "... with $${FREQ}Hz input clock" 18788ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 18798ae158cdSTsiChungLiew 188057a12720STsiChungLiewM5475AFE_config \ 188157a12720STsiChungLiewM5475BFE_config \ 188257a12720STsiChungLiewM5475CFE_config \ 188357a12720STsiChungLiewM5475DFE_config \ 188457a12720STsiChungLiewM5475EFE_config \ 188557a12720STsiChungLiewM5475FFE_config \ 188657a12720STsiChungLiewM5475GFE_config : unconfig 188757a12720STsiChungLiew @case "$@" in \ 188857a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 188957a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 189057a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 189157a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 189257a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 189357a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 189457a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 189557a12720STsiChungLiew esac; \ 189657a12720STsiChungLiew echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \ 189757a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 189857a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 189957a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 190057a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 190157a12720STsiChungLiew fi; \ 190257a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 190357a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 190457a12720STsiChungLiew fi; \ 190557a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 190657a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 190757a12720STsiChungLiew fi; \ 190857a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 190957a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 191057a12720STsiChungLiew fi 191157a12720STsiChungLiew @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 191257a12720STsiChungLiew 191357a12720STsiChungLiewM5485AFE_config \ 191457a12720STsiChungLiewM5485BFE_config \ 191557a12720STsiChungLiewM5485CFE_config \ 191657a12720STsiChungLiewM5485DFE_config \ 191757a12720STsiChungLiewM5485EFE_config \ 191857a12720STsiChungLiewM5485FFE_config \ 191957a12720STsiChungLiewM5485GFE_config \ 192057a12720STsiChungLiewM5485HFE_config : unconfig 192157a12720STsiChungLiew @case "$@" in \ 192257a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 192357a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 192457a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 192557a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 192657a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 192757a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 192857a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 19294d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 193057a12720STsiChungLiew esac; \ 193157a12720STsiChungLiew echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \ 193257a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 193357a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 193457a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 193557a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 193657a12720STsiChungLiew fi; \ 193757a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 193857a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 193957a12720STsiChungLiew fi; \ 194057a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 194157a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 194257a12720STsiChungLiew fi; \ 194357a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 194457a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 194557a12720STsiChungLiew fi 194657a12720STsiChungLiew @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 194757a12720STsiChungLiew 19487ebf7443Swdenk######################################################################### 1949f046ccd1SEran Liberty## MPC83xx Systems 1950f046ccd1SEran Liberty######################################################################### 1951f046ccd1SEran Liberty 19525c5d3242SKim PhillipsMPC8313ERDB_33_config \ 19535c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 1954cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1955c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 1956ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 1957cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 19585c5d3242SKim Phillips fi ; \ 19595c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1960ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 1961cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 19625c5d3242SKim Phillips fi ; 1963e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 19645c5d3242SKim Phillips 19658bd522ceSDave LiuMPC8315ERDB_config: unconfig 19668bd522ceSDave Liu @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 19678bd522ceSDave Liu 19681c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 19691c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 19701c274c4eSKim Phillips 19714decd84eSKim PhillipsMPC832XEMDS_config \ 19724decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 19734decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1974281df457STony LiMPC832XEMDS_SLAVE_config \ 1975281df457STony LiMPC832XEMDS_ATM_config: unconfig 1976cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1977c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 1978ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 1979cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 19804decd84eSKim Phillips fi ; \ 19814decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1982ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 1983cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1984cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 19854decd84eSKim Phillips fi ; \ 19864decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 1987ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 1988cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1989281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 19904decd84eSKim Phillips fi ; \ 19914decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1992ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 1993cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1994281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1995281df457STony Li fi ; \ 1996281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1997ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 1998281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1999281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20004decd84eSKim Phillips fi ; 2001e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 2002e6f2e902SMarian Balakowicz 2003991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 2004e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 2005991425feSMarian Balakowicz 20067a78f148STimur TabiMPC8349ITX_config \ 20077a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 20087a78f148STimur TabiMPC8349ITXGP_config: unconfig 20097a78f148STimur Tabi @mkdir -p $(obj)include 2010e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 20117a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 20127a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 2013e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20147a78f148STimur Tabi fi 20157a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2016e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20177a78f148STimur Tabi fi 2018e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 20194decd84eSKim Phillips 20205f820439SDave LiuMPC8360EMDS_config \ 20215f820439SDave LiuMPC8360EMDS_HOST_33_config \ 20225f820439SDave LiuMPC8360EMDS_HOST_66_config \ 2023281df457STony LiMPC8360EMDS_SLAVE_config \ 2024281df457STony LiMPC8360EMDS_ATM_config: unconfig 2025cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2026c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2027ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2028cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20295f820439SDave Liu fi ; \ 20305f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2031ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2032cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2033cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20345f820439SDave Liu fi ; \ 20355f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 2036ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2037cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2038281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20395f820439SDave Liu fi ; \ 20405f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 2041ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2042cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2043281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2044281df457STony Li fi ; \ 2045281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2046ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2047281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2048281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20495f820439SDave Liu fi ; 2050e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 20515f820439SDave Liu 2052fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 2053fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 205491c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 2055fab6f556SAnton Vorontsov @mkdir -p $(obj)include 2056c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2057ae6d1056SWolfgang Denk $(XECHO) -n "... CLKIN 33MHz " ; \ 2058fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2059fab6f556SAnton Vorontsov fi ; 2060fab6f556SAnton Vorontsov @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2061fab6f556SAnton Vorontsov 206219580e66SDave LiuMPC837XEMDS_config \ 206319580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 206419580e66SDave Liu @mkdir -p $(obj)include 2065c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2066ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 206719580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 206819580e66SDave Liu fi ; 206919580e66SDave Liu @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 207019580e66SDave Liu 20715e918a98SKim PhillipsMPC837XERDB_config: unconfig 20725e918a98SKim Phillips @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 20735e918a98SKim Phillips 207491e25769SPaul Gortmakersbc8349_config: unconfig 207591e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 207691e25769SPaul Gortmaker 20774decd84eSKim PhillipsTQM834x_config: unconfig 20784decd84eSKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 20794decd84eSKim Phillips 20802ad6b513STimur Tabi 2081f046ccd1SEran Liberty######################################################################### 208242d1f039Swdenk## MPC85xx Systems 208342d1f039Swdenk######################################################################### 208442d1f039Swdenk 20857bd6104bSrobert lazarskiATUM8548_config: unconfig 20867bd6104bSrobert lazarski @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 20877bd6104bSrobert lazarski 208842d1f039SwdenkMPC8540ADS_config: unconfig 2089c2d943ffSKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 209042d1f039Swdenk 2091b0e32949SLunsheng WangMPC8540EVAL_config \ 2092b0e32949SLunsheng WangMPC8540EVAL_33_config \ 2093b0e32949SLunsheng WangMPC8540EVAL_66_config \ 2094b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 2095b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 2096f9328639SMarian Balakowicz @mkdir -p $(obj)include 2097c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2098ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2099b0e32949SLunsheng Wang else \ 2100f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2101ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2102b0e32949SLunsheng Wang fi ; \ 2103b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 2104f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2105ae6d1056SWolfgang Denk $(XECHO) " slave" ; \ 2106b0e32949SLunsheng Wang else \ 2107ae6d1056SWolfgang Denk $(XECHO) " host" ; \ 2108b0e32949SLunsheng Wang fi 2109f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2110b0e32949SLunsheng Wang 211142d1f039SwdenkMPC8560ADS_config: unconfig 2112870ceac5SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 211342d1f039Swdenk 21147f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 211503f5c550SwdenkMPC8541CDS_config: unconfig 21167f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2117c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21187f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2119ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21207f3f2bd2SRandy Vinson fi 2121415a613bSKumar Gala @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 212203f5c550Swdenk 212381f481caSAndy FlemingMPC8544DS_config: unconfig 212481f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 212581f481caSAndy Fleming 21267f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 2127d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 21287f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2129c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21307f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2131ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21327f3f2bd2SRandy Vinson fi 2133415a613bSKumar Gala @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2134d9b94f28SJon Loeliger 21357f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 213603f5c550SwdenkMPC8555CDS_config: unconfig 21377f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2138c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21397f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2140ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21417f3f2bd2SRandy Vinson fi 2142415a613bSKumar Gala @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 21437abf0c58Swdenk 214467431059SAndy FlemingMPC8568MDS_config: unconfig 2145acbca876SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 214667431059SAndy Fleming 2147384cc687SwdenkPM854_config: unconfig 2148f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2149384cc687Swdenk 2150b20d0032SWolfgang DenkPM856_config: unconfig 2151f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2152b20d0032SWolfgang Denk 2153c15f3120Swdenksbc8540_config \ 2154c15f3120Swdenksbc8540_33_config \ 2155c15f3120Swdenksbc8540_66_config: unconfig 2156f9328639SMarian Balakowicz @mkdir -p $(obj)include 2157c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2158f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2159ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2160c15f3120Swdenk else \ 2161ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2162c15f3120Swdenk fi 2163f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2164c15f3120Swdenk 216511c45ebdSJoe Hammansbc8548_config: unconfig 216611c45ebdSJoe Hamman @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 216711c45ebdSJoe Hamman 2168466b7410Swdenksbc8560_config \ 2169466b7410Swdenksbc8560_33_config \ 2170466b7410Swdenksbc8560_66_config: unconfig 2171f9328639SMarian Balakowicz @mkdir -p $(obj)include 21728b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2173f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2174ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 21758b07a110Swdenk else \ 2176ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 21778b07a110Swdenk fi 2178f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 21798b07a110Swdenk 218003f5c550Swdenkstxgp3_config: unconfig 2181f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 218203f5c550Swdenk 2183ee152983SWolfgang Denkstxssa_config \ 2184ee152983SWolfgang Denkstxssa_4M_config: unconfig 2185ee152983SWolfgang Denk @mkdir -p $(obj)include 2186ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2187ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2188ae6d1056SWolfgang Denk $(XECHO) "... with 4 MiB flash memory" ; \ 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=)); \ 2198ae6d1056SWolfgang Denk $(XECHO) "... TQM"$${CTYPE}; \ 2199f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2200f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2201f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2202f9328639SMarian Balakowicz echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 22038a783a65SGrant Likely echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 2204f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 2205f5c5ef4aSwdenk 220642d1f039Swdenk######################################################################### 2207debb7354SJon Loeliger## MPC86xx Systems 2208debb7354SJon Loeliger######################################################################### 2209debb7354SJon Loeliger 22103c89d754SJon LoeligerMPC8610HPCD_config: unconfig 22113c89d754SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 22123c89d754SJon Loeliger 2213debb7354SJon LoeligerMPC8641HPCN_config: unconfig 22144ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2215debb7354SJon Loeliger 2216c646bba6SJoe Hammansbc8641d_config: unconfig 221791c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d 2218debb7354SJon Loeliger 2219debb7354SJon Loeliger######################################################################### 22207ebf7443Swdenk## 74xx/7xx Systems 22217ebf7443Swdenk######################################################################### 22227ebf7443Swdenk 2223c7de829cSwdenkAmigaOneG3SE_config: unconfig 2224f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2225c7de829cSwdenk 222615647dc7SwdenkBAB7xx_config: unconfig 2227f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 222815647dc7Swdenk 2229c419d1d6SstroeseCPCI750_config: unconfig 2230f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2231c419d1d6Sstroese 22323a473b2aSwdenkDB64360_config: unconfig 2233f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 22343a473b2aSwdenk 22353a473b2aSwdenkDB64460_config: unconfig 2236f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 22373a473b2aSwdenk 223815647dc7SwdenkELPPC_config: unconfig 2239f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 224015647dc7Swdenk 22417ebf7443SwdenkEVB64260_config \ 22427ebf7443SwdenkEVB64260_750CX_config: unconfig 2243f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 22447ebf7443Swdenk 22454c52783bSroy zangmpc7448hpc2_config: unconfig 2246ee311214Sroy zang @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 22474c52783bSroy zang 224815647dc7SwdenkP3G4_config: unconfig 2249f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 22507ebf7443Swdenk 22511eac2a71SStefan Roesep3m750_config \ 22521eac2a71SStefan Roesep3m7448_config: unconfig 22531eac2a71SStefan Roese @mkdir -p $(obj)include 22541eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 22551eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 22561eac2a71SStefan Roese else \ 22571eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 22581eac2a71SStefan Roese fi 22591eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 22601eac2a71SStefan Roese 22617ebf7443SwdenkPCIPPC2_config \ 22627ebf7443SwdenkPCIPPC6_config: unconfig 2263f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 22647ebf7443Swdenk 226515647dc7SwdenkZUMA_config: unconfig 2266f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 226712f34241Swdenk 2268f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2269f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2270f5e0d039SHeiko Schocher 22717ebf7443Swdenk#======================================================================== 22727ebf7443Swdenk# ARM 22737ebf7443Swdenk#======================================================================== 22747ebf7443Swdenk######################################################################### 22757ebf7443Swdenk## StrongARM Systems 22767ebf7443Swdenk######################################################################### 22777ebf7443Swdenk 2278ea66bc88Swdenkassabet_config : unconfig 2279f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2280ea66bc88Swdenk 22817ebf7443Swdenkdnp1110_config : unconfig 2282f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 22837ebf7443Swdenk 2284855a496fSwdenkgcplus_config : unconfig 2285f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2286855a496fSwdenk 2287855a496fSwdenklart_config : unconfig 2288f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2289855a496fSwdenk 22907ebf7443Swdenkshannon_config : unconfig 2291f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 22927ebf7443Swdenk 22937ebf7443Swdenk######################################################################### 22942e5983d2Swdenk## ARM92xT Systems 22957ebf7443Swdenk######################################################################### 22967ebf7443Swdenk 2297b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 229843d9616cSwdenk 22993ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 230063e73c9aSwdenk 2301a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2302a56bd922Swdenk 230320b197c6SStelian Popat91cap9adk_config : unconfig 230464e8a06aSStelian Pop @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91cap9 230520b197c6SStelian Pop 2306a85f9f21Swdenkat91rm9200dk_config : unconfig 230765230107SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 2308a85f9f21Swdenk 2309a85f9f21Swdenkcmc_pu2_config : unconfig 2310f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2311a85f9f21Swdenk 2312645da510SWolfgang Denkcsb637_config : unconfig 2313f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2314645da510SWolfgang Denk 23150e4018d2SWolfgang Denkmp2usb_config : unconfig 2316f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 23170e4018d2SWolfgang Denk 2318ea8d989fSTimo Tuunainenm501sk_config : unconfig 2319ea8d989fSTimo Tuunainen @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 232087cb6862SWolfgang Denk 232174f4304eSWolfgang Denk######################################################################## 232287cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 232387cb6862SWolfgang Denkintegratorap_config \ 232487cb6862SWolfgang Denkap_config \ 232587cb6862SWolfgang Denkap966_config \ 232687cb6862SWolfgang Denkap922_config \ 232787cb6862SWolfgang Denkap922_XA10_config \ 232887cb6862SWolfgang Denkap7_config \ 232987cb6862SWolfgang Denkap720t_config \ 233087cb6862SWolfgang Denkap920t_config \ 233187cb6862SWolfgang Denkap926ejs_config \ 233287cb6862SWolfgang Denkap946es_config: unconfig 233396782c63SWolfgang Denk @board/integratorap/split_by_variant.sh $@ 23343d3befa7Swdenk 233587cb6862SWolfgang Denkintegratorcp_config \ 233687cb6862SWolfgang Denkcp_config \ 233787cb6862SWolfgang Denkcp920t_config \ 233887cb6862SWolfgang Denkcp926ejs_config \ 233987cb6862SWolfgang Denkcp946es_config \ 234087cb6862SWolfgang Denkcp1136_config \ 234187cb6862SWolfgang Denkcp966_config \ 234287cb6862SWolfgang Denkcp922_config \ 234387cb6862SWolfgang Denkcp922_XA10_config \ 234487cb6862SWolfgang Denkcp1026_config: unconfig 234596782c63SWolfgang Denk @board/integratorcp/split_by_variant.sh $@ 234625d6712aSwdenk 234799b0d285SWolfgang Denkkb9202_config : unconfig 2348f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 234999b0d285SWolfgang Denk 2350f832d8a1Swdenklpd7a400_config \ 2351f832d8a1Swdenklpd7a404_config: unconfig 2352f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 23533d3befa7Swdenk 2354281e00a3Swdenkmx1ads_config : unconfig 2355f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2356281e00a3Swdenk 2357281e00a3Swdenkmx1fs2_config : unconfig 2358f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2359281e00a3Swdenk 2360ac7eb8a3SWolfgang Denknetstar_config: unconfig 2361f4e7cbfcSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm925t netstar 2362ac7eb8a3SWolfgang Denk 23632e5983d2Swdenkomap1510inn_config : unconfig 2364f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 23652e5983d2Swdenk 23661eaeb58eSwdenkomap5912osk_config : unconfig 2367f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 23681eaeb58eSwdenk 2369c74b2108SSergey Kubushyndavinci_dvevm_config : unconfig 2370c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2371c74b2108SSergey Kubushyn 2372c74b2108SSergey Kubushyndavinci_schmoogie_config : unconfig 2373c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2374c74b2108SSergey Kubushyn 2375c74b2108SSergey Kubushyndavinci_sonata_config : unconfig 2376c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2377c74b2108SSergey Kubushyn 237863e73c9aSwdenkomap1610inn_config \ 237963e73c9aSwdenkomap1610inn_cs0boot_config \ 238063e73c9aSwdenkomap1610inn_cs3boot_config \ 23813ff02c27Swdenkomap1610inn_cs_autoboot_config \ 238263e73c9aSwdenkomap1610h2_config \ 238363e73c9aSwdenkomap1610h2_cs0boot_config \ 23843ff02c27Swdenkomap1610h2_cs3boot_config \ 23853ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2386f9328639SMarian Balakowicz @mkdir -p $(obj)include 238763e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2388cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2389ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 23903ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2391cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2392ae6d1056SWolfgang Denk $(XECHO) "... configured for CS_AUTO boot"; \ 239363e73c9aSwdenk else \ 2394cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2395ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 239663e73c9aSwdenk fi; 2397f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 23986f21347dSwdenk 2399a56bd922Swdenkomap730p2_config \ 2400a56bd922Swdenkomap730p2_cs0boot_config \ 2401a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2402f9328639SMarian Balakowicz @mkdir -p $(obj)include 2403a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2404f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2405ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 2406a56bd922Swdenk else \ 2407f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2408ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 2409a56bd922Swdenk fi; 2410f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2411a56bd922Swdenk 241232cb2c70SWolfgang Denksbc2410x_config: unconfig 2413f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 241432cb2c70SWolfgang Denk 2415281e00a3Swdenkscb9328_config : unconfig 2416f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2417281e00a3Swdenk 24187ebf7443Swdenksmdk2400_config : unconfig 2419f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 24207ebf7443Swdenk 24217ebf7443Swdenksmdk2410_config : unconfig 2422f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 24237ebf7443Swdenk 24242d24a3a7SwdenkSX1_config : unconfig 2425f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 24262d24a3a7Swdenk 2427b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 242843d9616cSwdenktrab_config \ 2429b0639ca3Swdenktrab_bigram_config \ 2430b0639ca3Swdenktrab_bigflash_config \ 2431f54ebdfaSwdenktrab_old_config: unconfig 2432f9328639SMarian Balakowicz @mkdir -p $(obj)include 2433f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2434b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2435f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2436f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2437ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2438b0639ca3Swdenk } 2439b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2440f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2441f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2442ae6d1056SWolfgang Denk $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2443f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2444b0639ca3Swdenk } 2445f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2446f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2447f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2448ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2449f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 245043d9616cSwdenk } 2451f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 24527ebf7443Swdenk 24531cb8e980SwdenkVCMA9_config : unconfig 2454f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 24551cb8e980Swdenk 245687cb6862SWolfgang Denk#======================================================================== 245787cb6862SWolfgang Denk# ARM supplied Versatile development boards 245887cb6862SWolfgang Denk#======================================================================== 245987cb6862SWolfgang Denkversatile_config \ 246087cb6862SWolfgang Denkversatileab_config \ 246187cb6862SWolfgang Denkversatilepb_config : unconfig 246296782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2463074cff0dSwdenk 24643c2b3d45Swdenkvoiceblue_config: unconfig 24654fedfddfSLadislav Michl @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 24663c2b3d45Swdenk 246716b013e7Swdenkcm4008_config : unconfig 2468f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 246916b013e7Swdenk 247016b013e7Swdenkcm41xx_config : unconfig 2471f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 247216b013e7Swdenk 2473074cff0dSwdenk######################################################################### 2474074cff0dSwdenk## S3C44B0 Systems 2475074cff0dSwdenk######################################################################### 2476074cff0dSwdenk 2477074cff0dSwdenkB2_config : unconfig 2478f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2479074cff0dSwdenk 24807ebf7443Swdenk######################################################################### 24817ebf7443Swdenk## ARM720T Systems 24827ebf7443Swdenk######################################################################### 24837ebf7443Swdenk 2484c570b2fdSWolfgang Denkarmadillo_config: unconfig 2485f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2486c570b2fdSWolfgang Denk 24877ebf7443Swdenkep7312_config : unconfig 2488f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 24897ebf7443Swdenk 24902d24a3a7Swdenkimpa7_config : unconfig 2491f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 24922d24a3a7Swdenk 24932d1a537dSwdenkmodnet50_config : unconfig 2494f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 24952d1a537dSwdenk 249639539887Swdenkevb4510_config : unconfig 2497f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 249839539887Swdenk 24996bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2500b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2501b0d8f5bfSPeter Pearse 2502b0d8f5bfSPeter PearseSMN42_config : unconfig 2503b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 25046bd2447eSGary Jennejohn 25057ebf7443Swdenk######################################################################### 250643d9616cSwdenk## XScale Systems 25077ebf7443Swdenk######################################################################### 25087ebf7443Swdenk 2509799891efSMichael Schwingenactux1_config : unconfig 2510799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux1 2511799891efSMichael Schwingen 2512799891efSMichael Schwingenactux2_config : unconfig 2513799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux2 2514799891efSMichael Schwingen 2515799891efSMichael Schwingenactux3_config : unconfig 2516799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux3 2517799891efSMichael Schwingen 2518799891efSMichael Schwingenactux4_config : unconfig 2519799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux4 2520799891efSMichael Schwingen 252120787e23Swdenkadsvix_config : unconfig 2522f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa adsvix 252320787e23Swdenk 2524fabd46acSwdenkcerf250_config : unconfig 2525f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2526fabd46acSwdenk 25277ebf7443Swdenkcradle_config : unconfig 2528f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 25297ebf7443Swdenk 25307ebf7443Swdenkcsb226_config : unconfig 2531f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 25327ebf7443Swdenk 253391c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config : unconfig 2534f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 25350be248faSWolfgang Denk 253643d9616cSwdenkinnokom_config : unconfig 2537f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 253843d9616cSwdenk 25392d5b561eSwdenkixdp425_config : unconfig 2540f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 25412d5b561eSwdenk 2542ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2543f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2544ba94a1bbSWolfgang Denk 254543d9616cSwdenklubbock_config : unconfig 2546f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 254743d9616cSwdenk 25485720df78SHeiko Schocherpleb2_config : unconfig 2549f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 25505720df78SHeiko Schocher 255152f52c14Swdenklogodl_config : unconfig 2552f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 255352f52c14Swdenk 25549d8d5a5bSStefan Roesepdnb3_config \ 25559d8d5a5bSStefan Roesescpu_config: unconfig 2556cdd917a4SWolfgang Denk @mkdir -p $(obj)include 25579d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2558cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2559ae6d1056SWolfgang Denk $(XECHO) "... on SCPU board variant" ; \ 25609d8d5a5bSStefan Roese fi 25619d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2562ba94a1bbSWolfgang Denk 2563f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2564f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2565f57f70aaSWolfgang Denk 25665e5803e1Sstefano babictrizepsiv_config : unconfig 25675e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 25685e5803e1Sstefano babic 25693e38691eSwdenkwepep250_config : unconfig 2570f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 25713e38691eSwdenk 25724ec3a7f0Swdenkxaeniax_config : unconfig 2573f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 25744ec3a7f0Swdenk 2575efa329cbSwdenkxm250_config : unconfig 2576f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2577efa329cbSwdenk 2578ca0e7748Swdenkxsengine_config : unconfig 2579f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2580ca0e7748Swdenk 2581e0269579SMarkus Klotzbücherzylonite_config : 2582f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2583e0269579SMarkus Klotzbücher 25848ed96046Swdenk######################################################################### 25858ed96046Swdenk## ARM1136 Systems 25868ed96046Swdenk######################################################################### 25878ed96046Swdenkomap2420h4_config : unconfig 2588f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 25895ca9881aSPeter Pearse 25905ca9881aSPeter Pearseapollon_config : unconfig 2591c6fe4dabSWolfgang Denk @mkdir -p $(obj)include 2592751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 25935ca9881aSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm1136 apollon 2594751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 25958ed96046Swdenk 25962262cfeeSwdenk#======================================================================== 25972262cfeeSwdenk# i386 25982262cfeeSwdenk#======================================================================== 25992262cfeeSwdenk######################################################################### 26002262cfeeSwdenk## AMD SC520 CDP 26012262cfeeSwdenk######################################################################### 26022262cfeeSwdenksc520_cdp_config : unconfig 2603f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 26042262cfeeSwdenk 26057a8e9bedSwdenksc520_spunk_config : unconfig 2606f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26077a8e9bedSwdenk 26087a8e9bedSwdenksc520_spunk_rel_config : unconfig 2609f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26107a8e9bedSwdenk 261143d9616cSwdenk#======================================================================== 261243d9616cSwdenk# MIPS 261343d9616cSwdenk#======================================================================== 26147ebf7443Swdenk######################################################################### 261543d9616cSwdenk## MIPS32 4Kc 261643d9616cSwdenk######################################################################### 261743d9616cSwdenk 2618e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2619e0ac62d7Swdenk 2620e0ac62d7Swdenkincaip_100MHz_config \ 2621e0ac62d7Swdenkincaip_133MHz_config \ 2622e0ac62d7Swdenkincaip_150MHz_config \ 262343d9616cSwdenkincaip_config: unconfig 2624f9328639SMarian Balakowicz @mkdir -p $(obj)include 2625e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2626f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2627ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 2628e0ac62d7Swdenk } 2629e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2630f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2631ae6d1056SWolfgang Denk $(XECHO) "... with 133MHz system clock" ; \ 2632e0ac62d7Swdenk } 2633e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2634f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2635ae6d1056SWolfgang Denk $(XECHO) "... with 150MHz system clock" ; \ 2636e0ac62d7Swdenk } 2637f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2638e0ac62d7Swdenk 2639f4863a7aSwdenktb0229_config: unconfig 2640f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2641f4863a7aSwdenk 2642e0ac62d7Swdenk######################################################################### 264369459791Swdenk## MIPS32 AU1X00 264469459791Swdenk######################################################################### 264569459791Swdenkdbau1000_config : unconfig 2646f9328639SMarian Balakowicz @mkdir -p $(obj)include 2647210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2648f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 264969459791Swdenk 265069459791Swdenkdbau1100_config : unconfig 2651f9328639SMarian Balakowicz @mkdir -p $(obj)include 2652210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2653f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 265469459791Swdenk 265569459791Swdenkdbau1500_config : unconfig 2656f9328639SMarian Balakowicz @mkdir -p $(obj)include 2657210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2658f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 265969459791Swdenk 2660ff36fd85Swdenkdbau1550_config : unconfig 2661f9328639SMarian Balakowicz @mkdir -p $(obj)include 2662210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2663f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2664ff36fd85Swdenk 2665ff36fd85Swdenkdbau1550_el_config : unconfig 2666f9328639SMarian Balakowicz @mkdir -p $(obj)include 2667210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2668f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2669ff36fd85Swdenk 2670265817c7SWolfgang Denkpb1000_config : unconfig 2671f9328639SMarian Balakowicz @mkdir -p $(obj)include 2672210ed200SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2673f9328639SMarian Balakowicz @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2674265817c7SWolfgang Denk 2675*8a773983SShinya Kuribayashigth2_config: unconfig 2676*8a773983SShinya Kuribayashi @mkdir -p $(obj)include 2677*8a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 2678*8a773983SShinya Kuribayashi @$(MKCONFIG) -a gth2 mips mips gth2 2679*8a773983SShinya Kuribayashi 26800764c164SVlad Lunguqemu_mips_config: unconfig 26810764c164SVlad Lungu @mkdir -p $(obj)include 2682210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 26830764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 26840764c164SVlad Lungu 268569459791Swdenk######################################################################### 2686e0ac62d7Swdenk## MIPS64 5Kc 2687e0ac62d7Swdenk######################################################################### 268843d9616cSwdenk 26893e38691eSwdenkpurple_config : unconfig 2690f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 269143d9616cSwdenk 26924a551709Swdenk#======================================================================== 26934a551709Swdenk# Nios 26944a551709Swdenk#======================================================================== 26954a551709Swdenk######################################################################### 26964a551709Swdenk## Nios32 26974a551709Swdenk######################################################################### 26984a551709Swdenk 2699c935d3bdSwdenkDK1C20_safe_32_config \ 2700c935d3bdSwdenkDK1C20_standard_32_config \ 27014a551709SwdenkDK1C20_config: unconfig 2702f9328639SMarian Balakowicz @mkdir -p $(obj)include 2703c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2704f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2705ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2706c935d3bdSwdenk } 2707c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2708f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2709ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2710c935d3bdSwdenk } 2711c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2712f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2713ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2714c935d3bdSwdenk } 2715f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2716c935d3bdSwdenk 2717c935d3bdSwdenkDK1S10_safe_32_config \ 2718c935d3bdSwdenkDK1S10_standard_32_config \ 2719ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2720c935d3bdSwdenkDK1S10_config: unconfig 2721f9328639SMarian Balakowicz @mkdir -p $(obj)include 2722c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2723f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2724ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2725c935d3bdSwdenk } 2726c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2727f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2728ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2729c935d3bdSwdenk } 2730ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2731f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2732ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 2733ec4c544bSwdenk } 2734c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2735f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2736ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2737c935d3bdSwdenk } 2738f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 27394a551709Swdenk 2740aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 2741aaf224abSwdenkADNPESC1_base_32_config \ 2742aaf224abSwdenkADNPESC1_config: unconfig 2743f9328639SMarian Balakowicz @mkdir -p $(obj)include 2744aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2745f9328639SMarian Balakowicz { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2746ae6d1056SWolfgang Denk $(XECHO) "... DNP/EVA2 configuration" ; \ 2747aaf224abSwdenk } 2748aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 2749f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2750ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration" ; \ 2751aaf224abSwdenk } 2752aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2753f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2754ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2755aaf224abSwdenk } 2756f9328639SMarian Balakowicz @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2757aaf224abSwdenk 27585c952cf0Swdenk######################################################################### 27595c952cf0Swdenk## Nios-II 27605c952cf0Swdenk######################################################################### 27615c952cf0Swdenk 27629cc83378SScott McNuttEP1C20_config : unconfig 2763f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 27649cc83378SScott McNutt 27659cc83378SScott McNuttEP1S10_config : unconfig 2766f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 27679cc83378SScott McNutt 27689cc83378SScott McNuttEP1S40_config : unconfig 2769f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 27709cc83378SScott McNutt 27715c952cf0SwdenkPK1C20_config : unconfig 2772f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 27735c952cf0Swdenk 27745c952cf0SwdenkPCI5441_config : unconfig 2775f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 27764a551709Swdenk 2777507bbe3eSwdenk#======================================================================== 2778507bbe3eSwdenk# MicroBlaze 2779507bbe3eSwdenk#======================================================================== 2780507bbe3eSwdenk######################################################################### 2781507bbe3eSwdenk## Microblaze 2782507bbe3eSwdenk######################################################################### 2783507bbe3eSwdenksuzaku_config: unconfig 2784f9328639SMarian Balakowicz @mkdir -p $(obj)include 2785210ed200SWolfgang Denk @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h 2786f9328639SMarian Balakowicz @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2787507bbe3eSwdenk 2788cfc67116SMichal Simekml401_config: unconfig 2789cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2790210ed200SWolfgang Denk @echo "#define CONFIG_ML401 1" > $(obj)include/config.h 279190b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2792cfc67116SMichal Simek 279317980495SMichal Simekxupv2p_config: unconfig 2794cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2795210ed200SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h 279690b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 279717980495SMichal Simek 279860fa72d6SMike Frysinger#======================================================================== 279960fa72d6SMike Frysinger# Blackfin 280060fa72d6SMike Frysinger#======================================================================== 28010afe519aSWolfgang Denk 280260fa72d6SMike Frysinger# Analog Devices boards 280360fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit 28040afe519aSWolfgang Denk 280560fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config) : unconfig 280660fa72d6SMike Frysinger @$(MKCONFIG) $(@:_config=) blackfin $(firstword $(subst -, ,$@)) $(@:_config=) 280726bf7decSAubrey Li 280860fa72d6SMike Frysinger$(BFIN_BOARDS): 280960fa72d6SMike Frysinger $(MAKE) $@_config 281060fa72d6SMike Frysinger $(MAKE) 28110afe519aSWolfgang Denk 28125e3b0bc1SHaavard Skinnemoen#======================================================================== 28135e3b0bc1SHaavard Skinnemoen# AVR32 28145e3b0bc1SHaavard Skinnemoen#======================================================================== 28155e3b0bc1SHaavard Skinnemoen######################################################################### 28165e3b0bc1SHaavard Skinnemoen## AT32AP7xxx 28175e3b0bc1SHaavard Skinnemoen######################################################################### 28185e3b0bc1SHaavard Skinnemoen 28195e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 282036f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28215e3b0bc1SHaavard Skinnemoen 2822667568dbSHaavard Skinnemoenatstk1003_config : unconfig 2823667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2824667568dbSHaavard Skinnemoen 282564ff2357SHaavard Skinnemoenatstk1004_config : unconfig 282664ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28270afe519aSWolfgang Denk 28286b443944SHaavard Skinnemoenatngw100_config : unconfig 28296b443944SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 28306b443944SHaavard Skinnemoen 28310afe519aSWolfgang Denk######################################################################### 28320afe519aSWolfgang Denk######################################################################### 28333e38691eSwdenk######################################################################### 28347ebf7443Swdenk 283569df3c4dSNobuhiro Iwamatsu######################################################################### 2836b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2837b2b5e2bbSYoshihiro Shimoda######################################################################### 2838b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 2839210ed200SWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > include/config.h 284091c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se 2841b2b5e2bbSYoshihiro Shimoda 2842b2b5e2bbSYoshihiro Shimoda######################################################################### 284369df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 284469df3c4dSNobuhiro Iwamatsu######################################################################### 284569df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 2846210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 284791c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se 284869df3c4dSNobuhiro Iwamatsu 2849d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 2850210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 285191c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se 28527a8e9bedSwdenk 28537a8e9bedSwdenk######################################################################### 28547ebf7443Swdenk######################################################################### 28557ebf7443Swdenk######################################################################### 28567ebf7443Swdenk 2857228f29acSwdenkclean: 2858f9301e1cSWolfgang Denk @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \ 2859f9301e1cSWolfgang Denk $(obj)examples/hello_world $(obj)examples/interrupt \ 2860f9301e1cSWolfgang Denk $(obj)examples/mem_to_mem_idma2intr \ 2861f9301e1cSWolfgang Denk $(obj)examples/sched $(obj)examples/smc91111_eeprom \ 2862f9301e1cSWolfgang Denk $(obj)examples/test_burst $(obj)examples/timer 2863f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 2864f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 2865f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 2866f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 2867f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 2868f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 2869f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 2870f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 2871f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 2872f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 2873f9301e1cSWolfgang Denk $(obj)board/{integratorap,integratorcp}/u-boot.lds \ 2874f9301e1cSWolfgang Denk $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds 2875f9301e1cSWolfgang Denk @rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map} 2876f9301e1cSWolfgang Denk @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl.map} 2877f9301e1cSWolfgang Denk @rm -f $(obj)api_examples/demo $(VERSION_FILE) 2878ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 28797f70e853Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 28807ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 28817ebf7443Swdenk | xargs rm -f 28827ebf7443Swdenk 28837ebf7443Swdenkclobber: clean 2884ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 28854c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 28864c0d4c3bSwdenk -print0 \ 28874c0d4c3bSwdenk | xargs -0 rm -f 2888ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 28895013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 2890ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 28915013c09fSWolfgang Denk @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,sha1.c,inca-swap-bytes} 28925013c09fSWolfgang Denk @rm -f $(obj)cpu/mpc824x/bedbug_603e.c 2893ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2894ae6d1056SWolfgang Denk @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 2895751b9b51SKyungmin Park @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f 2896ae6d1056SWolfgang Denk @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f 28977ebf7443Swdenk 2898f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 28997ebf7443Swdenkmrproper \ 29007ebf7443Swdenkdistclean: clobber unconfig 2901f9328639SMarian Balakowiczelse 2902f9328639SMarian Balakowiczmrproper \ 2903f9328639SMarian Balakowiczdistclean: clobber unconfig 2904ae6d1056SWolfgang Denk rm -rf $(obj)* 2905f9328639SMarian Balakowiczendif 29067ebf7443Swdenk 29077ebf7443Swdenkbackup: 29087ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 29097ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 29107ebf7443Swdenk 29117ebf7443Swdenk######################################################################### 2912