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 26699f0512SWolfgang DenkSUBLEVEL = 4 27699f0512SWolfgang DenkEXTRAVERSION = -rc1 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 126f8f9dc98SKumar Galaifeq ($(ARCH),powerpc) 127f8f9dc98SKumar GalaARCH = ppc 128f8f9dc98SKumar Galaendif 129f8f9dc98SKumar Gala 130ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 131f9328639SMarian Balakowicz 1327ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 133ae6d1056SWolfgang Denkinclude $(obj)include/config.mk 1341d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 135f9328639SMarian Balakowicz 1367ebf7443Swdenkifndef CROSS_COMPILE 137a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 1387ebf7443SwdenkCROSS_COMPILE = 1397ebf7443Swdenkelse 1407ebf7443Swdenkifeq ($(ARCH),ppc) 14116c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx- 1427ebf7443Swdenkendif 1437ebf7443Swdenkifeq ($(ARCH),arm) 144dc7c9a1aSwdenkCROSS_COMPILE = arm-linux- 1457ebf7443Swdenkendif 1462262cfeeSwdenkifeq ($(ARCH),i386) 1477a8e9bedSwdenkCROSS_COMPILE = i386-linux- 1487a8e9bedSwdenkendif 14943d9616cSwdenkifeq ($(ARCH),mips) 15043d9616cSwdenkCROSS_COMPILE = mips_4KC- 15143d9616cSwdenkendif 1524a551709Swdenkifeq ($(ARCH),nios) 1534a551709SwdenkCROSS_COMPILE = nios-elf- 1544a551709Swdenkendif 1555c952cf0Swdenkifeq ($(ARCH),nios2) 1565c952cf0SwdenkCROSS_COMPILE = nios2-elf- 1575c952cf0Swdenkendif 1584e5ca3ebSwdenkifeq ($(ARCH),m68k) 1594e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 1604e5ca3ebSwdenkendif 161507bbe3eSwdenkifeq ($(ARCH),microblaze) 162507bbe3eSwdenkCROSS_COMPILE = mb- 163507bbe3eSwdenkendif 1640afe519aSWolfgang Denkifeq ($(ARCH),blackfin) 165ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux- 1660afe519aSWolfgang Denkendif 1677b64fef3SWolfgang Denkifeq ($(ARCH),avr32) 1685374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux- 1697b64fef3SWolfgang Denkendif 1700b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh) 1710b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux- 172c2f02da2SDaniel Hellstromendif 173c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc) 174c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf- 175c2f02da2SDaniel Hellstromendif # sparc 176ae6d1056SWolfgang Denkendif # HOSTARCH,ARCH 177ae6d1056SWolfgang Denkendif # CROSS_COMPILE 1787ebf7443Swdenk 1797ebf7443Swdenkexport CROSS_COMPILE 1807ebf7443Swdenk 18192b197f0SWolfgang Denk# load other configuration 18292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 18392b197f0SWolfgang Denk 1847ebf7443Swdenk######################################################################### 1857ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1867ebf7443Swdenk 1877ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 1882262cfeeSwdenkifeq ($(CPU),i386) 1892262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 1902262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 1912262cfeeSwdenkendif 1927ebf7443Swdenkifeq ($(CPU),ppc4xx) 1937ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 1947ebf7443Swdenkendif 19542d1f039Swdenkifeq ($(CPU),mpc85xx) 19642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 19742d1f039Swdenkendif 1987ebf7443Swdenk 199f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 200f9328639SMarian Balakowicz 2019fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 2027608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 2037608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 2047ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 2051d9f4105Swdenkifdef SOC 2061d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 2071d9f4105Swdenkendif 208323bfa8fSStefan Roeseifeq ($(CPU),ixp) 209323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a 210323bfa8fSStefan Roeseendif 2117ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 212518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 213c419d1d6Sstroese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 2147ebf7443SwdenkLIBS += net/libnet.a 2157ebf7443SwdenkLIBS += disk/libdisk.a 2160f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 21733daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 21857a12720STsiChungLiewLIBS += drivers/dma/libdma.a 219f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 220080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 22116b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 222318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 2235ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a 22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a 22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 228d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a 2298e585f02STsiChung LiewLIBS += drivers/net/libnet.a 2302439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a 23193a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 23273646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 23304a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2347737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2357737d5c6SDave LiuLIBS += drivers/qe/qe.a 2367737d5c6SDave Liuendif 237da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 238da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 239da9d4610SAndy Flemingendif 24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2418e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a 24359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 2447ebf7443SwdenkLIBS += common/libcommon.a 2457651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 246500856ebSRafal JaworowskiLIBS += api/libapi.a 2472d2b994aSYuri TikhonovLIBS += post/libpost.a 248f9328639SMarian Balakowicz 249f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 250019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE) 251a8c7c708Swdenk 252de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 253de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 254de109d90SWolfgang Denk 2554f7cb08eSwdenk# Add GCC lib 2561a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 2573d3befa7Swdenk 258a8c7c708Swdenk# The "tools" are needed early, so put this first 259a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 260a8c7c708SwdenkSUBDIRS = tools \ 2610dc1fc22SRafal Jaworowski examples \ 2620dc1fc22SRafal Jaworowski api_examples 263500856ebSRafal Jaworowski 264b028f715Swdenk.PHONY : $(SUBDIRS) 265a8c7c708Swdenk 266887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 267887e2ec9SStefan RoeseNAND_SPL = nand_spl 268887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 269887e2ec9SStefan Roeseendif 270887e2ec9SStefan Roese 271751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 272751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 273751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 274751b9b51SKyungmin Parkendif 275751b9b51SKyungmin Park 276f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 277de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 278f9328639SMarian Balakowicz 2797ebf7443Swdenk######################################################################### 280bdccc4feSwdenk######################################################################### 2817ebf7443Swdenk 282751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 28394a91e24SMike Frysingerifeq ($(ARCH),blackfin) 28494a91e24SMike FrysingerALL += $(obj)u-boot.ldr 28594a91e24SMike Frysingerendif 2867ebf7443Swdenk 287bdccc4feSwdenkall: $(ALL) 2887ebf7443Swdenk 289f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2906310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2916310eb9dSwdenk 292f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 2937ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 2947ebf7443Swdenk 295f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 2967ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 2977ebf7443Swdenk 29894a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 29994a91e24SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS) 30094a91e24SMike Frysinger 30194a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 30294a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 30394a91e24SMike Frysinger 30494a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 30594a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 30694a91e24SMike Frysinger 307f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 308bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 309bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 310881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 311bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 312bdccc4feSwdenk -d $< $@ 313bdccc4feSwdenk 314566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 31501159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 316566a494fSHeiko Schocher 317f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3187ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3197ebf7443Swdenk 320de109d90SWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) 321de109d90SWolfgang Denk UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 322de109d90SWolfgang Denk sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 323f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 324f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 325b2184c31Swdenk -Map u-boot.map -o u-boot 3267ebf7443Swdenk 32788f72527SJohannes Stezenbach$(OBJS): depend $(obj)include/autoconf.mk 328f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 329f9328639SMarian Balakowicz 33088f72527SJohannes Stezenbach$(LIBS): depend $(obj)include/autoconf.mk 331f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 332a8c7c708Swdenk 333de109d90SWolfgang Denk$(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk 334de109d90SWolfgang Denk $(MAKE) -C $(dir $(subst $(obj),,$@)) 335de109d90SWolfgang Denk 33688f72527SJohannes Stezenbach$(SUBDIRS): depend $(obj)include/autoconf.mk 337b028f715Swdenk $(MAKE) -C $@ all 3387ebf7443Swdenk 339f65c9812SMike Frysinger$(LDSCRIPT): depend $(obj)include/autoconf.mk 340f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 341f65c9812SMike Frysinger 342dd531aacSWolfgang Denk$(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3438318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 344887e2ec9SStefan Roese 345dd531aacSWolfgang Denk$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3468318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 347887e2ec9SStefan Roese 348751b9b51SKyungmin Park$(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk 349*cdb8bd2fSJean-Christophe PLAGNIOL-VILLARD $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 350751b9b51SKyungmin Park 351751b9b51SKyungmin Park$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 352751b9b51SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 3531bb707c3SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin 354751b9b51SKyungmin Park 355ae6d1056SWolfgang Denk$(VERSION_FILE): 356aa737945SMike Frysinger @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 357aa737945SMike Frysinger '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \ 358aa737945SMike Frysinger ) > $@.tmp 3590ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 360881a87ecSWolfgang Denk 3618f713fdfSdzugdbtools: 362f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 363f9328639SMarian Balakowicz 364f9328639SMarian Balakowiczupdater: 365f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 366f9328639SMarian Balakowicz 367f9328639SMarian Balakowiczenv: 36864b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 3698f713fdfSdzu 370ae6d1056SWolfgang Denkdepend dep: $(VERSION_FILE) 371f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 3727ebf7443Swdenk 373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR) 375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU) 376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH) 377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs 378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat 379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos 380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2 381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net 382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk 383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common 384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator 385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block 386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon 387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c 388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input 389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc 3905ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc 391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd 392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand 393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy 394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand 395d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi 396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net 397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin 398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci 399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia 400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe 401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc 402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial 40304a9e118SBen WarrenTAG_SUBDIRS += drivers/spi 404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb 405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video 406a340c325SJean-Christophe PLAGNIOL-VILLARD 407f9328639SMarian Balakowicztags ctags: 408ae6d1056SWolfgang Denk ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 40988fed9a1SWolfgang Denk -name '*.[ch]' -print` 4107ebf7443Swdenk 4117ebf7443Swdenketags: 412ae6d1056SWolfgang Denk etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 41388fed9a1SWolfgang Denk -name '*.[ch]' -print` 414ffda586fSLi Yangcscope: 415ffda586fSLi Yang find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \ 416ffda586fSLi Yang > cscope.files 417ffda586fSLi Yang cscope -b -q -k 4187ebf7443Swdenk 419f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 4207ebf7443Swdenk @$(NM) $< | \ 4217ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 422f9328639SMarian Balakowicz sort > $(obj)System.map 4237ebf7443Swdenk 4242f155f6cSGrant Likely# 4252f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4262f155f6cSGrant Likely# 4272f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4282f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4292f155f6cSGrant Likely# to regenerate the autoconf.mk file. 4301510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h 4311510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 43216fe7775SMike Frysinger set -e ; \ 433ae6d1056SWolfgang Denk : Generate the dependancies ; \ 4341510b82dSWolfgang Denk $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \ 4351510b82dSWolfgang Denk -MQ $(obj)include/autoconf.mk include/common.h > $@ 4361510b82dSWolfgang Denk 4371510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h 4381510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 4391510b82dSWolfgang Denk set -e ; \ 440ae6d1056SWolfgang Denk : Extract the config macros ; \ 4411510b82dSWolfgang Denk $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ 4421510b82dSWolfgang Denk sed -n -f tools/scripts/define2mk.sed > $@ 4432f155f6cSGrant Likely 444ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep 4452f155f6cSGrant Likely 4467ebf7443Swdenk######################################################################### 447ae6d1056SWolfgang Denkelse # !config.mk 448f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 449f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 450ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \ 451ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map: 4527ebf7443Swdenk @echo "System not configured - see README" >&2 4537ebf7443Swdenk @ exit 1 454ae6d1056SWolfgang Denkendif # config.mk 4557ebf7443Swdenk 4564e53a258SWolfgang Denk.PHONY : CHANGELOG 4574e53a258SWolfgang DenkCHANGELOG: 458b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 459b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4604e53a258SWolfgang Denk 4617ebf7443Swdenk######################################################################### 4627ebf7443Swdenk 4637ebf7443Swdenkunconfig: 464887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4652f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4662f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4677ebf7443Swdenk 4687ebf7443Swdenk#======================================================================== 4697ebf7443Swdenk# PowerPC 4707ebf7443Swdenk#======================================================================== 4710db5bca8Swdenk 4720db5bca8Swdenk######################################################################### 4730db5bca8Swdenk## MPC5xx Systems 4740db5bca8Swdenk######################################################################### 4750db5bca8Swdenk 4765e5f9ed2Swdenkcanmb_config: unconfig 477f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 4785e5f9ed2Swdenk 4790db5bca8Swdenkcmi_mpc5xx_config: unconfig 480f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 4810db5bca8Swdenk 482b6e4c403SwdenkPATI_config: unconfig 483f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 484b6e4c403Swdenk 4857ebf7443Swdenk######################################################################### 486945af8d7Swdenk## MPC5xxx Systems 487945af8d7Swdenk######################################################################### 488a87589daSwdenk 489dafba16eSWolfgang Denkaev_config: unconfig 4904677988cSWolfgang Grandegger @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc 491dafba16eSWolfgang Denk 4926ca24c64Sdzu@denx.deBC3450_config: unconfig 493f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 4946ca24c64Sdzu@denx.de 495699f0512SWolfgang Denkcm5200_config: unconfig 496699f0512SWolfgang Denk @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200 497699f0512SWolfgang Denk 4985e4b3361SStefan Roesecpci5200_config: unconfig 499f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 5005e4b3361SStefan Roese 501a87589daSwdenkhmi1001_config: unconfig 502f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 503a87589daSwdenk 504e35745bbSwdenkLite5200_config \ 505e35745bbSwdenkLite5200_LOWBOOT_config \ 506e35745bbSwdenkLite5200_LOWBOOT08_config \ 507e35745bbSwdenkicecube_5200_config \ 508e35745bbSwdenkicecube_5200_LOWBOOT_config \ 509e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 510b2001f27Swdenkicecube_5200_DDR_config \ 51179d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 51279d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 513e35745bbSwdenkicecube_5100_config: unconfig 514f9328639SMarian Balakowicz @mkdir -p $(obj)include 515f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 51617d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 51717d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 518f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 519f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 52017d704ebSwdenk fi ; \ 521ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5225cf9da48Swdenk } 5235cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 524f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 5255cf9da48Swdenk echo "... with 8 MB flash only" ; \ 526ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5275cf9da48Swdenk } 528b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 529f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 530ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 531b2001f27Swdenk } 532d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 533f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 534ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 535d4ca31c4Swdenk } 536a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 537f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 538ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 539945af8d7Swdenk } 540f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 541945af8d7Swdenk 5422605e90bSHeiko Schocherjupiter_config: unconfig 5432605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 5442605e90bSHeiko Schocher 545138ff60cSwdenkinka4x0_config: unconfig 546f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 547138ff60cSwdenk 54809e4b0c5SWolfgang Denklite5200b_config \ 549d3832e8fSDomen Puncerlite5200b_PM_config \ 55009e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 551f9328639SMarian Balakowicz @mkdir -p $(obj)include 552f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 553f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 554ae6d1056SWolfgang Denk @ $(XECHO) "... DDR memory revision" 555f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 556f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 557d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 558d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 559ae6d1056SWolfgang Denk $(XECHO) "... with power management (low-power mode) support" ; \ 560d3832e8fSDomen Puncer } 56109e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 562f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 563ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 56409e4b0c5SWolfgang Denk } 565ae6d1056SWolfgang Denk @ $(XECHO) "... with MPC5200B processor" 566f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 56709e4b0c5SWolfgang Denk 568f1ee9825SStefan Roesemcc200_config \ 569ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 570ed1cf845SWolfgang Denkmcc200_highboot_config \ 571ed1cf845SWolfgang Denkmcc200_COM12_config \ 572ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 573113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 574113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 575ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 576ed1cf845SWolfgang Denkprs200_config \ 577ed1cf845SWolfgang Denkprs200_DDR_config \ 578ed1cf845SWolfgang Denkprs200_highboot_config \ 579ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 580f9328639SMarian Balakowicz @mkdir -p $(obj)include 581f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 5824819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 583ae6d1056SWolfgang Denk { $(XECHO) "... with lowboot configuration" ; \ 584f1ee9825SStefan Roese } 5854819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 586f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 587ae6d1056SWolfgang Denk $(XECHO) "... with highboot configuration" ; \ 5884819fad9SWolfgang Denk } 5894819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 590ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 591ed1cf845SWolfgang Denk then \ 592ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 593ed1cf845SWolfgang Denk else \ 594ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 595ed1cf845SWolfgang Denk then \ 596ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 597ed1cf845SWolfgang Denk else \ 598f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 599ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 600ed1cf845SWolfgang Denk fi; \ 601ed1cf845SWolfgang Denk fi; \ 6024819fad9SWolfgang Denk } 6034819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 604f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 605ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 6064819fad9SWolfgang Denk } 607463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 608f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 609ae6d1056SWolfgang Denk $(XECHO) "... with console on COM12" ; \ 610463764c8SWolfgang Denk } 611ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 612f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 613ed1cf845SWolfgang Denk } 614f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 61586ea5f93SWolfgang Denk 6168b7d1f0aSStefan Roesemecp5200_config: unconfig 617ae6d1056SWolfgang Denk @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 6188b7d1f0aSStefan Roese 619699f0512SWolfgang Denkmotionpro_config: unconfig 620699f0512SWolfgang Denk @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 621699f0512SWolfgang Denk 6226341d9d7SHeiko Schochermunices_config: unconfig 623ae6d1056SWolfgang Denk @$(MKCONFIG) munices ppc mpc5xxx munices 6246341d9d7SHeiko Schocher 625699f0512SWolfgang DenkMVBC_P_config: unconfig 626699f0512SWolfgang Denk @mkdir -p $(obj)include 627699f0512SWolfgang Denk @mkdir -p $(obj)board/mvbc_p 628699f0512SWolfgang Denk @ >$(obj)include/config.h 629699f0512SWolfgang Denk @[ -z "$(findstring MVBC_P,$@)" ] || \ 630699f0512SWolfgang Denk { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; } 631699f0512SWolfgang Denk @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision 632699f0512SWolfgang Denk 63391c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config: unconfig 634f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 635df04a3dfSWolfgang Denk 6365e4b3361SStefan Roesepf5200_config: unconfig 637f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 6385e4b3361SStefan Roese 63989394047SwdenkPM520_config \ 64089394047SwdenkPM520_DDR_config \ 64189394047SwdenkPM520_ROMBOOT_config \ 64289394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 643f9328639SMarian Balakowicz @mkdir -p $(obj)include 64489394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 645f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 646ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 64789394047Swdenk } 64889394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 649f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 650ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 65189394047Swdenk } 652f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 65389394047Swdenk 6546624b687SWolfgang Denksmmaco4_config: unconfig 6554677988cSWolfgang Grandegger @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc 6569cdc8386SWolfgang Denk 6579cdc8386SWolfgang Denkspieval_config: unconfig 6584677988cSWolfgang Grandegger @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc 6599cdc8386SWolfgang Denk 66045a212c4SWolfgang DenkTB5200_B_config \ 661b87dfd28SWolfgang DenkTB5200_config: unconfig 662f9328639SMarian Balakowicz @mkdir -p $(obj)include 66345a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 664f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 665ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200B processor" ; \ 66645a212c4SWolfgang Denk } 6674677988cSWolfgang Grandegger @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc 668b87dfd28SWolfgang Denk 669d4ca31c4SwdenkMINI5200_config \ 670d4ca31c4SwdenkEVAL5200_config \ 671d4ca31c4SwdenkTOP5200_config: unconfig 672f9328639SMarian Balakowicz @mkdir -p $(obj)include 673f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 674f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 675d4ca31c4Swdenk 6766c7a1408SwdenkTotal5100_config \ 6776c7a1408SwdenkTotal5200_config \ 6786c7a1408SwdenkTotal5200_lowboot_config \ 6796c7a1408SwdenkTotal5200_Rev2_config \ 6806c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 681f9328639SMarian Balakowicz @mkdir -p $(obj)include 682f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 6836c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 684f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 685ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 6866c7a1408Swdenk } 6876c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 688f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 689ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 6906c7a1408Swdenk } 6916c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 692f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 693ae6d1056SWolfgang Denk $(XECHO) "... revision 1 board" ; \ 6946c7a1408Swdenk } 6956c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 696f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 697ae6d1056SWolfgang Denk $(XECHO) "... revision 2 board" ; \ 6986c7a1408Swdenk } 6996c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 700f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 701ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 7026c7a1408Swdenk } 703f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 7046c7a1408Swdenk 7055196a7a0SWolfgang Denkcam5200_config \ 706d9384de2SMarian Balakowiczcam5200_niosflash_config \ 7075196a7a0SWolfgang Denkfo300_config \ 7085196a7a0SWolfgang DenkMiniFAP_config \ 7095078cce8SWolfgang DenkTQM5200S_config \ 7105078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 7115196a7a0SWolfgang DenkTQM5200_B_config \ 7125196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 7135196a7a0SWolfgang DenkTQM5200_config \ 7145196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 715f9328639SMarian Balakowicz @mkdir -p $(obj)include 7164677988cSWolfgang Grandegger @mkdir -p $(obj)board/tqc/tqm5200 717135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 718f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 719f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 720f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 721ae6d1056SWolfgang Denk $(XECHO) "... TQM5200S on Cam5200" ; \ 7225078cce8SWolfgang Denk } 723d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 724d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 725ae6d1056SWolfgang Denk $(XECHO) "... with NIOS flash driver" ; \ 726d9384de2SMarian Balakowicz } 7276d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 728f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 729ae6d1056SWolfgang Denk $(XECHO) "... TQM5200 on FO300" ; \ 7306d3bc9b8SMarian Balakowicz } 731cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 732f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 733ae6d1056SWolfgang Denk $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 734978b1096SWolfgang Denk } 735cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 736f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 737ae6d1056SWolfgang Denk $(XECHO) "... on a STK52XX.100 base board" ; \ 73856523f12Swdenk } 7395078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 740f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 7415078cce8SWolfgang Denk } 7425078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 743f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 744f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 74545a212c4SWolfgang Denk } 746978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 747f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 748978b1096SWolfgang Denk } 7494677988cSWolfgang Grandegger @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc 750699f0512SWolfgang Denk 7516dedf3d4SHeiko Schocheruc101_config: unconfig 7526dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 75353d4a498SBartlomiej Sieka 754699f0512SWolfgang Denkv38b_config: unconfig 755699f0512SWolfgang Denk @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 75656523f12Swdenk 757945af8d7Swdenk######################################################################### 7588993e54bSRafal Jaworowski## MPC512x Systems 7598993e54bSRafal Jaworowski######################################################################### 760699f0512SWolfgang Denk 7615f91db7fSJohn Rigbyads5121_config \ 762f31c49dbSMartha Marxads5121_rev2_config \ 7635f91db7fSJohn Rigby : unconfig 764210ed200SWolfgang Denk @mkdir -p $(obj)include 765f31c49dbSMartha Marx @if [ "$(findstring rev2,$@)" ] ; then \ 766f31c49dbSMartha Marx echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \ 7675f91db7fSJohn Rigby fi 7685f91db7fSJohn Rigby @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121 7698993e54bSRafal Jaworowski 7708993e54bSRafal Jaworowski 7718993e54bSRafal Jaworowski######################################################################### 7727ebf7443Swdenk## MPC8xx Systems 7737ebf7443Swdenk######################################################################### 7747ebf7443Swdenk 7752d24a3a7SwdenkAdder_config \ 7762d24a3a7SwdenkAdder87x_config \ 77726238132SwdenkAdderII_config \ 7782d24a3a7Swdenk : unconfig 779f9328639SMarian Balakowicz @mkdir -p $(obj)include 78026238132Swdenk $(if $(findstring AdderII,$@), \ 781f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 782f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 7832d24a3a7Swdenk 78416c8d5e7SWolfgang DenkAdderUSB_config: unconfig 78591c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder 78616c8d5e7SWolfgang Denk 787180d3f74SwdenkADS860_config \ 788180d3f74SwdenkFADS823_config \ 789180d3f74SwdenkFADS850SAR_config \ 790180d3f74SwdenkMPC86xADS_config \ 7911114257cSwdenkMPC885ADS_config \ 792180d3f74SwdenkFADS860T_config: unconfig 793f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 7947ebf7443Swdenk 7957ebf7443SwdenkAMX860_config : unconfig 796f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 7977ebf7443Swdenk 7987ebf7443Swdenkc2mon_config: unconfig 799f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 8007ebf7443Swdenk 8017ebf7443SwdenkCCM_config: unconfig 802f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 8037ebf7443Swdenk 8047ebf7443Swdenkcogent_mpc8xx_config: unconfig 805f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 8067ebf7443Swdenk 8073bac3513SwdenkELPT860_config: unconfig 808f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 8093bac3513Swdenk 81084c960ceSWolfgang DenkEP88x_config: unconfig 811f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 81284c960ceSWolfgang Denk 8137ebf7443SwdenkESTEEM192E_config: unconfig 814f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 8157ebf7443Swdenk 8167ebf7443SwdenkETX094_config : unconfig 817f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 8187ebf7443Swdenk 8197ebf7443SwdenkFLAGADM_config: unconfig 820f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 8217ebf7443Swdenk 8227aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 8237aa78614Swdenk 8247aa78614SwdenkGEN860T_SC_config \ 8257ebf7443SwdenkGEN860T_config: unconfig 826f9328639SMarian Balakowicz @mkdir -p $(obj)include 8277aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 828f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 829ae6d1056SWolfgang Denk $(XECHO) "With reduced H/W feature set (SC)..." ; \ 8307aa78614Swdenk } 831f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 8327ebf7443Swdenk 8337ebf7443SwdenkGENIETV_config: unconfig 834f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 8357ebf7443Swdenk 8367ebf7443SwdenkGTH_config: unconfig 837f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 8387ebf7443Swdenk 8397ebf7443Swdenkhermes_config : unconfig 840f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 8417ebf7443Swdenk 842c40b2956SwdenkHMI10_config : unconfig 8434677988cSWolfgang Grandegger @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc 844c40b2956Swdenk 8457ebf7443SwdenkIAD210_config: unconfig 846f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 8477ebf7443Swdenk 8487ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 8497ebf7443Swdenk 8507ebf7443SwdenkICU862_100MHz_config \ 8517ebf7443SwdenkICU862_config: unconfig 852f9328639SMarian Balakowicz @mkdir -p $(obj)include 8537ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 854f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 855ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 8567ebf7443Swdenk } 857f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 8587ebf7443Swdenk 8597ebf7443SwdenkIP860_config : unconfig 860f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 8617ebf7443Swdenk 8627ebf7443SwdenkIVML24_256_config \ 8637ebf7443SwdenkIVML24_128_config \ 8647ebf7443SwdenkIVML24_config: unconfig 865f9328639SMarian Balakowicz @mkdir -p $(obj)include 8667ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 867f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 8687ebf7443Swdenk } 8697ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 870f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 8717ebf7443Swdenk } 8727ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 873f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 8747ebf7443Swdenk } 875f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 8767ebf7443Swdenk 8777ebf7443SwdenkIVMS8_256_config \ 8787ebf7443SwdenkIVMS8_128_config \ 8797ebf7443SwdenkIVMS8_config: unconfig 880f9328639SMarian Balakowicz @mkdir -p $(obj)include 8817ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 882f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 8837ebf7443Swdenk } 8847ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 885f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 8867ebf7443Swdenk } 8877ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 888f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 8897ebf7443Swdenk } 890f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 8917ebf7443Swdenk 89256f94be3SwdenkKUP4K_config : unconfig 893f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 8940608e04dSwdenk 8950608e04dSwdenkKUP4X_config : unconfig 896f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 89756f94be3Swdenk 8987ebf7443SwdenkLANTEC_config : unconfig 899f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 9007ebf7443Swdenk 9017ebf7443Swdenklwmon_config: unconfig 902f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 9037ebf7443Swdenk 9047ebf7443SwdenkMBX_config \ 9057ebf7443SwdenkMBX860T_config: unconfig 906f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 9077ebf7443Swdenk 908381e4e63SHeiko Schochermgsuvd_config: unconfig 909381e4e63SHeiko Schocher @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd 910381e4e63SHeiko Schocher 9117ebf7443SwdenkMHPC_config: unconfig 912f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 9137ebf7443Swdenk 9147ebf7443SwdenkMVS1_config : unconfig 915f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 9167ebf7443Swdenk 917993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 918993cad93Swdenk 919993cad93SwdenkNETVIA_V2_config \ 9207ebf7443SwdenkNETVIA_config: unconfig 921f9328639SMarian Balakowicz @mkdir -p $(obj)include 922993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 923f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 924ae6d1056SWolfgang Denk $(XECHO) "... Version 1" ; \ 925993cad93Swdenk } 926993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 927f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 928ae6d1056SWolfgang Denk $(XECHO) "... Version 2" ; \ 929993cad93Swdenk } 930f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 9317ebf7443Swdenk 932c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 933c26e454dSwdenk 934c26e454dSwdenkNETPHONE_V2_config \ 93504a85b3bSwdenkNETPHONE_config: unconfig 936f9328639SMarian Balakowicz @mkdir -p $(obj)include 937c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 938f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 939c26e454dSwdenk } 940c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 941f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 942c26e454dSwdenk } 943f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 94404a85b3bSwdenk 94579fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 94604a85b3bSwdenk 94779fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 94879fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 94979fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 95079fa88f3SwdenkNETTA_SWAPHOOK_config \ 95179fa88f3SwdenkNETTA_ISDN_6412_config \ 95204a85b3bSwdenkNETTA_ISDN_config \ 95379fa88f3SwdenkNETTA_6412_config \ 95404a85b3bSwdenkNETTA_config: unconfig 955f9328639SMarian Balakowicz @mkdir -p $(obj)include 95679fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 957f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 95804a85b3bSwdenk } 95979fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 960f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 96179fa88f3Swdenk } 96279fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 963f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 96479fa88f3Swdenk } 96579fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 966f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 96779fa88f3Swdenk } 96879fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 969f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 97079fa88f3Swdenk } 97179fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 972f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 97379fa88f3Swdenk } 974f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 97504a85b3bSwdenk 97679fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 97779fa88f3Swdenk 97879fa88f3SwdenkNETTA2_V2_config \ 97979fa88f3SwdenkNETTA2_config: unconfig 980f9328639SMarian Balakowicz @mkdir -p $(obj)include 98179fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 982f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 98379fa88f3Swdenk } 98479fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 985f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 98679fa88f3Swdenk } 987f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 98879fa88f3Swdenk 989a367d426Sdzu@denx.deNC650_Rev1_config \ 990a367d426Sdzu@denx.deNC650_Rev2_config \ 991a367d426Sdzu@denx.deCP850_config: unconfig 992f9328639SMarian Balakowicz @mkdir -p $(obj)include 993a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 994f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 995f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 996a367d426Sdzu@denx.de } 997a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 998f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 999a367d426Sdzu@denx.de } 1000a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 1001f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 1002a367d426Sdzu@denx.de } 1003f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 10047ca202f5Swdenk 10057ebf7443SwdenkNX823_config: unconfig 1006f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 10077ebf7443Swdenk 10087ebf7443Swdenkpcu_e_config: unconfig 1009f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 10107ebf7443Swdenk 10113bbc899fSwdenkQS850_config: unconfig 1012f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 10133bbc899fSwdenk 10143bbc899fSwdenkQS823_config: unconfig 1015f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 10163bbc899fSwdenk 10173bbc899fSwdenkQS860T_config: unconfig 1018f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 10193bbc899fSwdenk 1020da93ed81Swdenkquantum_config: unconfig 1021f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 1022da93ed81Swdenk 10237ebf7443SwdenkR360MPI_config: unconfig 1024f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 10257ebf7443Swdenk 1026682011ffSwdenkRBC823_config: unconfig 1027f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 1028682011ffSwdenk 10297ebf7443SwdenkRPXClassic_config: unconfig 1030f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 10317ebf7443Swdenk 10327ebf7443SwdenkRPXlite_config: unconfig 1033f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 10347ebf7443Swdenk 1035e63c8ee3SwdenkRPXlite_DW_64_config \ 1036e63c8ee3SwdenkRPXlite_DW_LCD_config \ 1037e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 1038e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 1039e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 1040e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 1041e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 1042e63c8ee3SwdenkRPXlite_DW_config: unconfig 1043f9328639SMarian Balakowicz @mkdir -p $(obj)include 1044e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 1045f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1046ae6d1056SWolfgang Denk $(XECHO) "... with 64MHz system clock ..."; \ 1047e63c8ee3Swdenk } 1048e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1049f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1050f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1051ae6d1056SWolfgang Denk $(XECHO) "... with LCD display ..."; \ 1052e63c8ee3Swdenk } 1053e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 1054f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1055ae6d1056SWolfgang Denk $(XECHO) "... with ENV in NVRAM ..."; \ 1056e63c8ee3Swdenk } 1057f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1058e63c8ee3Swdenk 105973a8b27cSwdenkrmu_config: unconfig 1060f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 106173a8b27cSwdenk 10627ebf7443SwdenkRRvision_config: unconfig 1063f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 10647ebf7443Swdenk 10657ebf7443SwdenkRRvision_LCD_config: unconfig 1066f9328639SMarian Balakowicz @mkdir -p $(obj)include 1067f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1068f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1069f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 10707ebf7443Swdenk 10717ebf7443SwdenkSM850_config : unconfig 10724677988cSWolfgang Grandegger @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc 10737ebf7443Swdenk 107491c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config: unconfig 1075f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1076b02d0177SMarkus Klotzbuecher 10777ebf7443SwdenkSPD823TS_config: unconfig 1078f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 10797ebf7443Swdenk 10806bdf4306SWolfgang Denkstxxtc_config: unconfig 1081f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 10826bdf4306SWolfgang Denk 1083dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1084f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1085dc7c9a1aSwdenk 10867ebf7443SwdenkSXNI855T_config: unconfig 1087f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 10887ebf7443Swdenk 1089db2f721fSwdenk# EMK MPC8xx based modules 1090db2f721fSwdenkTOP860_config: unconfig 1091f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1092db2f721fSwdenk 10937ebf7443Swdenk# Play some tricks for configuration selection 1094e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1095e9132ea9Swdenk# and only 823 boards may have LCD support 1096e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 10977ebf7443Swdenk 10987ebf7443SwdenkFPS850L_config \ 1099384ae025SwdenkFPS860L_config \ 1100f12e568cSwdenkNSCU_config \ 11017ebf7443SwdenkTQM823L_config \ 11027ebf7443SwdenkTQM823L_LCD_config \ 11037ebf7443SwdenkTQM850L_config \ 11047ebf7443SwdenkTQM855L_config \ 11057ebf7443SwdenkTQM860L_config \ 1106d126bfbdSwdenkTQM862L_config \ 1107ae3af05eSwdenkTQM823M_config \ 1108ae3af05eSwdenkTQM850M_config \ 1109f12e568cSwdenkTQM855M_config \ 1110f12e568cSwdenkTQM860M_config \ 1111f12e568cSwdenkTQM862M_config \ 11128cba090cSWolfgang DenkTQM866M_config \ 1113090eb735SMarkus KlotzbuecherTQM885D_config \ 1114efc6f447SGuennadi LiakhovetskiTK885D_config \ 11158cba090cSWolfgang Denkvirtlab2_config: unconfig 1116f9328639SMarian Balakowicz @mkdir -p $(obj)include 11177ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1118f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1119f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1120ae6d1056SWolfgang Denk $(XECHO) "... with LCD display" ; \ 11217ebf7443Swdenk } 11224677988cSWolfgang Grandegger @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc 11237ebf7443Swdenk 11247ebf7443SwdenkTTTech_config: unconfig 1125f9328639SMarian Balakowicz @mkdir -p $(obj)include 1126f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1127f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 11284677988cSWolfgang Grandegger @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc 11297ebf7443Swdenk 1130ec0aee7bSwdenkuc100_config : unconfig 1131f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1132f7d1572bSwdenk 1133608c9146Swdenkv37_config: unconfig 1134f9328639SMarian Balakowicz @mkdir -p $(obj)include 1135f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1136f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1137f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1138608c9146Swdenk 113991e940d9Sdzuwtk_config: unconfig 1140f9328639SMarian Balakowicz @mkdir -p $(obj)include 1141f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1142f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 11434677988cSWolfgang Grandegger @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc 114491e940d9Sdzu 11457ebf7443Swdenk######################################################################### 11467ebf7443Swdenk## PPC4xx Systems 11477ebf7443Swdenk######################################################################### 1148e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 11497ebf7443Swdenk 115016c0cc1cSStefan Roeseacadia_config: unconfig 115116c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 115216c0cc1cSStefan Roese 1153c440bfe6SStefan Roeseacadia_nand_config: unconfig 115463e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 115563e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1156c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1157c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1158c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1159c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1160c440bfe6SStefan Roese 11617ebf7443SwdenkADCIOP_config: unconfig 1162f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 11637ebf7443Swdenk 1164899620c2SStefan Roesealpr_config: unconfig 116535d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1166899620c2SStefan Roese 11677521af1cSWolfgang DenkAP1000_config:unconfig 1168f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 11697521af1cSWolfgang Denk 1170c419d1d6SstroeseAPC405_config: unconfig 1171f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1172c419d1d6Sstroese 11737ebf7443SwdenkAR405_config: unconfig 1174f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 11757ebf7443Swdenk 1176549826eaSstroeseASH405_config: unconfig 1177f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1178549826eaSstroese 11798a316c9bSStefan Roesebamboo_config: unconfig 1180f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 11818a316c9bSStefan Roese 1182cf959c7dSStefan Roesebamboo_nand_config: unconfig 118363e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 118463e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1185cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1186f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1187cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1188cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1189cf959c7dSStefan Roese 11908a316c9bSStefan Roesebubinga_config: unconfig 1191f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1192549826eaSstroese 11937ebf7443SwdenkCANBT_config: unconfig 1194f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 11957ebf7443Swdenk 11964c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images 11974c9e8557SStefan Roesecanyonlands_config \ 11984c9e8557SStefan Roeseglacier_config: unconfig 11994c9e8557SStefan Roese @mkdir -p $(obj)include 12004c9e8557SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 12014c9e8557SStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 12024c9e8557SStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 1203c813f1f8SStefan Roese 1204fe7c0db6SStefan Roesecanyonlands_nand_config \ 1205fe7c0db6SStefan Roeseglacier_nand_config: unconfig 120671665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 120771665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 120871665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1209fe7c0db6SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 1210fe7c0db6SStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 121171665ebfSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 121271665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 121371665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 121471665ebfSStefan Roese 12151d6f9720SwdenkCATcenter_config \ 12161d6f9720SwdenkCATcenter_25_config \ 12171d6f9720SwdenkCATcenter_33_config: unconfig 1218f9328639SMarian Balakowicz @mkdir -p $(obj)include 1219f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1220f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 12211d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1222f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1223ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 12241d6f9720Swdenk } 12251d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1226f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1227ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 12281d6f9720Swdenk } 1229f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 123010767ccbSwdenk 1231699f0512SWolfgang DenkCMS700_config: unconfig 1232699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1233699f0512SWolfgang Denk 12347644f16fSStefan RoeseCPCI2DP_config: unconfig 1235f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 12367644f16fSStefan Roese 12377ebf7443SwdenkCPCI405_config \ 1238549826eaSstroeseCPCI4052_config \ 1239c419d1d6SstroeseCPCI405DT_config \ 1240549826eaSstroeseCPCI405AB_config: unconfig 1241f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1242f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 12437ebf7443Swdenk 12447ebf7443SwdenkCPCIISER4_config: unconfig 1245f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 12467ebf7443Swdenk 12477ebf7443SwdenkCRAYL1_config: unconfig 1248f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 12497ebf7443Swdenk 1250cd0a9de6Swdenkcsb272_config: unconfig 1251f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1252cd0a9de6Swdenk 1253aa245090Swdenkcsb472_config: unconfig 1254f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1255aa245090Swdenk 12567ebf7443SwdenkDASA_SIM_config: unconfig 1257f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 12587ebf7443Swdenk 125972cd5aa7SstroeseDP405_config: unconfig 1260f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 126172cd5aa7Sstroese 12627ebf7443SwdenkDU405_config: unconfig 1263f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 12647ebf7443Swdenk 12651a3ac86bSMatthias FuchsDU440_config: unconfig 12661a3ac86bSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 12671a3ac86bSMatthias Fuchs 12688a316c9bSStefan Roeseebony_config: unconfig 1269f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 12707ebf7443Swdenk 12717ebf7443SwdenkERIC_config: unconfig 1272f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 12737ebf7443Swdenk 1274d1cbe85bSwdenkEXBITGEN_config: unconfig 1275f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1276d1cbe85bSwdenk 1277c419d1d6SstroeseG2000_config: unconfig 1278f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1279c419d1d6Sstroese 1280ac982ea5SNiklaus Gigerhcu4_config: unconfig 1281b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 128235d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1283ac982ea5SNiklaus Giger 1284ac982ea5SNiklaus Gigerhcu5_config: unconfig 1285b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 128635d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1287ac982ea5SNiklaus Giger 1288c419d1d6SstroeseHH405_config: unconfig 1289f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1290c419d1d6Sstroese 129172cd5aa7SstroeseHUB405_config: unconfig 1292f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 129372cd5aa7Sstroese 1294db01a2eaSwdenkJSE_config: unconfig 1295f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1296db01a2eaSwdenk 1297b79316f2SStefan RoeseKAREF_config: unconfig 1298f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1299b79316f2SStefan Roese 13004745acaaSStefan Roesekatmai_config: unconfig 13014745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 13024745acaaSStefan Roese 1303353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1304353f2688SStefan Roesekilauea_config \ 1305353f2688SStefan Roesehaleakala_config: unconfig 1306353f2688SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1307566806caSStefan Roese 13083d6cb3b2SStefan Roesekilauea_nand_config \ 13093d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 13103d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 13113d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 13123d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 13133d6cb3b2SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 13143d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 13153d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 13163d6cb3b2SStefan Roese 1317c591dffeSLarry Johnsonkorat_config: unconfig 1318c591dffeSLarry Johnson @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1319c591dffeSLarry Johnson 13206e7fb6eaSStefan Roeseluan_config: unconfig 1321f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 13226e7fb6eaSStefan Roese 1323b765ffb7SStefan Roeselwmon5_config: unconfig 1324b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1325b765ffb7SStefan Roese 1326211ea91aSStefan Roesemakalu_config: unconfig 1327211ea91aSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1328211ea91aSStefan Roese 1329b05f3543SNiklaus Gigermcu25_config: unconfig 1330b05f3543SNiklaus Giger @mkdir -p $(obj)board/netstal/common 1331b05f3543SNiklaus Giger @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal 1332b05f3543SNiklaus Giger 1333b79316f2SStefan RoeseMETROBOX_config: unconfig 1334f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1335b79316f2SStefan Roese 13367ebf7443SwdenkMIP405_config: unconfig 1337f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 13387ebf7443Swdenk 1339f3e0de60SwdenkMIP405T_config: unconfig 1340f9328639SMarian Balakowicz @mkdir -p $(obj)include 1341f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1342ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1343f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1344f3e0de60Swdenk 13457ebf7443SwdenkML2_config: unconfig 1346f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 13477ebf7443Swdenk 1348028ab6b5Swdenkml300_config: unconfig 1349f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1350028ab6b5Swdenk 13518a316c9bSStefan Roeseocotea_config: unconfig 1352f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 13530e6d798cSwdenk 13547ebf7443SwdenkOCRTC_config \ 13557ebf7443SwdenkORSG_config: unconfig 1356f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 13577ebf7443Swdenk 13585568e613SStefan Roesep3p440_config: unconfig 1359f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 13605568e613SStefan Roese 13617ebf7443SwdenkPCI405_config: unconfig 1362f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 13637ebf7443Swdenk 1364a4c8d138SStefan Roesepcs440ep_config: unconfig 1365f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1366a4c8d138SStefan Roese 13677ebf7443SwdenkPIP405_config: unconfig 1368f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 13697ebf7443Swdenk 137072cd5aa7SstroesePLU405_config: unconfig 1371f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 137272cd5aa7Sstroese 1373549826eaSstroesePMC405_config: unconfig 1374f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1375549826eaSstroese 13768ba132caSMatthias FuchsPMC440_config: unconfig 13778ba132caSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 13788ba132caSMatthias Fuchs 1379281e00a3SwdenkPPChameleonEVB_config \ 1380e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1381e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1382e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1383e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1384e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1385e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1386f9328639SMarian Balakowicz @mkdir -p $(obj)include 13871d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1388f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1389ae6d1056SWolfgang Denk $(XECHO) "... BASIC model" ; \ 1390fbe4b5cbSwdenk } 13911d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1392f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1393ae6d1056SWolfgang Denk $(XECHO) "... MEDIUM model" ; \ 1394fbe4b5cbSwdenk } 13951d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1396f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1397ae6d1056SWolfgang Denk $(XECHO) "... HIGH-END model" ; \ 1398fbe4b5cbSwdenk } 1399e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1400f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1401ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 1402e55ca7e2Swdenk } 1403e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1404f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1405ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 1406e55ca7e2Swdenk } 1407f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 140812f34241Swdenk 140973ccb341SGary Jennejohnquad100hd_config: unconfig 141073ccb341SGary Jennejohn @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd 141173ccb341SGary Jennejohn 1412430f1b0fSStefan Roesesbc405_config: unconfig 1413430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1414430f1b0fSStefan Roese 1415699f0512SWolfgang Denksc3_config:unconfig 1416699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1417699f0512SWolfgang Denk 1418430f1b0fSStefan Roesesequoia_config \ 1419854bc8daSStefan Roeserainier_config: unconfig 14208318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1421430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1422430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 14232aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1424854bc8daSStefan Roese 1425430f1b0fSStefan Roesesequoia_nand_config \ 1426854bc8daSStefan Roeserainier_nand_config: unconfig 142763e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 142863e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 14298318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1430430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1431430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1432430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 14338318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 14348318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1435652a10c0Swdenk 1436d4024bb7SJohn Otkentaihu_config: unconfig 1437d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1438d4024bb7SJohn Otken 14395fb692caSStefan Roesetaishan_config: unconfig 14405fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 14415fb692caSStefan Roese 144272cd5aa7SstroeseVOH405_config: unconfig 1443f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 144472cd5aa7Sstroese 1445c419d1d6SstroeseVOM405_config: unconfig 1446f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1447c419d1d6Sstroese 14487ebf7443SwdenkW7OLMC_config \ 14497ebf7443SwdenkW7OLMG_config: unconfig 1450f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 14517ebf7443Swdenk 1452430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1453430f1b0fSStefan Roesewalnut_config \ 1454430f1b0fSStefan Roesesycamore_config: unconfig 1455430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 14567ebf7443Swdenk 1457c419d1d6SstroeseWUH405_config: unconfig 1458f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1459c419d1d6Sstroese 1460ba56f625SwdenkXPEDITE1K_config: unconfig 1461f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1462ba56f625Swdenk 1463430f1b0fSStefan Roeseyosemite_config \ 14648a316c9bSStefan Roeseyellowstone_config: unconfig 1465700200c6SStefan Roese @mkdir -p $(obj)include 1466430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1467430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 14682aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 14698a316c9bSStefan Roese 14706c5879f3SMarian Balakowiczyucca_config: unconfig 1471f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 14726c5879f3SMarian Balakowicz 1473779e9751SStefan Roesezeus_config: unconfig 1474779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1475779e9751SStefan Roese 14767ebf7443Swdenk######################################################################### 1477983fda83Swdenk## MPC8220 Systems 1478983fda83Swdenk######################################################################### 1479dc17fb6dSWolfgang Denk 1480dc17fb6dSWolfgang DenkAlaska8220_config \ 1481dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1482f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1483983fda83Swdenk 148412b43d51Swdenksorcery_config: unconfig 1485f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 148612b43d51Swdenk 1487983fda83Swdenk######################################################################### 14887ebf7443Swdenk## MPC824x Systems 14897ebf7443Swdenk######################################################################### 1490efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 14913bac3513Swdenk 14920332990bSwdenkA3000_config: unconfig 1493f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 14940332990bSwdenk 14958e6f1a8eSWolfgang Denkbarco_config: unconfig 1496f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 14978e6f1a8eSWolfgang Denk 14987ebf7443SwdenkBMW_config: unconfig 1499f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 15007ebf7443Swdenk 15013bac3513SwdenkCPC45_config \ 15023bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1503f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1504f9328639SMarian Balakowicz @cd $(obj)include ; \ 15053bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 15063bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1507ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 15083bac3513Swdenk else \ 15093bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1510ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 15113bac3513Swdenk fi; \ 15123bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 15133bac3513Swdenk 15147ebf7443SwdenkCU824_config: unconfig 1515f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 15167ebf7443Swdenk 15177abf0c58Swdenkdebris_config: unconfig 1518f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 15197abf0c58Swdenk 152080885a9dSwdenkeXalion_config: unconfig 1521f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 152280885a9dSwdenk 1523756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1524f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1525756f586aSwdenk 152653dd6ce4SWolfgang Denkkvme080_config: unconfig 1527f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 152853dd6ce4SWolfgang Denk 152961525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 153061525f2fSGuennadi Liakhovetski# time permits. 153161525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \ 153261525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed 153361525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig 153461525f2fSGuennadi Liakhovetski @mkdir -p $(obj)include 153561525f2fSGuennadi Liakhovetski @case $@ in \ 153661525f2fSGuennadi Liakhovetski *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 153761525f2fSGuennadi Liakhovetski *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 153861525f2fSGuennadi Liakhovetski esac 153961525f2fSGuennadi Liakhovetski @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation 154061525f2fSGuennadi Liakhovetski 15417ebf7443SwdenkMOUSSE_config: unconfig 1542f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 15437ebf7443Swdenk 15447ebf7443SwdenkMUSENKI_config: unconfig 1545f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 15467ebf7443Swdenk 1547b4676a25SwdenkMVBLUE_config: unconfig 1548f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1549b4676a25Swdenk 15507ebf7443SwdenkOXC_config: unconfig 1551f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 15527ebf7443Swdenk 15537ebf7443SwdenkPN62_config: unconfig 1554f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 15557ebf7443Swdenk 15567ebf7443SwdenkSandpoint8240_config: unconfig 1557f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15587ebf7443Swdenk 15597ebf7443SwdenkSandpoint8245_config: unconfig 1560f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15617ebf7443Swdenk 1562466b7410Swdenksbc8240_config: unconfig 1563f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1564466b7410Swdenk 1565d1cbe85bSwdenkSL8245_config: unconfig 1566f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1567d1cbe85bSwdenk 15687ebf7443Swdenkutx8245_config: unconfig 1569f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 15707ebf7443Swdenk 15717ebf7443Swdenk######################################################################### 15727ebf7443Swdenk## MPC8260 Systems 15737ebf7443Swdenk######################################################################### 15747ebf7443Swdenk 157554387ac9Swdenkatc_config: unconfig 1576f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 157754387ac9Swdenk 15787ebf7443Swdenkcogent_mpc8260_config: unconfig 1579f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 15807ebf7443Swdenk 15817ebf7443SwdenkCPU86_config \ 15827ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1583f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1584f9328639SMarian Balakowicz @cd $(obj)include ; \ 15857ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 15867ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1587ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 15887ebf7443Swdenk else \ 15897ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1590ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 15917ebf7443Swdenk fi; \ 15927ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 15937ebf7443Swdenk 1594384cc687SwdenkCPU87_config \ 1595384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1596f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1597f9328639SMarian Balakowicz @cd $(obj)include ; \ 1598384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1599384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1600ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1601384cc687Swdenk else \ 1602384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1603ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1604384cc687Swdenk fi; \ 1605384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1606384cc687Swdenk 1607f901a83bSWolfgang Denkep8248_config \ 1608f901a83bSWolfgang Denkep8248E_config : unconfig 1609f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1610f901a83bSWolfgang Denk 16117ebf7443Swdenkep8260_config: unconfig 1612f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 16137ebf7443Swdenk 16148d4ac794SWolfgang Denkep82xxm_config: unconfig 161590b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 16168d4ac794SWolfgang Denk 16177ebf7443Swdenkgw8260_config: unconfig 1618f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 16197ebf7443Swdenk 16207ebf7443Swdenkhymod_config: unconfig 1621f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 16227ebf7443Swdenk 16239dd41a7bSwdenkIDS8247_config: unconfig 1624f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 16259dd41a7bSwdenk 16267ebf7443SwdenkIPHASE4539_config: unconfig 1627f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 16287ebf7443Swdenk 1629c3c7f861SwdenkISPAN_config \ 1630c3c7f861SwdenkISPAN_REVB_config: unconfig 1631f9328639SMarian Balakowicz @mkdir -p $(obj)include 1632c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1633f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1634c3c7f861Swdenk fi 1635f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1636c3c7f861Swdenk 1637ac9db066SHeiko Schochermgcoge_config : unconfig 1638ac9db066SHeiko Schocher @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge 1639ac9db066SHeiko Schocher 164004a85b3bSwdenkMPC8260ADS_config \ 1641901787d6SwdenkMPC8260ADS_lowboot_config \ 164204a85b3bSwdenkMPC8260ADS_33MHz_config \ 1643901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 164404a85b3bSwdenkMPC8260ADS_40MHz_config \ 1645901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 164604a85b3bSwdenkMPC8272ADS_config \ 1647901787d6SwdenkMPC8272ADS_lowboot_config \ 164804a85b3bSwdenkPQ2FADS_config \ 1649901787d6SwdenkPQ2FADS_lowboot_config \ 165004a85b3bSwdenkPQ2FADS-VR_config \ 1651901787d6SwdenkPQ2FADS-VR_lowboot_config \ 165204a85b3bSwdenkPQ2FADS-ZU_config \ 1653901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 165404a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1655901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 165604a85b3bSwdenk : unconfig 1657f9328639SMarian Balakowicz @mkdir -p $(obj)include 1658b7e24d28SJon Loeliger @mkdir -p $(obj)board/freescale/mpc8260ads 165904a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1660f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1661f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 166204a85b3bSwdenk $(if $(findstring MHz,$@), \ 1663f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 166404a85b3bSwdenk $(if $(findstring VR,$@), \ 1665f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1666901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1667b7e24d28SJon Loeliger { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \ 1668ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 1669901787d6Swdenk } 1670b7e24d28SJon Loeliger @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale 16717ebf7443Swdenk 1672db2f721fSwdenkMPC8266ADS_config: unconfig 1673aa3511e4SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale 1674db2f721fSwdenk 1675efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 167610f67017SwdenkPM825_config \ 1677efa329cbSwdenkPM825_ROMBOOT_config \ 1678efa329cbSwdenkPM825_BIGFLASH_config \ 1679efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 16807ebf7443SwdenkPM826_config \ 1681efa329cbSwdenkPM826_ROMBOOT_config \ 1682efa329cbSwdenkPM826_BIGFLASH_config \ 1683efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1684f9328639SMarian Balakowicz @mkdir -p $(obj)include 1685f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1686efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1687f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 16887ebf7443Swdenk else \ 1689f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1690efa329cbSwdenk fi 1691efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1692ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1693f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1694f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1695efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1696ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1697f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 16987ebf7443Swdenk fi; \ 1699efa329cbSwdenk else \ 1700ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1701efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1702ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1703f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1704f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1705efa329cbSwdenk else \ 1706f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1707efa329cbSwdenk fi; \ 1708efa329cbSwdenk fi 1709f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1710efa329cbSwdenk 1711efa329cbSwdenkPM828_config \ 1712efa329cbSwdenkPM828_PCI_config \ 1713efa329cbSwdenkPM828_ROMBOOT_config \ 1714efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1715f9328639SMarian Balakowicz @mkdir -p $(obj)include 1716f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 171717076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1718f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1719ae6d1056SWolfgang Denk $(XECHO) "... with PCI enabled" ; \ 1720efa329cbSwdenk fi 1721efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1722ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1723f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1724f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1725efa329cbSwdenk fi 1726f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 17277ebf7443Swdenk 17287ebf7443Swdenkppmc8260_config: unconfig 1729f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 17307ebf7443Swdenk 17318b0bfc68SwdenkRattler8248_config \ 17328b0bfc68SwdenkRattler_config: unconfig 1733f9328639SMarian Balakowicz @mkdir -p $(obj)include 17348b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1735f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1736f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 17378b0bfc68Swdenk 17387ebf7443SwdenkRPXsuper_config: unconfig 1739f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 17407ebf7443Swdenk 17417ebf7443Swdenkrsdproto_config: unconfig 1742f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 17437ebf7443Swdenk 17447ebf7443Swdenksacsng_config: unconfig 1745f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 17467ebf7443Swdenk 17477ebf7443Swdenksbc8260_config: unconfig 1748f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 17497ebf7443Swdenk 17507ebf7443SwdenkSCM_config: unconfig 1751f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 17527ebf7443Swdenk 175327b207fdSwdenkTQM8255_AA_config \ 175427b207fdSwdenkTQM8260_AA_config \ 175527b207fdSwdenkTQM8260_AB_config \ 175627b207fdSwdenkTQM8260_AC_config \ 175727b207fdSwdenkTQM8260_AD_config \ 175827b207fdSwdenkTQM8260_AE_config \ 175927b207fdSwdenkTQM8260_AF_config \ 176027b207fdSwdenkTQM8260_AG_config \ 176127b207fdSwdenkTQM8260_AH_config \ 17621f62bc2dSWolfgang DenkTQM8260_AI_config \ 176327b207fdSwdenkTQM8265_AA_config: unconfig 1764f9328639SMarian Balakowicz @mkdir -p $(obj)include 176527b207fdSwdenk @case "$@" in \ 176627b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 176727b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 176827b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 176927b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 177027b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 177127b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 177227b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 177327b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 177427b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 17751f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 177627b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 177727b207fdSwdenk esac; \ 177827b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1779f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 178027b207fdSwdenk fi; \ 1781f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 178227b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 17831aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1784f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1785ae6d1056SWolfgang Denk $(XECHO) "... with L2 Cache support" ; \ 17867ebf7443Swdenk else \ 1787f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1788ae6d1056SWolfgang Denk $(XECHO) "... without L2 Cache support" ; \ 178927b207fdSwdenk fi; \ 17901aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1791f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1792ae6d1056SWolfgang Denk $(XECHO) "... with 60x Bus Mode" ; \ 179327b207fdSwdenk else \ 1794f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1795ae6d1056SWolfgang Denk $(XECHO) "... without 60x Bus Mode" ; \ 17967ebf7443Swdenk fi 17974677988cSWolfgang Grandegger @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc 17987ebf7443Swdenk 1799fa230445SHeiko SchocherTQM8272_config: unconfig 18004677988cSWolfgang Grandegger @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc 1801fa230445SHeiko Schocher 1802ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1803ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1804f9328639SMarian Balakowicz @mkdir -p $(obj)include 1805f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1806f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1807ba91e26aSwdenk 180854387ac9SwdenkZPC1900_config: unconfig 1809f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 18107aa78614Swdenk 18114e5ca3ebSwdenk######################################################################### 18124e5ca3ebSwdenk## Coldfire 18134e5ca3ebSwdenk######################################################################### 18144e5ca3ebSwdenk 18151552af70STsiChungLiewM52277EVB_config: unconfig 18161552af70STsiChungLiew @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 18171552af70STsiChungLiew 18184a442d31STsiChungLiewM5235EVB_config \ 18194a442d31STsiChungLiewM5235EVB_Flash16_config \ 18204a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 18214a442d31STsiChungLiew @case "$@" in \ 18224a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 18234a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 18244a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 18254a442d31STsiChungLiew esac; \ 18264a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1827ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 18284a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18294a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18304a442d31STsiChungLiew else \ 18314a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18324a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18334a442d31STsiChungLiew fi 18344a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 18354a442d31STsiChungLiew 1836a605aacdSTsiChungLiewM5249EVB_config : unconfig 1837a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1838a605aacdSTsiChungLiew 1839a1436a84STsiChungLiewM5253EVBE_config : unconfig 1840a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1841a1436a84STsiChungLiew 18427481266eSWolfgang Denkcobra5272_config : unconfig 1843f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 18447481266eSWolfgang Denk 18454176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1846f9328639SMarian Balakowicz @mkdir -p $(obj)include 1847f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1848f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1849f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18504176c799SWolfgang Denk 18514176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1852f9328639SMarian Balakowicz @mkdir -p $(obj)include 1853f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1854f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1855f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18564176c799SWolfgang Denk 1857daa6e418SBartlomiej Siekaidmr_config : unconfig 1858daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1859daa6e418SBartlomiej Sieka 18604176c799SWolfgang DenkM5271EVB_config : unconfig 1861f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 18624176c799SWolfgang Denk 18634e5ca3ebSwdenkM5272C3_config : unconfig 1864f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 18654e5ca3ebSwdenk 1866545c8e0aSMatthew FettkeM5275EVB_config : unconfig 1867545c8e0aSMatthew Fettke @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale 1868545c8e0aSMatthew Fettke 18694e5ca3ebSwdenkM5282EVB_config : unconfig 1870f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 18714e5ca3ebSwdenk 18728e585f02STsiChung LiewM5329AFEE_config \ 18738e585f02STsiChung LiewM5329BFEE_config : unconfig 18748e585f02STsiChung Liew @case "$@" in \ 18758e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 18768e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 18778e585f02STsiChung Liew esac; \ 18788e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1879ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 18808e585f02STsiChung Liew fi 18818e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 18828e585f02STsiChung Liew 1883aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1884aa5f1f9dSTsiChungLiew @case "$@" in \ 1885aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1886aa5f1f9dSTsiChungLiew esac; \ 1887aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1888aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1889aa5f1f9dSTsiChungLiew fi 1890aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1891aa5f1f9dSTsiChungLiew 18928ae158cdSTsiChungLiewM54455EVB_config \ 18938ae158cdSTsiChungLiewM54455EVB_atmel_config \ 18948ae158cdSTsiChungLiewM54455EVB_intel_config \ 18958ae158cdSTsiChungLiewM54455EVB_a33_config \ 18968ae158cdSTsiChungLiewM54455EVB_a66_config \ 18978ae158cdSTsiChungLiewM54455EVB_i33_config \ 18988ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 18998ae158cdSTsiChungLiew @case "$@" in \ 19008ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 19018ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 19028ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 19038ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 19048ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 19058ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 19068ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 19078ae158cdSTsiChungLiew esac; \ 19081aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 19094a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1910e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1911e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1912ae6d1056SWolfgang Denk $(XECHO) "... with INTEL boot..." ; \ 19138ae158cdSTsiChungLiew else \ 19144a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1915e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1916e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1917ae6d1056SWolfgang Denk $(XECHO) "... with ATMEL boot..." ; \ 19188ae158cdSTsiChungLiew fi; \ 19194a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1920ae6d1056SWolfgang Denk $(XECHO) "... with $${FREQ}Hz input clock" 19218ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 19228ae158cdSTsiChungLiew 192357a12720STsiChungLiewM5475AFE_config \ 192457a12720STsiChungLiewM5475BFE_config \ 192557a12720STsiChungLiewM5475CFE_config \ 192657a12720STsiChungLiewM5475DFE_config \ 192757a12720STsiChungLiewM5475EFE_config \ 192857a12720STsiChungLiewM5475FFE_config \ 192957a12720STsiChungLiewM5475GFE_config : unconfig 193057a12720STsiChungLiew @case "$@" in \ 193157a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 193257a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 193357a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 193457a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 193557a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 193657a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 193757a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 193857a12720STsiChungLiew esac; \ 193957a12720STsiChungLiew echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \ 194057a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 194157a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 194257a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 194357a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 194457a12720STsiChungLiew fi; \ 194557a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 194657a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 194757a12720STsiChungLiew fi; \ 194857a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 194957a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 195057a12720STsiChungLiew fi; \ 195157a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 195257a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 195357a12720STsiChungLiew fi 195457a12720STsiChungLiew @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 195557a12720STsiChungLiew 195657a12720STsiChungLiewM5485AFE_config \ 195757a12720STsiChungLiewM5485BFE_config \ 195857a12720STsiChungLiewM5485CFE_config \ 195957a12720STsiChungLiewM5485DFE_config \ 196057a12720STsiChungLiewM5485EFE_config \ 196157a12720STsiChungLiewM5485FFE_config \ 196257a12720STsiChungLiewM5485GFE_config \ 196357a12720STsiChungLiewM5485HFE_config : unconfig 196457a12720STsiChungLiew @case "$@" in \ 196557a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 196657a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 196757a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 196857a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 196957a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 197057a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 197157a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 19724d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 197357a12720STsiChungLiew esac; \ 197457a12720STsiChungLiew echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \ 197557a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 197657a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 197757a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 197857a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 197957a12720STsiChungLiew fi; \ 198057a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 198157a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 198257a12720STsiChungLiew fi; \ 198357a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 198457a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 198557a12720STsiChungLiew fi; \ 198657a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 198757a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 198857a12720STsiChungLiew fi 198957a12720STsiChungLiew @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 199057a12720STsiChungLiew 1991699f0512SWolfgang DenkTASREG_config : unconfig 1992699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1993699f0512SWolfgang Denk 19947ebf7443Swdenk######################################################################### 1995f046ccd1SEran Liberty## MPC83xx Systems 1996f046ccd1SEran Liberty######################################################################### 1997f046ccd1SEran Liberty 19985c5d3242SKim PhillipsMPC8313ERDB_33_config \ 19995c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 2000cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2001c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2002ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2003cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 20045c5d3242SKim Phillips fi ; \ 20055c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 2006ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2007cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 20085c5d3242SKim Phillips fi ; 2009e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 20105c5d3242SKim Phillips 20118bd522ceSDave LiuMPC8315ERDB_config: unconfig 20128bd522ceSDave Liu @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 20138bd522ceSDave Liu 20141c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 20151c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 20161c274c4eSKim Phillips 20174decd84eSKim PhillipsMPC832XEMDS_config \ 20184decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 20194decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 2020281df457STony LiMPC832XEMDS_SLAVE_config \ 2021281df457STony LiMPC832XEMDS_ATM_config: unconfig 2022cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2023c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2024ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2025cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20264decd84eSKim Phillips fi ; \ 20274decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2028ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2029cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2030cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20314decd84eSKim Phillips fi ; \ 20324decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 2033ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2034cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2035281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20364decd84eSKim Phillips fi ; \ 20374decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 2038ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2039cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2040281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2041281df457STony Li fi ; \ 2042281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2043ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2044281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2045281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20464decd84eSKim Phillips fi ; 2047e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 2048e6f2e902SMarian Balakowicz 2049991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 2050e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 2051991425feSMarian Balakowicz 20527a78f148STimur TabiMPC8349ITX_config \ 20537a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 20547a78f148STimur TabiMPC8349ITXGP_config: unconfig 20557a78f148STimur Tabi @mkdir -p $(obj)include 2056e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 20577a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 20587a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 2059e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20607a78f148STimur Tabi fi 20617a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2062e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20637a78f148STimur Tabi fi 2064e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 20654decd84eSKim Phillips 20665f820439SDave LiuMPC8360EMDS_config \ 20675f820439SDave LiuMPC8360EMDS_HOST_33_config \ 20685f820439SDave LiuMPC8360EMDS_HOST_66_config \ 2069281df457STony LiMPC8360EMDS_SLAVE_config \ 2070281df457STony LiMPC8360EMDS_ATM_config: unconfig 2071cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2072c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2073ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2074cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20755f820439SDave Liu fi ; \ 20765f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2077ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2078cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2079cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20805f820439SDave Liu fi ; \ 20815f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 2082ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2083cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2084281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20855f820439SDave Liu fi ; \ 20865f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 2087ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2088cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2089281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2090281df457STony Li fi ; \ 2091281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2092ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2093281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2094281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20955f820439SDave Liu fi ; 2096e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 20975f820439SDave Liu 2098fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 2099fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 210091c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 2101fab6f556SAnton Vorontsov @mkdir -p $(obj)include 2102c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2103ae6d1056SWolfgang Denk $(XECHO) -n "... CLKIN 33MHz " ; \ 2104fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2105fab6f556SAnton Vorontsov fi ; 2106fab6f556SAnton Vorontsov @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2107fab6f556SAnton Vorontsov 210819580e66SDave LiuMPC837XEMDS_config \ 210919580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 211019580e66SDave Liu @mkdir -p $(obj)include 2111c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2112ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 211319580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 211419580e66SDave Liu fi ; 211519580e66SDave Liu @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 211619580e66SDave Liu 21175e918a98SKim PhillipsMPC837XERDB_config: unconfig 21185e918a98SKim Phillips @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 21195e918a98SKim Phillips 2120a1293e54SAndre SchwarzMVBLM7_config: unconfig 2121a1293e54SAndre Schwarz @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 2122a1293e54SAndre Schwarz 212391e25769SPaul Gortmakersbc8349_config: unconfig 212491e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 212591e25769SPaul Gortmaker 21264decd84eSKim PhillipsTQM834x_config: unconfig 21274677988cSWolfgang Grandegger @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc 21284decd84eSKim Phillips 21292ad6b513STimur Tabi 2130f046ccd1SEran Liberty######################################################################### 213142d1f039Swdenk## MPC85xx Systems 213242d1f039Swdenk######################################################################### 213342d1f039Swdenk 21347bd6104bSrobert lazarskiATUM8548_config: unconfig 21357bd6104bSrobert lazarski @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 21367bd6104bSrobert lazarski 213742d1f039SwdenkMPC8540ADS_config: unconfig 2138c2d943ffSKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 213942d1f039Swdenk 2140b0e32949SLunsheng WangMPC8540EVAL_config \ 2141b0e32949SLunsheng WangMPC8540EVAL_33_config \ 2142b0e32949SLunsheng WangMPC8540EVAL_66_config \ 2143b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 2144b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 2145f9328639SMarian Balakowicz @mkdir -p $(obj)include 2146c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2147ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2148b0e32949SLunsheng Wang else \ 2149f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2150ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2151b0e32949SLunsheng Wang fi ; \ 2152b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 2153f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2154ae6d1056SWolfgang Denk $(XECHO) " slave" ; \ 2155b0e32949SLunsheng Wang else \ 2156ae6d1056SWolfgang Denk $(XECHO) " host" ; \ 2157b0e32949SLunsheng Wang fi 2158f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2159b0e32949SLunsheng Wang 216042d1f039SwdenkMPC8560ADS_config: unconfig 2161870ceac5SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 216242d1f039Swdenk 21637f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 216403f5c550SwdenkMPC8541CDS_config: unconfig 21657f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2166c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21677f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2168ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21697f3f2bd2SRandy Vinson fi 2170415a613bSKumar Gala @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 217103f5c550Swdenk 217281f481caSAndy FlemingMPC8544DS_config: unconfig 217381f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 217481f481caSAndy Fleming 21757f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 2176d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 21777f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2178c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21797f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2180ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21817f3f2bd2SRandy Vinson fi 2182415a613bSKumar Gala @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2183d9b94f28SJon Loeliger 21847f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 218503f5c550SwdenkMPC8555CDS_config: unconfig 21867f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2187c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21887f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2189ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21907f3f2bd2SRandy Vinson fi 2191415a613bSKumar Gala @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 21927abf0c58Swdenk 219367431059SAndy FlemingMPC8568MDS_config: unconfig 2194acbca876SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 219567431059SAndy Fleming 2196384cc687SwdenkPM854_config: unconfig 2197f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2198384cc687Swdenk 2199b20d0032SWolfgang DenkPM856_config: unconfig 2200f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2201b20d0032SWolfgang Denk 2202c15f3120Swdenksbc8540_config \ 2203c15f3120Swdenksbc8540_33_config \ 2204c15f3120Swdenksbc8540_66_config: unconfig 2205f9328639SMarian Balakowicz @mkdir -p $(obj)include 2206c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2207f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2208ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2209c15f3120Swdenk else \ 2210ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2211c15f3120Swdenk fi 2212f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2213c15f3120Swdenk 221411c45ebdSJoe Hammansbc8548_config: unconfig 221511c45ebdSJoe Hamman @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 221611c45ebdSJoe Hamman 2217466b7410Swdenksbc8560_config \ 2218466b7410Swdenksbc8560_33_config \ 2219466b7410Swdenksbc8560_66_config: unconfig 2220f9328639SMarian Balakowicz @mkdir -p $(obj)include 22218b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2222f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2223ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 22248b07a110Swdenk else \ 2225ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 22268b07a110Swdenk fi 2227f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 22288b07a110Swdenk 22295d108ac8SSergei Poselenovsocrates_config: unconfig 22305d108ac8SSergei Poselenov @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates 22315d108ac8SSergei Poselenov 223203f5c550Swdenkstxgp3_config: unconfig 2233f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 223403f5c550Swdenk 2235ee152983SWolfgang Denkstxssa_config \ 2236ee152983SWolfgang Denkstxssa_4M_config: unconfig 2237ee152983SWolfgang Denk @mkdir -p $(obj)include 2238ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2239ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2240ae6d1056SWolfgang Denk $(XECHO) "... with 4 MiB flash memory" ; \ 2241ee152983SWolfgang Denk fi 2242ee152983SWolfgang Denk @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 224335171dc0SDan Malek 2244d96f41e0SStefan RoeseTQM8540_config \ 2245d96f41e0SStefan RoeseTQM8541_config \ 22461287e0c5SWolfgang GrandeggerTQM8548_config \ 2247d96f41e0SStefan RoeseTQM8555_config \ 2248f5c5ef4aSwdenkTQM8560_config: unconfig 2249f9328639SMarian Balakowicz @mkdir -p $(obj)include 2250a889bd27SWolfgang Denk @CTYPE=$(subst TQM,,$(@:_config=)); \ 2251ae6d1056SWolfgang Denk $(XECHO) "... TQM"$${CTYPE}; \ 2252f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2253f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2254f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 225525991353SWolfgang Grandegger echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; 22564677988cSWolfgang Grandegger @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc 2257f5c5ef4aSwdenk 225842d1f039Swdenk######################################################################### 2259debb7354SJon Loeliger## MPC86xx Systems 2260debb7354SJon Loeliger######################################################################### 2261debb7354SJon Loeliger 22623c89d754SJon LoeligerMPC8610HPCD_config: unconfig 22633c89d754SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 22643c89d754SJon Loeliger 2265debb7354SJon LoeligerMPC8641HPCN_config: unconfig 22664ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2267debb7354SJon Loeliger 2268c646bba6SJoe Hammansbc8641d_config: unconfig 226991c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d 2270debb7354SJon Loeliger 2271debb7354SJon Loeliger######################################################################### 22727ebf7443Swdenk## 74xx/7xx Systems 22737ebf7443Swdenk######################################################################### 22747ebf7443Swdenk 2275c7de829cSwdenkAmigaOneG3SE_config: unconfig 2276f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2277c7de829cSwdenk 227815647dc7SwdenkBAB7xx_config: unconfig 2279f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 228015647dc7Swdenk 2281c419d1d6SstroeseCPCI750_config: unconfig 2282f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2283c419d1d6Sstroese 22843a473b2aSwdenkDB64360_config: unconfig 2285f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 22863a473b2aSwdenk 22873a473b2aSwdenkDB64460_config: unconfig 2288f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 22893a473b2aSwdenk 229015647dc7SwdenkELPPC_config: unconfig 2291f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 229215647dc7Swdenk 22937ebf7443SwdenkEVB64260_config \ 22947ebf7443SwdenkEVB64260_750CX_config: unconfig 2295f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 22967ebf7443Swdenk 22974c52783bSroy zangmpc7448hpc2_config: unconfig 22987f1d846eSJon Loeliger @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale 22994c52783bSroy zang 230015647dc7SwdenkP3G4_config: unconfig 2301f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 23027ebf7443Swdenk 23031eac2a71SStefan Roesep3m750_config \ 23041eac2a71SStefan Roesep3m7448_config: unconfig 23051eac2a71SStefan Roese @mkdir -p $(obj)include 23061eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 23071eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 23081eac2a71SStefan Roese else \ 23091eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 23101eac2a71SStefan Roese fi 23111eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 23121eac2a71SStefan Roese 23137ebf7443SwdenkPCIPPC2_config \ 23147ebf7443SwdenkPCIPPC6_config: unconfig 2315f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 23167ebf7443Swdenk 2317f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2318f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2319f5e0d039SHeiko Schocher 2320699f0512SWolfgang DenkZUMA_config: unconfig 2321699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 2322699f0512SWolfgang Denk 23237ebf7443Swdenk#======================================================================== 23247ebf7443Swdenk# ARM 23257ebf7443Swdenk#======================================================================== 23267ebf7443Swdenk######################################################################### 23277ebf7443Swdenk## StrongARM Systems 23287ebf7443Swdenk######################################################################### 23297ebf7443Swdenk 2330ea66bc88Swdenkassabet_config : unconfig 2331f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2332ea66bc88Swdenk 23337ebf7443Swdenkdnp1110_config : unconfig 2334f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 23357ebf7443Swdenk 2336855a496fSwdenkgcplus_config : unconfig 2337f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2338855a496fSwdenk 2339855a496fSwdenklart_config : unconfig 2340f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2341855a496fSwdenk 23427ebf7443Swdenkshannon_config : unconfig 2343f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 23447ebf7443Swdenk 23457ebf7443Swdenk######################################################################### 23462e5983d2Swdenk## ARM92xT Systems 23477ebf7443Swdenk######################################################################### 23487ebf7443Swdenk 2349a4b46ed6SUlf Samuelsson######################################################################### 2350a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems 2351a4b46ed6SUlf Samuelsson######################################################################### 235220b197c6SStelian Pop 2353a85f9f21Swdenkat91rm9200dk_config : unconfig 235465230107SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 2355a85f9f21Swdenk 2356d99a8ff6SStelian Popat91sam9261ek_config : unconfig 2357d99a8ff6SStelian Pop @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91sam9 2358d99a8ff6SStelian Pop 23598e429b3eSStelian Popat91sam9263ek_config : unconfig 23608e429b3eSStelian Pop @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91sam9 23618e429b3eSStelian Pop 23622118ebb4SStelian Popat91sam9rlek_config : unconfig 23632118ebb4SStelian Pop @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91sam9 23642118ebb4SStelian Pop 2365a85f9f21Swdenkcmc_pu2_config : unconfig 2366f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2367a85f9f21Swdenk 2368645da510SWolfgang Denkcsb637_config : unconfig 2369f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2370645da510SWolfgang Denk 2371a4b46ed6SUlf Samuelssonkb9202_config : unconfig 2372a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 2373a4b46ed6SUlf Samuelsson 2374ea8d989fSTimo Tuunainenm501sk_config : unconfig 2375ea8d989fSTimo Tuunainen @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 237687cb6862SWolfgang Denk 2377699f0512SWolfgang Denkmp2usb_config : unconfig 2378699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 2379699f0512SWolfgang Denk 2380a4b46ed6SUlf Samuelsson######################################################################### 2381a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems 2382a4b46ed6SUlf Samuelsson######################################################################### 2383a4b46ed6SUlf Samuelsson 2384a4b46ed6SUlf Samuelssonat91cap9adk_config : unconfig 2385a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9 2386a4b46ed6SUlf Samuelsson 2387a4b46ed6SUlf Samuelssonat91sam9260ek_config : unconfig 2388a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9 2389a4b46ed6SUlf Samuelsson 239074f4304eSWolfgang Denk######################################################################## 239187cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 239287cb6862SWolfgang Denkintegratorap_config \ 239387cb6862SWolfgang Denkap_config \ 239487cb6862SWolfgang Denkap966_config \ 239587cb6862SWolfgang Denkap922_config \ 239687cb6862SWolfgang Denkap922_XA10_config \ 239787cb6862SWolfgang Denkap7_config \ 239887cb6862SWolfgang Denkap720t_config \ 239987cb6862SWolfgang Denkap920t_config \ 240087cb6862SWolfgang Denkap926ejs_config \ 240187cb6862SWolfgang Denkap946es_config: unconfig 240296782c63SWolfgang Denk @board/integratorap/split_by_variant.sh $@ 24033d3befa7Swdenk 240487cb6862SWolfgang Denkintegratorcp_config \ 240587cb6862SWolfgang Denkcp_config \ 240687cb6862SWolfgang Denkcp920t_config \ 240787cb6862SWolfgang Denkcp926ejs_config \ 240887cb6862SWolfgang Denkcp946es_config \ 240987cb6862SWolfgang Denkcp1136_config \ 241087cb6862SWolfgang Denkcp966_config \ 241187cb6862SWolfgang Denkcp922_config \ 241287cb6862SWolfgang Denkcp922_XA10_config \ 241387cb6862SWolfgang Denkcp1026_config: unconfig 241496782c63SWolfgang Denk @board/integratorcp/split_by_variant.sh $@ 241525d6712aSwdenk 2416699f0512SWolfgang Denkdavinci_dvevm_config : unconfig 2417699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2418699f0512SWolfgang Denk 2419699f0512SWolfgang Denkdavinci_schmoogie_config : unconfig 2420699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2421699f0512SWolfgang Denk 2422699f0512SWolfgang Denkdavinci_sffsdr_config : unconfig 2423699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci 2424699f0512SWolfgang Denk 2425699f0512SWolfgang Denkdavinci_sonata_config : unconfig 2426699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2427699f0512SWolfgang Denk 2428f832d8a1Swdenklpd7a400_config \ 2429f832d8a1Swdenklpd7a404_config: unconfig 2430f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 24313d3befa7Swdenk 2432281e00a3Swdenkmx1ads_config : unconfig 2433f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2434281e00a3Swdenk 2435281e00a3Swdenkmx1fs2_config : unconfig 2436f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2437281e00a3Swdenk 2438ac7eb8a3SWolfgang Denknetstar_config: unconfig 2439f4e7cbfcSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm925t netstar 2440ac7eb8a3SWolfgang Denk 24412e5983d2Swdenkomap1510inn_config : unconfig 2442f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 24432e5983d2Swdenk 2444a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2445a4b46ed6SUlf Samuelsson 244663e73c9aSwdenkomap1610inn_config \ 244763e73c9aSwdenkomap1610inn_cs0boot_config \ 244863e73c9aSwdenkomap1610inn_cs3boot_config \ 24493ff02c27Swdenkomap1610inn_cs_autoboot_config \ 245063e73c9aSwdenkomap1610h2_config \ 245163e73c9aSwdenkomap1610h2_cs0boot_config \ 24523ff02c27Swdenkomap1610h2_cs3boot_config \ 24533ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2454f9328639SMarian Balakowicz @mkdir -p $(obj)include 245563e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2456cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2457ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 24583ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2459cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2460ae6d1056SWolfgang Denk $(XECHO) "... configured for CS_AUTO boot"; \ 246163e73c9aSwdenk else \ 2462cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2463ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 246463e73c9aSwdenk fi; 2465f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 24666f21347dSwdenk 2467699f0512SWolfgang Denkomap5912osk_config : unconfig 2468699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 2469699f0512SWolfgang Denk 2470a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2471a4b46ed6SUlf Samuelsson 2472a56bd922Swdenkomap730p2_config \ 2473a56bd922Swdenkomap730p2_cs0boot_config \ 2474a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2475f9328639SMarian Balakowicz @mkdir -p $(obj)include 2476a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2477f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2478ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 2479a56bd922Swdenk else \ 2480f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2481ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 2482a56bd922Swdenk fi; 2483f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2484a56bd922Swdenk 248532cb2c70SWolfgang Denksbc2410x_config: unconfig 2486f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 248732cb2c70SWolfgang Denk 2488281e00a3Swdenkscb9328_config : unconfig 2489f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2490281e00a3Swdenk 24917ebf7443Swdenksmdk2400_config : unconfig 2492f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 24937ebf7443Swdenk 24947ebf7443Swdenksmdk2410_config : unconfig 2495f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 24967ebf7443Swdenk 24972d24a3a7SwdenkSX1_config : unconfig 2498f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 24992d24a3a7Swdenk 2500b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 2501a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 2502a4b46ed6SUlf Samuelsson 250343d9616cSwdenktrab_config \ 2504b0639ca3Swdenktrab_bigram_config \ 2505b0639ca3Swdenktrab_bigflash_config \ 2506f54ebdfaSwdenktrab_old_config: unconfig 2507f9328639SMarian Balakowicz @mkdir -p $(obj)include 2508f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2509b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2510f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2511f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2512ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2513b0639ca3Swdenk } 2514b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2515f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2516f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2517ae6d1056SWolfgang Denk $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2518f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2519b0639ca3Swdenk } 2520f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2521f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2522f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2523ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2524f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 252543d9616cSwdenk } 2526f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 25277ebf7443Swdenk 25281cb8e980SwdenkVCMA9_config : unconfig 2529f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 25301cb8e980Swdenk 2531699f0512SWolfgang Denk######################################################################### 253287cb6862SWolfgang Denk# ARM supplied Versatile development boards 2533699f0512SWolfgang Denk######################################################################### 2534699f0512SWolfgang Denk 2535699f0512SWolfgang Denkcm4008_config : unconfig 2536699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 2537699f0512SWolfgang Denk 2538699f0512SWolfgang Denkcm41xx_config : unconfig 2539699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 2540699f0512SWolfgang Denk 254187cb6862SWolfgang Denkversatile_config \ 254287cb6862SWolfgang Denkversatileab_config \ 254387cb6862SWolfgang Denkversatilepb_config : unconfig 254496782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2545074cff0dSwdenk 25463c2b3d45Swdenkvoiceblue_config: unconfig 25474fedfddfSLadislav Michl @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 25483c2b3d45Swdenk 2549074cff0dSwdenk######################################################################### 2550074cff0dSwdenk## S3C44B0 Systems 2551074cff0dSwdenk######################################################################### 2552074cff0dSwdenk 2553074cff0dSwdenkB2_config : unconfig 2554f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2555074cff0dSwdenk 25567ebf7443Swdenk######################################################################### 25577ebf7443Swdenk## ARM720T Systems 25587ebf7443Swdenk######################################################################### 25597ebf7443Swdenk 2560c570b2fdSWolfgang Denkarmadillo_config: unconfig 2561f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2562c570b2fdSWolfgang Denk 25637ebf7443Swdenkep7312_config : unconfig 2564f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 25657ebf7443Swdenk 25662d24a3a7Swdenkimpa7_config : unconfig 2567f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 25682d24a3a7Swdenk 25692d1a537dSwdenkmodnet50_config : unconfig 2570f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 25712d1a537dSwdenk 257239539887Swdenkevb4510_config : unconfig 2573f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 257439539887Swdenk 25756bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2576b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2577b0d8f5bfSPeter Pearse 2578b0d8f5bfSPeter PearseSMN42_config : unconfig 2579b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 25806bd2447eSGary Jennejohn 25817ebf7443Swdenk######################################################################### 258243d9616cSwdenk## XScale Systems 25837ebf7443Swdenk######################################################################### 25847ebf7443Swdenk 2585799891efSMichael Schwingenactux1_config : unconfig 2586799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux1 2587799891efSMichael Schwingen 2588799891efSMichael Schwingenactux2_config : unconfig 2589799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux2 2590799891efSMichael Schwingen 2591799891efSMichael Schwingenactux3_config : unconfig 2592799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux3 2593799891efSMichael Schwingen 2594799891efSMichael Schwingenactux4_config : unconfig 2595799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux4 2596799891efSMichael Schwingen 2597fabd46acSwdenkcerf250_config : unconfig 2598f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2599fabd46acSwdenk 26007ebf7443Swdenkcradle_config : unconfig 2601f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 26027ebf7443Swdenk 26037ebf7443Swdenkcsb226_config : unconfig 2604f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 26057ebf7443Swdenk 260691c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config : unconfig 2607f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 26080be248faSWolfgang Denk 260943d9616cSwdenkinnokom_config : unconfig 2610f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 261143d9616cSwdenk 26122d5b561eSwdenkixdp425_config : unconfig 2613f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 26142d5b561eSwdenk 2615ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2616f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2617ba94a1bbSWolfgang Denk 261843d9616cSwdenklubbock_config : unconfig 2619f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 262043d9616cSwdenk 26215720df78SHeiko Schocherpleb2_config : unconfig 2622f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 26235720df78SHeiko Schocher 262452f52c14Swdenklogodl_config : unconfig 2625f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 262652f52c14Swdenk 26279d8d5a5bSStefan Roesepdnb3_config \ 26289d8d5a5bSStefan Roesescpu_config: unconfig 2629cdd917a4SWolfgang Denk @mkdir -p $(obj)include 26309d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2631cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2632ae6d1056SWolfgang Denk $(XECHO) "... on SCPU board variant" ; \ 26339d8d5a5bSStefan Roese fi 26349d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2635ba94a1bbSWolfgang Denk 2636f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2637f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2638f57f70aaSWolfgang Denk 26395e5803e1Sstefano babictrizepsiv_config : unconfig 26405e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 26415e5803e1Sstefano babic 26423e38691eSwdenkwepep250_config : unconfig 2643f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 26443e38691eSwdenk 26454ec3a7f0Swdenkxaeniax_config : unconfig 2646f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 26474ec3a7f0Swdenk 2648efa329cbSwdenkxm250_config : unconfig 2649f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2650efa329cbSwdenk 2651ca0e7748Swdenkxsengine_config : unconfig 2652f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2653ca0e7748Swdenk 2654e0269579SMarkus Klotzbücherzylonite_config : 2655f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2656e0269579SMarkus Klotzbücher 26578ed96046Swdenk######################################################################### 26588ed96046Swdenk## ARM1136 Systems 26598ed96046Swdenk######################################################################### 26605ca9881aSPeter Pearse 26615ca9881aSPeter Pearseapollon_config : unconfig 2662c6fe4dabSWolfgang Denk @mkdir -p $(obj)include 2663*cdb8bd2fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)onenand_ipl/board/apollon 2664751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 26655252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx 2666751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 26678ed96046Swdenk 2668caebc95bSSascha Hauerimx31_litekit_config : unconfig 2669caebc95bSSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31 2670caebc95bSSascha Hauer 26715ad86216SSascha Hauerimx31_phycore_config : unconfig 26725ad86216SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31 26735ad86216SSascha Hauer 2674b5dc9b30SGuennadi Liakhovetskimx31ads_config : unconfig 2675b5dc9b30SGuennadi Liakhovetski @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31 2676b5dc9b30SGuennadi Liakhovetski 2677699f0512SWolfgang Denkomap2420h4_config : unconfig 2678699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx 2679699f0512SWolfgang Denk 26802262cfeeSwdenk#======================================================================== 26812262cfeeSwdenk# i386 26822262cfeeSwdenk#======================================================================== 26832262cfeeSwdenk######################################################################### 26842262cfeeSwdenk## AMD SC520 CDP 26852262cfeeSwdenk######################################################################### 26862262cfeeSwdenksc520_cdp_config : unconfig 2687f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 26882262cfeeSwdenk 26897a8e9bedSwdenksc520_spunk_config : unconfig 2690f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26917a8e9bedSwdenk 26927a8e9bedSwdenksc520_spunk_rel_config : unconfig 2693f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26947a8e9bedSwdenk 269543d9616cSwdenk#======================================================================== 269643d9616cSwdenk# MIPS 269743d9616cSwdenk#======================================================================== 26987ebf7443Swdenk######################################################################### 269943d9616cSwdenk## MIPS32 4Kc 270043d9616cSwdenk######################################################################### 270143d9616cSwdenk 2702e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2703e0ac62d7Swdenk 2704e0ac62d7Swdenkincaip_100MHz_config \ 2705e0ac62d7Swdenkincaip_133MHz_config \ 2706e0ac62d7Swdenkincaip_150MHz_config \ 270743d9616cSwdenkincaip_config: unconfig 2708f9328639SMarian Balakowicz @mkdir -p $(obj)include 2709e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2710f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2711ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 2712e0ac62d7Swdenk } 2713e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2714f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2715ae6d1056SWolfgang Denk $(XECHO) "... with 133MHz system clock" ; \ 2716e0ac62d7Swdenk } 2717e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2718f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2719ae6d1056SWolfgang Denk $(XECHO) "... with 150MHz system clock" ; \ 2720e0ac62d7Swdenk } 2721f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2722e0ac62d7Swdenk 2723f4863a7aSwdenktb0229_config: unconfig 2724f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2725f4863a7aSwdenk 2726e0ac62d7Swdenk######################################################################### 272769459791Swdenk## MIPS32 AU1X00 272869459791Swdenk######################################################################### 2729699f0512SWolfgang Denk 273069459791Swdenkdbau1000_config : unconfig 2731f9328639SMarian Balakowicz @mkdir -p $(obj)include 2732210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2733f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 273469459791Swdenk 273569459791Swdenkdbau1100_config : unconfig 2736f9328639SMarian Balakowicz @mkdir -p $(obj)include 2737210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2738f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 273969459791Swdenk 274069459791Swdenkdbau1500_config : unconfig 2741f9328639SMarian Balakowicz @mkdir -p $(obj)include 2742210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2743f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 274469459791Swdenk 2745ff36fd85Swdenkdbau1550_config : unconfig 2746f9328639SMarian Balakowicz @mkdir -p $(obj)include 2747210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2748f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2749ff36fd85Swdenk 2750ff36fd85Swdenkdbau1550_el_config : unconfig 2751f9328639SMarian Balakowicz @mkdir -p $(obj)include 2752210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2753f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2754ff36fd85Swdenk 27558a773983SShinya Kuribayashigth2_config : unconfig 27568a773983SShinya Kuribayashi @mkdir -p $(obj)include 27578a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 27588a773983SShinya Kuribayashi @$(MKCONFIG) -a gth2 mips mips gth2 27598a773983SShinya Kuribayashi 2760699f0512SWolfgang Denkpb1000_config : unconfig 2761699f0512SWolfgang Denk @mkdir -p $(obj)include 2762699f0512SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2763699f0512SWolfgang Denk @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2764699f0512SWolfgang Denk 27650764c164SVlad Lunguqemu_mips_config : unconfig 27660764c164SVlad Lungu @mkdir -p $(obj)include 2767210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 27680764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 27690764c164SVlad Lungu 277069459791Swdenk######################################################################### 2771e0ac62d7Swdenk## MIPS64 5Kc 2772e0ac62d7Swdenk######################################################################### 277343d9616cSwdenk 27743e38691eSwdenkpurple_config : unconfig 2775f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 277643d9616cSwdenk 27774a551709Swdenk#======================================================================== 27784a551709Swdenk# Nios 27794a551709Swdenk#======================================================================== 27804a551709Swdenk######################################################################### 27814a551709Swdenk## Nios32 27824a551709Swdenk######################################################################### 27834a551709Swdenk 2784699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config \ 2785699f0512SWolfgang DenkADNPESC1_base_32_config \ 2786699f0512SWolfgang DenkADNPESC1_config: unconfig 2787699f0512SWolfgang Denk @mkdir -p $(obj)include 2788699f0512SWolfgang Denk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2789699f0512SWolfgang Denk { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2790699f0512SWolfgang Denk $(XECHO) "... DNP/EVA2 configuration" ; \ 2791699f0512SWolfgang Denk } 2792699f0512SWolfgang Denk @[ -z "$(findstring _base_32,$@)" ] || \ 2793699f0512SWolfgang Denk { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2794699f0512SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration" ; \ 2795699f0512SWolfgang Denk } 2796699f0512SWolfgang Denk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2797699f0512SWolfgang Denk { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2798699f0512SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2799699f0512SWolfgang Denk } 2800699f0512SWolfgang Denk @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2801699f0512SWolfgang Denk 2802c935d3bdSwdenkDK1C20_safe_32_config \ 2803c935d3bdSwdenkDK1C20_standard_32_config \ 28044a551709SwdenkDK1C20_config: unconfig 2805f9328639SMarian Balakowicz @mkdir -p $(obj)include 2806c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2807f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2808ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2809c935d3bdSwdenk } 2810c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2811f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2812ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2813c935d3bdSwdenk } 2814c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2815f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2816ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2817c935d3bdSwdenk } 2818f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2819c935d3bdSwdenk 2820c935d3bdSwdenkDK1S10_safe_32_config \ 2821c935d3bdSwdenkDK1S10_standard_32_config \ 2822ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2823c935d3bdSwdenkDK1S10_config: unconfig 2824f9328639SMarian Balakowicz @mkdir -p $(obj)include 2825c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2826f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2827ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2828c935d3bdSwdenk } 2829c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2830f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2831ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2832c935d3bdSwdenk } 2833ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2834f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2835ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 2836ec4c544bSwdenk } 2837c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2838f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2839ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2840c935d3bdSwdenk } 2841f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 28424a551709Swdenk 28435c952cf0Swdenk######################################################################### 28445c952cf0Swdenk## Nios-II 28455c952cf0Swdenk######################################################################### 28465c952cf0Swdenk 28479cc83378SScott McNuttEP1C20_config : unconfig 2848f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 28499cc83378SScott McNutt 28509cc83378SScott McNuttEP1S10_config : unconfig 2851f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 28529cc83378SScott McNutt 28539cc83378SScott McNuttEP1S40_config : unconfig 2854f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 28559cc83378SScott McNutt 28565c952cf0SwdenkPK1C20_config : unconfig 2857f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 28585c952cf0Swdenk 28595c952cf0SwdenkPCI5441_config : unconfig 2860f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 28614a551709Swdenk 2862507bbe3eSwdenk#======================================================================== 2863507bbe3eSwdenk## Microblaze 2864699f0512SWolfgang Denk#======================================================================== 2865507bbe3eSwdenk 2866cfc67116SMichal Simekml401_config: unconfig 2867cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2868210ed200SWolfgang Denk @echo "#define CONFIG_ML401 1" > $(obj)include/config.h 286990b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2870cfc67116SMichal Simek 2871699f0512SWolfgang Denksuzaku_config: unconfig 2872699f0512SWolfgang Denk @mkdir -p $(obj)include 2873699f0512SWolfgang Denk @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h 2874699f0512SWolfgang Denk @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2875699f0512SWolfgang Denk 287617980495SMichal Simekxupv2p_config: unconfig 2877cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2878210ed200SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h 287990b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 288017980495SMichal Simek 288160fa72d6SMike Frysinger#======================================================================== 288260fa72d6SMike Frysinger# Blackfin 288360fa72d6SMike Frysinger#======================================================================== 28840afe519aSWolfgang Denk 288560fa72d6SMike Frysinger# Analog Devices boards 288660fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit 28870afe519aSWolfgang Denk 288860fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config) : unconfig 28899171fc81SMike Frysinger @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=) 289026bf7decSAubrey Li 289160fa72d6SMike Frysinger$(BFIN_BOARDS): 289260fa72d6SMike Frysinger $(MAKE) $@_config 289360fa72d6SMike Frysinger $(MAKE) 28940afe519aSWolfgang Denk 28955e3b0bc1SHaavard Skinnemoen#======================================================================== 28965e3b0bc1SHaavard Skinnemoen# AVR32 28975e3b0bc1SHaavard Skinnemoen#======================================================================== 2898699f0512SWolfgang Denk 2899699f0512SWolfgang Denkatngw100_config : unconfig 2900699f0512SWolfgang Denk @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 29015e3b0bc1SHaavard Skinnemoen 29025e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 290336f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 29045e3b0bc1SHaavard Skinnemoen 2905667568dbSHaavard Skinnemoenatstk1003_config : unconfig 2906667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2907667568dbSHaavard Skinnemoen 290864ff2357SHaavard Skinnemoenatstk1004_config : unconfig 290964ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 29100afe519aSWolfgang Denk 29110a2e4879SHaavard Skinnemoenatstk1006_config : unconfig 29120a2e4879SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 29130a2e4879SHaavard Skinnemoen 2914699f0512SWolfgang Denk#======================================================================== 2915699f0512SWolfgang Denk# SH3 (SuperH) 2916699f0512SWolfgang Denk#======================================================================== 29177ebf7443Swdenk 291869df3c4dSNobuhiro Iwamatsu######################################################################### 2919b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2920b2b5e2bbSYoshihiro Shimoda######################################################################### 2921699f0512SWolfgang Denk 29223313e0e2SMark Jonasmpr2_config: unconfig 29233ab4827cSWolfgang Denk @mkdir -p $(obj)include 29243ab4827cSWolfgang Denk @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h 29253313e0e2SMark Jonas @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2 29263313e0e2SMark Jonas 2927b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 29283ab4827cSWolfgang Denk @mkdir -p $(obj)include 29293ab4827cSWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h 293091c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se 2931b2b5e2bbSYoshihiro Shimoda 2932b2b5e2bbSYoshihiro Shimoda######################################################################### 293369df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 293469df3c4dSNobuhiro Iwamatsu######################################################################### 2935699f0512SWolfgang Denk 2936699f0512SWolfgang DenkMigoR_config : unconfig 2937699f0512SWolfgang Denk @mkdir -p $(obj)include 2938699f0512SWolfgang Denk @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h 2939699f0512SWolfgang Denk @./mkconfig -a $(@:_config=) sh sh4 MigoR 2940699f0512SWolfgang Denk 294169df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 29423ab4827cSWolfgang Denk @mkdir -p $(obj)include 2943210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 294491c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se 294569df3c4dSNobuhiro Iwamatsu 2946d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 29473ab4827cSWolfgang Denk @mkdir -p $(obj)include 2948210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 294991c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se 29507a8e9bedSwdenk 2951699f0512SWolfgang Denkr2dplus_config : unconfig 29523ab4827cSWolfgang Denk @mkdir -p $(obj)include 2953699f0512SWolfgang Denk @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h 2954699f0512SWolfgang Denk @./mkconfig -a $(@:_config=) sh sh4 r2dplus 2955c2042f59Sgoda.yusuke 2956c133c1fbSYusuke Godar7780mp_config: unconfig 29573ab4827cSWolfgang Denk @mkdir -p $(obj)include 29583ab4827cSWolfgang Denk @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h 2959c133c1fbSYusuke Goda @./mkconfig -a $(@:_config=) sh sh4 r7780mp 2960c133c1fbSYusuke Goda 29617faddaecSNobuhiro Iwamatsush7763rdp_config : unconfig 29623ab4827cSWolfgang Denk @mkdir -p $(obj)include 29633ab4827cSWolfgang Denk @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h 29647faddaecSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp 29657faddaecSNobuhiro Iwamatsu 2966c2f02da2SDaniel Hellstrom#======================================================================== 2967c2f02da2SDaniel Hellstrom# SPARC 2968c2f02da2SDaniel Hellstrom#======================================================================== 2969699f0512SWolfgang Denk 29701e9a164eSDaniel Hellstrom######################################################################### 29711e9a164eSDaniel Hellstrom## LEON3 29721e9a164eSDaniel Hellstrom######################################################################### 2973c2f02da2SDaniel Hellstrom 297471d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board 297571d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig 297671d7e4c0SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler 297771d7e4c0SDaniel Hellstrom 29786ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system 29796ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig 29806ed8a43aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler 29816ed8a43aSDaniel Hellstrom 29826940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS 29836940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60. 29846940383dSDaniel Hellstromgr_ep2s60_config: unconfig 29856940383dSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler 29866940383dSDaniel Hellstrom 2987823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator 2988823edd8aSDaniel Hellstromgrsim_config : unconfig 2989823edd8aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler 2990823edd8aSDaniel Hellstrom 29917ebf7443Swdenk######################################################################### 2992b330990cSDaniel Hellstrom## LEON2 2993b330990cSDaniel Hellstrom######################################################################### 2994b330990cSDaniel Hellstrom 2995ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator 2996ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig 2997ab68f921SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler 2998ab68f921SDaniel Hellstrom 29997ebf7443Swdenk######################################################################### 30007ebf7443Swdenk######################################################################### 30017ebf7443Swdenk######################################################################### 300285ec0bccSwdenk 30033e38691eSwdenkclean: 3004f9301e1cSWolfgang Denk @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \ 3005f9301e1cSWolfgang Denk $(obj)examples/hello_world $(obj)examples/interrupt \ 3006f9301e1cSWolfgang Denk $(obj)examples/mem_to_mem_idma2intr \ 3007f9301e1cSWolfgang Denk $(obj)examples/sched $(obj)examples/smc91111_eeprom \ 3008f9301e1cSWolfgang Denk $(obj)examples/test_burst $(obj)examples/timer 3009f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 3010f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 3011f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 3012f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 3013f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 3014f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 3015f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 3016f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 3017f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 3018f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 3019f9301e1cSWolfgang Denk $(obj)board/{integratorap,integratorcp}/u-boot.lds \ 30209171fc81SMike Frysinger $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \ 30219171fc81SMike Frysinger $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] 3022dc7746d8SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 3023dc7746d8SWolfgang Denk @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map} 30241bb707c3SKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map} 3025f9301e1cSWolfgang Denk @rm -f $(obj)api_examples/demo $(VERSION_FILE) 3026ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 30277ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 30287ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 30297ebf7443Swdenk | xargs rm -f 30307ebf7443Swdenk 30317ebf7443Swdenkclobber: clean 3032ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 30334c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 30344c0d4c3bSwdenk -print0 \ 30354c0d4c3bSwdenk | xargs -0 rm -f 3036ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 30375013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 3038ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 3039766529fcSBartlomiej Sieka @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes} 304089cdab78SMike Frysinger @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h} 30417e492d82SMarian Balakowicz @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h} 30425013c09fSWolfgang Denk @rm -f $(obj)cpu/mpc824x/bedbug_603e.c 3043ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 3044ae6d1056SWolfgang Denk @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 3045751b9b51SKyungmin Park @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f 3046ae6d1056SWolfgang Denk @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f 30477ebf7443Swdenk 3048f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 30497ebf7443Swdenkmrproper \ 30507ebf7443Swdenkdistclean: clobber unconfig 3051f9328639SMarian Balakowiczelse 3052f9328639SMarian Balakowiczmrproper \ 3053f9328639SMarian Balakowiczdistclean: clobber unconfig 3054ae6d1056SWolfgang Denk rm -rf $(obj)* 3055f9328639SMarian Balakowiczendif 30567ebf7443Swdenk 30577ebf7443Swdenkbackup: 30587ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 30597ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 30607ebf7443Swdenk 30617ebf7443Swdenk######################################################################### 3062