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*b7fcc4c1SWolfgang DenkEXTRAVERSION = -rc2 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) 2049fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 2057ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 2061d9f4105Swdenkifdef SOC 2071d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 2081d9f4105Swdenkendif 209323bfa8fSStefan Roeseifeq ($(CPU),ixp) 210323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a 211323bfa8fSStefan Roeseendif 2127ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 213518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 214c419d1d6Sstroese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 2157ebf7443SwdenkLIBS += net/libnet.a 2167ebf7443SwdenkLIBS += disk/libdisk.a 2170f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 21833daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 21957a12720STsiChungLiewLIBS += drivers/dma/libdma.a 220f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 221080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 22216b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 223318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a 22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 2288e585f02STsiChung LiewLIBS += drivers/net/libnet.a 2292439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a 23093a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 23173646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 23204a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2337737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2347737d5c6SDave LiuLIBS += drivers/qe/qe.a 2357737d5c6SDave Liuendif 236da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 237da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 238da9d4610SAndy Flemingendif 23959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2408e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 24159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a 24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 2437ebf7443SwdenkLIBS += common/libcommon.a 2447651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 245500856ebSRafal JaworowskiLIBS += api/libapi.a 2462d2b994aSYuri TikhonovLIBS += post/libpost.a 247f9328639SMarian Balakowicz 248f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 249019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE) 250a8c7c708Swdenk 2514f7cb08eSwdenk# Add GCC lib 2521a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 2533d3befa7Swdenk 254a8c7c708Swdenk# The "tools" are needed early, so put this first 255a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 256a8c7c708SwdenkSUBDIRS = tools \ 2570dc1fc22SRafal Jaworowski examples \ 2580dc1fc22SRafal Jaworowski api_examples 259500856ebSRafal Jaworowski 260b028f715Swdenk.PHONY : $(SUBDIRS) 261a8c7c708Swdenk 262887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 263887e2ec9SStefan RoeseNAND_SPL = nand_spl 264887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 265887e2ec9SStefan Roeseendif 266887e2ec9SStefan Roese 267751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 268751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 269751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 270751b9b51SKyungmin Parkendif 271751b9b51SKyungmin Park 272f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 273f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS)) 274f9328639SMarian Balakowicz 2757ebf7443Swdenk######################################################################### 276bdccc4feSwdenk######################################################################### 2777ebf7443Swdenk 278751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 27994a91e24SMike Frysingerifeq ($(ARCH),blackfin) 28094a91e24SMike FrysingerALL += $(obj)u-boot.ldr 28194a91e24SMike Frysingerendif 2827ebf7443Swdenk 283bdccc4feSwdenkall: $(ALL) 2847ebf7443Swdenk 285f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2866310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2876310eb9dSwdenk 288f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 2897ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 2907ebf7443Swdenk 291f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 2927ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 2937ebf7443Swdenk 29494a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 29594a91e24SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS) 29694a91e24SMike Frysinger 29794a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 29894a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 29994a91e24SMike Frysinger 30094a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 30194a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 30294a91e24SMike Frysinger 303f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 304bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 305bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 306881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 307bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 308bdccc4feSwdenk -d $< $@ 309bdccc4feSwdenk 310566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 31101159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 312566a494fSHeiko Schocher 313f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3147ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3157ebf7443Swdenk 316dd531aacSWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 3170858b835SMike Frysinger UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 318f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 319f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 320b2184c31Swdenk -Map u-boot.map -o u-boot 3217ebf7443Swdenk 32288f72527SJohannes Stezenbach$(OBJS): depend $(obj)include/autoconf.mk 323f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 324f9328639SMarian Balakowicz 32588f72527SJohannes Stezenbach$(LIBS): depend $(obj)include/autoconf.mk 326f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 327a8c7c708Swdenk 32888f72527SJohannes Stezenbach$(SUBDIRS): depend $(obj)include/autoconf.mk 329b028f715Swdenk $(MAKE) -C $@ all 3307ebf7443Swdenk 331f65c9812SMike Frysinger$(LDSCRIPT): depend $(obj)include/autoconf.mk 332f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 333f65c9812SMike Frysinger 334dd531aacSWolfgang Denk$(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3358318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 336887e2ec9SStefan Roese 337dd531aacSWolfgang Denk$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3388318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 339887e2ec9SStefan Roese 340751b9b51SKyungmin Park$(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3411bb707c3SKyungmin Park $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all 342751b9b51SKyungmin Park 343751b9b51SKyungmin Park$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3441bb707c3SKyungmin Park $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all 345751b9b51SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 3461bb707c3SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin 347751b9b51SKyungmin Park 348ae6d1056SWolfgang Denk$(VERSION_FILE): 349ae6d1056SWolfgang Denk @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \ 350ae6d1056SWolfgang Denk echo -n "$(U_BOOT_VERSION)" ; \ 351881a87ecSWolfgang Denk echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ 352ae6d1056SWolfgang Denk $(TOPDIR)) ; \ 3530ec7a061SMike Frysinger echo "\"" ) > $@.tmp 3540ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 355881a87ecSWolfgang Denk 3568f713fdfSdzugdbtools: 357f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 358f9328639SMarian Balakowicz 359f9328639SMarian Balakowiczupdater: 360f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 361f9328639SMarian Balakowicz 362f9328639SMarian Balakowiczenv: 36364b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 3648f713fdfSdzu 365ae6d1056SWolfgang Denkdepend dep: $(VERSION_FILE) 366f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 3677ebf7443Swdenk 368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR) 370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU) 371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH) 372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs 373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat 374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos 375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2 376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net 377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk 378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common 379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator 380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block 381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon 382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c 383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input 384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc 385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd 386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand 387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy 388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand 389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net 390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin 391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci 392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia 393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe 394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc 395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial 39604a9e118SBen WarrenTAG_SUBDIRS += drivers/spi 397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb 398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video 399a340c325SJean-Christophe PLAGNIOL-VILLARD 400f9328639SMarian Balakowicztags ctags: 401ae6d1056SWolfgang Denk ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 40288fed9a1SWolfgang Denk -name '*.[ch]' -print` 4037ebf7443Swdenk 4047ebf7443Swdenketags: 405ae6d1056SWolfgang Denk etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 40688fed9a1SWolfgang Denk -name '*.[ch]' -print` 407ffda586fSLi Yangcscope: 408ffda586fSLi Yang find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \ 409ffda586fSLi Yang > cscope.files 410ffda586fSLi Yang cscope -b -q -k 4117ebf7443Swdenk 412f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 4137ebf7443Swdenk @$(NM) $< | \ 4147ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 415f9328639SMarian Balakowicz sort > $(obj)System.map 4167ebf7443Swdenk 4172f155f6cSGrant Likely# 4182f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4192f155f6cSGrant Likely# 4202f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4212f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4222f155f6cSGrant Likely# to regenerate the autoconf.mk file. 423ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE) 424ae6d1056SWolfgang Denk @$(XECHO) Generating include/autoconf.mk ; \ 42516fe7775SMike Frysinger set -e ; \ 426ae6d1056SWolfgang Denk : Generate the dependancies ; \ 427c3aafd8cSVlad Lungu $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \ 428ae6d1056SWolfgang Denk : Extract the config macros ; \ 429ae6d1056SWolfgang Denk $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@ 4302f155f6cSGrant Likely 431ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep 4322f155f6cSGrant Likely 4337ebf7443Swdenk######################################################################### 434ae6d1056SWolfgang Denkelse # !config.mk 435f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 436f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 437ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \ 438ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map: 4397ebf7443Swdenk @echo "System not configured - see README" >&2 4407ebf7443Swdenk @ exit 1 441ae6d1056SWolfgang Denkendif # config.mk 4427ebf7443Swdenk 4434e53a258SWolfgang Denk.PHONY : CHANGELOG 4444e53a258SWolfgang DenkCHANGELOG: 445b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 446b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4474e53a258SWolfgang Denk 4487ebf7443Swdenk######################################################################### 4497ebf7443Swdenk 4507ebf7443Swdenkunconfig: 451887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4522f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4532f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4547ebf7443Swdenk 4557ebf7443Swdenk#======================================================================== 4567ebf7443Swdenk# PowerPC 4577ebf7443Swdenk#======================================================================== 4580db5bca8Swdenk 4590db5bca8Swdenk######################################################################### 4600db5bca8Swdenk## MPC5xx Systems 4610db5bca8Swdenk######################################################################### 4620db5bca8Swdenk 4635e5f9ed2Swdenkcanmb_config: unconfig 464f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 4655e5f9ed2Swdenk 4660db5bca8Swdenkcmi_mpc5xx_config: unconfig 467f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 4680db5bca8Swdenk 469b6e4c403SwdenkPATI_config: unconfig 470f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 471b6e4c403Swdenk 4727ebf7443Swdenk######################################################################### 473945af8d7Swdenk## MPC5xxx Systems 474945af8d7Swdenk######################################################################### 475a87589daSwdenk 476dafba16eSWolfgang Denkaev_config: unconfig 477f9328639SMarian Balakowicz @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 478dafba16eSWolfgang Denk 4796ca24c64Sdzu@denx.deBC3450_config: unconfig 480f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 4816ca24c64Sdzu@denx.de 4825e4b3361SStefan Roesecpci5200_config: unconfig 483f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 4845e4b3361SStefan Roese 485a87589daSwdenkhmi1001_config: unconfig 486f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 487a87589daSwdenk 488e35745bbSwdenkLite5200_config \ 489e35745bbSwdenkLite5200_LOWBOOT_config \ 490e35745bbSwdenkLite5200_LOWBOOT08_config \ 491e35745bbSwdenkicecube_5200_config \ 492e35745bbSwdenkicecube_5200_LOWBOOT_config \ 493e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 494b2001f27Swdenkicecube_5200_DDR_config \ 49579d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 49679d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 497e35745bbSwdenkicecube_5100_config: unconfig 498f9328639SMarian Balakowicz @mkdir -p $(obj)include 499f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 50017d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 50117d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 502f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 503f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 50417d704ebSwdenk fi ; \ 505ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5065cf9da48Swdenk } 5075cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 508f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 5095cf9da48Swdenk echo "... with 8 MB flash only" ; \ 510ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5115cf9da48Swdenk } 512b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 513f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 514ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 515b2001f27Swdenk } 516d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 517f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 518ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 519d4ca31c4Swdenk } 520a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 521f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 522ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 523945af8d7Swdenk } 524f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 525945af8d7Swdenk 5262605e90bSHeiko Schocherjupiter_config: unconfig 5272605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 5282605e90bSHeiko Schocher 5294707fb50SBartlomiej Siekav38b_config: unconfig 53090b1b2d6SGrant Likely @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 5314707fb50SBartlomiej Sieka 532138ff60cSwdenkinka4x0_config: unconfig 533f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 534138ff60cSwdenk 53509e4b0c5SWolfgang Denklite5200b_config \ 536d3832e8fSDomen Puncerlite5200b_PM_config \ 53709e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 538f9328639SMarian Balakowicz @mkdir -p $(obj)include 539f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 540f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 541ae6d1056SWolfgang Denk @ $(XECHO) "... DDR memory revision" 542f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 543f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 544d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 545d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 546ae6d1056SWolfgang Denk $(XECHO) "... with power management (low-power mode) support" ; \ 547d3832e8fSDomen Puncer } 54809e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 549f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 550ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 55109e4b0c5SWolfgang Denk } 552ae6d1056SWolfgang Denk @ $(XECHO) "... with MPC5200B processor" 553f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 55409e4b0c5SWolfgang Denk 555f1ee9825SStefan Roesemcc200_config \ 556ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 557ed1cf845SWolfgang Denkmcc200_highboot_config \ 558ed1cf845SWolfgang Denkmcc200_COM12_config \ 559ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 560113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 561113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 562ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 563ed1cf845SWolfgang Denkprs200_config \ 564ed1cf845SWolfgang Denkprs200_DDR_config \ 565ed1cf845SWolfgang Denkprs200_highboot_config \ 566ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 567f9328639SMarian Balakowicz @mkdir -p $(obj)include 568f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 5694819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 570ae6d1056SWolfgang Denk { $(XECHO) "... with lowboot configuration" ; \ 571f1ee9825SStefan Roese } 5724819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 573f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 574ae6d1056SWolfgang Denk $(XECHO) "... with highboot configuration" ; \ 5754819fad9SWolfgang Denk } 5764819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 577ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 578ed1cf845SWolfgang Denk then \ 579ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 580ed1cf845SWolfgang Denk else \ 581ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 582ed1cf845SWolfgang Denk then \ 583ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 584ed1cf845SWolfgang Denk else \ 585f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 586ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 587ed1cf845SWolfgang Denk fi; \ 588ed1cf845SWolfgang Denk fi; \ 5894819fad9SWolfgang Denk } 5904819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 591f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 592ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 5934819fad9SWolfgang Denk } 594463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 595f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 596ae6d1056SWolfgang Denk $(XECHO) "... with console on COM12" ; \ 597463764c8SWolfgang Denk } 598ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 599f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 600ed1cf845SWolfgang Denk } 601f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 60286ea5f93SWolfgang Denk 6038b7d1f0aSStefan Roesemecp5200_config: unconfig 604ae6d1056SWolfgang Denk @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 6058b7d1f0aSStefan Roese 6066341d9d7SHeiko Schochermunices_config: unconfig 607ae6d1056SWolfgang Denk @$(MKCONFIG) munices ppc mpc5xxx munices 6086341d9d7SHeiko Schocher 60991c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config: unconfig 610f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 611df04a3dfSWolfgang Denk 6125e4b3361SStefan Roesepf5200_config: unconfig 613f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 6145e4b3361SStefan Roese 61589394047SwdenkPM520_config \ 61689394047SwdenkPM520_DDR_config \ 61789394047SwdenkPM520_ROMBOOT_config \ 61889394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 619f9328639SMarian Balakowicz @mkdir -p $(obj)include 62089394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 621f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 622ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 62389394047Swdenk } 62489394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 625f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 626ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 62789394047Swdenk } 628f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 62989394047Swdenk 6306624b687SWolfgang Denksmmaco4_config: unconfig 631f9328639SMarian Balakowicz @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 6329cdc8386SWolfgang Denk 63386b116b1SBartlomiej Siekacm5200_config: unconfig 63491c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200 635fa1df308SBartlomiej Sieka 6369cdc8386SWolfgang Denkspieval_config: unconfig 637f9328639SMarian Balakowicz @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 6389cdc8386SWolfgang Denk 63945a212c4SWolfgang DenkTB5200_B_config \ 640b87dfd28SWolfgang DenkTB5200_config: unconfig 641f9328639SMarian Balakowicz @mkdir -p $(obj)include 64245a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 643f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 644ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200B processor" ; \ 64545a212c4SWolfgang Denk } 646f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 647b87dfd28SWolfgang Denk 648d4ca31c4SwdenkMINI5200_config \ 649d4ca31c4SwdenkEVAL5200_config \ 650d4ca31c4SwdenkTOP5200_config: unconfig 651f9328639SMarian Balakowicz @mkdir -p $(obj)include 652f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 653f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 654d4ca31c4Swdenk 6556c7a1408SwdenkTotal5100_config \ 6566c7a1408SwdenkTotal5200_config \ 6576c7a1408SwdenkTotal5200_lowboot_config \ 6586c7a1408SwdenkTotal5200_Rev2_config \ 6596c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 660f9328639SMarian Balakowicz @mkdir -p $(obj)include 661f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 6626c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 663f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 664ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 6656c7a1408Swdenk } 6666c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 667f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 668ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 6696c7a1408Swdenk } 6706c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 671f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 672ae6d1056SWolfgang Denk $(XECHO) "... revision 1 board" ; \ 6736c7a1408Swdenk } 6746c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 675f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 676ae6d1056SWolfgang Denk $(XECHO) "... revision 2 board" ; \ 6776c7a1408Swdenk } 6786c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 679f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 680ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 6816c7a1408Swdenk } 682f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 6836c7a1408Swdenk 6845196a7a0SWolfgang Denkcam5200_config \ 685d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6865196a7a0SWolfgang Denkfo300_config \ 6875196a7a0SWolfgang DenkMiniFAP_config \ 6885078cce8SWolfgang DenkTQM5200S_config \ 6895078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6905196a7a0SWolfgang DenkTQM5200_B_config \ 6915196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 6925196a7a0SWolfgang DenkTQM5200_config \ 6935196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 694f9328639SMarian Balakowicz @mkdir -p $(obj)include 695f9328639SMarian Balakowicz @mkdir -p $(obj)board/tqm5200 696135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 697f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 698f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 699f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 700ae6d1056SWolfgang Denk $(XECHO) "... TQM5200S on Cam5200" ; \ 7015078cce8SWolfgang Denk } 702d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 703d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 704ae6d1056SWolfgang Denk $(XECHO) "... with NIOS flash driver" ; \ 705d9384de2SMarian Balakowicz } 7066d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 707f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 708ae6d1056SWolfgang Denk $(XECHO) "... TQM5200 on FO300" ; \ 7096d3bc9b8SMarian Balakowicz } 710cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 711f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 712ae6d1056SWolfgang Denk $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 713978b1096SWolfgang Denk } 714cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 715f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 716ae6d1056SWolfgang Denk $(XECHO) "... on a STK52XX.100 base board" ; \ 71756523f12Swdenk } 7185078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 719f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 7205078cce8SWolfgang Denk } 7215078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 722f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 723f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 72445a212c4SWolfgang Denk } 725978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 726f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 727978b1096SWolfgang Denk } 728f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 7296dedf3d4SHeiko Schocheruc101_config: unconfig 7306dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 73153d4a498SBartlomiej Siekamotionpro_config: unconfig 73253d4a498SBartlomiej Sieka @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 73353d4a498SBartlomiej Sieka 73456523f12Swdenk 735945af8d7Swdenk######################################################################### 7368993e54bSRafal Jaworowski## MPC512x Systems 7378993e54bSRafal Jaworowski######################################################################### 7385f91db7fSJohn Rigbyads5121_config \ 7395f91db7fSJohn Rigbyads5121_PCI_config \ 7405f91db7fSJohn Rigby : unconfig 741210ed200SWolfgang Denk @mkdir -p $(obj)include 7425f91db7fSJohn Rigby @if [ "$(findstring _PCI_,$@)" ] ; then \ 7435f91db7fSJohn Rigby echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 7445f91db7fSJohn Rigby $(XECHO) "... with PCI enabled" ; \ 7455f91db7fSJohn Rigby fi 7465f91db7fSJohn Rigby @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121 7478993e54bSRafal Jaworowski 7488993e54bSRafal Jaworowski 7498993e54bSRafal Jaworowski######################################################################### 7507ebf7443Swdenk## MPC8xx Systems 7517ebf7443Swdenk######################################################################### 7527ebf7443Swdenk 7532d24a3a7SwdenkAdder_config \ 7542d24a3a7SwdenkAdder87x_config \ 75526238132SwdenkAdderII_config \ 7562d24a3a7Swdenk : unconfig 757f9328639SMarian Balakowicz @mkdir -p $(obj)include 75826238132Swdenk $(if $(findstring AdderII,$@), \ 759f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 760f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 7612d24a3a7Swdenk 76216c8d5e7SWolfgang DenkAdderUSB_config: unconfig 76391c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder 76416c8d5e7SWolfgang Denk 765180d3f74SwdenkADS860_config \ 766180d3f74SwdenkFADS823_config \ 767180d3f74SwdenkFADS850SAR_config \ 768180d3f74SwdenkMPC86xADS_config \ 7691114257cSwdenkMPC885ADS_config \ 770180d3f74SwdenkFADS860T_config: unconfig 771f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 7727ebf7443Swdenk 7737ebf7443SwdenkAMX860_config : unconfig 774f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 7757ebf7443Swdenk 7767ebf7443Swdenkc2mon_config: unconfig 777f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 7787ebf7443Swdenk 7797ebf7443SwdenkCCM_config: unconfig 780f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 7817ebf7443Swdenk 7827ebf7443Swdenkcogent_mpc8xx_config: unconfig 783f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 7847ebf7443Swdenk 7853bac3513SwdenkELPT860_config: unconfig 786f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 7873bac3513Swdenk 78884c960ceSWolfgang DenkEP88x_config: unconfig 789f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 79084c960ceSWolfgang Denk 7917ebf7443SwdenkESTEEM192E_config: unconfig 792f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 7937ebf7443Swdenk 7947ebf7443SwdenkETX094_config : unconfig 795f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 7967ebf7443Swdenk 7977ebf7443SwdenkFLAGADM_config: unconfig 798f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 7997ebf7443Swdenk 8007aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 8017aa78614Swdenk 8027aa78614SwdenkGEN860T_SC_config \ 8037ebf7443SwdenkGEN860T_config: unconfig 804f9328639SMarian Balakowicz @mkdir -p $(obj)include 8057aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 806f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 807ae6d1056SWolfgang Denk $(XECHO) "With reduced H/W feature set (SC)..." ; \ 8087aa78614Swdenk } 809f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 8107ebf7443Swdenk 8117ebf7443SwdenkGENIETV_config: unconfig 812f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 8137ebf7443Swdenk 8147ebf7443SwdenkGTH_config: unconfig 815f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 8167ebf7443Swdenk 8177ebf7443Swdenkhermes_config : unconfig 818f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 8197ebf7443Swdenk 820c40b2956SwdenkHMI10_config : unconfig 821f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 822c40b2956Swdenk 8237ebf7443SwdenkIAD210_config: unconfig 824f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 8257ebf7443Swdenk 8267ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 8277ebf7443Swdenk 8287ebf7443SwdenkICU862_100MHz_config \ 8297ebf7443SwdenkICU862_config: unconfig 830f9328639SMarian Balakowicz @mkdir -p $(obj)include 8317ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 832f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 833ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 8347ebf7443Swdenk } 835f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 8367ebf7443Swdenk 8377ebf7443SwdenkIP860_config : unconfig 838f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 8397ebf7443Swdenk 8407ebf7443SwdenkIVML24_256_config \ 8417ebf7443SwdenkIVML24_128_config \ 8427ebf7443SwdenkIVML24_config: unconfig 843f9328639SMarian Balakowicz @mkdir -p $(obj)include 8447ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 845f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 8467ebf7443Swdenk } 8477ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 848f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 8497ebf7443Swdenk } 8507ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 851f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 8527ebf7443Swdenk } 853f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 8547ebf7443Swdenk 8557ebf7443SwdenkIVMS8_256_config \ 8567ebf7443SwdenkIVMS8_128_config \ 8577ebf7443SwdenkIVMS8_config: unconfig 858f9328639SMarian Balakowicz @mkdir -p $(obj)include 8597ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 860f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 8617ebf7443Swdenk } 8627ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 863f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 8647ebf7443Swdenk } 8657ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 866f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 8677ebf7443Swdenk } 868f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 8697ebf7443Swdenk 87056f94be3SwdenkKUP4K_config : unconfig 871f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 8720608e04dSwdenk 8730608e04dSwdenkKUP4X_config : unconfig 874f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 87556f94be3Swdenk 8767ebf7443SwdenkLANTEC_config : unconfig 877f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 8787ebf7443Swdenk 8797ebf7443Swdenklwmon_config: unconfig 880f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 8817ebf7443Swdenk 8827ebf7443SwdenkMBX_config \ 8837ebf7443SwdenkMBX860T_config: unconfig 884f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 8857ebf7443Swdenk 886381e4e63SHeiko Schochermgsuvd_config: unconfig 887381e4e63SHeiko Schocher @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd 888381e4e63SHeiko Schocher 8897ebf7443SwdenkMHPC_config: unconfig 890f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 8917ebf7443Swdenk 8927ebf7443SwdenkMVS1_config : unconfig 893f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 8947ebf7443Swdenk 895993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 896993cad93Swdenk 897993cad93SwdenkNETVIA_V2_config \ 8987ebf7443SwdenkNETVIA_config: unconfig 899f9328639SMarian Balakowicz @mkdir -p $(obj)include 900993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 901f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 902ae6d1056SWolfgang Denk $(XECHO) "... Version 1" ; \ 903993cad93Swdenk } 904993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 905f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 906ae6d1056SWolfgang Denk $(XECHO) "... Version 2" ; \ 907993cad93Swdenk } 908f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 9097ebf7443Swdenk 910c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 911c26e454dSwdenk 912c26e454dSwdenkNETPHONE_V2_config \ 91304a85b3bSwdenkNETPHONE_config: unconfig 914f9328639SMarian Balakowicz @mkdir -p $(obj)include 915c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 916f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 917c26e454dSwdenk } 918c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 919f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 920c26e454dSwdenk } 921f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 92204a85b3bSwdenk 92379fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 92404a85b3bSwdenk 92579fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 92679fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 92779fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 92879fa88f3SwdenkNETTA_SWAPHOOK_config \ 92979fa88f3SwdenkNETTA_ISDN_6412_config \ 93004a85b3bSwdenkNETTA_ISDN_config \ 93179fa88f3SwdenkNETTA_6412_config \ 93204a85b3bSwdenkNETTA_config: unconfig 933f9328639SMarian Balakowicz @mkdir -p $(obj)include 93479fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 935f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 93604a85b3bSwdenk } 93779fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 938f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 93979fa88f3Swdenk } 94079fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 941f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 94279fa88f3Swdenk } 94379fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 944f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 94579fa88f3Swdenk } 94679fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 947f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 94879fa88f3Swdenk } 94979fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 950f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 95179fa88f3Swdenk } 952f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 95304a85b3bSwdenk 95479fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 95579fa88f3Swdenk 95679fa88f3SwdenkNETTA2_V2_config \ 95779fa88f3SwdenkNETTA2_config: unconfig 958f9328639SMarian Balakowicz @mkdir -p $(obj)include 95979fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 960f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 96179fa88f3Swdenk } 96279fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 963f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 96479fa88f3Swdenk } 965f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 96679fa88f3Swdenk 967a367d426Sdzu@denx.deNC650_Rev1_config \ 968a367d426Sdzu@denx.deNC650_Rev2_config \ 969a367d426Sdzu@denx.deCP850_config: unconfig 970f9328639SMarian Balakowicz @mkdir -p $(obj)include 971a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 972f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 973f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 974a367d426Sdzu@denx.de } 975a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 976f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 977a367d426Sdzu@denx.de } 978a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 979f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 980a367d426Sdzu@denx.de } 981f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 9827ca202f5Swdenk 9837ebf7443SwdenkNX823_config: unconfig 984f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 9857ebf7443Swdenk 9867ebf7443Swdenkpcu_e_config: unconfig 987f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 9887ebf7443Swdenk 9893bbc899fSwdenkQS850_config: unconfig 990f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9913bbc899fSwdenk 9923bbc899fSwdenkQS823_config: unconfig 993f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9943bbc899fSwdenk 9953bbc899fSwdenkQS860T_config: unconfig 996f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 9973bbc899fSwdenk 998da93ed81Swdenkquantum_config: unconfig 999f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 1000da93ed81Swdenk 10017ebf7443SwdenkR360MPI_config: unconfig 1002f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 10037ebf7443Swdenk 1004682011ffSwdenkRBC823_config: unconfig 1005f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 1006682011ffSwdenk 10077ebf7443SwdenkRPXClassic_config: unconfig 1008f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 10097ebf7443Swdenk 10107ebf7443SwdenkRPXlite_config: unconfig 1011f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 10127ebf7443Swdenk 1013e63c8ee3SwdenkRPXlite_DW_64_config \ 1014e63c8ee3SwdenkRPXlite_DW_LCD_config \ 1015e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 1016e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 1017e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 1018e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 1019e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 1020e63c8ee3SwdenkRPXlite_DW_config: unconfig 1021f9328639SMarian Balakowicz @mkdir -p $(obj)include 1022e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 1023f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1024ae6d1056SWolfgang Denk $(XECHO) "... with 64MHz system clock ..."; \ 1025e63c8ee3Swdenk } 1026e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1027f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1028f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1029ae6d1056SWolfgang Denk $(XECHO) "... with LCD display ..."; \ 1030e63c8ee3Swdenk } 1031e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 1032f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1033ae6d1056SWolfgang Denk $(XECHO) "... with ENV in NVRAM ..."; \ 1034e63c8ee3Swdenk } 1035f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1036e63c8ee3Swdenk 103773a8b27cSwdenkrmu_config: unconfig 1038f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 103973a8b27cSwdenk 10407ebf7443SwdenkRRvision_config: unconfig 1041f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 10427ebf7443Swdenk 10437ebf7443SwdenkRRvision_LCD_config: unconfig 1044f9328639SMarian Balakowicz @mkdir -p $(obj)include 1045f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1046f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1047f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 10487ebf7443Swdenk 10497ebf7443SwdenkSM850_config : unconfig 1050f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 10517ebf7443Swdenk 105291c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config: unconfig 1053f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1054b02d0177SMarkus Klotzbuecher 10557ebf7443SwdenkSPD823TS_config: unconfig 1056f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 10577ebf7443Swdenk 10586bdf4306SWolfgang Denkstxxtc_config: unconfig 1059f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 10606bdf4306SWolfgang Denk 1061dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1062f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1063dc7c9a1aSwdenk 10647ebf7443SwdenkSXNI855T_config: unconfig 1065f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 10667ebf7443Swdenk 1067db2f721fSwdenk# EMK MPC8xx based modules 1068db2f721fSwdenkTOP860_config: unconfig 1069f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1070db2f721fSwdenk 10717ebf7443Swdenk# Play some tricks for configuration selection 1072e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1073e9132ea9Swdenk# and only 823 boards may have LCD support 1074e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 10757ebf7443Swdenk 10767ebf7443SwdenkFPS850L_config \ 1077384ae025SwdenkFPS860L_config \ 1078f12e568cSwdenkNSCU_config \ 10797ebf7443SwdenkTQM823L_config \ 10807ebf7443SwdenkTQM823L_LCD_config \ 10817ebf7443SwdenkTQM850L_config \ 10827ebf7443SwdenkTQM855L_config \ 10837ebf7443SwdenkTQM860L_config \ 1084d126bfbdSwdenkTQM862L_config \ 1085ae3af05eSwdenkTQM823M_config \ 1086ae3af05eSwdenkTQM850M_config \ 1087f12e568cSwdenkTQM855M_config \ 1088f12e568cSwdenkTQM860M_config \ 1089f12e568cSwdenkTQM862M_config \ 10908cba090cSWolfgang DenkTQM866M_config \ 1091090eb735SMarkus KlotzbuecherTQM885D_config \ 1092efc6f447SGuennadi LiakhovetskiTK885D_config \ 10938cba090cSWolfgang Denkvirtlab2_config: unconfig 1094f9328639SMarian Balakowicz @mkdir -p $(obj)include 10957ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1096f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1097f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1098ae6d1056SWolfgang Denk $(XECHO) "... with LCD display" ; \ 10997ebf7443Swdenk } 1100f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 11017ebf7443Swdenk 11027ebf7443SwdenkTTTech_config: unconfig 1103f9328639SMarian Balakowicz @mkdir -p $(obj)include 1104f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1105f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1106f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 11077ebf7443Swdenk 1108ec0aee7bSwdenkuc100_config : unconfig 1109f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1110f7d1572bSwdenk 1111608c9146Swdenkv37_config: unconfig 1112f9328639SMarian Balakowicz @mkdir -p $(obj)include 1113f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1114f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1115f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1116608c9146Swdenk 111791e940d9Sdzuwtk_config: unconfig 1118f9328639SMarian Balakowicz @mkdir -p $(obj)include 1119f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1120f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1121f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 112291e940d9Sdzu 11237ebf7443Swdenk######################################################################### 11247ebf7443Swdenk## PPC4xx Systems 11257ebf7443Swdenk######################################################################### 1126e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 11277ebf7443Swdenk 112816c0cc1cSStefan Roeseacadia_config: unconfig 112916c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 113016c0cc1cSStefan Roese 1131c440bfe6SStefan Roeseacadia_nand_config: unconfig 113263e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 113363e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1134c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1135c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1136c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1137c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1138c440bfe6SStefan Roese 11397ebf7443SwdenkADCIOP_config: unconfig 1140f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 11417ebf7443Swdenk 1142899620c2SStefan Roesealpr_config: unconfig 114335d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1144899620c2SStefan Roese 11457521af1cSWolfgang DenkAP1000_config:unconfig 1146f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 11477521af1cSWolfgang Denk 1148c419d1d6SstroeseAPC405_config: unconfig 1149f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1150c419d1d6Sstroese 11517ebf7443SwdenkAR405_config: unconfig 1152f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 11537ebf7443Swdenk 1154549826eaSstroeseASH405_config: unconfig 1155f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1156549826eaSstroese 11578a316c9bSStefan Roesebamboo_config: unconfig 1158f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 11598a316c9bSStefan Roese 1160cf959c7dSStefan Roesebamboo_nand_config: unconfig 116163e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 116263e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1163cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1164f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1165cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1166cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1167cf959c7dSStefan Roese 11688a316c9bSStefan Roesebubinga_config: unconfig 1169f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1170549826eaSstroese 11717ebf7443SwdenkCANBT_config: unconfig 1172f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 11737ebf7443Swdenk 11744c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images 11754c9e8557SStefan Roesecanyonlands_config \ 11764c9e8557SStefan Roeseglacier_config: unconfig 11774c9e8557SStefan Roese @mkdir -p $(obj)include 11784c9e8557SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 11794c9e8557SStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 11804c9e8557SStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 1181c813f1f8SStefan Roese 1182fe7c0db6SStefan Roesecanyonlands_nand_config \ 1183fe7c0db6SStefan Roeseglacier_nand_config: unconfig 118471665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 118571665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 118671665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1187fe7c0db6SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ 1188fe7c0db6SStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 118971665ebfSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 119071665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 119171665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 119271665ebfSStefan Roese 11931d6f9720SwdenkCATcenter_config \ 11941d6f9720SwdenkCATcenter_25_config \ 11951d6f9720SwdenkCATcenter_33_config: unconfig 1196f9328639SMarian Balakowicz @mkdir -p $(obj)include 1197f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1198f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 11991d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1200f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1201ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 12021d6f9720Swdenk } 12031d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1204f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1205ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 12061d6f9720Swdenk } 1207f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 120810767ccbSwdenk 12097644f16fSStefan RoeseCPCI2DP_config: unconfig 1210f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 12117644f16fSStefan Roese 12127ebf7443SwdenkCPCI405_config \ 1213549826eaSstroeseCPCI4052_config \ 1214c419d1d6SstroeseCPCI405DT_config \ 1215549826eaSstroeseCPCI405AB_config: unconfig 1216f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1217f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 12187ebf7443Swdenk 12197ebf7443SwdenkCPCIISER4_config: unconfig 1220f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 12217ebf7443Swdenk 12227ebf7443SwdenkCRAYL1_config: unconfig 1223f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 12247ebf7443Swdenk 1225cd0a9de6Swdenkcsb272_config: unconfig 1226f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1227cd0a9de6Swdenk 1228aa245090Swdenkcsb472_config: unconfig 1229f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1230aa245090Swdenk 12317ebf7443SwdenkDASA_SIM_config: unconfig 1232f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 12337ebf7443Swdenk 123472cd5aa7SstroeseDP405_config: unconfig 1235f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 123672cd5aa7Sstroese 12377ebf7443SwdenkDU405_config: unconfig 1238f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 12397ebf7443Swdenk 12401a3ac86bSMatthias FuchsDU440_config: unconfig 12411a3ac86bSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 12421a3ac86bSMatthias Fuchs 12438a316c9bSStefan Roeseebony_config: unconfig 1244f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 12457ebf7443Swdenk 12467ebf7443SwdenkERIC_config: unconfig 1247f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 12487ebf7443Swdenk 1249d1cbe85bSwdenkEXBITGEN_config: unconfig 1250f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1251d1cbe85bSwdenk 1252c419d1d6SstroeseG2000_config: unconfig 1253f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1254c419d1d6Sstroese 1255ac982ea5SNiklaus Gigerhcu4_config: unconfig 1256b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 125735d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1258ac982ea5SNiklaus Giger 1259ac982ea5SNiklaus Gigerhcu5_config: unconfig 1260b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 126135d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1262ac982ea5SNiklaus Giger 1263c419d1d6SstroeseHH405_config: unconfig 1264f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1265c419d1d6Sstroese 126672cd5aa7SstroeseHUB405_config: unconfig 1267f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 126872cd5aa7Sstroese 1269db01a2eaSwdenkJSE_config: unconfig 1270f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1271db01a2eaSwdenk 1272b79316f2SStefan RoeseKAREF_config: unconfig 1273f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1274b79316f2SStefan Roese 12754745acaaSStefan Roesekatmai_config: unconfig 12764745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 12774745acaaSStefan Roese 1278353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1279353f2688SStefan Roesekilauea_config \ 1280353f2688SStefan Roesehaleakala_config: unconfig 1281353f2688SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1282566806caSStefan Roese 12833d6cb3b2SStefan Roesekilauea_nand_config \ 12843d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 12853d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 12863d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 12873d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 12883d6cb3b2SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 12893d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 12903d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 12913d6cb3b2SStefan Roese 1292c591dffeSLarry Johnsonkorat_config: unconfig 1293c591dffeSLarry Johnson @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1294c591dffeSLarry Johnson 12956e7fb6eaSStefan Roeseluan_config: unconfig 1296f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 12976e7fb6eaSStefan Roese 1298b765ffb7SStefan Roeselwmon5_config: unconfig 1299b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1300b765ffb7SStefan Roese 1301211ea91aSStefan Roesemakalu_config: unconfig 1302211ea91aSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1303211ea91aSStefan Roese 1304b05f3543SNiklaus Gigermcu25_config: unconfig 1305b05f3543SNiklaus Giger @mkdir -p $(obj)board/netstal/common 1306b05f3543SNiklaus Giger @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal 1307b05f3543SNiklaus Giger 1308b79316f2SStefan RoeseMETROBOX_config: unconfig 1309f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1310b79316f2SStefan Roese 13117ebf7443SwdenkMIP405_config: unconfig 1312f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 13137ebf7443Swdenk 1314f3e0de60SwdenkMIP405T_config: unconfig 1315f9328639SMarian Balakowicz @mkdir -p $(obj)include 1316f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1317ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1318f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1319f3e0de60Swdenk 13207ebf7443SwdenkML2_config: unconfig 1321f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 13227ebf7443Swdenk 1323028ab6b5Swdenkml300_config: unconfig 1324f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1325028ab6b5Swdenk 13268a316c9bSStefan Roeseocotea_config: unconfig 1327f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 13280e6d798cSwdenk 13297ebf7443SwdenkOCRTC_config \ 13307ebf7443SwdenkORSG_config: unconfig 1331f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 13327ebf7443Swdenk 13335568e613SStefan Roesep3p440_config: unconfig 1334f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 13355568e613SStefan Roese 13367ebf7443SwdenkPCI405_config: unconfig 1337f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 13387ebf7443Swdenk 1339a4c8d138SStefan Roesepcs440ep_config: unconfig 1340f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1341a4c8d138SStefan Roese 13427ebf7443SwdenkPIP405_config: unconfig 1343f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 13447ebf7443Swdenk 134572cd5aa7SstroesePLU405_config: unconfig 1346f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 134772cd5aa7Sstroese 1348549826eaSstroesePMC405_config: unconfig 1349f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1350549826eaSstroese 13518ba132caSMatthias FuchsPMC440_config: unconfig 13528ba132caSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 13538ba132caSMatthias Fuchs 1354281e00a3SwdenkPPChameleonEVB_config \ 1355e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1356e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1357e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1358e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1359e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1360e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1361f9328639SMarian Balakowicz @mkdir -p $(obj)include 13621d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1363f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1364ae6d1056SWolfgang Denk $(XECHO) "... BASIC model" ; \ 1365fbe4b5cbSwdenk } 13661d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1367f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1368ae6d1056SWolfgang Denk $(XECHO) "... MEDIUM model" ; \ 1369fbe4b5cbSwdenk } 13701d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1371f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1372ae6d1056SWolfgang Denk $(XECHO) "... HIGH-END model" ; \ 1373fbe4b5cbSwdenk } 1374e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1375f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1376ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 1377e55ca7e2Swdenk } 1378e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1379f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1380ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 1381e55ca7e2Swdenk } 1382f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 138312f34241Swdenk 1384430f1b0fSStefan Roesesbc405_config: unconfig 1385430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1386430f1b0fSStefan Roese 1387430f1b0fSStefan Roesesequoia_config \ 1388854bc8daSStefan Roeserainier_config: unconfig 13898318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1390430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1391430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 13922aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1393854bc8daSStefan Roese 1394430f1b0fSStefan Roesesequoia_nand_config \ 1395854bc8daSStefan Roeserainier_nand_config: unconfig 139663e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 139763e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 13988318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1399430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1400430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1401430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 14028318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 14038318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1404652a10c0Swdenk 14056d3e0107SWolfgang Denksc3_config:unconfig 140635d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1407ca43ba18SHeiko Schocher 1408d4024bb7SJohn Otkentaihu_config: unconfig 1409d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1410d4024bb7SJohn Otken 14115fb692caSStefan Roesetaishan_config: unconfig 14125fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 14135fb692caSStefan Roese 141472cd5aa7SstroeseVOH405_config: unconfig 1415f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 141672cd5aa7Sstroese 1417c419d1d6SstroeseVOM405_config: unconfig 1418f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1419c419d1d6Sstroese 1420feaedfcfSStefan RoeseCMS700_config: unconfig 1421f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1422feaedfcfSStefan Roese 14237ebf7443SwdenkW7OLMC_config \ 14247ebf7443SwdenkW7OLMG_config: unconfig 1425f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 14267ebf7443Swdenk 1427430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1428430f1b0fSStefan Roesewalnut_config \ 1429430f1b0fSStefan Roesesycamore_config: unconfig 1430430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 14317ebf7443Swdenk 1432c419d1d6SstroeseWUH405_config: unconfig 1433f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1434c419d1d6Sstroese 1435ba56f625SwdenkXPEDITE1K_config: unconfig 1436f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1437ba56f625Swdenk 1438430f1b0fSStefan Roeseyosemite_config \ 14398a316c9bSStefan Roeseyellowstone_config: unconfig 1440700200c6SStefan Roese @mkdir -p $(obj)include 1441430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1442430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 14432aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 14448a316c9bSStefan Roese 14456c5879f3SMarian Balakowiczyucca_config: unconfig 1446f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 14476c5879f3SMarian Balakowicz 1448779e9751SStefan Roesezeus_config: unconfig 1449779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1450779e9751SStefan Roese 14517ebf7443Swdenk######################################################################### 1452983fda83Swdenk## MPC8220 Systems 1453983fda83Swdenk######################################################################### 1454dc17fb6dSWolfgang Denk 1455dc17fb6dSWolfgang DenkAlaska8220_config \ 1456dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1457f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1458983fda83Swdenk 145912b43d51Swdenksorcery_config: unconfig 1460f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 146112b43d51Swdenk 1462983fda83Swdenk######################################################################### 14637ebf7443Swdenk## MPC824x Systems 14647ebf7443Swdenk######################################################################### 1465efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 14663bac3513Swdenk 14670332990bSwdenkA3000_config: unconfig 1468f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 14690332990bSwdenk 14708e6f1a8eSWolfgang Denkbarco_config: unconfig 1471f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 14728e6f1a8eSWolfgang Denk 14737ebf7443SwdenkBMW_config: unconfig 1474f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 14757ebf7443Swdenk 14763bac3513SwdenkCPC45_config \ 14773bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1478f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1479f9328639SMarian Balakowicz @cd $(obj)include ; \ 14803bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 14813bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1482ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 14833bac3513Swdenk else \ 14843bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1485ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 14863bac3513Swdenk fi; \ 14873bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 14883bac3513Swdenk 14897ebf7443SwdenkCU824_config: unconfig 1490f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 14917ebf7443Swdenk 14927abf0c58Swdenkdebris_config: unconfig 1493f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 14947abf0c58Swdenk 149580885a9dSwdenkeXalion_config: unconfig 1496f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 149780885a9dSwdenk 1498756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1499f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1500756f586aSwdenk 150153dd6ce4SWolfgang Denkkvme080_config: unconfig 1502f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 150353dd6ce4SWolfgang Denk 150461525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 150561525f2fSGuennadi Liakhovetski# time permits. 150661525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \ 150761525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed 150861525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig 150961525f2fSGuennadi Liakhovetski @mkdir -p $(obj)include 151061525f2fSGuennadi Liakhovetski @case $@ in \ 151161525f2fSGuennadi Liakhovetski *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 151261525f2fSGuennadi Liakhovetski *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 151361525f2fSGuennadi Liakhovetski esac 151461525f2fSGuennadi Liakhovetski @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation 151561525f2fSGuennadi Liakhovetski 15167ebf7443SwdenkMOUSSE_config: unconfig 1517f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 15187ebf7443Swdenk 15197ebf7443SwdenkMUSENKI_config: unconfig 1520f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 15217ebf7443Swdenk 1522b4676a25SwdenkMVBLUE_config: unconfig 1523f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1524b4676a25Swdenk 15257ebf7443SwdenkOXC_config: unconfig 1526f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 15277ebf7443Swdenk 15287ebf7443SwdenkPN62_config: unconfig 1529f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 15307ebf7443Swdenk 15317ebf7443SwdenkSandpoint8240_config: unconfig 1532f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15337ebf7443Swdenk 15347ebf7443SwdenkSandpoint8245_config: unconfig 1535f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15367ebf7443Swdenk 1537466b7410Swdenksbc8240_config: unconfig 1538f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1539466b7410Swdenk 1540d1cbe85bSwdenkSL8245_config: unconfig 1541f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1542d1cbe85bSwdenk 15437ebf7443Swdenkutx8245_config: unconfig 1544f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 15457ebf7443Swdenk 15467ebf7443Swdenk######################################################################### 15477ebf7443Swdenk## MPC8260 Systems 15487ebf7443Swdenk######################################################################### 15497ebf7443Swdenk 155054387ac9Swdenkatc_config: unconfig 1551f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 155254387ac9Swdenk 15537ebf7443Swdenkcogent_mpc8260_config: unconfig 1554f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 15557ebf7443Swdenk 15567ebf7443SwdenkCPU86_config \ 15577ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1558f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1559f9328639SMarian Balakowicz @cd $(obj)include ; \ 15607ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 15617ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1562ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 15637ebf7443Swdenk else \ 15647ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1565ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 15667ebf7443Swdenk fi; \ 15677ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 15687ebf7443Swdenk 1569384cc687SwdenkCPU87_config \ 1570384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1571f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1572f9328639SMarian Balakowicz @cd $(obj)include ; \ 1573384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1574384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1575ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1576384cc687Swdenk else \ 1577384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1578ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1579384cc687Swdenk fi; \ 1580384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1581384cc687Swdenk 1582f901a83bSWolfgang Denkep8248_config \ 1583f901a83bSWolfgang Denkep8248E_config : unconfig 1584f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1585f901a83bSWolfgang Denk 15867ebf7443Swdenkep8260_config: unconfig 1587f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 15887ebf7443Swdenk 15898d4ac794SWolfgang Denkep82xxm_config: unconfig 159090b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 15918d4ac794SWolfgang Denk 15927ebf7443Swdenkgw8260_config: unconfig 1593f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 15947ebf7443Swdenk 15957ebf7443Swdenkhymod_config: unconfig 1596f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 15977ebf7443Swdenk 15989dd41a7bSwdenkIDS8247_config: unconfig 1599f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 16009dd41a7bSwdenk 16017ebf7443SwdenkIPHASE4539_config: unconfig 1602f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 16037ebf7443Swdenk 1604c3c7f861SwdenkISPAN_config \ 1605c3c7f861SwdenkISPAN_REVB_config: unconfig 1606f9328639SMarian Balakowicz @mkdir -p $(obj)include 1607c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1608f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1609c3c7f861Swdenk fi 1610f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1611c3c7f861Swdenk 1612ac9db066SHeiko Schochermgcoge_config : unconfig 1613ac9db066SHeiko Schocher @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge 1614ac9db066SHeiko Schocher 161504a85b3bSwdenkMPC8260ADS_config \ 1616901787d6SwdenkMPC8260ADS_lowboot_config \ 161704a85b3bSwdenkMPC8260ADS_33MHz_config \ 1618901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 161904a85b3bSwdenkMPC8260ADS_40MHz_config \ 1620901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 162104a85b3bSwdenkMPC8272ADS_config \ 1622901787d6SwdenkMPC8272ADS_lowboot_config \ 162304a85b3bSwdenkPQ2FADS_config \ 1624901787d6SwdenkPQ2FADS_lowboot_config \ 162504a85b3bSwdenkPQ2FADS-VR_config \ 1626901787d6SwdenkPQ2FADS-VR_lowboot_config \ 162704a85b3bSwdenkPQ2FADS-ZU_config \ 1628901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 162904a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1630901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 163104a85b3bSwdenk : unconfig 1632f9328639SMarian Balakowicz @mkdir -p $(obj)include 1633b7e24d28SJon Loeliger @mkdir -p $(obj)board/freescale/mpc8260ads 163404a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1635f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1636f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 163704a85b3bSwdenk $(if $(findstring MHz,$@), \ 1638f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 163904a85b3bSwdenk $(if $(findstring VR,$@), \ 1640f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1641901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1642b7e24d28SJon Loeliger { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \ 1643ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 1644901787d6Swdenk } 1645b7e24d28SJon Loeliger @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale 16467ebf7443Swdenk 1647db2f721fSwdenkMPC8266ADS_config: unconfig 1648aa3511e4SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale 1649db2f721fSwdenk 1650efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 165110f67017SwdenkPM825_config \ 1652efa329cbSwdenkPM825_ROMBOOT_config \ 1653efa329cbSwdenkPM825_BIGFLASH_config \ 1654efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 16557ebf7443SwdenkPM826_config \ 1656efa329cbSwdenkPM826_ROMBOOT_config \ 1657efa329cbSwdenkPM826_BIGFLASH_config \ 1658efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1659f9328639SMarian Balakowicz @mkdir -p $(obj)include 1660f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1661efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1662f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 16637ebf7443Swdenk else \ 1664f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1665efa329cbSwdenk fi 1666efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1667ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1668f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1669f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1670efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1671ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1672f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 16737ebf7443Swdenk fi; \ 1674efa329cbSwdenk else \ 1675ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1676efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1677ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1678f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1679f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1680efa329cbSwdenk else \ 1681f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1682efa329cbSwdenk fi; \ 1683efa329cbSwdenk fi 1684f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1685efa329cbSwdenk 1686efa329cbSwdenkPM828_config \ 1687efa329cbSwdenkPM828_PCI_config \ 1688efa329cbSwdenkPM828_ROMBOOT_config \ 1689efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1690f9328639SMarian Balakowicz @mkdir -p $(obj)include 1691f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 169217076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1693f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1694ae6d1056SWolfgang Denk $(XECHO) "... with PCI enabled" ; \ 1695efa329cbSwdenk fi 1696efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1697ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1698f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1699f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1700efa329cbSwdenk fi 1701f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 17027ebf7443Swdenk 17037ebf7443Swdenkppmc8260_config: unconfig 1704f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 17057ebf7443Swdenk 17068b0bfc68SwdenkRattler8248_config \ 17078b0bfc68SwdenkRattler_config: unconfig 1708f9328639SMarian Balakowicz @mkdir -p $(obj)include 17098b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1710f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1711f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 17128b0bfc68Swdenk 17137ebf7443SwdenkRPXsuper_config: unconfig 1714f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 17157ebf7443Swdenk 17167ebf7443Swdenkrsdproto_config: unconfig 1717f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 17187ebf7443Swdenk 17197ebf7443Swdenksacsng_config: unconfig 1720f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 17217ebf7443Swdenk 17227ebf7443Swdenksbc8260_config: unconfig 1723f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 17247ebf7443Swdenk 17257ebf7443SwdenkSCM_config: unconfig 1726f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 17277ebf7443Swdenk 172827b207fdSwdenkTQM8255_AA_config \ 172927b207fdSwdenkTQM8260_AA_config \ 173027b207fdSwdenkTQM8260_AB_config \ 173127b207fdSwdenkTQM8260_AC_config \ 173227b207fdSwdenkTQM8260_AD_config \ 173327b207fdSwdenkTQM8260_AE_config \ 173427b207fdSwdenkTQM8260_AF_config \ 173527b207fdSwdenkTQM8260_AG_config \ 173627b207fdSwdenkTQM8260_AH_config \ 17371f62bc2dSWolfgang DenkTQM8260_AI_config \ 173827b207fdSwdenkTQM8265_AA_config: unconfig 1739f9328639SMarian Balakowicz @mkdir -p $(obj)include 174027b207fdSwdenk @case "$@" in \ 174127b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 174227b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 174327b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 174427b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 174527b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 174627b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 174727b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 174827b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 174927b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 17501f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 175127b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 175227b207fdSwdenk esac; \ 175327b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1754f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 175527b207fdSwdenk fi; \ 1756f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 175727b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 17581aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1759f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1760ae6d1056SWolfgang Denk $(XECHO) "... with L2 Cache support" ; \ 17617ebf7443Swdenk else \ 1762f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1763ae6d1056SWolfgang Denk $(XECHO) "... without L2 Cache support" ; \ 176427b207fdSwdenk fi; \ 17651aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1766f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1767ae6d1056SWolfgang Denk $(XECHO) "... with 60x Bus Mode" ; \ 176827b207fdSwdenk else \ 1769f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1770ae6d1056SWolfgang Denk $(XECHO) "... without 60x Bus Mode" ; \ 17717ebf7443Swdenk fi 1772f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 17737ebf7443Swdenk 1774fa230445SHeiko SchocherTQM8272_config: unconfig 1775210ed200SWolfgang Denk @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 1776fa230445SHeiko Schocher 1777ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1778ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1779f9328639SMarian Balakowicz @mkdir -p $(obj)include 1780f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1781f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1782ba91e26aSwdenk 178354387ac9SwdenkZPC1900_config: unconfig 1784f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 17857aa78614Swdenk 17864e5ca3ebSwdenk######################################################################### 17874e5ca3ebSwdenk## Coldfire 17884e5ca3ebSwdenk######################################################################### 17894e5ca3ebSwdenk 17901552af70STsiChungLiewM52277EVB_config: unconfig 17911552af70STsiChungLiew @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 17921552af70STsiChungLiew 17934a442d31STsiChungLiewM5235EVB_config \ 17944a442d31STsiChungLiewM5235EVB_Flash16_config \ 17954a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 17964a442d31STsiChungLiew @case "$@" in \ 17974a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 17984a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 17994a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 18004a442d31STsiChungLiew esac; \ 18014a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1802ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 18034a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18044a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18054a442d31STsiChungLiew else \ 18064a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18074a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18084a442d31STsiChungLiew fi 18094a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 18104a442d31STsiChungLiew 1811a605aacdSTsiChungLiewM5249EVB_config : unconfig 1812a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1813a605aacdSTsiChungLiew 1814a1436a84STsiChungLiewM5253EVBE_config : unconfig 1815a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1816a1436a84STsiChungLiew 18177481266eSWolfgang Denkcobra5272_config : unconfig 1818f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 18197481266eSWolfgang Denk 18204176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1821f9328639SMarian Balakowicz @mkdir -p $(obj)include 1822f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1823f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1824f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18254176c799SWolfgang Denk 18264176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1827f9328639SMarian Balakowicz @mkdir -p $(obj)include 1828f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1829f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1830f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18314176c799SWolfgang Denk 1832daa6e418SBartlomiej Siekaidmr_config : unconfig 1833daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1834daa6e418SBartlomiej Sieka 18354176c799SWolfgang DenkM5271EVB_config : unconfig 1836f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 18374176c799SWolfgang Denk 18384e5ca3ebSwdenkM5272C3_config : unconfig 1839f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 18404e5ca3ebSwdenk 1841545c8e0aSMatthew FettkeM5275EVB_config : unconfig 1842545c8e0aSMatthew Fettke @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale 1843545c8e0aSMatthew Fettke 18444e5ca3ebSwdenkM5282EVB_config : unconfig 1845f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 18464e5ca3ebSwdenk 1847c419d1d6SstroeseTASREG_config : unconfig 1848f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1849c419d1d6Sstroese 18508e585f02STsiChung LiewM5329AFEE_config \ 18518e585f02STsiChung LiewM5329BFEE_config : unconfig 18528e585f02STsiChung Liew @case "$@" in \ 18538e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 18548e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 18558e585f02STsiChung Liew esac; \ 18568e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1857ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 18588e585f02STsiChung Liew fi 18598e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 18608e585f02STsiChung Liew 1861aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1862aa5f1f9dSTsiChungLiew @case "$@" in \ 1863aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1864aa5f1f9dSTsiChungLiew esac; \ 1865aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1866aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1867aa5f1f9dSTsiChungLiew fi 1868aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1869aa5f1f9dSTsiChungLiew 18708ae158cdSTsiChungLiewM54455EVB_config \ 18718ae158cdSTsiChungLiewM54455EVB_atmel_config \ 18728ae158cdSTsiChungLiewM54455EVB_intel_config \ 18738ae158cdSTsiChungLiewM54455EVB_a33_config \ 18748ae158cdSTsiChungLiewM54455EVB_a66_config \ 18758ae158cdSTsiChungLiewM54455EVB_i33_config \ 18768ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 18778ae158cdSTsiChungLiew @case "$@" in \ 18788ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 18798ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 18808ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 18818ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 18828ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 18838ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 18848ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 18858ae158cdSTsiChungLiew esac; \ 18861aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 18874a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1888e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1889e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1890ae6d1056SWolfgang Denk $(XECHO) "... with INTEL boot..." ; \ 18918ae158cdSTsiChungLiew else \ 18924a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1893e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1894e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1895ae6d1056SWolfgang Denk $(XECHO) "... with ATMEL boot..." ; \ 18968ae158cdSTsiChungLiew fi; \ 18974a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1898ae6d1056SWolfgang Denk $(XECHO) "... with $${FREQ}Hz input clock" 18998ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 19008ae158cdSTsiChungLiew 190157a12720STsiChungLiewM5475AFE_config \ 190257a12720STsiChungLiewM5475BFE_config \ 190357a12720STsiChungLiewM5475CFE_config \ 190457a12720STsiChungLiewM5475DFE_config \ 190557a12720STsiChungLiewM5475EFE_config \ 190657a12720STsiChungLiewM5475FFE_config \ 190757a12720STsiChungLiewM5475GFE_config : unconfig 190857a12720STsiChungLiew @case "$@" in \ 190957a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 191057a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 191157a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 191257a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 191357a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 191457a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 191557a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 191657a12720STsiChungLiew esac; \ 191757a12720STsiChungLiew echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \ 191857a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 191957a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 192057a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 192157a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 192257a12720STsiChungLiew fi; \ 192357a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 192457a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 192557a12720STsiChungLiew fi; \ 192657a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 192757a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 192857a12720STsiChungLiew fi; \ 192957a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 193057a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 193157a12720STsiChungLiew fi 193257a12720STsiChungLiew @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 193357a12720STsiChungLiew 193457a12720STsiChungLiewM5485AFE_config \ 193557a12720STsiChungLiewM5485BFE_config \ 193657a12720STsiChungLiewM5485CFE_config \ 193757a12720STsiChungLiewM5485DFE_config \ 193857a12720STsiChungLiewM5485EFE_config \ 193957a12720STsiChungLiewM5485FFE_config \ 194057a12720STsiChungLiewM5485GFE_config \ 194157a12720STsiChungLiewM5485HFE_config : unconfig 194257a12720STsiChungLiew @case "$@" in \ 194357a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 194457a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 194557a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 194657a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 194757a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 194857a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 194957a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 19504d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 195157a12720STsiChungLiew esac; \ 195257a12720STsiChungLiew echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \ 195357a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 195457a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 195557a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 195657a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 195757a12720STsiChungLiew fi; \ 195857a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 195957a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 196057a12720STsiChungLiew fi; \ 196157a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 196257a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 196357a12720STsiChungLiew fi; \ 196457a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 196557a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 196657a12720STsiChungLiew fi 196757a12720STsiChungLiew @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 196857a12720STsiChungLiew 19697ebf7443Swdenk######################################################################### 1970f046ccd1SEran Liberty## MPC83xx Systems 1971f046ccd1SEran Liberty######################################################################### 1972f046ccd1SEran Liberty 19735c5d3242SKim PhillipsMPC8313ERDB_33_config \ 19745c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 1975cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1976c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 1977ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 1978cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 19795c5d3242SKim Phillips fi ; \ 19805c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1981ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 1982cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 19835c5d3242SKim Phillips fi ; 1984e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 19855c5d3242SKim Phillips 19868bd522ceSDave LiuMPC8315ERDB_config: unconfig 19878bd522ceSDave Liu @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 19888bd522ceSDave Liu 19891c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 19901c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 19911c274c4eSKim Phillips 19924decd84eSKim PhillipsMPC832XEMDS_config \ 19934decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 19944decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1995281df457STony LiMPC832XEMDS_SLAVE_config \ 1996281df457STony LiMPC832XEMDS_ATM_config: unconfig 1997cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1998c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 1999ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2000cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20014decd84eSKim Phillips fi ; \ 20024decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2003ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2004cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2005cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20064decd84eSKim Phillips fi ; \ 20074decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 2008ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2009cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2010281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20114decd84eSKim Phillips fi ; \ 20124decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 2013ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2014cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2015281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2016281df457STony Li fi ; \ 2017281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2018ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2019281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2020281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20214decd84eSKim Phillips fi ; 2022e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 2023e6f2e902SMarian Balakowicz 2024991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 2025e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 2026991425feSMarian Balakowicz 20277a78f148STimur TabiMPC8349ITX_config \ 20287a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 20297a78f148STimur TabiMPC8349ITXGP_config: unconfig 20307a78f148STimur Tabi @mkdir -p $(obj)include 2031e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 20327a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 20337a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 2034e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20357a78f148STimur Tabi fi 20367a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2037e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20387a78f148STimur Tabi fi 2039e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 20404decd84eSKim Phillips 20415f820439SDave LiuMPC8360EMDS_config \ 20425f820439SDave LiuMPC8360EMDS_HOST_33_config \ 20435f820439SDave LiuMPC8360EMDS_HOST_66_config \ 2044281df457STony LiMPC8360EMDS_SLAVE_config \ 2045281df457STony LiMPC8360EMDS_ATM_config: unconfig 2046cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2047c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2048ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2049cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20505f820439SDave Liu fi ; \ 20515f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2052ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2053cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2054cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20555f820439SDave Liu fi ; \ 20565f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 2057ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2058cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2059281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20605f820439SDave Liu fi ; \ 20615f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 2062ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2063cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2064281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2065281df457STony Li fi ; \ 2066281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2067ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2068281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2069281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20705f820439SDave Liu fi ; 2071e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 20725f820439SDave Liu 2073fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 2074fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 207591c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 2076fab6f556SAnton Vorontsov @mkdir -p $(obj)include 2077c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2078ae6d1056SWolfgang Denk $(XECHO) -n "... CLKIN 33MHz " ; \ 2079fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2080fab6f556SAnton Vorontsov fi ; 2081fab6f556SAnton Vorontsov @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2082fab6f556SAnton Vorontsov 208319580e66SDave LiuMPC837XEMDS_config \ 208419580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 208519580e66SDave Liu @mkdir -p $(obj)include 2086c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2087ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 208819580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 208919580e66SDave Liu fi ; 209019580e66SDave Liu @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 209119580e66SDave Liu 20925e918a98SKim PhillipsMPC837XERDB_config: unconfig 20935e918a98SKim Phillips @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 20945e918a98SKim Phillips 209591e25769SPaul Gortmakersbc8349_config: unconfig 209691e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 209791e25769SPaul Gortmaker 20984decd84eSKim PhillipsTQM834x_config: unconfig 20994decd84eSKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 21004decd84eSKim Phillips 21012ad6b513STimur Tabi 2102f046ccd1SEran Liberty######################################################################### 210342d1f039Swdenk## MPC85xx Systems 210442d1f039Swdenk######################################################################### 210542d1f039Swdenk 21067bd6104bSrobert lazarskiATUM8548_config: unconfig 21077bd6104bSrobert lazarski @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 21087bd6104bSrobert lazarski 210942d1f039SwdenkMPC8540ADS_config: unconfig 2110c2d943ffSKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 211142d1f039Swdenk 2112b0e32949SLunsheng WangMPC8540EVAL_config \ 2113b0e32949SLunsheng WangMPC8540EVAL_33_config \ 2114b0e32949SLunsheng WangMPC8540EVAL_66_config \ 2115b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 2116b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 2117f9328639SMarian Balakowicz @mkdir -p $(obj)include 2118c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2119ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2120b0e32949SLunsheng Wang else \ 2121f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2122ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2123b0e32949SLunsheng Wang fi ; \ 2124b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 2125f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2126ae6d1056SWolfgang Denk $(XECHO) " slave" ; \ 2127b0e32949SLunsheng Wang else \ 2128ae6d1056SWolfgang Denk $(XECHO) " host" ; \ 2129b0e32949SLunsheng Wang fi 2130f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2131b0e32949SLunsheng Wang 213242d1f039SwdenkMPC8560ADS_config: unconfig 2133870ceac5SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 213442d1f039Swdenk 21357f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 213603f5c550SwdenkMPC8541CDS_config: unconfig 21377f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2138c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21397f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2140ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21417f3f2bd2SRandy Vinson fi 2142415a613bSKumar Gala @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 214303f5c550Swdenk 214481f481caSAndy FlemingMPC8544DS_config: unconfig 214581f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 214681f481caSAndy Fleming 21477f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 2148d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 21497f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2150c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21517f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2152ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21537f3f2bd2SRandy Vinson fi 2154415a613bSKumar Gala @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2155d9b94f28SJon Loeliger 21567f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 215703f5c550SwdenkMPC8555CDS_config: unconfig 21587f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2159c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21607f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2161ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21627f3f2bd2SRandy Vinson fi 2163415a613bSKumar Gala @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 21647abf0c58Swdenk 216567431059SAndy FlemingMPC8568MDS_config: unconfig 2166acbca876SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 216767431059SAndy Fleming 2168384cc687SwdenkPM854_config: unconfig 2169f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2170384cc687Swdenk 2171b20d0032SWolfgang DenkPM856_config: unconfig 2172f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2173b20d0032SWolfgang Denk 2174c15f3120Swdenksbc8540_config \ 2175c15f3120Swdenksbc8540_33_config \ 2176c15f3120Swdenksbc8540_66_config: unconfig 2177f9328639SMarian Balakowicz @mkdir -p $(obj)include 2178c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2179f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2180ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2181c15f3120Swdenk else \ 2182ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2183c15f3120Swdenk fi 2184f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2185c15f3120Swdenk 218611c45ebdSJoe Hammansbc8548_config: unconfig 218711c45ebdSJoe Hamman @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 218811c45ebdSJoe Hamman 2189466b7410Swdenksbc8560_config \ 2190466b7410Swdenksbc8560_33_config \ 2191466b7410Swdenksbc8560_66_config: unconfig 2192f9328639SMarian Balakowicz @mkdir -p $(obj)include 21938b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2194f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2195ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 21968b07a110Swdenk else \ 2197ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 21988b07a110Swdenk fi 2199f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 22008b07a110Swdenk 220103f5c550Swdenkstxgp3_config: unconfig 2202f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 220303f5c550Swdenk 2204ee152983SWolfgang Denkstxssa_config \ 2205ee152983SWolfgang Denkstxssa_4M_config: unconfig 2206ee152983SWolfgang Denk @mkdir -p $(obj)include 2207ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2208ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2209ae6d1056SWolfgang Denk $(XECHO) "... with 4 MiB flash memory" ; \ 2210ee152983SWolfgang Denk fi 2211ee152983SWolfgang Denk @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 221235171dc0SDan Malek 2213d96f41e0SStefan RoeseTQM8540_config \ 2214d96f41e0SStefan RoeseTQM8541_config \ 2215d96f41e0SStefan RoeseTQM8555_config \ 2216f5c5ef4aSwdenkTQM8560_config: unconfig 2217f9328639SMarian Balakowicz @mkdir -p $(obj)include 2218a889bd27SWolfgang Denk @CTYPE=$(subst TQM,,$(@:_config=)); \ 2219ae6d1056SWolfgang Denk $(XECHO) "... TQM"$${CTYPE}; \ 2220f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2221f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2222f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2223f9328639SMarian Balakowicz echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 22248a783a65SGrant Likely echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 2225f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 2226f5c5ef4aSwdenk 222742d1f039Swdenk######################################################################### 2228debb7354SJon Loeliger## MPC86xx Systems 2229debb7354SJon Loeliger######################################################################### 2230debb7354SJon Loeliger 22313c89d754SJon LoeligerMPC8610HPCD_config: unconfig 22323c89d754SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 22333c89d754SJon Loeliger 2234debb7354SJon LoeligerMPC8641HPCN_config: unconfig 22354ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2236debb7354SJon Loeliger 2237c646bba6SJoe Hammansbc8641d_config: unconfig 223891c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d 2239debb7354SJon Loeliger 2240debb7354SJon Loeliger######################################################################### 22417ebf7443Swdenk## 74xx/7xx Systems 22427ebf7443Swdenk######################################################################### 22437ebf7443Swdenk 2244c7de829cSwdenkAmigaOneG3SE_config: unconfig 2245f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2246c7de829cSwdenk 224715647dc7SwdenkBAB7xx_config: unconfig 2248f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 224915647dc7Swdenk 2250c419d1d6SstroeseCPCI750_config: unconfig 2251f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2252c419d1d6Sstroese 22533a473b2aSwdenkDB64360_config: unconfig 2254f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 22553a473b2aSwdenk 22563a473b2aSwdenkDB64460_config: unconfig 2257f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 22583a473b2aSwdenk 225915647dc7SwdenkELPPC_config: unconfig 2260f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 226115647dc7Swdenk 22627ebf7443SwdenkEVB64260_config \ 22637ebf7443SwdenkEVB64260_750CX_config: unconfig 2264f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 22657ebf7443Swdenk 22664c52783bSroy zangmpc7448hpc2_config: unconfig 22677f1d846eSJon Loeliger @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale 22684c52783bSroy zang 226915647dc7SwdenkP3G4_config: unconfig 2270f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 22717ebf7443Swdenk 22721eac2a71SStefan Roesep3m750_config \ 22731eac2a71SStefan Roesep3m7448_config: unconfig 22741eac2a71SStefan Roese @mkdir -p $(obj)include 22751eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 22761eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 22771eac2a71SStefan Roese else \ 22781eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 22791eac2a71SStefan Roese fi 22801eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 22811eac2a71SStefan Roese 22827ebf7443SwdenkPCIPPC2_config \ 22837ebf7443SwdenkPCIPPC6_config: unconfig 2284f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 22857ebf7443Swdenk 228615647dc7SwdenkZUMA_config: unconfig 2287f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 228812f34241Swdenk 2289f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2290f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2291f5e0d039SHeiko Schocher 22927ebf7443Swdenk#======================================================================== 22937ebf7443Swdenk# ARM 22947ebf7443Swdenk#======================================================================== 22957ebf7443Swdenk######################################################################### 22967ebf7443Swdenk## StrongARM Systems 22977ebf7443Swdenk######################################################################### 22987ebf7443Swdenk 2299ea66bc88Swdenkassabet_config : unconfig 2300f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2301ea66bc88Swdenk 23027ebf7443Swdenkdnp1110_config : unconfig 2303f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 23047ebf7443Swdenk 2305855a496fSwdenkgcplus_config : unconfig 2306f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2307855a496fSwdenk 2308855a496fSwdenklart_config : unconfig 2309f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2310855a496fSwdenk 23117ebf7443Swdenkshannon_config : unconfig 2312f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 23137ebf7443Swdenk 23147ebf7443Swdenk######################################################################### 23152e5983d2Swdenk## ARM92xT Systems 23167ebf7443Swdenk######################################################################### 23177ebf7443Swdenk 2318a4b46ed6SUlf Samuelsson######################################################################### 2319a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems 2320a4b46ed6SUlf Samuelsson######################################################################### 232120b197c6SStelian Pop 2322a85f9f21Swdenkat91rm9200dk_config : unconfig 232365230107SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 2324a85f9f21Swdenk 2325a85f9f21Swdenkcmc_pu2_config : unconfig 2326f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2327a85f9f21Swdenk 2328645da510SWolfgang Denkcsb637_config : unconfig 2329f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2330645da510SWolfgang Denk 2331a4b46ed6SUlf Samuelssonkb9202_config : unconfig 2332a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 2333a4b46ed6SUlf Samuelsson 23340e4018d2SWolfgang Denkmp2usb_config : unconfig 2335f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 23360e4018d2SWolfgang Denk 2337ea8d989fSTimo Tuunainenm501sk_config : unconfig 2338ea8d989fSTimo Tuunainen @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 233987cb6862SWolfgang Denk 2340a4b46ed6SUlf Samuelsson######################################################################### 2341a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems 2342a4b46ed6SUlf Samuelsson######################################################################### 2343a4b46ed6SUlf Samuelsson 2344a4b46ed6SUlf Samuelssonat91cap9adk_config : unconfig 2345a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9 2346a4b46ed6SUlf Samuelsson 2347a4b46ed6SUlf Samuelssonat91sam9260ek_config : unconfig 2348a4b46ed6SUlf Samuelsson @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9 2349a4b46ed6SUlf Samuelsson 235074f4304eSWolfgang Denk######################################################################## 235187cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 235287cb6862SWolfgang Denkintegratorap_config \ 235387cb6862SWolfgang Denkap_config \ 235487cb6862SWolfgang Denkap966_config \ 235587cb6862SWolfgang Denkap922_config \ 235687cb6862SWolfgang Denkap922_XA10_config \ 235787cb6862SWolfgang Denkap7_config \ 235887cb6862SWolfgang Denkap720t_config \ 235987cb6862SWolfgang Denkap920t_config \ 236087cb6862SWolfgang Denkap926ejs_config \ 236187cb6862SWolfgang Denkap946es_config: unconfig 236296782c63SWolfgang Denk @board/integratorap/split_by_variant.sh $@ 23633d3befa7Swdenk 236487cb6862SWolfgang Denkintegratorcp_config \ 236587cb6862SWolfgang Denkcp_config \ 236687cb6862SWolfgang Denkcp920t_config \ 236787cb6862SWolfgang Denkcp926ejs_config \ 236887cb6862SWolfgang Denkcp946es_config \ 236987cb6862SWolfgang Denkcp1136_config \ 237087cb6862SWolfgang Denkcp966_config \ 237187cb6862SWolfgang Denkcp922_config \ 237287cb6862SWolfgang Denkcp922_XA10_config \ 237387cb6862SWolfgang Denkcp1026_config: unconfig 237496782c63SWolfgang Denk @board/integratorcp/split_by_variant.sh $@ 237525d6712aSwdenk 2376f832d8a1Swdenklpd7a400_config \ 2377f832d8a1Swdenklpd7a404_config: unconfig 2378f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 23793d3befa7Swdenk 2380281e00a3Swdenkmx1ads_config : unconfig 2381f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2382281e00a3Swdenk 2383281e00a3Swdenkmx1fs2_config : unconfig 2384f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2385281e00a3Swdenk 2386ac7eb8a3SWolfgang Denknetstar_config: unconfig 2387f4e7cbfcSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm925t netstar 2388ac7eb8a3SWolfgang Denk 23892e5983d2Swdenkomap1510inn_config : unconfig 2390f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 23912e5983d2Swdenk 23921eaeb58eSwdenkomap5912osk_config : unconfig 2393f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 23941eaeb58eSwdenk 2395c74b2108SSergey Kubushyndavinci_dvevm_config : unconfig 2396c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2397c74b2108SSergey Kubushyn 2398c74b2108SSergey Kubushyndavinci_schmoogie_config : unconfig 2399c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2400c74b2108SSergey Kubushyn 2401c74b2108SSergey Kubushyndavinci_sonata_config : unconfig 2402c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2403c74b2108SSergey Kubushyn 2404a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2405a4b46ed6SUlf Samuelsson 240663e73c9aSwdenkomap1610inn_config \ 240763e73c9aSwdenkomap1610inn_cs0boot_config \ 240863e73c9aSwdenkomap1610inn_cs3boot_config \ 24093ff02c27Swdenkomap1610inn_cs_autoboot_config \ 241063e73c9aSwdenkomap1610h2_config \ 241163e73c9aSwdenkomap1610h2_cs0boot_config \ 24123ff02c27Swdenkomap1610h2_cs3boot_config \ 24133ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2414f9328639SMarian Balakowicz @mkdir -p $(obj)include 241563e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2416cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2417ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 24183ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2419cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2420ae6d1056SWolfgang Denk $(XECHO) "... configured for CS_AUTO boot"; \ 242163e73c9aSwdenk else \ 2422cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2423ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 242463e73c9aSwdenk fi; 2425f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 24266f21347dSwdenk 2427a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2428a4b46ed6SUlf Samuelsson 2429a56bd922Swdenkomap730p2_config \ 2430a56bd922Swdenkomap730p2_cs0boot_config \ 2431a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2432f9328639SMarian Balakowicz @mkdir -p $(obj)include 2433a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2434f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2435ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 2436a56bd922Swdenk else \ 2437f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2438ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 2439a56bd922Swdenk fi; 2440f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2441a56bd922Swdenk 244232cb2c70SWolfgang Denksbc2410x_config: unconfig 2443f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 244432cb2c70SWolfgang Denk 2445281e00a3Swdenkscb9328_config : unconfig 2446f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2447281e00a3Swdenk 24487ebf7443Swdenksmdk2400_config : unconfig 2449f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 24507ebf7443Swdenk 24517ebf7443Swdenksmdk2410_config : unconfig 2452f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 24537ebf7443Swdenk 24542d24a3a7SwdenkSX1_config : unconfig 2455f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 24562d24a3a7Swdenk 2457b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 2458a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 2459a4b46ed6SUlf Samuelsson 246043d9616cSwdenktrab_config \ 2461b0639ca3Swdenktrab_bigram_config \ 2462b0639ca3Swdenktrab_bigflash_config \ 2463f54ebdfaSwdenktrab_old_config: unconfig 2464f9328639SMarian Balakowicz @mkdir -p $(obj)include 2465f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2466b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2467f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2468f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2469ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2470b0639ca3Swdenk } 2471b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2472f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2473f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2474ae6d1056SWolfgang Denk $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2475f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2476b0639ca3Swdenk } 2477f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2478f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2479f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2480ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2481f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 248243d9616cSwdenk } 2483f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 24847ebf7443Swdenk 24851cb8e980SwdenkVCMA9_config : unconfig 2486f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 24871cb8e980Swdenk 248887cb6862SWolfgang Denk#======================================================================== 248987cb6862SWolfgang Denk# ARM supplied Versatile development boards 249087cb6862SWolfgang Denk#======================================================================== 249187cb6862SWolfgang Denkversatile_config \ 249287cb6862SWolfgang Denkversatileab_config \ 249387cb6862SWolfgang Denkversatilepb_config : unconfig 249496782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2495074cff0dSwdenk 24963c2b3d45Swdenkvoiceblue_config: unconfig 24974fedfddfSLadislav Michl @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 24983c2b3d45Swdenk 249916b013e7Swdenkcm4008_config : unconfig 2500f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 250116b013e7Swdenk 250216b013e7Swdenkcm41xx_config : unconfig 2503f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 250416b013e7Swdenk 2505074cff0dSwdenk######################################################################### 2506074cff0dSwdenk## S3C44B0 Systems 2507074cff0dSwdenk######################################################################### 2508074cff0dSwdenk 2509074cff0dSwdenkB2_config : unconfig 2510f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2511074cff0dSwdenk 25127ebf7443Swdenk######################################################################### 25137ebf7443Swdenk## ARM720T Systems 25147ebf7443Swdenk######################################################################### 25157ebf7443Swdenk 2516c570b2fdSWolfgang Denkarmadillo_config: unconfig 2517f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2518c570b2fdSWolfgang Denk 25197ebf7443Swdenkep7312_config : unconfig 2520f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 25217ebf7443Swdenk 25222d24a3a7Swdenkimpa7_config : unconfig 2523f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 25242d24a3a7Swdenk 25252d1a537dSwdenkmodnet50_config : unconfig 2526f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 25272d1a537dSwdenk 252839539887Swdenkevb4510_config : unconfig 2529f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 253039539887Swdenk 25316bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2532b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2533b0d8f5bfSPeter Pearse 2534b0d8f5bfSPeter PearseSMN42_config : unconfig 2535b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 25366bd2447eSGary Jennejohn 25377ebf7443Swdenk######################################################################### 253843d9616cSwdenk## XScale Systems 25397ebf7443Swdenk######################################################################### 25407ebf7443Swdenk 2541799891efSMichael Schwingenactux1_config : unconfig 2542799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux1 2543799891efSMichael Schwingen 2544799891efSMichael Schwingenactux2_config : unconfig 2545799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux2 2546799891efSMichael Schwingen 2547799891efSMichael Schwingenactux3_config : unconfig 2548799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux3 2549799891efSMichael Schwingen 2550799891efSMichael Schwingenactux4_config : unconfig 2551799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux4 2552799891efSMichael Schwingen 255320787e23Swdenkadsvix_config : unconfig 2554f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa adsvix 255520787e23Swdenk 2556fabd46acSwdenkcerf250_config : unconfig 2557f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2558fabd46acSwdenk 25597ebf7443Swdenkcradle_config : unconfig 2560f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 25617ebf7443Swdenk 25627ebf7443Swdenkcsb226_config : unconfig 2563f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 25647ebf7443Swdenk 256591c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config : unconfig 2566f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 25670be248faSWolfgang Denk 256843d9616cSwdenkinnokom_config : unconfig 2569f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 257043d9616cSwdenk 25712d5b561eSwdenkixdp425_config : unconfig 2572f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 25732d5b561eSwdenk 2574ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2575f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2576ba94a1bbSWolfgang Denk 257743d9616cSwdenklubbock_config : unconfig 2578f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 257943d9616cSwdenk 25805720df78SHeiko Schocherpleb2_config : unconfig 2581f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 25825720df78SHeiko Schocher 258352f52c14Swdenklogodl_config : unconfig 2584f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 258552f52c14Swdenk 25869d8d5a5bSStefan Roesepdnb3_config \ 25879d8d5a5bSStefan Roesescpu_config: unconfig 2588cdd917a4SWolfgang Denk @mkdir -p $(obj)include 25899d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2590cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2591ae6d1056SWolfgang Denk $(XECHO) "... on SCPU board variant" ; \ 25929d8d5a5bSStefan Roese fi 25939d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2594ba94a1bbSWolfgang Denk 2595f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2596f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2597f57f70aaSWolfgang Denk 25985e5803e1Sstefano babictrizepsiv_config : unconfig 25995e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 26005e5803e1Sstefano babic 26013e38691eSwdenkwepep250_config : unconfig 2602f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 26033e38691eSwdenk 26044ec3a7f0Swdenkxaeniax_config : unconfig 2605f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 26064ec3a7f0Swdenk 2607efa329cbSwdenkxm250_config : unconfig 2608f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2609efa329cbSwdenk 2610ca0e7748Swdenkxsengine_config : unconfig 2611f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2612ca0e7748Swdenk 2613e0269579SMarkus Klotzbücherzylonite_config : 2614f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2615e0269579SMarkus Klotzbücher 26168ed96046Swdenk######################################################################### 26178ed96046Swdenk## ARM1136 Systems 26188ed96046Swdenk######################################################################### 26198ed96046Swdenkomap2420h4_config : unconfig 26205252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx 26215ca9881aSPeter Pearse 26225ca9881aSPeter Pearseapollon_config : unconfig 2623c6fe4dabSWolfgang Denk @mkdir -p $(obj)include 2624751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 26255252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx 2626751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 26278ed96046Swdenk 2628caebc95bSSascha Hauerimx31_litekit_config : unconfig 2629caebc95bSSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31 2630caebc95bSSascha Hauer 26315ad86216SSascha Hauerimx31_phycore_config : unconfig 26325ad86216SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31 26335ad86216SSascha Hauer 2634b5dc9b30SGuennadi Liakhovetskimx31ads_config : unconfig 2635b5dc9b30SGuennadi Liakhovetski @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31 2636b5dc9b30SGuennadi Liakhovetski 26372262cfeeSwdenk#======================================================================== 26382262cfeeSwdenk# i386 26392262cfeeSwdenk#======================================================================== 26402262cfeeSwdenk######################################################################### 26412262cfeeSwdenk## AMD SC520 CDP 26422262cfeeSwdenk######################################################################### 26432262cfeeSwdenksc520_cdp_config : unconfig 2644f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 26452262cfeeSwdenk 26467a8e9bedSwdenksc520_spunk_config : unconfig 2647f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26487a8e9bedSwdenk 26497a8e9bedSwdenksc520_spunk_rel_config : unconfig 2650f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26517a8e9bedSwdenk 265243d9616cSwdenk#======================================================================== 265343d9616cSwdenk# MIPS 265443d9616cSwdenk#======================================================================== 26557ebf7443Swdenk######################################################################### 265643d9616cSwdenk## MIPS32 4Kc 265743d9616cSwdenk######################################################################### 265843d9616cSwdenk 2659e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2660e0ac62d7Swdenk 2661e0ac62d7Swdenkincaip_100MHz_config \ 2662e0ac62d7Swdenkincaip_133MHz_config \ 2663e0ac62d7Swdenkincaip_150MHz_config \ 266443d9616cSwdenkincaip_config: unconfig 2665f9328639SMarian Balakowicz @mkdir -p $(obj)include 2666e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2667f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2668ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 2669e0ac62d7Swdenk } 2670e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2671f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2672ae6d1056SWolfgang Denk $(XECHO) "... with 133MHz system clock" ; \ 2673e0ac62d7Swdenk } 2674e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2675f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2676ae6d1056SWolfgang Denk $(XECHO) "... with 150MHz system clock" ; \ 2677e0ac62d7Swdenk } 2678f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2679e0ac62d7Swdenk 2680f4863a7aSwdenktb0229_config: unconfig 2681f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2682f4863a7aSwdenk 2683e0ac62d7Swdenk######################################################################### 268469459791Swdenk## MIPS32 AU1X00 268569459791Swdenk######################################################################### 268669459791Swdenkdbau1000_config : unconfig 2687f9328639SMarian Balakowicz @mkdir -p $(obj)include 2688210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2689f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 269069459791Swdenk 269169459791Swdenkdbau1100_config : unconfig 2692f9328639SMarian Balakowicz @mkdir -p $(obj)include 2693210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2694f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 269569459791Swdenk 269669459791Swdenkdbau1500_config : unconfig 2697f9328639SMarian Balakowicz @mkdir -p $(obj)include 2698210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2699f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 270069459791Swdenk 2701ff36fd85Swdenkdbau1550_config : unconfig 2702f9328639SMarian Balakowicz @mkdir -p $(obj)include 2703210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2704f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2705ff36fd85Swdenk 2706ff36fd85Swdenkdbau1550_el_config : unconfig 2707f9328639SMarian Balakowicz @mkdir -p $(obj)include 2708210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2709f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2710ff36fd85Swdenk 2711265817c7SWolfgang Denkpb1000_config : unconfig 2712f9328639SMarian Balakowicz @mkdir -p $(obj)include 2713210ed200SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2714f9328639SMarian Balakowicz @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2715265817c7SWolfgang Denk 27168a773983SShinya Kuribayashigth2_config: unconfig 27178a773983SShinya Kuribayashi @mkdir -p $(obj)include 27188a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 27198a773983SShinya Kuribayashi @$(MKCONFIG) -a gth2 mips mips gth2 27208a773983SShinya Kuribayashi 27210764c164SVlad Lunguqemu_mips_config: unconfig 27220764c164SVlad Lungu @mkdir -p $(obj)include 2723210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 27240764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 27250764c164SVlad Lungu 272669459791Swdenk######################################################################### 2727e0ac62d7Swdenk## MIPS64 5Kc 2728e0ac62d7Swdenk######################################################################### 272943d9616cSwdenk 27303e38691eSwdenkpurple_config : unconfig 2731f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 273243d9616cSwdenk 27334a551709Swdenk#======================================================================== 27344a551709Swdenk# Nios 27354a551709Swdenk#======================================================================== 27364a551709Swdenk######################################################################### 27374a551709Swdenk## Nios32 27384a551709Swdenk######################################################################### 27394a551709Swdenk 2740c935d3bdSwdenkDK1C20_safe_32_config \ 2741c935d3bdSwdenkDK1C20_standard_32_config \ 27424a551709SwdenkDK1C20_config: unconfig 2743f9328639SMarian Balakowicz @mkdir -p $(obj)include 2744c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2745f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2746ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2747c935d3bdSwdenk } 2748c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2749f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2750ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2751c935d3bdSwdenk } 2752c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2753f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2754ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2755c935d3bdSwdenk } 2756f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2757c935d3bdSwdenk 2758c935d3bdSwdenkDK1S10_safe_32_config \ 2759c935d3bdSwdenkDK1S10_standard_32_config \ 2760ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2761c935d3bdSwdenkDK1S10_config: unconfig 2762f9328639SMarian Balakowicz @mkdir -p $(obj)include 2763c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2764f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2765ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2766c935d3bdSwdenk } 2767c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2768f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2769ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2770c935d3bdSwdenk } 2771ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2772f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2773ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 2774ec4c544bSwdenk } 2775c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2776f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2777ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2778c935d3bdSwdenk } 2779f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 27804a551709Swdenk 2781aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 2782aaf224abSwdenkADNPESC1_base_32_config \ 2783aaf224abSwdenkADNPESC1_config: unconfig 2784f9328639SMarian Balakowicz @mkdir -p $(obj)include 2785aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2786f9328639SMarian Balakowicz { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2787ae6d1056SWolfgang Denk $(XECHO) "... DNP/EVA2 configuration" ; \ 2788aaf224abSwdenk } 2789aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 2790f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2791ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration" ; \ 2792aaf224abSwdenk } 2793aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2794f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2795ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2796aaf224abSwdenk } 2797f9328639SMarian Balakowicz @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2798aaf224abSwdenk 27995c952cf0Swdenk######################################################################### 28005c952cf0Swdenk## Nios-II 28015c952cf0Swdenk######################################################################### 28025c952cf0Swdenk 28039cc83378SScott McNuttEP1C20_config : unconfig 2804f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 28059cc83378SScott McNutt 28069cc83378SScott McNuttEP1S10_config : unconfig 2807f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 28089cc83378SScott McNutt 28099cc83378SScott McNuttEP1S40_config : unconfig 2810f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 28119cc83378SScott McNutt 28125c952cf0SwdenkPK1C20_config : unconfig 2813f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 28145c952cf0Swdenk 28155c952cf0SwdenkPCI5441_config : unconfig 2816f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 28174a551709Swdenk 2818507bbe3eSwdenk#======================================================================== 2819507bbe3eSwdenk# MicroBlaze 2820507bbe3eSwdenk#======================================================================== 2821507bbe3eSwdenk######################################################################### 2822507bbe3eSwdenk## Microblaze 2823507bbe3eSwdenk######################################################################### 2824507bbe3eSwdenksuzaku_config: unconfig 2825f9328639SMarian Balakowicz @mkdir -p $(obj)include 2826210ed200SWolfgang Denk @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h 2827f9328639SMarian Balakowicz @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2828507bbe3eSwdenk 2829cfc67116SMichal Simekml401_config: unconfig 2830cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2831210ed200SWolfgang Denk @echo "#define CONFIG_ML401 1" > $(obj)include/config.h 283290b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2833cfc67116SMichal Simek 283417980495SMichal Simekxupv2p_config: unconfig 2835cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2836210ed200SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h 283790b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 283817980495SMichal Simek 283960fa72d6SMike Frysinger#======================================================================== 284060fa72d6SMike Frysinger# Blackfin 284160fa72d6SMike Frysinger#======================================================================== 28420afe519aSWolfgang Denk 284360fa72d6SMike Frysinger# Analog Devices boards 284460fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit 28450afe519aSWolfgang Denk 284660fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config) : unconfig 28479171fc81SMike Frysinger @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=) 284826bf7decSAubrey Li 284960fa72d6SMike Frysinger$(BFIN_BOARDS): 285060fa72d6SMike Frysinger $(MAKE) $@_config 285160fa72d6SMike Frysinger $(MAKE) 28520afe519aSWolfgang Denk 28535e3b0bc1SHaavard Skinnemoen#======================================================================== 28545e3b0bc1SHaavard Skinnemoen# AVR32 28555e3b0bc1SHaavard Skinnemoen#======================================================================== 28565e3b0bc1SHaavard Skinnemoen######################################################################### 2857a4b46ed6SUlf Samuelsson## AT32AP70xx 28585e3b0bc1SHaavard Skinnemoen######################################################################### 28595e3b0bc1SHaavard Skinnemoen 28605e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 286136f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28625e3b0bc1SHaavard Skinnemoen 2863667568dbSHaavard Skinnemoenatstk1003_config : unconfig 2864667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2865667568dbSHaavard Skinnemoen 286664ff2357SHaavard Skinnemoenatstk1004_config : unconfig 286764ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28680afe519aSWolfgang Denk 28696b443944SHaavard Skinnemoenatngw100_config : unconfig 28706b443944SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 28716b443944SHaavard Skinnemoen 28720afe519aSWolfgang Denk######################################################################### 28730afe519aSWolfgang Denk######################################################################### 28743e38691eSwdenk######################################################################### 28757ebf7443Swdenk 287669df3c4dSNobuhiro Iwamatsu######################################################################### 2877b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2878b2b5e2bbSYoshihiro Shimoda######################################################################### 28793313e0e2SMark Jonasmpr2_config: unconfig 28803313e0e2SMark Jonas @ >include/config.h 28813313e0e2SMark Jonas @echo "#define CONFIG_MPR2 1" >> include/config.h 28823313e0e2SMark Jonas @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2 28833313e0e2SMark Jonas 2884b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 2885210ed200SWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > include/config.h 288691c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se 2887b2b5e2bbSYoshihiro Shimoda 2888b2b5e2bbSYoshihiro Shimoda######################################################################### 288969df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 289069df3c4dSNobuhiro Iwamatsu######################################################################### 289169df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 2892210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 289391c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se 289469df3c4dSNobuhiro Iwamatsu 2895d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 2896210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 289791c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se 28987a8e9bedSwdenk 2899c2042f59Sgoda.yusukeMigoR_config : unconfig 2900c2042f59Sgoda.yusuke @ >include/config.h 2901c2042f59Sgoda.yusuke @echo "#define CONFIG_MIGO_R 1" >> include/config.h 2902c2042f59Sgoda.yusuke @./mkconfig -a $(@:_config=) sh sh4 MigoR 2903c2042f59Sgoda.yusuke 2904c133c1fbSYusuke Godar7780mp_config: unconfig 2905c133c1fbSYusuke Goda @ >include/config.h 2906c133c1fbSYusuke Goda @echo "#define CONFIG_R7780MP 1" >> include/config.h 2907c133c1fbSYusuke Goda @./mkconfig -a $(@:_config=) sh sh4 r7780mp 2908c133c1fbSYusuke Goda 2909f5e2466fSNobuhiro Iwamatsur2dplus_config : unconfig 2910f5e2466fSNobuhiro Iwamatsu @ >include/config.h 2911f5e2466fSNobuhiro Iwamatsu @echo "#define CONFIG_R2DPLUS 1" >> include/config.h 2912f5e2466fSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 r2dplus 2913f5e2466fSNobuhiro Iwamatsu 2914c2f02da2SDaniel Hellstrom#======================================================================== 2915c2f02da2SDaniel Hellstrom# SPARC 2916c2f02da2SDaniel Hellstrom#======================================================================== 29171e9a164eSDaniel Hellstrom######################################################################### 29181e9a164eSDaniel Hellstrom## LEON3 29191e9a164eSDaniel Hellstrom######################################################################### 2920c2f02da2SDaniel Hellstrom 292171d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board 292271d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig 292371d7e4c0SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler 292471d7e4c0SDaniel Hellstrom 29256ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system 29266ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig 29276ed8a43aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler 29286ed8a43aSDaniel Hellstrom 29296940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS 29306940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60. 29316940383dSDaniel Hellstromgr_ep2s60_config: unconfig 29326940383dSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler 29336940383dSDaniel Hellstrom 2934823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator 2935823edd8aSDaniel Hellstromgrsim_config : unconfig 2936823edd8aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler 2937823edd8aSDaniel Hellstrom 29387ebf7443Swdenk######################################################################### 2939b330990cSDaniel Hellstrom## LEON2 2940b330990cSDaniel Hellstrom######################################################################### 2941b330990cSDaniel Hellstrom 2942ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator 2943ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig 2944ab68f921SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler 2945ab68f921SDaniel Hellstrom 29467ebf7443Swdenk######################################################################### 29477ebf7443Swdenk######################################################################### 29487ebf7443Swdenk######################################################################### 294985ec0bccSwdenk 29503e38691eSwdenkclean: 2951f9301e1cSWolfgang Denk @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \ 2952f9301e1cSWolfgang Denk $(obj)examples/hello_world $(obj)examples/interrupt \ 2953f9301e1cSWolfgang Denk $(obj)examples/mem_to_mem_idma2intr \ 2954f9301e1cSWolfgang Denk $(obj)examples/sched $(obj)examples/smc91111_eeprom \ 2955f9301e1cSWolfgang Denk $(obj)examples/test_burst $(obj)examples/timer 2956f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 2957f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 2958f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 2959f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 2960f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 2961f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 2962f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 2963f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 2964f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 2965f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 2966f9301e1cSWolfgang Denk $(obj)board/{integratorap,integratorcp}/u-boot.lds \ 29679171fc81SMike Frysinger $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \ 29689171fc81SMike Frysinger $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] 2969dc7746d8SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 2970dc7746d8SWolfgang Denk @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map} 29711bb707c3SKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map} 2972f9301e1cSWolfgang Denk @rm -f $(obj)api_examples/demo $(VERSION_FILE) 2973ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 29747ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 29757ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 29767ebf7443Swdenk | xargs rm -f 29777ebf7443Swdenk 29787ebf7443Swdenkclobber: clean 2979ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 29804c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 29814c0d4c3bSwdenk -print0 \ 29824c0d4c3bSwdenk | xargs -0 rm -f 2983ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 29845013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 2985ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2986766529fcSBartlomiej Sieka @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes} 298789cdab78SMike Frysinger @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h} 29887e492d82SMarian Balakowicz @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h} 29895013c09fSWolfgang Denk @rm -f $(obj)cpu/mpc824x/bedbug_603e.c 2990ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2991ae6d1056SWolfgang Denk @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 2992751b9b51SKyungmin Park @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f 2993ae6d1056SWolfgang Denk @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f 29947ebf7443Swdenk 2995f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 29967ebf7443Swdenkmrproper \ 29977ebf7443Swdenkdistclean: clobber unconfig 2998f9328639SMarian Balakowiczelse 2999f9328639SMarian Balakowiczmrproper \ 3000f9328639SMarian Balakowiczdistclean: clobber unconfig 3001ae6d1056SWolfgang Denk rm -rf $(obj)* 3002f9328639SMarian Balakowiczendif 30037ebf7443Swdenk 30047ebf7443Swdenkbackup: 30057ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 30067ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 30077ebf7443Swdenk 30087ebf7443Swdenk######################################################################### 3009