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 26fd7531c1SWolfgang DenkSUBLEVEL = 3 27*6adf61dcSWolfgang DenkEXTRAVERSION = -rc3 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 22359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a 22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 2278e585f02STsiChung LiewLIBS += drivers/net/libnet.a 2282439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a 22993a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 23073646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 23104a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2327737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2337737d5c6SDave LiuLIBS += drivers/qe/qe.a 2347737d5c6SDave Liuendif 235da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 236da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 237da9d4610SAndy Flemingendif 23859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2398e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a 24159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 2427ebf7443SwdenkLIBS += common/libcommon.a 2437651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 244500856ebSRafal JaworowskiLIBS += api/libapi.a 2452d2b994aSYuri TikhonovLIBS += post/libpost.a 246f9328639SMarian Balakowicz 247f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 248019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE) 249a8c7c708Swdenk 250de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 251de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 252de109d90SWolfgang Denk 2534f7cb08eSwdenk# Add GCC lib 2541a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 2553d3befa7Swdenk 256a8c7c708Swdenk# The "tools" are needed early, so put this first 257a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 258a8c7c708SwdenkSUBDIRS = tools \ 2590dc1fc22SRafal Jaworowski examples \ 2600dc1fc22SRafal Jaworowski api_examples 261500856ebSRafal Jaworowski 262b028f715Swdenk.PHONY : $(SUBDIRS) 263a8c7c708Swdenk 264887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 265887e2ec9SStefan RoeseNAND_SPL = nand_spl 266887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 267887e2ec9SStefan Roeseendif 268887e2ec9SStefan Roese 269751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 270751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 271751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 272751b9b51SKyungmin Parkendif 273751b9b51SKyungmin Park 274f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 275de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 276f9328639SMarian Balakowicz 2777ebf7443Swdenk######################################################################### 278bdccc4feSwdenk######################################################################### 2797ebf7443Swdenk 280751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 28194a91e24SMike Frysingerifeq ($(ARCH),blackfin) 28294a91e24SMike FrysingerALL += $(obj)u-boot.ldr 28394a91e24SMike Frysingerendif 2847ebf7443Swdenk 285bdccc4feSwdenkall: $(ALL) 2867ebf7443Swdenk 287f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2886310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2896310eb9dSwdenk 290f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 2917ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 2927ebf7443Swdenk 293f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 2947ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 2957ebf7443Swdenk 29694a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 29794a91e24SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS) 29894a91e24SMike Frysinger 29994a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 30094a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 30194a91e24SMike Frysinger 30294a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 30394a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 30494a91e24SMike Frysinger 305f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 306bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 307bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 308881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 309bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 310bdccc4feSwdenk -d $< $@ 311bdccc4feSwdenk 312566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 31301159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 314566a494fSHeiko Schocher 315f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3167ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3177ebf7443Swdenk 318de109d90SWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) 319de109d90SWolfgang Denk UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 320de109d90SWolfgang Denk sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 321f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 322f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 323b2184c31Swdenk -Map u-boot.map -o u-boot 3247ebf7443Swdenk 32588f72527SJohannes Stezenbach$(OBJS): depend $(obj)include/autoconf.mk 326f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 327f9328639SMarian Balakowicz 32888f72527SJohannes Stezenbach$(LIBS): depend $(obj)include/autoconf.mk 329f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 330a8c7c708Swdenk 331de109d90SWolfgang Denk$(LIBBOARD): depend $(LIBS) $(obj)include/autoconf.mk 332de109d90SWolfgang Denk $(MAKE) -C $(dir $(subst $(obj),,$@)) 333de109d90SWolfgang Denk 33488f72527SJohannes Stezenbach$(SUBDIRS): depend $(obj)include/autoconf.mk 335b028f715Swdenk $(MAKE) -C $@ all 3367ebf7443Swdenk 337f65c9812SMike Frysinger$(LDSCRIPT): depend $(obj)include/autoconf.mk 338f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 339f65c9812SMike Frysinger 340dd531aacSWolfgang Denk$(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3418318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 342887e2ec9SStefan Roese 343dd531aacSWolfgang Denk$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3448318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 345887e2ec9SStefan Roese 346751b9b51SKyungmin Park$(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3471bb707c3SKyungmin Park $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all 348751b9b51SKyungmin Park 349751b9b51SKyungmin Park$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3501bb707c3SKyungmin Park $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all 351751b9b51SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 3521bb707c3SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin 353751b9b51SKyungmin Park 354ae6d1056SWolfgang Denk$(VERSION_FILE): 355aa737945SMike Frysinger @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 356aa737945SMike Frysinger '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \ 357aa737945SMike Frysinger ) > $@.tmp 3580ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 359881a87ecSWolfgang Denk 3608f713fdfSdzugdbtools: 361f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 362f9328639SMarian Balakowicz 363f9328639SMarian Balakowiczupdater: 364f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 365f9328639SMarian Balakowicz 366f9328639SMarian Balakowiczenv: 36764b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 3688f713fdfSdzu 369ae6d1056SWolfgang Denkdepend dep: $(VERSION_FILE) 370f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 3717ebf7443Swdenk 372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR) 374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU) 375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH) 376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs 377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat 378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos 379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2 380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net 381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk 382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common 383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator 384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block 385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon 386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c 387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input 388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc 389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd 390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand 391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy 392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand 393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net 394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin 395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci 396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia 397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe 398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc 399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial 40004a9e118SBen WarrenTAG_SUBDIRS += drivers/spi 401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb 402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video 403a340c325SJean-Christophe PLAGNIOL-VILLARD 404f9328639SMarian Balakowicztags ctags: 405ae6d1056SWolfgang Denk ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 40688fed9a1SWolfgang Denk -name '*.[ch]' -print` 4077ebf7443Swdenk 4087ebf7443Swdenketags: 409ae6d1056SWolfgang Denk etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 41088fed9a1SWolfgang Denk -name '*.[ch]' -print` 411ffda586fSLi Yangcscope: 412ffda586fSLi Yang find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \ 413ffda586fSLi Yang > cscope.files 414ffda586fSLi Yang cscope -b -q -k 4157ebf7443Swdenk 416f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 4177ebf7443Swdenk @$(NM) $< | \ 4187ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 419f9328639SMarian Balakowicz sort > $(obj)System.map 4207ebf7443Swdenk 4212f155f6cSGrant Likely# 4222f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4232f155f6cSGrant Likely# 4242f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4252f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4262f155f6cSGrant Likely# to regenerate the autoconf.mk file. 427ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE) 428ae6d1056SWolfgang Denk @$(XECHO) Generating include/autoconf.mk ; \ 42916fe7775SMike Frysinger set -e ; \ 430ae6d1056SWolfgang Denk : Generate the dependancies ; \ 431c3aafd8cSVlad Lungu $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \ 432ae6d1056SWolfgang Denk : Extract the config macros ; \ 433ae6d1056SWolfgang Denk $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@ 4342f155f6cSGrant Likely 435ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep 4362f155f6cSGrant Likely 4377ebf7443Swdenk######################################################################### 438ae6d1056SWolfgang Denkelse # !config.mk 439f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 440f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 441ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \ 442ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map: 4437ebf7443Swdenk @echo "System not configured - see README" >&2 4447ebf7443Swdenk @ exit 1 445ae6d1056SWolfgang Denkendif # config.mk 4467ebf7443Swdenk 4474e53a258SWolfgang Denk.PHONY : CHANGELOG 4484e53a258SWolfgang DenkCHANGELOG: 449b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 450b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4514e53a258SWolfgang Denk 4527ebf7443Swdenk######################################################################### 4537ebf7443Swdenk 4547ebf7443Swdenkunconfig: 455887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4562f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4572f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4587ebf7443Swdenk 4597ebf7443Swdenk#======================================================================== 4607ebf7443Swdenk# PowerPC 4617ebf7443Swdenk#======================================================================== 4620db5bca8Swdenk 4630db5bca8Swdenk######################################################################### 4640db5bca8Swdenk## MPC5xx Systems 4650db5bca8Swdenk######################################################################### 4660db5bca8Swdenk 4675e5f9ed2Swdenkcanmb_config: unconfig 468f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 4695e5f9ed2Swdenk 4700db5bca8Swdenkcmi_mpc5xx_config: unconfig 471f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 4720db5bca8Swdenk 473b6e4c403SwdenkPATI_config: unconfig 474f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 475b6e4c403Swdenk 4767ebf7443Swdenk######################################################################### 477945af8d7Swdenk## MPC5xxx Systems 478945af8d7Swdenk######################################################################### 479a87589daSwdenk 480dafba16eSWolfgang Denkaev_config: unconfig 481f9328639SMarian Balakowicz @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 482dafba16eSWolfgang Denk 4836ca24c64Sdzu@denx.deBC3450_config: unconfig 484f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 4856ca24c64Sdzu@denx.de 4865e4b3361SStefan Roesecpci5200_config: unconfig 487f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 4885e4b3361SStefan Roese 489a87589daSwdenkhmi1001_config: unconfig 490f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 491a87589daSwdenk 492e35745bbSwdenkLite5200_config \ 493e35745bbSwdenkLite5200_LOWBOOT_config \ 494e35745bbSwdenkLite5200_LOWBOOT08_config \ 495e35745bbSwdenkicecube_5200_config \ 496e35745bbSwdenkicecube_5200_LOWBOOT_config \ 497e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 498b2001f27Swdenkicecube_5200_DDR_config \ 49979d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 50079d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 501e35745bbSwdenkicecube_5100_config: unconfig 502f9328639SMarian Balakowicz @mkdir -p $(obj)include 503f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 50417d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 50517d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 506f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 507f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 50817d704ebSwdenk fi ; \ 509ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5105cf9da48Swdenk } 5115cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 512f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 5135cf9da48Swdenk echo "... with 8 MB flash only" ; \ 514ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5155cf9da48Swdenk } 516b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 517f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 518ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 519b2001f27Swdenk } 520d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 521f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 522ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 523d4ca31c4Swdenk } 524a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 525f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 526ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 527945af8d7Swdenk } 528f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 529945af8d7Swdenk 5302605e90bSHeiko Schocherjupiter_config: unconfig 5312605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 5322605e90bSHeiko Schocher 5334707fb50SBartlomiej Siekav38b_config: unconfig 53490b1b2d6SGrant Likely @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 5354707fb50SBartlomiej Sieka 536138ff60cSwdenkinka4x0_config: unconfig 537f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 538138ff60cSwdenk 53909e4b0c5SWolfgang Denklite5200b_config \ 540d3832e8fSDomen Puncerlite5200b_PM_config \ 54109e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 542f9328639SMarian Balakowicz @mkdir -p $(obj)include 543f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 544f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 545ae6d1056SWolfgang Denk @ $(XECHO) "... DDR memory revision" 546f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 547f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 548d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 549d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 550ae6d1056SWolfgang Denk $(XECHO) "... with power management (low-power mode) support" ; \ 551d3832e8fSDomen Puncer } 55209e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 553f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 554ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 55509e4b0c5SWolfgang Denk } 556ae6d1056SWolfgang Denk @ $(XECHO) "... with MPC5200B processor" 557f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 55809e4b0c5SWolfgang Denk 559f1ee9825SStefan Roesemcc200_config \ 560ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 561ed1cf845SWolfgang Denkmcc200_highboot_config \ 562ed1cf845SWolfgang Denkmcc200_COM12_config \ 563ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 564113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 565113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 566ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 567ed1cf845SWolfgang Denkprs200_config \ 568ed1cf845SWolfgang Denkprs200_DDR_config \ 569ed1cf845SWolfgang Denkprs200_highboot_config \ 570ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 571f9328639SMarian Balakowicz @mkdir -p $(obj)include 572f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 5734819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 574ae6d1056SWolfgang Denk { $(XECHO) "... with lowboot configuration" ; \ 575f1ee9825SStefan Roese } 5764819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 577f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 578ae6d1056SWolfgang Denk $(XECHO) "... with highboot configuration" ; \ 5794819fad9SWolfgang Denk } 5804819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 581ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 582ed1cf845SWolfgang Denk then \ 583ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 584ed1cf845SWolfgang Denk else \ 585ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 586ed1cf845SWolfgang Denk then \ 587ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 588ed1cf845SWolfgang Denk else \ 589f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 590ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 591ed1cf845SWolfgang Denk fi; \ 592ed1cf845SWolfgang Denk fi; \ 5934819fad9SWolfgang Denk } 5944819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 595f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 596ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 5974819fad9SWolfgang Denk } 598463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 599f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 600ae6d1056SWolfgang Denk $(XECHO) "... with console on COM12" ; \ 601463764c8SWolfgang Denk } 602ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 603f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 604ed1cf845SWolfgang Denk } 605f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 60686ea5f93SWolfgang Denk 6078b7d1f0aSStefan Roesemecp5200_config: unconfig 608ae6d1056SWolfgang Denk @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 6098b7d1f0aSStefan Roese 6106341d9d7SHeiko Schochermunices_config: unconfig 611ae6d1056SWolfgang Denk @$(MKCONFIG) munices ppc mpc5xxx munices 6126341d9d7SHeiko Schocher 61391c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config: unconfig 614f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 615df04a3dfSWolfgang Denk 6165e4b3361SStefan Roesepf5200_config: unconfig 617f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 6185e4b3361SStefan Roese 61989394047SwdenkPM520_config \ 62089394047SwdenkPM520_DDR_config \ 62189394047SwdenkPM520_ROMBOOT_config \ 62289394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 623f9328639SMarian Balakowicz @mkdir -p $(obj)include 62489394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 625f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 626ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 62789394047Swdenk } 62889394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 629f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 630ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 63189394047Swdenk } 632f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 63389394047Swdenk 6346624b687SWolfgang Denksmmaco4_config: unconfig 635f9328639SMarian Balakowicz @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 6369cdc8386SWolfgang Denk 63786b116b1SBartlomiej Siekacm5200_config: unconfig 63891c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200 639fa1df308SBartlomiej Sieka 6409cdc8386SWolfgang Denkspieval_config: unconfig 641f9328639SMarian Balakowicz @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 6429cdc8386SWolfgang Denk 64345a212c4SWolfgang DenkTB5200_B_config \ 644b87dfd28SWolfgang DenkTB5200_config: unconfig 645f9328639SMarian Balakowicz @mkdir -p $(obj)include 64645a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 647f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 648ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200B processor" ; \ 64945a212c4SWolfgang Denk } 650f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 651b87dfd28SWolfgang Denk 652d4ca31c4SwdenkMINI5200_config \ 653d4ca31c4SwdenkEVAL5200_config \ 654d4ca31c4SwdenkTOP5200_config: unconfig 655f9328639SMarian Balakowicz @mkdir -p $(obj)include 656f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 657f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 658d4ca31c4Swdenk 6596c7a1408SwdenkTotal5100_config \ 6606c7a1408SwdenkTotal5200_config \ 6616c7a1408SwdenkTotal5200_lowboot_config \ 6626c7a1408SwdenkTotal5200_Rev2_config \ 6636c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 664f9328639SMarian Balakowicz @mkdir -p $(obj)include 665f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 6666c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 667f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 668ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 6696c7a1408Swdenk } 6706c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 671f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 672ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 6736c7a1408Swdenk } 6746c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 675f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 676ae6d1056SWolfgang Denk $(XECHO) "... revision 1 board" ; \ 6776c7a1408Swdenk } 6786c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 679f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 680ae6d1056SWolfgang Denk $(XECHO) "... revision 2 board" ; \ 6816c7a1408Swdenk } 6826c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 683f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 684ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 6856c7a1408Swdenk } 686f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 6876c7a1408Swdenk 6885196a7a0SWolfgang Denkcam5200_config \ 689d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6905196a7a0SWolfgang Denkfo300_config \ 6915196a7a0SWolfgang DenkMiniFAP_config \ 6925078cce8SWolfgang DenkTQM5200S_config \ 6935078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6945196a7a0SWolfgang DenkTQM5200_B_config \ 6955196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 6965196a7a0SWolfgang DenkTQM5200_config \ 6975196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 698f9328639SMarian Balakowicz @mkdir -p $(obj)include 699f9328639SMarian Balakowicz @mkdir -p $(obj)board/tqm5200 700135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 701f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 702f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 703f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 704ae6d1056SWolfgang Denk $(XECHO) "... TQM5200S on Cam5200" ; \ 7055078cce8SWolfgang Denk } 706d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 707d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 708ae6d1056SWolfgang Denk $(XECHO) "... with NIOS flash driver" ; \ 709d9384de2SMarian Balakowicz } 7106d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 711f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 712ae6d1056SWolfgang Denk $(XECHO) "... TQM5200 on FO300" ; \ 7136d3bc9b8SMarian Balakowicz } 714cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 715f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 716ae6d1056SWolfgang Denk $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 717978b1096SWolfgang Denk } 718cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 719f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 720ae6d1056SWolfgang Denk $(XECHO) "... on a STK52XX.100 base board" ; \ 72156523f12Swdenk } 7225078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 723f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 7245078cce8SWolfgang Denk } 7255078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 726f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 727f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 72845a212c4SWolfgang Denk } 729978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 730f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 731978b1096SWolfgang Denk } 732f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 7336dedf3d4SHeiko Schocheruc101_config: unconfig 7346dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 73553d4a498SBartlomiej Siekamotionpro_config: unconfig 73653d4a498SBartlomiej Sieka @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 73753d4a498SBartlomiej Sieka 73856523f12Swdenk 739945af8d7Swdenk######################################################################### 7408993e54bSRafal Jaworowski## MPC512x Systems 7418993e54bSRafal Jaworowski######################################################################### 7425f91db7fSJohn Rigbyads5121_config \ 7435f91db7fSJohn Rigbyads5121_PCI_config \ 7445f91db7fSJohn Rigby : unconfig 745210ed200SWolfgang Denk @mkdir -p $(obj)include 7465f91db7fSJohn Rigby @if [ "$(findstring _PCI_,$@)" ] ; then \ 7475f91db7fSJohn Rigby echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 7485f91db7fSJohn Rigby $(XECHO) "... with PCI enabled" ; \ 7495f91db7fSJohn Rigby fi 7505f91db7fSJohn Rigby @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121 7518993e54bSRafal Jaworowski 7528993e54bSRafal Jaworowski 7538993e54bSRafal Jaworowski######################################################################### 7547ebf7443Swdenk## MPC8xx Systems 7557ebf7443Swdenk######################################################################### 7567ebf7443Swdenk 7572d24a3a7SwdenkAdder_config \ 7582d24a3a7SwdenkAdder87x_config \ 75926238132SwdenkAdderII_config \ 7602d24a3a7Swdenk : unconfig 761f9328639SMarian Balakowicz @mkdir -p $(obj)include 76226238132Swdenk $(if $(findstring AdderII,$@), \ 763f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 764f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 7652d24a3a7Swdenk 76616c8d5e7SWolfgang DenkAdderUSB_config: unconfig 76791c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder 76816c8d5e7SWolfgang Denk 769180d3f74SwdenkADS860_config \ 770180d3f74SwdenkFADS823_config \ 771180d3f74SwdenkFADS850SAR_config \ 772180d3f74SwdenkMPC86xADS_config \ 7731114257cSwdenkMPC885ADS_config \ 774180d3f74SwdenkFADS860T_config: unconfig 775f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 7767ebf7443Swdenk 7777ebf7443SwdenkAMX860_config : unconfig 778f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 7797ebf7443Swdenk 7807ebf7443Swdenkc2mon_config: unconfig 781f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 7827ebf7443Swdenk 7837ebf7443SwdenkCCM_config: unconfig 784f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 7857ebf7443Swdenk 7867ebf7443Swdenkcogent_mpc8xx_config: unconfig 787f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 7887ebf7443Swdenk 7893bac3513SwdenkELPT860_config: unconfig 790f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 7913bac3513Swdenk 79284c960ceSWolfgang DenkEP88x_config: unconfig 793f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 79484c960ceSWolfgang Denk 7957ebf7443SwdenkESTEEM192E_config: unconfig 796f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 7977ebf7443Swdenk 7987ebf7443SwdenkETX094_config : unconfig 799f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 8007ebf7443Swdenk 8017ebf7443SwdenkFLAGADM_config: unconfig 802f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 8037ebf7443Swdenk 8047aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 8057aa78614Swdenk 8067aa78614SwdenkGEN860T_SC_config \ 8077ebf7443SwdenkGEN860T_config: unconfig 808f9328639SMarian Balakowicz @mkdir -p $(obj)include 8097aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 810f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 811ae6d1056SWolfgang Denk $(XECHO) "With reduced H/W feature set (SC)..." ; \ 8127aa78614Swdenk } 813f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 8147ebf7443Swdenk 8157ebf7443SwdenkGENIETV_config: unconfig 816f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 8177ebf7443Swdenk 8187ebf7443SwdenkGTH_config: unconfig 819f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 8207ebf7443Swdenk 8217ebf7443Swdenkhermes_config : unconfig 822f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 8237ebf7443Swdenk 824c40b2956SwdenkHMI10_config : unconfig 825f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 826c40b2956Swdenk 8277ebf7443SwdenkIAD210_config: unconfig 828f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 8297ebf7443Swdenk 8307ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 8317ebf7443Swdenk 8327ebf7443SwdenkICU862_100MHz_config \ 8337ebf7443SwdenkICU862_config: unconfig 834f9328639SMarian Balakowicz @mkdir -p $(obj)include 8357ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 836f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 837ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 8387ebf7443Swdenk } 839f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 8407ebf7443Swdenk 8417ebf7443SwdenkIP860_config : unconfig 842f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 8437ebf7443Swdenk 8447ebf7443SwdenkIVML24_256_config \ 8457ebf7443SwdenkIVML24_128_config \ 8467ebf7443SwdenkIVML24_config: unconfig 847f9328639SMarian Balakowicz @mkdir -p $(obj)include 8487ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 849f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 8507ebf7443Swdenk } 8517ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 852f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 8537ebf7443Swdenk } 8547ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 855f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 8567ebf7443Swdenk } 857f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 8587ebf7443Swdenk 8597ebf7443SwdenkIVMS8_256_config \ 8607ebf7443SwdenkIVMS8_128_config \ 8617ebf7443SwdenkIVMS8_config: unconfig 862f9328639SMarian Balakowicz @mkdir -p $(obj)include 8637ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 864f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 8657ebf7443Swdenk } 8667ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 867f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 8687ebf7443Swdenk } 8697ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 870f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 8717ebf7443Swdenk } 872f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 8737ebf7443Swdenk 87456f94be3SwdenkKUP4K_config : unconfig 875f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 8760608e04dSwdenk 8770608e04dSwdenkKUP4X_config : unconfig 878f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 87956f94be3Swdenk 8807ebf7443SwdenkLANTEC_config : unconfig 881f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 8827ebf7443Swdenk 8837ebf7443Swdenklwmon_config: unconfig 884f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 8857ebf7443Swdenk 8867ebf7443SwdenkMBX_config \ 8877ebf7443SwdenkMBX860T_config: unconfig 888f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 8897ebf7443Swdenk 890381e4e63SHeiko Schochermgsuvd_config: unconfig 891381e4e63SHeiko Schocher @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd 892381e4e63SHeiko Schocher 8937ebf7443SwdenkMHPC_config: unconfig 894f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 8957ebf7443Swdenk 8967ebf7443SwdenkMVS1_config : unconfig 897f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 8987ebf7443Swdenk 899993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 900993cad93Swdenk 901993cad93SwdenkNETVIA_V2_config \ 9027ebf7443SwdenkNETVIA_config: unconfig 903f9328639SMarian Balakowicz @mkdir -p $(obj)include 904993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 905f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 906ae6d1056SWolfgang Denk $(XECHO) "... Version 1" ; \ 907993cad93Swdenk } 908993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 909f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 910ae6d1056SWolfgang Denk $(XECHO) "... Version 2" ; \ 911993cad93Swdenk } 912f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 9137ebf7443Swdenk 914c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 915c26e454dSwdenk 916c26e454dSwdenkNETPHONE_V2_config \ 91704a85b3bSwdenkNETPHONE_config: unconfig 918f9328639SMarian Balakowicz @mkdir -p $(obj)include 919c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 920f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 921c26e454dSwdenk } 922c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 923f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 924c26e454dSwdenk } 925f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 92604a85b3bSwdenk 92779fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 92804a85b3bSwdenk 92979fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 93079fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 93179fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 93279fa88f3SwdenkNETTA_SWAPHOOK_config \ 93379fa88f3SwdenkNETTA_ISDN_6412_config \ 93404a85b3bSwdenkNETTA_ISDN_config \ 93579fa88f3SwdenkNETTA_6412_config \ 93604a85b3bSwdenkNETTA_config: unconfig 937f9328639SMarian Balakowicz @mkdir -p $(obj)include 93879fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 939f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 94004a85b3bSwdenk } 94179fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 942f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 94379fa88f3Swdenk } 94479fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 945f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 94679fa88f3Swdenk } 94779fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 948f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 94979fa88f3Swdenk } 95079fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 951f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 95279fa88f3Swdenk } 95379fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 954f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 95579fa88f3Swdenk } 956f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 95704a85b3bSwdenk 95879fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 95979fa88f3Swdenk 96079fa88f3SwdenkNETTA2_V2_config \ 96179fa88f3SwdenkNETTA2_config: unconfig 962f9328639SMarian Balakowicz @mkdir -p $(obj)include 96379fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 964f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 96579fa88f3Swdenk } 96679fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 967f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 96879fa88f3Swdenk } 969f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 97079fa88f3Swdenk 971a367d426Sdzu@denx.deNC650_Rev1_config \ 972a367d426Sdzu@denx.deNC650_Rev2_config \ 973a367d426Sdzu@denx.deCP850_config: unconfig 974f9328639SMarian Balakowicz @mkdir -p $(obj)include 975a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 976f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 977f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 978a367d426Sdzu@denx.de } 979a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 980f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 981a367d426Sdzu@denx.de } 982a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 983f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 984a367d426Sdzu@denx.de } 985f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 9867ca202f5Swdenk 9877ebf7443SwdenkNX823_config: unconfig 988f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 9897ebf7443Swdenk 9907ebf7443Swdenkpcu_e_config: unconfig 991f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 9927ebf7443Swdenk 9933bbc899fSwdenkQS850_config: unconfig 994f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9953bbc899fSwdenk 9963bbc899fSwdenkQS823_config: unconfig 997f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9983bbc899fSwdenk 9993bbc899fSwdenkQS860T_config: unconfig 1000f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 10013bbc899fSwdenk 1002da93ed81Swdenkquantum_config: unconfig 1003f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 1004da93ed81Swdenk 10057ebf7443SwdenkR360MPI_config: unconfig 1006f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 10077ebf7443Swdenk 1008682011ffSwdenkRBC823_config: unconfig 1009f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 1010682011ffSwdenk 10117ebf7443SwdenkRPXClassic_config: unconfig 1012f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 10137ebf7443Swdenk 10147ebf7443SwdenkRPXlite_config: unconfig 1015f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 10167ebf7443Swdenk 1017e63c8ee3SwdenkRPXlite_DW_64_config \ 1018e63c8ee3SwdenkRPXlite_DW_LCD_config \ 1019e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 1020e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 1021e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 1022e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 1023e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 1024e63c8ee3SwdenkRPXlite_DW_config: unconfig 1025f9328639SMarian Balakowicz @mkdir -p $(obj)include 1026e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 1027f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1028ae6d1056SWolfgang Denk $(XECHO) "... with 64MHz system clock ..."; \ 1029e63c8ee3Swdenk } 1030e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1031f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1032f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1033ae6d1056SWolfgang Denk $(XECHO) "... with LCD display ..."; \ 1034e63c8ee3Swdenk } 1035e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 1036f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1037ae6d1056SWolfgang Denk $(XECHO) "... with ENV in NVRAM ..."; \ 1038e63c8ee3Swdenk } 1039f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1040e63c8ee3Swdenk 104173a8b27cSwdenkrmu_config: unconfig 1042f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 104373a8b27cSwdenk 10447ebf7443SwdenkRRvision_config: unconfig 1045f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 10467ebf7443Swdenk 10477ebf7443SwdenkRRvision_LCD_config: unconfig 1048f9328639SMarian Balakowicz @mkdir -p $(obj)include 1049f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1050f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1051f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 10527ebf7443Swdenk 10537ebf7443SwdenkSM850_config : unconfig 1054f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 10557ebf7443Swdenk 105691c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config: unconfig 1057f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1058b02d0177SMarkus Klotzbuecher 10597ebf7443SwdenkSPD823TS_config: unconfig 1060f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 10617ebf7443Swdenk 10626bdf4306SWolfgang Denkstxxtc_config: unconfig 1063f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 10646bdf4306SWolfgang Denk 1065dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1066f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1067dc7c9a1aSwdenk 10687ebf7443SwdenkSXNI855T_config: unconfig 1069f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 10707ebf7443Swdenk 1071db2f721fSwdenk# EMK MPC8xx based modules 1072db2f721fSwdenkTOP860_config: unconfig 1073f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1074db2f721fSwdenk 10757ebf7443Swdenk# Play some tricks for configuration selection 1076e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1077e9132ea9Swdenk# and only 823 boards may have LCD support 1078e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 10797ebf7443Swdenk 10807ebf7443SwdenkFPS850L_config \ 1081384ae025SwdenkFPS860L_config \ 1082f12e568cSwdenkNSCU_config \ 10837ebf7443SwdenkTQM823L_config \ 10847ebf7443SwdenkTQM823L_LCD_config \ 10857ebf7443SwdenkTQM850L_config \ 10867ebf7443SwdenkTQM855L_config \ 10877ebf7443SwdenkTQM860L_config \ 1088d126bfbdSwdenkTQM862L_config \ 1089ae3af05eSwdenkTQM823M_config \ 1090ae3af05eSwdenkTQM850M_config \ 1091f12e568cSwdenkTQM855M_config \ 1092f12e568cSwdenkTQM860M_config \ 1093f12e568cSwdenkTQM862M_config \ 10948cba090cSWolfgang DenkTQM866M_config \ 1095090eb735SMarkus KlotzbuecherTQM885D_config \ 1096efc6f447SGuennadi LiakhovetskiTK885D_config \ 10978cba090cSWolfgang Denkvirtlab2_config: unconfig 1098f9328639SMarian Balakowicz @mkdir -p $(obj)include 10997ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1100f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1101f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1102ae6d1056SWolfgang Denk $(XECHO) "... with LCD display" ; \ 11037ebf7443Swdenk } 1104f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 11057ebf7443Swdenk 11067ebf7443SwdenkTTTech_config: unconfig 1107f9328639SMarian Balakowicz @mkdir -p $(obj)include 1108f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1109f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1110f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 11117ebf7443Swdenk 1112ec0aee7bSwdenkuc100_config : unconfig 1113f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1114f7d1572bSwdenk 1115608c9146Swdenkv37_config: unconfig 1116f9328639SMarian Balakowicz @mkdir -p $(obj)include 1117f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1118f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1119f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1120608c9146Swdenk 112191e940d9Sdzuwtk_config: unconfig 1122f9328639SMarian Balakowicz @mkdir -p $(obj)include 1123f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1124f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1125f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 112691e940d9Sdzu 11277ebf7443Swdenk######################################################################### 11287ebf7443Swdenk## PPC4xx Systems 11297ebf7443Swdenk######################################################################### 1130e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 11317ebf7443Swdenk 113216c0cc1cSStefan Roeseacadia_config: unconfig 113316c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 113416c0cc1cSStefan Roese 1135c440bfe6SStefan Roeseacadia_nand_config: unconfig 113663e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 113763e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1138c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1139c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1140c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1141c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1142c440bfe6SStefan Roese 11437ebf7443SwdenkADCIOP_config: unconfig 1144f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 11457ebf7443Swdenk 1146899620c2SStefan Roesealpr_config: unconfig 114735d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1148899620c2SStefan Roese 11497521af1cSWolfgang DenkAP1000_config:unconfig 1150f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 11517521af1cSWolfgang Denk 1152c419d1d6SstroeseAPC405_config: unconfig 1153f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1154c419d1d6Sstroese 11557ebf7443SwdenkAR405_config: unconfig 1156f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 11577ebf7443Swdenk 1158549826eaSstroeseASH405_config: unconfig 1159f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1160549826eaSstroese 11618a316c9bSStefan Roesebamboo_config: unconfig 1162f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 11638a316c9bSStefan Roese 1164cf959c7dSStefan Roesebamboo_nand_config: unconfig 116563e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 116663e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1167cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1168f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1169cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1170cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1171cf959c7dSStefan Roese 11728a316c9bSStefan Roesebubinga_config: unconfig 1173f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1174549826eaSstroese 11757ebf7443SwdenkCANBT_config: unconfig 1176f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 11777ebf7443Swdenk 11784c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images 11794c9e8557SStefan Roesecanyonlands_config \ 11804c9e8557SStefan Roeseglacier_config: unconfig 11814c9e8557SStefan Roese @mkdir -p $(obj)include 11824c9e8557SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 11834c9e8557SStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 11844c9e8557SStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 1185c813f1f8SStefan Roese 1186fe7c0db6SStefan Roesecanyonlands_nand_config \ 1187fe7c0db6SStefan Roeseglacier_nand_config: unconfig 118871665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 118971665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 119071665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1191fe7c0db6SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 1192fe7c0db6SStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 119371665ebfSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 119471665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 119571665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 119671665ebfSStefan Roese 11971d6f9720SwdenkCATcenter_config \ 11981d6f9720SwdenkCATcenter_25_config \ 11991d6f9720SwdenkCATcenter_33_config: unconfig 1200f9328639SMarian Balakowicz @mkdir -p $(obj)include 1201f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1202f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 12031d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1204f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1205ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 12061d6f9720Swdenk } 12071d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1208f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1209ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 12101d6f9720Swdenk } 1211f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 121210767ccbSwdenk 12137644f16fSStefan RoeseCPCI2DP_config: unconfig 1214f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 12157644f16fSStefan Roese 12167ebf7443SwdenkCPCI405_config \ 1217549826eaSstroeseCPCI4052_config \ 1218c419d1d6SstroeseCPCI405DT_config \ 1219549826eaSstroeseCPCI405AB_config: unconfig 1220f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1221f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 12227ebf7443Swdenk 12237ebf7443SwdenkCPCIISER4_config: unconfig 1224f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 12257ebf7443Swdenk 12267ebf7443SwdenkCRAYL1_config: unconfig 1227f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 12287ebf7443Swdenk 1229cd0a9de6Swdenkcsb272_config: unconfig 1230f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1231cd0a9de6Swdenk 1232aa245090Swdenkcsb472_config: unconfig 1233f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1234aa245090Swdenk 12357ebf7443SwdenkDASA_SIM_config: unconfig 1236f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 12377ebf7443Swdenk 123872cd5aa7SstroeseDP405_config: unconfig 1239f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 124072cd5aa7Sstroese 12417ebf7443SwdenkDU405_config: unconfig 1242f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 12437ebf7443Swdenk 12441a3ac86bSMatthias FuchsDU440_config: unconfig 12451a3ac86bSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 12461a3ac86bSMatthias Fuchs 12478a316c9bSStefan Roeseebony_config: unconfig 1248f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 12497ebf7443Swdenk 12507ebf7443SwdenkERIC_config: unconfig 1251f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 12527ebf7443Swdenk 1253d1cbe85bSwdenkEXBITGEN_config: unconfig 1254f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1255d1cbe85bSwdenk 1256c419d1d6SstroeseG2000_config: unconfig 1257f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1258c419d1d6Sstroese 1259ac982ea5SNiklaus Gigerhcu4_config: unconfig 1260b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 126135d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1262ac982ea5SNiklaus Giger 1263ac982ea5SNiklaus Gigerhcu5_config: unconfig 1264b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 126535d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1266ac982ea5SNiklaus Giger 1267c419d1d6SstroeseHH405_config: unconfig 1268f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1269c419d1d6Sstroese 127072cd5aa7SstroeseHUB405_config: unconfig 1271f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 127272cd5aa7Sstroese 1273db01a2eaSwdenkJSE_config: unconfig 1274f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1275db01a2eaSwdenk 1276b79316f2SStefan RoeseKAREF_config: unconfig 1277f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1278b79316f2SStefan Roese 12794745acaaSStefan Roesekatmai_config: unconfig 12804745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 12814745acaaSStefan Roese 1282353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1283353f2688SStefan Roesekilauea_config \ 1284353f2688SStefan Roesehaleakala_config: unconfig 1285353f2688SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1286566806caSStefan Roese 12873d6cb3b2SStefan Roesekilauea_nand_config \ 12883d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 12893d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 12903d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 12913d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 12923d6cb3b2SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 12933d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 12943d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 12953d6cb3b2SStefan Roese 1296c591dffeSLarry Johnsonkorat_config: unconfig 1297c591dffeSLarry Johnson @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1298c591dffeSLarry Johnson 12996e7fb6eaSStefan Roeseluan_config: unconfig 1300f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 13016e7fb6eaSStefan Roese 1302b765ffb7SStefan Roeselwmon5_config: unconfig 1303b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1304b765ffb7SStefan Roese 1305211ea91aSStefan Roesemakalu_config: unconfig 1306211ea91aSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1307211ea91aSStefan Roese 1308b05f3543SNiklaus Gigermcu25_config: unconfig 1309b05f3543SNiklaus Giger @mkdir -p $(obj)board/netstal/common 1310b05f3543SNiklaus Giger @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal 1311b05f3543SNiklaus Giger 1312b79316f2SStefan RoeseMETROBOX_config: unconfig 1313f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1314b79316f2SStefan Roese 13157ebf7443SwdenkMIP405_config: unconfig 1316f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 13177ebf7443Swdenk 1318f3e0de60SwdenkMIP405T_config: unconfig 1319f9328639SMarian Balakowicz @mkdir -p $(obj)include 1320f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1321ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1322f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1323f3e0de60Swdenk 13247ebf7443SwdenkML2_config: unconfig 1325f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 13267ebf7443Swdenk 1327028ab6b5Swdenkml300_config: unconfig 1328f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1329028ab6b5Swdenk 13308a316c9bSStefan Roeseocotea_config: unconfig 1331f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 13320e6d798cSwdenk 13337ebf7443SwdenkOCRTC_config \ 13347ebf7443SwdenkORSG_config: unconfig 1335f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 13367ebf7443Swdenk 13375568e613SStefan Roesep3p440_config: unconfig 1338f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 13395568e613SStefan Roese 13407ebf7443SwdenkPCI405_config: unconfig 1341f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 13427ebf7443Swdenk 1343a4c8d138SStefan Roesepcs440ep_config: unconfig 1344f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1345a4c8d138SStefan Roese 13467ebf7443SwdenkPIP405_config: unconfig 1347f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 13487ebf7443Swdenk 134972cd5aa7SstroesePLU405_config: unconfig 1350f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 135172cd5aa7Sstroese 1352549826eaSstroesePMC405_config: unconfig 1353f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1354549826eaSstroese 13558ba132caSMatthias FuchsPMC440_config: unconfig 13568ba132caSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 13578ba132caSMatthias Fuchs 1358281e00a3SwdenkPPChameleonEVB_config \ 1359e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1360e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1361e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1362e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1363e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1364e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1365f9328639SMarian Balakowicz @mkdir -p $(obj)include 13661d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1367f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1368ae6d1056SWolfgang Denk $(XECHO) "... BASIC model" ; \ 1369fbe4b5cbSwdenk } 13701d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1371f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1372ae6d1056SWolfgang Denk $(XECHO) "... MEDIUM model" ; \ 1373fbe4b5cbSwdenk } 13741d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1375f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1376ae6d1056SWolfgang Denk $(XECHO) "... HIGH-END model" ; \ 1377fbe4b5cbSwdenk } 1378e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1379f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1380ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 1381e55ca7e2Swdenk } 1382e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1383f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1384ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 1385e55ca7e2Swdenk } 1386f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 138712f34241Swdenk 1388430f1b0fSStefan Roesesbc405_config: unconfig 1389430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1390430f1b0fSStefan Roese 1391430f1b0fSStefan Roesesequoia_config \ 1392854bc8daSStefan Roeserainier_config: unconfig 13938318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1394430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1395430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 13962aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1397854bc8daSStefan Roese 1398430f1b0fSStefan Roesesequoia_nand_config \ 1399854bc8daSStefan Roeserainier_nand_config: unconfig 140063e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 140163e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 14028318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1403430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1404430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1405430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 14068318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 14078318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1408652a10c0Swdenk 14096d3e0107SWolfgang Denksc3_config:unconfig 141035d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1411ca43ba18SHeiko Schocher 1412d4024bb7SJohn Otkentaihu_config: unconfig 1413d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1414d4024bb7SJohn Otken 14155fb692caSStefan Roesetaishan_config: unconfig 14165fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 14175fb692caSStefan Roese 141872cd5aa7SstroeseVOH405_config: unconfig 1419f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 142072cd5aa7Sstroese 1421c419d1d6SstroeseVOM405_config: unconfig 1422f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1423c419d1d6Sstroese 1424feaedfcfSStefan RoeseCMS700_config: unconfig 1425f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1426feaedfcfSStefan Roese 14277ebf7443SwdenkW7OLMC_config \ 14287ebf7443SwdenkW7OLMG_config: unconfig 1429f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 14307ebf7443Swdenk 1431430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1432430f1b0fSStefan Roesewalnut_config \ 1433430f1b0fSStefan Roesesycamore_config: unconfig 1434430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 14357ebf7443Swdenk 1436c419d1d6SstroeseWUH405_config: unconfig 1437f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1438c419d1d6Sstroese 1439ba56f625SwdenkXPEDITE1K_config: unconfig 1440f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1441ba56f625Swdenk 1442430f1b0fSStefan Roeseyosemite_config \ 14438a316c9bSStefan Roeseyellowstone_config: unconfig 1444700200c6SStefan Roese @mkdir -p $(obj)include 1445430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1446430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 14472aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 14488a316c9bSStefan Roese 14496c5879f3SMarian Balakowiczyucca_config: unconfig 1450f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 14516c5879f3SMarian Balakowicz 1452779e9751SStefan Roesezeus_config: unconfig 1453779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1454779e9751SStefan Roese 14557ebf7443Swdenk######################################################################### 1456983fda83Swdenk## MPC8220 Systems 1457983fda83Swdenk######################################################################### 1458dc17fb6dSWolfgang Denk 1459dc17fb6dSWolfgang DenkAlaska8220_config \ 1460dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1461f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1462983fda83Swdenk 146312b43d51Swdenksorcery_config: unconfig 1464f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 146512b43d51Swdenk 1466983fda83Swdenk######################################################################### 14677ebf7443Swdenk## MPC824x Systems 14687ebf7443Swdenk######################################################################### 1469efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 14703bac3513Swdenk 14710332990bSwdenkA3000_config: unconfig 1472f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 14730332990bSwdenk 14748e6f1a8eSWolfgang Denkbarco_config: unconfig 1475f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 14768e6f1a8eSWolfgang Denk 14777ebf7443SwdenkBMW_config: unconfig 1478f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 14797ebf7443Swdenk 14803bac3513SwdenkCPC45_config \ 14813bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1482f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1483f9328639SMarian Balakowicz @cd $(obj)include ; \ 14843bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 14853bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1486ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 14873bac3513Swdenk else \ 14883bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1489ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 14903bac3513Swdenk fi; \ 14913bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 14923bac3513Swdenk 14937ebf7443SwdenkCU824_config: unconfig 1494f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 14957ebf7443Swdenk 14967abf0c58Swdenkdebris_config: unconfig 1497f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 14987abf0c58Swdenk 149980885a9dSwdenkeXalion_config: unconfig 1500f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 150180885a9dSwdenk 1502756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1503f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1504756f586aSwdenk 150553dd6ce4SWolfgang Denkkvme080_config: unconfig 1506f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 150753dd6ce4SWolfgang Denk 150861525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 150961525f2fSGuennadi Liakhovetski# time permits. 151061525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \ 151161525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed 151261525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig 151361525f2fSGuennadi Liakhovetski @mkdir -p $(obj)include 151461525f2fSGuennadi Liakhovetski @case $@ in \ 151561525f2fSGuennadi Liakhovetski *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 151661525f2fSGuennadi Liakhovetski *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 151761525f2fSGuennadi Liakhovetski esac 151861525f2fSGuennadi Liakhovetski @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation 151961525f2fSGuennadi Liakhovetski 15207ebf7443SwdenkMOUSSE_config: unconfig 1521f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 15227ebf7443Swdenk 15237ebf7443SwdenkMUSENKI_config: unconfig 1524f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 15257ebf7443Swdenk 1526b4676a25SwdenkMVBLUE_config: unconfig 1527f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1528b4676a25Swdenk 15297ebf7443SwdenkOXC_config: unconfig 1530f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 15317ebf7443Swdenk 15327ebf7443SwdenkPN62_config: unconfig 1533f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 15347ebf7443Swdenk 15357ebf7443SwdenkSandpoint8240_config: unconfig 1536f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15377ebf7443Swdenk 15387ebf7443SwdenkSandpoint8245_config: unconfig 1539f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15407ebf7443Swdenk 1541466b7410Swdenksbc8240_config: unconfig 1542f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1543466b7410Swdenk 1544d1cbe85bSwdenkSL8245_config: unconfig 1545f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1546d1cbe85bSwdenk 15477ebf7443Swdenkutx8245_config: unconfig 1548f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 15497ebf7443Swdenk 15507ebf7443Swdenk######################################################################### 15517ebf7443Swdenk## MPC8260 Systems 15527ebf7443Swdenk######################################################################### 15537ebf7443Swdenk 155454387ac9Swdenkatc_config: unconfig 1555f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 155654387ac9Swdenk 15577ebf7443Swdenkcogent_mpc8260_config: unconfig 1558f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 15597ebf7443Swdenk 15607ebf7443SwdenkCPU86_config \ 15617ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1562f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1563f9328639SMarian Balakowicz @cd $(obj)include ; \ 15647ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 15657ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1566ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 15677ebf7443Swdenk else \ 15687ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1569ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 15707ebf7443Swdenk fi; \ 15717ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 15727ebf7443Swdenk 1573384cc687SwdenkCPU87_config \ 1574384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1575f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1576f9328639SMarian Balakowicz @cd $(obj)include ; \ 1577384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1578384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1579ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1580384cc687Swdenk else \ 1581384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1582ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1583384cc687Swdenk fi; \ 1584384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1585384cc687Swdenk 1586f901a83bSWolfgang Denkep8248_config \ 1587f901a83bSWolfgang Denkep8248E_config : unconfig 1588f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1589f901a83bSWolfgang Denk 15907ebf7443Swdenkep8260_config: unconfig 1591f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 15927ebf7443Swdenk 15938d4ac794SWolfgang Denkep82xxm_config: unconfig 159490b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 15958d4ac794SWolfgang Denk 15967ebf7443Swdenkgw8260_config: unconfig 1597f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 15987ebf7443Swdenk 15997ebf7443Swdenkhymod_config: unconfig 1600f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 16017ebf7443Swdenk 16029dd41a7bSwdenkIDS8247_config: unconfig 1603f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 16049dd41a7bSwdenk 16057ebf7443SwdenkIPHASE4539_config: unconfig 1606f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 16077ebf7443Swdenk 1608c3c7f861SwdenkISPAN_config \ 1609c3c7f861SwdenkISPAN_REVB_config: unconfig 1610f9328639SMarian Balakowicz @mkdir -p $(obj)include 1611c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1612f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1613c3c7f861Swdenk fi 1614f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1615c3c7f861Swdenk 1616ac9db066SHeiko Schochermgcoge_config : unconfig 1617ac9db066SHeiko Schocher @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge 1618ac9db066SHeiko Schocher 161904a85b3bSwdenkMPC8260ADS_config \ 1620901787d6SwdenkMPC8260ADS_lowboot_config \ 162104a85b3bSwdenkMPC8260ADS_33MHz_config \ 1622901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 162304a85b3bSwdenkMPC8260ADS_40MHz_config \ 1624901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 162504a85b3bSwdenkMPC8272ADS_config \ 1626901787d6SwdenkMPC8272ADS_lowboot_config \ 162704a85b3bSwdenkPQ2FADS_config \ 1628901787d6SwdenkPQ2FADS_lowboot_config \ 162904a85b3bSwdenkPQ2FADS-VR_config \ 1630901787d6SwdenkPQ2FADS-VR_lowboot_config \ 163104a85b3bSwdenkPQ2FADS-ZU_config \ 1632901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 163304a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1634901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 163504a85b3bSwdenk : unconfig 1636f9328639SMarian Balakowicz @mkdir -p $(obj)include 1637b7e24d28SJon Loeliger @mkdir -p $(obj)board/freescale/mpc8260ads 163804a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1639f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1640f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 164104a85b3bSwdenk $(if $(findstring MHz,$@), \ 1642f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 164304a85b3bSwdenk $(if $(findstring VR,$@), \ 1644f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1645901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1646b7e24d28SJon Loeliger { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \ 1647ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 1648901787d6Swdenk } 1649b7e24d28SJon Loeliger @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale 16507ebf7443Swdenk 1651db2f721fSwdenkMPC8266ADS_config: unconfig 1652aa3511e4SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale 1653db2f721fSwdenk 1654efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 165510f67017SwdenkPM825_config \ 1656efa329cbSwdenkPM825_ROMBOOT_config \ 1657efa329cbSwdenkPM825_BIGFLASH_config \ 1658efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 16597ebf7443SwdenkPM826_config \ 1660efa329cbSwdenkPM826_ROMBOOT_config \ 1661efa329cbSwdenkPM826_BIGFLASH_config \ 1662efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1663f9328639SMarian Balakowicz @mkdir -p $(obj)include 1664f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1665efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1666f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 16677ebf7443Swdenk else \ 1668f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1669efa329cbSwdenk fi 1670efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1671ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1672f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1673f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1674efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1675ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1676f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 16777ebf7443Swdenk fi; \ 1678efa329cbSwdenk else \ 1679ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1680efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1681ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1682f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1683f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1684efa329cbSwdenk else \ 1685f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1686efa329cbSwdenk fi; \ 1687efa329cbSwdenk fi 1688f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1689efa329cbSwdenk 1690efa329cbSwdenkPM828_config \ 1691efa329cbSwdenkPM828_PCI_config \ 1692efa329cbSwdenkPM828_ROMBOOT_config \ 1693efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1694f9328639SMarian Balakowicz @mkdir -p $(obj)include 1695f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 169617076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1697f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1698ae6d1056SWolfgang Denk $(XECHO) "... with PCI enabled" ; \ 1699efa329cbSwdenk fi 1700efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1701ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1702f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1703f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1704efa329cbSwdenk fi 1705f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 17067ebf7443Swdenk 17077ebf7443Swdenkppmc8260_config: unconfig 1708f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 17097ebf7443Swdenk 17108b0bfc68SwdenkRattler8248_config \ 17118b0bfc68SwdenkRattler_config: unconfig 1712f9328639SMarian Balakowicz @mkdir -p $(obj)include 17138b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1714f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1715f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 17168b0bfc68Swdenk 17177ebf7443SwdenkRPXsuper_config: unconfig 1718f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 17197ebf7443Swdenk 17207ebf7443Swdenkrsdproto_config: unconfig 1721f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 17227ebf7443Swdenk 17237ebf7443Swdenksacsng_config: unconfig 1724f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 17257ebf7443Swdenk 17267ebf7443Swdenksbc8260_config: unconfig 1727f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 17287ebf7443Swdenk 17297ebf7443SwdenkSCM_config: unconfig 1730f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 17317ebf7443Swdenk 173227b207fdSwdenkTQM8255_AA_config \ 173327b207fdSwdenkTQM8260_AA_config \ 173427b207fdSwdenkTQM8260_AB_config \ 173527b207fdSwdenkTQM8260_AC_config \ 173627b207fdSwdenkTQM8260_AD_config \ 173727b207fdSwdenkTQM8260_AE_config \ 173827b207fdSwdenkTQM8260_AF_config \ 173927b207fdSwdenkTQM8260_AG_config \ 174027b207fdSwdenkTQM8260_AH_config \ 17411f62bc2dSWolfgang DenkTQM8260_AI_config \ 174227b207fdSwdenkTQM8265_AA_config: unconfig 1743f9328639SMarian Balakowicz @mkdir -p $(obj)include 174427b207fdSwdenk @case "$@" in \ 174527b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 174627b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 174727b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 174827b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 174927b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 175027b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 175127b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 175227b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 175327b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 17541f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 175527b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 175627b207fdSwdenk esac; \ 175727b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1758f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 175927b207fdSwdenk fi; \ 1760f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 176127b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 17621aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1763f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1764ae6d1056SWolfgang Denk $(XECHO) "... with L2 Cache support" ; \ 17657ebf7443Swdenk else \ 1766f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1767ae6d1056SWolfgang Denk $(XECHO) "... without L2 Cache support" ; \ 176827b207fdSwdenk fi; \ 17691aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1770f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1771ae6d1056SWolfgang Denk $(XECHO) "... with 60x Bus Mode" ; \ 177227b207fdSwdenk else \ 1773f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1774ae6d1056SWolfgang Denk $(XECHO) "... without 60x Bus Mode" ; \ 17757ebf7443Swdenk fi 1776f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 17777ebf7443Swdenk 1778fa230445SHeiko SchocherTQM8272_config: unconfig 1779210ed200SWolfgang Denk @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 1780fa230445SHeiko Schocher 1781ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1782ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1783f9328639SMarian Balakowicz @mkdir -p $(obj)include 1784f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1785f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1786ba91e26aSwdenk 178754387ac9SwdenkZPC1900_config: unconfig 1788f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 17897aa78614Swdenk 17904e5ca3ebSwdenk######################################################################### 17914e5ca3ebSwdenk## Coldfire 17924e5ca3ebSwdenk######################################################################### 17934e5ca3ebSwdenk 17941552af70STsiChungLiewM52277EVB_config: unconfig 17951552af70STsiChungLiew @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 17961552af70STsiChungLiew 17974a442d31STsiChungLiewM5235EVB_config \ 17984a442d31STsiChungLiewM5235EVB_Flash16_config \ 17994a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 18004a442d31STsiChungLiew @case "$@" in \ 18014a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 18024a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 18034a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 18044a442d31STsiChungLiew esac; \ 18054a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1806ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 18074a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18084a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18094a442d31STsiChungLiew else \ 18104a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18114a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18124a442d31STsiChungLiew fi 18134a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 18144a442d31STsiChungLiew 1815a605aacdSTsiChungLiewM5249EVB_config : unconfig 1816a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1817a605aacdSTsiChungLiew 1818a1436a84STsiChungLiewM5253EVBE_config : unconfig 1819a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1820a1436a84STsiChungLiew 18217481266eSWolfgang Denkcobra5272_config : unconfig 1822f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 18237481266eSWolfgang Denk 18244176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1825f9328639SMarian Balakowicz @mkdir -p $(obj)include 1826f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1827f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1828f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18294176c799SWolfgang Denk 18304176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1831f9328639SMarian Balakowicz @mkdir -p $(obj)include 1832f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1833f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1834f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18354176c799SWolfgang Denk 1836daa6e418SBartlomiej Siekaidmr_config : unconfig 1837daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1838daa6e418SBartlomiej Sieka 18394176c799SWolfgang DenkM5271EVB_config : unconfig 1840f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 18414176c799SWolfgang Denk 18424e5ca3ebSwdenkM5272C3_config : unconfig 1843f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 18444e5ca3ebSwdenk 1845545c8e0aSMatthew FettkeM5275EVB_config : unconfig 1846545c8e0aSMatthew Fettke @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale 1847545c8e0aSMatthew Fettke 18484e5ca3ebSwdenkM5282EVB_config : unconfig 1849f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 18504e5ca3ebSwdenk 1851c419d1d6SstroeseTASREG_config : unconfig 1852f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1853c419d1d6Sstroese 18548e585f02STsiChung LiewM5329AFEE_config \ 18558e585f02STsiChung LiewM5329BFEE_config : unconfig 18568e585f02STsiChung Liew @case "$@" in \ 18578e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 18588e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 18598e585f02STsiChung Liew esac; \ 18608e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1861ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 18628e585f02STsiChung Liew fi 18638e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 18648e585f02STsiChung Liew 1865aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1866aa5f1f9dSTsiChungLiew @case "$@" in \ 1867aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1868aa5f1f9dSTsiChungLiew esac; \ 1869aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1870aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1871aa5f1f9dSTsiChungLiew fi 1872aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1873aa5f1f9dSTsiChungLiew 18748ae158cdSTsiChungLiewM54455EVB_config \ 18758ae158cdSTsiChungLiewM54455EVB_atmel_config \ 18768ae158cdSTsiChungLiewM54455EVB_intel_config \ 18778ae158cdSTsiChungLiewM54455EVB_a33_config \ 18788ae158cdSTsiChungLiewM54455EVB_a66_config \ 18798ae158cdSTsiChungLiewM54455EVB_i33_config \ 18808ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 18818ae158cdSTsiChungLiew @case "$@" in \ 18828ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 18838ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 18848ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 18858ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 18868ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 18878ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 18888ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 18898ae158cdSTsiChungLiew esac; \ 18901aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 18914a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1892e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1893e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1894ae6d1056SWolfgang Denk $(XECHO) "... with INTEL boot..." ; \ 18958ae158cdSTsiChungLiew else \ 18964a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1897e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1898e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1899ae6d1056SWolfgang Denk $(XECHO) "... with ATMEL boot..." ; \ 19008ae158cdSTsiChungLiew fi; \ 19014a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1902ae6d1056SWolfgang Denk $(XECHO) "... with $${FREQ}Hz input clock" 19038ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 19048ae158cdSTsiChungLiew 190557a12720STsiChungLiewM5475AFE_config \ 190657a12720STsiChungLiewM5475BFE_config \ 190757a12720STsiChungLiewM5475CFE_config \ 190857a12720STsiChungLiewM5475DFE_config \ 190957a12720STsiChungLiewM5475EFE_config \ 191057a12720STsiChungLiewM5475FFE_config \ 191157a12720STsiChungLiewM5475GFE_config : unconfig 191257a12720STsiChungLiew @case "$@" in \ 191357a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 191457a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 191557a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 191657a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 191757a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 191857a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 191957a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 192057a12720STsiChungLiew esac; \ 192157a12720STsiChungLiew echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \ 192257a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 192357a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 192457a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 192557a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 192657a12720STsiChungLiew fi; \ 192757a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 192857a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 192957a12720STsiChungLiew fi; \ 193057a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 193157a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 193257a12720STsiChungLiew fi; \ 193357a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 193457a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 193557a12720STsiChungLiew fi 193657a12720STsiChungLiew @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 193757a12720STsiChungLiew 193857a12720STsiChungLiewM5485AFE_config \ 193957a12720STsiChungLiewM5485BFE_config \ 194057a12720STsiChungLiewM5485CFE_config \ 194157a12720STsiChungLiewM5485DFE_config \ 194257a12720STsiChungLiewM5485EFE_config \ 194357a12720STsiChungLiewM5485FFE_config \ 194457a12720STsiChungLiewM5485GFE_config \ 194557a12720STsiChungLiewM5485HFE_config : unconfig 194657a12720STsiChungLiew @case "$@" in \ 194757a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 194857a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 194957a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 195057a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 195157a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 195257a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 195357a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 19544d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 195557a12720STsiChungLiew esac; \ 195657a12720STsiChungLiew echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \ 195757a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 195857a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 195957a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 196057a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 196157a12720STsiChungLiew fi; \ 196257a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 196357a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 196457a12720STsiChungLiew fi; \ 196557a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 196657a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 196757a12720STsiChungLiew fi; \ 196857a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 196957a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 197057a12720STsiChungLiew fi 197157a12720STsiChungLiew @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 197257a12720STsiChungLiew 19737ebf7443Swdenk######################################################################### 1974f046ccd1SEran Liberty## MPC83xx Systems 1975f046ccd1SEran Liberty######################################################################### 1976f046ccd1SEran Liberty 19775c5d3242SKim PhillipsMPC8313ERDB_33_config \ 19785c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 1979cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1980c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 1981ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 1982cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 19835c5d3242SKim Phillips fi ; \ 19845c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1985ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 1986cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 19875c5d3242SKim Phillips fi ; 1988e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 19895c5d3242SKim Phillips 19908bd522ceSDave LiuMPC8315ERDB_config: unconfig 19918bd522ceSDave Liu @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 19928bd522ceSDave Liu 19931c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 19941c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 19951c274c4eSKim Phillips 19964decd84eSKim PhillipsMPC832XEMDS_config \ 19974decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 19984decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1999281df457STony LiMPC832XEMDS_SLAVE_config \ 2000281df457STony LiMPC832XEMDS_ATM_config: unconfig 2001cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2002c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2003ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2004cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20054decd84eSKim Phillips fi ; \ 20064decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2007ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2008cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2009cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20104decd84eSKim Phillips fi ; \ 20114decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 2012ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2013cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2014281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20154decd84eSKim Phillips fi ; \ 20164decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 2017ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2018cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2019281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2020281df457STony Li fi ; \ 2021281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2022ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2023281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2024281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20254decd84eSKim Phillips fi ; 2026e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 2027e6f2e902SMarian Balakowicz 2028991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 2029e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 2030991425feSMarian Balakowicz 20317a78f148STimur TabiMPC8349ITX_config \ 20327a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 20337a78f148STimur TabiMPC8349ITXGP_config: unconfig 20347a78f148STimur Tabi @mkdir -p $(obj)include 2035e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 20367a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 20377a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 2038e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20397a78f148STimur Tabi fi 20407a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2041e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20427a78f148STimur Tabi fi 2043e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 20444decd84eSKim Phillips 20455f820439SDave LiuMPC8360EMDS_config \ 20465f820439SDave LiuMPC8360EMDS_HOST_33_config \ 20475f820439SDave LiuMPC8360EMDS_HOST_66_config \ 2048281df457STony LiMPC8360EMDS_SLAVE_config \ 2049281df457STony LiMPC8360EMDS_ATM_config: unconfig 2050cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2051c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2052ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2053cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20545f820439SDave Liu fi ; \ 20555f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2056ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2057cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2058cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20595f820439SDave Liu fi ; \ 20605f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 2061ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2062cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2063281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20645f820439SDave Liu fi ; \ 20655f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 2066ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2067cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2068281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2069281df457STony Li fi ; \ 2070281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2071ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2072281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2073281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20745f820439SDave Liu fi ; 2075e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 20765f820439SDave Liu 2077fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 2078fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 207991c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 2080fab6f556SAnton Vorontsov @mkdir -p $(obj)include 2081c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2082ae6d1056SWolfgang Denk $(XECHO) -n "... CLKIN 33MHz " ; \ 2083fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2084fab6f556SAnton Vorontsov fi ; 2085fab6f556SAnton Vorontsov @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2086fab6f556SAnton Vorontsov 208719580e66SDave LiuMPC837XEMDS_config \ 208819580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 208919580e66SDave Liu @mkdir -p $(obj)include 2090c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2091ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 209219580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 209319580e66SDave Liu fi ; 209419580e66SDave Liu @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 209519580e66SDave Liu 20965e918a98SKim PhillipsMPC837XERDB_config: unconfig 20975e918a98SKim Phillips @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 20985e918a98SKim Phillips 209991e25769SPaul Gortmakersbc8349_config: unconfig 210091e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 210191e25769SPaul Gortmaker 21024decd84eSKim PhillipsTQM834x_config: unconfig 21034decd84eSKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 21044decd84eSKim Phillips 21052ad6b513STimur Tabi 2106f046ccd1SEran Liberty######################################################################### 210742d1f039Swdenk## MPC85xx Systems 210842d1f039Swdenk######################################################################### 210942d1f039Swdenk 21107bd6104bSrobert lazarskiATUM8548_config: unconfig 21117bd6104bSrobert lazarski @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 21127bd6104bSrobert lazarski 211342d1f039SwdenkMPC8540ADS_config: unconfig 2114c2d943ffSKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 211542d1f039Swdenk 2116b0e32949SLunsheng WangMPC8540EVAL_config \ 2117b0e32949SLunsheng WangMPC8540EVAL_33_config \ 2118b0e32949SLunsheng WangMPC8540EVAL_66_config \ 2119b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 2120b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 2121f9328639SMarian Balakowicz @mkdir -p $(obj)include 2122c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2123ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2124b0e32949SLunsheng Wang else \ 2125f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2126ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2127b0e32949SLunsheng Wang fi ; \ 2128b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 2129f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2130ae6d1056SWolfgang Denk $(XECHO) " slave" ; \ 2131b0e32949SLunsheng Wang else \ 2132ae6d1056SWolfgang Denk $(XECHO) " host" ; \ 2133b0e32949SLunsheng Wang fi 2134f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2135b0e32949SLunsheng Wang 213642d1f039SwdenkMPC8560ADS_config: unconfig 2137870ceac5SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 213842d1f039Swdenk 21397f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 214003f5c550SwdenkMPC8541CDS_config: unconfig 21417f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2142c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21437f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2144ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21457f3f2bd2SRandy Vinson fi 2146415a613bSKumar Gala @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 214703f5c550Swdenk 214881f481caSAndy FlemingMPC8544DS_config: unconfig 214981f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 215081f481caSAndy Fleming 21517f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 2152d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 21537f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2154c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21557f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2156ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21577f3f2bd2SRandy Vinson fi 2158415a613bSKumar Gala @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2159d9b94f28SJon Loeliger 21607f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 216103f5c550SwdenkMPC8555CDS_config: unconfig 21627f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2163c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21647f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2165ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21667f3f2bd2SRandy Vinson fi 2167415a613bSKumar Gala @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 21687abf0c58Swdenk 216967431059SAndy FlemingMPC8568MDS_config: unconfig 2170acbca876SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 217167431059SAndy Fleming 2172384cc687SwdenkPM854_config: unconfig 2173f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2174384cc687Swdenk 2175b20d0032SWolfgang DenkPM856_config: unconfig 2176f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2177b20d0032SWolfgang Denk 2178c15f3120Swdenksbc8540_config \ 2179c15f3120Swdenksbc8540_33_config \ 2180c15f3120Swdenksbc8540_66_config: unconfig 2181f9328639SMarian Balakowicz @mkdir -p $(obj)include 2182c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2183f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2184ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2185c15f3120Swdenk else \ 2186ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2187c15f3120Swdenk fi 2188f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2189c15f3120Swdenk 219011c45ebdSJoe Hammansbc8548_config: unconfig 219111c45ebdSJoe Hamman @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 219211c45ebdSJoe Hamman 2193466b7410Swdenksbc8560_config \ 2194466b7410Swdenksbc8560_33_config \ 2195466b7410Swdenksbc8560_66_config: unconfig 2196f9328639SMarian Balakowicz @mkdir -p $(obj)include 21978b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2198f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2199ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 22008b07a110Swdenk else \ 2201ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 22028b07a110Swdenk fi 2203f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 22048b07a110Swdenk 220503f5c550Swdenkstxgp3_config: unconfig 2206f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 220703f5c550Swdenk 2208ee152983SWolfgang Denkstxssa_config \ 2209ee152983SWolfgang Denkstxssa_4M_config: unconfig 2210ee152983SWolfgang Denk @mkdir -p $(obj)include 2211ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2212ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2213ae6d1056SWolfgang Denk $(XECHO) "... with 4 MiB flash memory" ; \ 2214ee152983SWolfgang Denk fi 2215ee152983SWolfgang Denk @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 221635171dc0SDan Malek 2217d96f41e0SStefan RoeseTQM8540_config \ 2218d96f41e0SStefan RoeseTQM8541_config \ 2219d96f41e0SStefan RoeseTQM8555_config \ 2220f5c5ef4aSwdenkTQM8560_config: unconfig 2221f9328639SMarian Balakowicz @mkdir -p $(obj)include 2222a889bd27SWolfgang Denk @CTYPE=$(subst TQM,,$(@:_config=)); \ 2223ae6d1056SWolfgang Denk $(XECHO) "... TQM"$${CTYPE}; \ 2224f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2225f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2226f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2227f9328639SMarian Balakowicz echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 22288a783a65SGrant Likely echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 2229f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 2230f5c5ef4aSwdenk 223142d1f039Swdenk######################################################################### 2232debb7354SJon Loeliger## MPC86xx Systems 2233debb7354SJon Loeliger######################################################################### 2234debb7354SJon Loeliger 22353c89d754SJon LoeligerMPC8610HPCD_config: unconfig 22363c89d754SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 22373c89d754SJon Loeliger 2238debb7354SJon LoeligerMPC8641HPCN_config: unconfig 22394ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2240debb7354SJon Loeliger 2241c646bba6SJoe Hammansbc8641d_config: unconfig 224291c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d 2243debb7354SJon Loeliger 2244debb7354SJon Loeliger######################################################################### 22457ebf7443Swdenk## 74xx/7xx Systems 22467ebf7443Swdenk######################################################################### 22477ebf7443Swdenk 2248c7de829cSwdenkAmigaOneG3SE_config: unconfig 2249f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2250c7de829cSwdenk 225115647dc7SwdenkBAB7xx_config: unconfig 2252f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 225315647dc7Swdenk 2254c419d1d6SstroeseCPCI750_config: unconfig 2255f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2256c419d1d6Sstroese 22573a473b2aSwdenkDB64360_config: unconfig 2258f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 22593a473b2aSwdenk 22603a473b2aSwdenkDB64460_config: unconfig 2261f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 22623a473b2aSwdenk 226315647dc7SwdenkELPPC_config: unconfig 2264f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 226515647dc7Swdenk 22667ebf7443SwdenkEVB64260_config \ 22677ebf7443SwdenkEVB64260_750CX_config: unconfig 2268f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 22697ebf7443Swdenk 22704c52783bSroy zangmpc7448hpc2_config: unconfig 22717f1d846eSJon Loeliger @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale 22724c52783bSroy zang 227315647dc7SwdenkP3G4_config: unconfig 2274f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 22757ebf7443Swdenk 22761eac2a71SStefan Roesep3m750_config \ 22771eac2a71SStefan Roesep3m7448_config: unconfig 22781eac2a71SStefan Roese @mkdir -p $(obj)include 22791eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 22801eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 22811eac2a71SStefan Roese else \ 22821eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 22831eac2a71SStefan Roese fi 22841eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 22851eac2a71SStefan Roese 22867ebf7443SwdenkPCIPPC2_config \ 22877ebf7443SwdenkPCIPPC6_config: unconfig 2288f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 22897ebf7443Swdenk 229015647dc7SwdenkZUMA_config: unconfig 2291f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 229212f34241Swdenk 2293f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2294f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2295f5e0d039SHeiko Schocher 22967ebf7443Swdenk#======================================================================== 22977ebf7443Swdenk# ARM 22987ebf7443Swdenk#======================================================================== 22997ebf7443Swdenk######################################################################### 23007ebf7443Swdenk## StrongARM Systems 23017ebf7443Swdenk######################################################################### 23027ebf7443Swdenk 2303ea66bc88Swdenkassabet_config : unconfig 2304f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2305ea66bc88Swdenk 23067ebf7443Swdenkdnp1110_config : unconfig 2307f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 23087ebf7443Swdenk 2309855a496fSwdenkgcplus_config : unconfig 2310f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2311855a496fSwdenk 2312855a496fSwdenklart_config : unconfig 2313f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2314855a496fSwdenk 23157ebf7443Swdenkshannon_config : unconfig 2316f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 23177ebf7443Swdenk 23187ebf7443Swdenk######################################################################### 23192e5983d2Swdenk## ARM92xT Systems 23207ebf7443Swdenk######################################################################### 23217ebf7443Swdenk 2322a4b46ed6SUlf Samuelsson######################################################################### 2323a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems 2324a4b46ed6SUlf Samuelsson######################################################################### 232520b197c6SStelian Pop 2326a85f9f21Swdenkat91rm9200dk_config : unconfig 232765230107SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 2328a85f9f21Swdenk 2329a85f9f21Swdenkcmc_pu2_config : unconfig 2330f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2331a85f9f21Swdenk 2332645da510SWolfgang Denkcsb637_config : unconfig 2333f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2334645da510SWolfgang Denk 2335a4b46ed6SUlf Samuelssonkb9202_config : unconfig 2336a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 2337a4b46ed6SUlf Samuelsson 23380e4018d2SWolfgang Denkmp2usb_config : unconfig 2339f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 23400e4018d2SWolfgang Denk 2341ea8d989fSTimo Tuunainenm501sk_config : unconfig 2342ea8d989fSTimo Tuunainen @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 234387cb6862SWolfgang Denk 2344a4b46ed6SUlf Samuelsson######################################################################### 2345a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems 2346a4b46ed6SUlf Samuelsson######################################################################### 2347a4b46ed6SUlf Samuelsson 2348a4b46ed6SUlf Samuelssonat91cap9adk_config : unconfig 2349a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9 2350a4b46ed6SUlf Samuelsson 2351a4b46ed6SUlf Samuelssonat91sam9260ek_config : unconfig 2352a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9 2353a4b46ed6SUlf Samuelsson 235474f4304eSWolfgang Denk######################################################################## 235587cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 235687cb6862SWolfgang Denkintegratorap_config \ 235787cb6862SWolfgang Denkap_config \ 235887cb6862SWolfgang Denkap966_config \ 235987cb6862SWolfgang Denkap922_config \ 236087cb6862SWolfgang Denkap922_XA10_config \ 236187cb6862SWolfgang Denkap7_config \ 236287cb6862SWolfgang Denkap720t_config \ 236387cb6862SWolfgang Denkap920t_config \ 236487cb6862SWolfgang Denkap926ejs_config \ 236587cb6862SWolfgang Denkap946es_config: unconfig 236696782c63SWolfgang Denk @board/integratorap/split_by_variant.sh $@ 23673d3befa7Swdenk 236887cb6862SWolfgang Denkintegratorcp_config \ 236987cb6862SWolfgang Denkcp_config \ 237087cb6862SWolfgang Denkcp920t_config \ 237187cb6862SWolfgang Denkcp926ejs_config \ 237287cb6862SWolfgang Denkcp946es_config \ 237387cb6862SWolfgang Denkcp1136_config \ 237487cb6862SWolfgang Denkcp966_config \ 237587cb6862SWolfgang Denkcp922_config \ 237687cb6862SWolfgang Denkcp922_XA10_config \ 237787cb6862SWolfgang Denkcp1026_config: unconfig 237896782c63SWolfgang Denk @board/integratorcp/split_by_variant.sh $@ 237925d6712aSwdenk 2380f832d8a1Swdenklpd7a400_config \ 2381f832d8a1Swdenklpd7a404_config: unconfig 2382f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 23833d3befa7Swdenk 2384281e00a3Swdenkmx1ads_config : unconfig 2385f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2386281e00a3Swdenk 2387281e00a3Swdenkmx1fs2_config : unconfig 2388f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2389281e00a3Swdenk 2390ac7eb8a3SWolfgang Denknetstar_config: unconfig 2391f4e7cbfcSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm925t netstar 2392ac7eb8a3SWolfgang Denk 23932e5983d2Swdenkomap1510inn_config : unconfig 2394f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 23952e5983d2Swdenk 23961eaeb58eSwdenkomap5912osk_config : unconfig 2397f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 23981eaeb58eSwdenk 2399c74b2108SSergey Kubushyndavinci_dvevm_config : unconfig 2400c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2401c74b2108SSergey Kubushyn 2402c74b2108SSergey Kubushyndavinci_schmoogie_config : unconfig 2403c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2404c74b2108SSergey Kubushyn 2405c74b2108SSergey Kubushyndavinci_sonata_config : unconfig 2406c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2407c74b2108SSergey Kubushyn 2408a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2409a4b46ed6SUlf Samuelsson 241063e73c9aSwdenkomap1610inn_config \ 241163e73c9aSwdenkomap1610inn_cs0boot_config \ 241263e73c9aSwdenkomap1610inn_cs3boot_config \ 24133ff02c27Swdenkomap1610inn_cs_autoboot_config \ 241463e73c9aSwdenkomap1610h2_config \ 241563e73c9aSwdenkomap1610h2_cs0boot_config \ 24163ff02c27Swdenkomap1610h2_cs3boot_config \ 24173ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2418f9328639SMarian Balakowicz @mkdir -p $(obj)include 241963e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2420cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2421ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 24223ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2423cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2424ae6d1056SWolfgang Denk $(XECHO) "... configured for CS_AUTO boot"; \ 242563e73c9aSwdenk else \ 2426cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2427ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 242863e73c9aSwdenk fi; 2429f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 24306f21347dSwdenk 2431a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2432a4b46ed6SUlf Samuelsson 2433a56bd922Swdenkomap730p2_config \ 2434a56bd922Swdenkomap730p2_cs0boot_config \ 2435a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2436f9328639SMarian Balakowicz @mkdir -p $(obj)include 2437a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2438f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2439ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 2440a56bd922Swdenk else \ 2441f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2442ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 2443a56bd922Swdenk fi; 2444f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2445a56bd922Swdenk 244632cb2c70SWolfgang Denksbc2410x_config: unconfig 2447f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 244832cb2c70SWolfgang Denk 2449281e00a3Swdenkscb9328_config : unconfig 2450f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2451281e00a3Swdenk 24527ebf7443Swdenksmdk2400_config : unconfig 2453f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 24547ebf7443Swdenk 24557ebf7443Swdenksmdk2410_config : unconfig 2456f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 24577ebf7443Swdenk 24582d24a3a7SwdenkSX1_config : unconfig 2459f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 24602d24a3a7Swdenk 2461b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 2462a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 2463a4b46ed6SUlf Samuelsson 246443d9616cSwdenktrab_config \ 2465b0639ca3Swdenktrab_bigram_config \ 2466b0639ca3Swdenktrab_bigflash_config \ 2467f54ebdfaSwdenktrab_old_config: unconfig 2468f9328639SMarian Balakowicz @mkdir -p $(obj)include 2469f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2470b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2471f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2472f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2473ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2474b0639ca3Swdenk } 2475b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2476f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2477f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2478ae6d1056SWolfgang Denk $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2479f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2480b0639ca3Swdenk } 2481f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2482f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2483f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2484ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2485f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 248643d9616cSwdenk } 2487f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 24887ebf7443Swdenk 24891cb8e980SwdenkVCMA9_config : unconfig 2490f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 24911cb8e980Swdenk 249287cb6862SWolfgang Denk#======================================================================== 249387cb6862SWolfgang Denk# ARM supplied Versatile development boards 249487cb6862SWolfgang Denk#======================================================================== 249587cb6862SWolfgang Denkversatile_config \ 249687cb6862SWolfgang Denkversatileab_config \ 249787cb6862SWolfgang Denkversatilepb_config : unconfig 249896782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2499074cff0dSwdenk 25003c2b3d45Swdenkvoiceblue_config: unconfig 25014fedfddfSLadislav Michl @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 25023c2b3d45Swdenk 250316b013e7Swdenkcm4008_config : unconfig 2504f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 250516b013e7Swdenk 250616b013e7Swdenkcm41xx_config : unconfig 2507f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 250816b013e7Swdenk 2509074cff0dSwdenk######################################################################### 2510074cff0dSwdenk## S3C44B0 Systems 2511074cff0dSwdenk######################################################################### 2512074cff0dSwdenk 2513074cff0dSwdenkB2_config : unconfig 2514f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2515074cff0dSwdenk 25167ebf7443Swdenk######################################################################### 25177ebf7443Swdenk## ARM720T Systems 25187ebf7443Swdenk######################################################################### 25197ebf7443Swdenk 2520c570b2fdSWolfgang Denkarmadillo_config: unconfig 2521f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2522c570b2fdSWolfgang Denk 25237ebf7443Swdenkep7312_config : unconfig 2524f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 25257ebf7443Swdenk 25262d24a3a7Swdenkimpa7_config : unconfig 2527f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 25282d24a3a7Swdenk 25292d1a537dSwdenkmodnet50_config : unconfig 2530f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 25312d1a537dSwdenk 253239539887Swdenkevb4510_config : unconfig 2533f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 253439539887Swdenk 25356bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2536b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2537b0d8f5bfSPeter Pearse 2538b0d8f5bfSPeter PearseSMN42_config : unconfig 2539b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 25406bd2447eSGary Jennejohn 25417ebf7443Swdenk######################################################################### 254243d9616cSwdenk## XScale Systems 25437ebf7443Swdenk######################################################################### 25447ebf7443Swdenk 2545799891efSMichael Schwingenactux1_config : unconfig 2546799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux1 2547799891efSMichael Schwingen 2548799891efSMichael Schwingenactux2_config : unconfig 2549799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux2 2550799891efSMichael Schwingen 2551799891efSMichael Schwingenactux3_config : unconfig 2552799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux3 2553799891efSMichael Schwingen 2554799891efSMichael Schwingenactux4_config : unconfig 2555799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux4 2556799891efSMichael Schwingen 255720787e23Swdenkadsvix_config : unconfig 2558f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa adsvix 255920787e23Swdenk 2560fabd46acSwdenkcerf250_config : unconfig 2561f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2562fabd46acSwdenk 25637ebf7443Swdenkcradle_config : unconfig 2564f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 25657ebf7443Swdenk 25667ebf7443Swdenkcsb226_config : unconfig 2567f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 25687ebf7443Swdenk 256991c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config : unconfig 2570f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 25710be248faSWolfgang Denk 257243d9616cSwdenkinnokom_config : unconfig 2573f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 257443d9616cSwdenk 25752d5b561eSwdenkixdp425_config : unconfig 2576f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 25772d5b561eSwdenk 2578ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2579f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2580ba94a1bbSWolfgang Denk 258143d9616cSwdenklubbock_config : unconfig 2582f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 258343d9616cSwdenk 25845720df78SHeiko Schocherpleb2_config : unconfig 2585f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 25865720df78SHeiko Schocher 258752f52c14Swdenklogodl_config : unconfig 2588f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 258952f52c14Swdenk 25909d8d5a5bSStefan Roesepdnb3_config \ 25919d8d5a5bSStefan Roesescpu_config: unconfig 2592cdd917a4SWolfgang Denk @mkdir -p $(obj)include 25939d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2594cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2595ae6d1056SWolfgang Denk $(XECHO) "... on SCPU board variant" ; \ 25969d8d5a5bSStefan Roese fi 25979d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2598ba94a1bbSWolfgang Denk 2599f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2600f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2601f57f70aaSWolfgang Denk 26025e5803e1Sstefano babictrizepsiv_config : unconfig 26035e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 26045e5803e1Sstefano babic 26053e38691eSwdenkwepep250_config : unconfig 2606f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 26073e38691eSwdenk 26084ec3a7f0Swdenkxaeniax_config : unconfig 2609f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 26104ec3a7f0Swdenk 2611efa329cbSwdenkxm250_config : unconfig 2612f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2613efa329cbSwdenk 2614ca0e7748Swdenkxsengine_config : unconfig 2615f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2616ca0e7748Swdenk 2617e0269579SMarkus Klotzbücherzylonite_config : 2618f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2619e0269579SMarkus Klotzbücher 26208ed96046Swdenk######################################################################### 26218ed96046Swdenk## ARM1136 Systems 26228ed96046Swdenk######################################################################### 26238ed96046Swdenkomap2420h4_config : unconfig 26245252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx 26255ca9881aSPeter Pearse 26265ca9881aSPeter Pearseapollon_config : unconfig 2627c6fe4dabSWolfgang Denk @mkdir -p $(obj)include 2628751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 26295252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx 2630751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 26318ed96046Swdenk 2632caebc95bSSascha Hauerimx31_litekit_config : unconfig 2633caebc95bSSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31 2634caebc95bSSascha Hauer 26355ad86216SSascha Hauerimx31_phycore_config : unconfig 26365ad86216SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31 26375ad86216SSascha Hauer 2638b5dc9b30SGuennadi Liakhovetskimx31ads_config : unconfig 2639b5dc9b30SGuennadi Liakhovetski @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31 2640b5dc9b30SGuennadi Liakhovetski 26412262cfeeSwdenk#======================================================================== 26422262cfeeSwdenk# i386 26432262cfeeSwdenk#======================================================================== 26442262cfeeSwdenk######################################################################### 26452262cfeeSwdenk## AMD SC520 CDP 26462262cfeeSwdenk######################################################################### 26472262cfeeSwdenksc520_cdp_config : unconfig 2648f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 26492262cfeeSwdenk 26507a8e9bedSwdenksc520_spunk_config : unconfig 2651f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26527a8e9bedSwdenk 26537a8e9bedSwdenksc520_spunk_rel_config : unconfig 2654f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26557a8e9bedSwdenk 265643d9616cSwdenk#======================================================================== 265743d9616cSwdenk# MIPS 265843d9616cSwdenk#======================================================================== 26597ebf7443Swdenk######################################################################### 266043d9616cSwdenk## MIPS32 4Kc 266143d9616cSwdenk######################################################################### 266243d9616cSwdenk 2663e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2664e0ac62d7Swdenk 2665e0ac62d7Swdenkincaip_100MHz_config \ 2666e0ac62d7Swdenkincaip_133MHz_config \ 2667e0ac62d7Swdenkincaip_150MHz_config \ 266843d9616cSwdenkincaip_config: unconfig 2669f9328639SMarian Balakowicz @mkdir -p $(obj)include 2670e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2671f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2672ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 2673e0ac62d7Swdenk } 2674e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2675f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2676ae6d1056SWolfgang Denk $(XECHO) "... with 133MHz system clock" ; \ 2677e0ac62d7Swdenk } 2678e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2679f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2680ae6d1056SWolfgang Denk $(XECHO) "... with 150MHz system clock" ; \ 2681e0ac62d7Swdenk } 2682f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2683e0ac62d7Swdenk 2684f4863a7aSwdenktb0229_config: unconfig 2685f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2686f4863a7aSwdenk 2687e0ac62d7Swdenk######################################################################### 268869459791Swdenk## MIPS32 AU1X00 268969459791Swdenk######################################################################### 269069459791Swdenkdbau1000_config : unconfig 2691f9328639SMarian Balakowicz @mkdir -p $(obj)include 2692210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2693f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 269469459791Swdenk 269569459791Swdenkdbau1100_config : unconfig 2696f9328639SMarian Balakowicz @mkdir -p $(obj)include 2697210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2698f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 269969459791Swdenk 270069459791Swdenkdbau1500_config : unconfig 2701f9328639SMarian Balakowicz @mkdir -p $(obj)include 2702210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2703f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 270469459791Swdenk 2705ff36fd85Swdenkdbau1550_config : unconfig 2706f9328639SMarian Balakowicz @mkdir -p $(obj)include 2707210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2708f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2709ff36fd85Swdenk 2710ff36fd85Swdenkdbau1550_el_config : unconfig 2711f9328639SMarian Balakowicz @mkdir -p $(obj)include 2712210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2713f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2714ff36fd85Swdenk 2715265817c7SWolfgang Denkpb1000_config : unconfig 2716f9328639SMarian Balakowicz @mkdir -p $(obj)include 2717210ed200SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2718f9328639SMarian Balakowicz @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2719265817c7SWolfgang Denk 27208a773983SShinya Kuribayashigth2_config: unconfig 27218a773983SShinya Kuribayashi @mkdir -p $(obj)include 27228a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 27238a773983SShinya Kuribayashi @$(MKCONFIG) -a gth2 mips mips gth2 27248a773983SShinya Kuribayashi 27250764c164SVlad Lunguqemu_mips_config: unconfig 27260764c164SVlad Lungu @mkdir -p $(obj)include 2727210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 27280764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 27290764c164SVlad Lungu 273069459791Swdenk######################################################################### 2731e0ac62d7Swdenk## MIPS64 5Kc 2732e0ac62d7Swdenk######################################################################### 273343d9616cSwdenk 27343e38691eSwdenkpurple_config : unconfig 2735f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 273643d9616cSwdenk 27374a551709Swdenk#======================================================================== 27384a551709Swdenk# Nios 27394a551709Swdenk#======================================================================== 27404a551709Swdenk######################################################################### 27414a551709Swdenk## Nios32 27424a551709Swdenk######################################################################### 27434a551709Swdenk 2744c935d3bdSwdenkDK1C20_safe_32_config \ 2745c935d3bdSwdenkDK1C20_standard_32_config \ 27464a551709SwdenkDK1C20_config: unconfig 2747f9328639SMarian Balakowicz @mkdir -p $(obj)include 2748c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2749f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2750ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2751c935d3bdSwdenk } 2752c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2753f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2754ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2755c935d3bdSwdenk } 2756c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2757f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2758ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2759c935d3bdSwdenk } 2760f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2761c935d3bdSwdenk 2762c935d3bdSwdenkDK1S10_safe_32_config \ 2763c935d3bdSwdenkDK1S10_standard_32_config \ 2764ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2765c935d3bdSwdenkDK1S10_config: unconfig 2766f9328639SMarian Balakowicz @mkdir -p $(obj)include 2767c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2768f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2769ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2770c935d3bdSwdenk } 2771c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2772f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2773ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2774c935d3bdSwdenk } 2775ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2776f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2777ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 2778ec4c544bSwdenk } 2779c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2780f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2781ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2782c935d3bdSwdenk } 2783f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 27844a551709Swdenk 2785aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 2786aaf224abSwdenkADNPESC1_base_32_config \ 2787aaf224abSwdenkADNPESC1_config: unconfig 2788f9328639SMarian Balakowicz @mkdir -p $(obj)include 2789aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2790f9328639SMarian Balakowicz { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2791ae6d1056SWolfgang Denk $(XECHO) "... DNP/EVA2 configuration" ; \ 2792aaf224abSwdenk } 2793aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 2794f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2795ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration" ; \ 2796aaf224abSwdenk } 2797aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2798f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2799ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2800aaf224abSwdenk } 2801f9328639SMarian Balakowicz @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2802aaf224abSwdenk 28035c952cf0Swdenk######################################################################### 28045c952cf0Swdenk## Nios-II 28055c952cf0Swdenk######################################################################### 28065c952cf0Swdenk 28079cc83378SScott McNuttEP1C20_config : unconfig 2808f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 28099cc83378SScott McNutt 28109cc83378SScott McNuttEP1S10_config : unconfig 2811f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 28129cc83378SScott McNutt 28139cc83378SScott McNuttEP1S40_config : unconfig 2814f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 28159cc83378SScott McNutt 28165c952cf0SwdenkPK1C20_config : unconfig 2817f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 28185c952cf0Swdenk 28195c952cf0SwdenkPCI5441_config : unconfig 2820f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 28214a551709Swdenk 2822507bbe3eSwdenk#======================================================================== 2823507bbe3eSwdenk# MicroBlaze 2824507bbe3eSwdenk#======================================================================== 2825507bbe3eSwdenk######################################################################### 2826507bbe3eSwdenk## Microblaze 2827507bbe3eSwdenk######################################################################### 2828507bbe3eSwdenksuzaku_config: unconfig 2829f9328639SMarian Balakowicz @mkdir -p $(obj)include 2830210ed200SWolfgang Denk @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h 2831f9328639SMarian Balakowicz @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2832507bbe3eSwdenk 2833cfc67116SMichal Simekml401_config: unconfig 2834cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2835210ed200SWolfgang Denk @echo "#define CONFIG_ML401 1" > $(obj)include/config.h 283690b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2837cfc67116SMichal Simek 283817980495SMichal Simekxupv2p_config: unconfig 2839cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2840210ed200SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h 284190b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 284217980495SMichal Simek 284360fa72d6SMike Frysinger#======================================================================== 284460fa72d6SMike Frysinger# Blackfin 284560fa72d6SMike Frysinger#======================================================================== 28460afe519aSWolfgang Denk 284760fa72d6SMike Frysinger# Analog Devices boards 284860fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit 28490afe519aSWolfgang Denk 285060fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config) : unconfig 28519171fc81SMike Frysinger @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=) 285226bf7decSAubrey Li 285360fa72d6SMike Frysinger$(BFIN_BOARDS): 285460fa72d6SMike Frysinger $(MAKE) $@_config 285560fa72d6SMike Frysinger $(MAKE) 28560afe519aSWolfgang Denk 28575e3b0bc1SHaavard Skinnemoen#======================================================================== 28585e3b0bc1SHaavard Skinnemoen# AVR32 28595e3b0bc1SHaavard Skinnemoen#======================================================================== 28605e3b0bc1SHaavard Skinnemoen######################################################################### 2861a4b46ed6SUlf Samuelsson## AT32AP70xx 28625e3b0bc1SHaavard Skinnemoen######################################################################### 28635e3b0bc1SHaavard Skinnemoen 28645e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 286536f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28665e3b0bc1SHaavard Skinnemoen 2867667568dbSHaavard Skinnemoenatstk1003_config : unconfig 2868667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2869667568dbSHaavard Skinnemoen 287064ff2357SHaavard Skinnemoenatstk1004_config : unconfig 287164ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28720afe519aSWolfgang Denk 28736b443944SHaavard Skinnemoenatngw100_config : unconfig 28746b443944SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 28756b443944SHaavard Skinnemoen 28760afe519aSWolfgang Denk######################################################################### 28770afe519aSWolfgang Denk######################################################################### 28783e38691eSwdenk######################################################################### 28797ebf7443Swdenk 288069df3c4dSNobuhiro Iwamatsu######################################################################### 2881b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2882b2b5e2bbSYoshihiro Shimoda######################################################################### 28833313e0e2SMark Jonasmpr2_config: unconfig 28843313e0e2SMark Jonas @ >include/config.h 28853313e0e2SMark Jonas @echo "#define CONFIG_MPR2 1" >> include/config.h 28863313e0e2SMark Jonas @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2 28873313e0e2SMark Jonas 2888b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 2889210ed200SWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > include/config.h 289091c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se 2891b2b5e2bbSYoshihiro Shimoda 2892b2b5e2bbSYoshihiro Shimoda######################################################################### 289369df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 289469df3c4dSNobuhiro Iwamatsu######################################################################### 289569df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 2896210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 289791c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se 289869df3c4dSNobuhiro Iwamatsu 2899d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 2900210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 290191c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se 29027a8e9bedSwdenk 2903c2042f59Sgoda.yusukeMigoR_config : unconfig 2904c2042f59Sgoda.yusuke @ >include/config.h 2905c2042f59Sgoda.yusuke @echo "#define CONFIG_MIGO_R 1" >> include/config.h 2906c2042f59Sgoda.yusuke @./mkconfig -a $(@:_config=) sh sh4 MigoR 2907c2042f59Sgoda.yusuke 2908c133c1fbSYusuke Godar7780mp_config: unconfig 2909c133c1fbSYusuke Goda @ >include/config.h 2910c133c1fbSYusuke Goda @echo "#define CONFIG_R7780MP 1" >> include/config.h 2911c133c1fbSYusuke Goda @./mkconfig -a $(@:_config=) sh sh4 r7780mp 2912c133c1fbSYusuke Goda 2913f5e2466fSNobuhiro Iwamatsur2dplus_config : unconfig 2914f5e2466fSNobuhiro Iwamatsu @ >include/config.h 2915f5e2466fSNobuhiro Iwamatsu @echo "#define CONFIG_R2DPLUS 1" >> include/config.h 2916f5e2466fSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 r2dplus 2917f5e2466fSNobuhiro Iwamatsu 2918c2f02da2SDaniel Hellstrom#======================================================================== 2919c2f02da2SDaniel Hellstrom# SPARC 2920c2f02da2SDaniel Hellstrom#======================================================================== 29211e9a164eSDaniel Hellstrom######################################################################### 29221e9a164eSDaniel Hellstrom## LEON3 29231e9a164eSDaniel Hellstrom######################################################################### 2924c2f02da2SDaniel Hellstrom 292571d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board 292671d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig 292771d7e4c0SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler 292871d7e4c0SDaniel Hellstrom 29296ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system 29306ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig 29316ed8a43aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler 29326ed8a43aSDaniel Hellstrom 29336940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS 29346940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60. 29356940383dSDaniel Hellstromgr_ep2s60_config: unconfig 29366940383dSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler 29376940383dSDaniel Hellstrom 2938823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator 2939823edd8aSDaniel Hellstromgrsim_config : unconfig 2940823edd8aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler 2941823edd8aSDaniel Hellstrom 29427ebf7443Swdenk######################################################################### 2943b330990cSDaniel Hellstrom## LEON2 2944b330990cSDaniel Hellstrom######################################################################### 2945b330990cSDaniel Hellstrom 2946ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator 2947ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig 2948ab68f921SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler 2949ab68f921SDaniel Hellstrom 29507ebf7443Swdenk######################################################################### 29517ebf7443Swdenk######################################################################### 29527ebf7443Swdenk######################################################################### 295385ec0bccSwdenk 29543e38691eSwdenkclean: 2955f9301e1cSWolfgang Denk @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \ 2956f9301e1cSWolfgang Denk $(obj)examples/hello_world $(obj)examples/interrupt \ 2957f9301e1cSWolfgang Denk $(obj)examples/mem_to_mem_idma2intr \ 2958f9301e1cSWolfgang Denk $(obj)examples/sched $(obj)examples/smc91111_eeprom \ 2959f9301e1cSWolfgang Denk $(obj)examples/test_burst $(obj)examples/timer 2960f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 2961f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 2962f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 2963f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 2964f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 2965f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 2966f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 2967f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 2968f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 2969f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 2970f9301e1cSWolfgang Denk $(obj)board/{integratorap,integratorcp}/u-boot.lds \ 29719171fc81SMike Frysinger $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \ 29729171fc81SMike Frysinger $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] 2973dc7746d8SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 2974dc7746d8SWolfgang Denk @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map} 29751bb707c3SKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map} 2976f9301e1cSWolfgang Denk @rm -f $(obj)api_examples/demo $(VERSION_FILE) 2977ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 29787ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 29797ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 29807ebf7443Swdenk | xargs rm -f 29817ebf7443Swdenk 29827ebf7443Swdenkclobber: clean 2983ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 29844c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 29854c0d4c3bSwdenk -print0 \ 29864c0d4c3bSwdenk | xargs -0 rm -f 2987ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 29885013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 2989ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2990766529fcSBartlomiej Sieka @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes} 299189cdab78SMike Frysinger @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h} 29927e492d82SMarian Balakowicz @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h} 29935013c09fSWolfgang Denk @rm -f $(obj)cpu/mpc824x/bedbug_603e.c 2994ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2995ae6d1056SWolfgang Denk @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 2996751b9b51SKyungmin Park @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f 2997ae6d1056SWolfgang Denk @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f 29987ebf7443Swdenk 2999f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 30007ebf7443Swdenkmrproper \ 30017ebf7443Swdenkdistclean: clobber unconfig 3002f9328639SMarian Balakowiczelse 3003f9328639SMarian Balakowiczmrproper \ 3004f9328639SMarian Balakowiczdistclean: clobber unconfig 3005ae6d1056SWolfgang Denk rm -rf $(obj)* 3006f9328639SMarian Balakowiczendif 30077ebf7443Swdenk 30087ebf7443Swdenkbackup: 30097ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 30107ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 30117ebf7443Swdenk 30127ebf7443Swdenk######################################################################### 3013