17ebf7443Swdenk# 2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008 37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 47ebf7443Swdenk# 57ebf7443Swdenk# See file CREDITS for list of people who contributed to this 67ebf7443Swdenk# project. 77ebf7443Swdenk# 87ebf7443Swdenk# This program is free software; you can redistribute it and/or 97ebf7443Swdenk# modify it under the terms of the GNU General Public License as 1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of 117ebf7443Swdenk# the License, or (at your option) any later version. 127ebf7443Swdenk# 137ebf7443Swdenk# This program is distributed in the hope that it will be useful, 147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 167ebf7443Swdenk# GNU General Public License for more details. 177ebf7443Swdenk# 187ebf7443Swdenk# You should have received a copy of the GNU General Public License 197ebf7443Swdenk# along with this program; if not, write to the Free Software 207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 217ebf7443Swdenk# MA 02111-1307 USA 227ebf7443Swdenk# 237ebf7443Swdenk 24881a87ecSWolfgang DenkVERSION = 1 25754bac48SWolfgang DenkPATCHLEVEL = 3 2667a4389eSWolfgang DenkSUBLEVEL = 2 2746cb5074SWolfgang DenkEXTRAVERSION = 28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h 30881a87ecSWolfgang Denk 317ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 327ebf7443Swdenk sed -e s/i.86/i386/ \ 337ebf7443Swdenk -e s/sun4u/sparc64/ \ 347ebf7443Swdenk -e s/arm.*/arm/ \ 357ebf7443Swdenk -e s/sa110/arm/ \ 367ebf7443Swdenk -e s/powerpc/ppc/ \ 37a2280646SKumar Gala -e s/ppc64/ppc/ \ 387ebf7443Swdenk -e s/macppc/ppc/) 397ebf7443Swdenk 40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 417ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 427ebf7443Swdenk 43f9d77ed3SWolfgang Denkexport HOSTARCH HOSTOS 447ebf7443Swdenk 457ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 467ebf7443SwdenkVENDOR= 477ebf7443Swdenk 487ebf7443Swdenk######################################################################### 49ae6d1056SWolfgang Denk# Allow for silent builds 50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS))) 51ae6d1056SWolfgang DenkXECHO = echo 52ae6d1056SWolfgang Denkelse 53ae6d1056SWolfgang DenkXECHO = : 54ae6d1056SWolfgang Denkendif 55ae6d1056SWolfgang Denk 56ae6d1056SWolfgang Denk######################################################################### 57f9328639SMarian Balakowicz# 58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external 59f9328639SMarian Balakowicz# directory. Two use cases are supported: 60f9328639SMarian Balakowicz# 61f9328639SMarian Balakowicz# 1) Add O= to the make command line 62f9328639SMarian Balakowicz# 'make O=/tmp/build all' 63f9328639SMarian Balakowicz# 64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location 65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 66f9328639SMarian Balakowicz# 'make' 67f9328639SMarian Balakowicz# 68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script 69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 70f9328639SMarian Balakowicz# './MAKEALL' 71f9328639SMarian Balakowicz# 72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable. 73f9328639SMarian Balakowicz# 74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and 75f9328639SMarian Balakowicz# the object files are placed in the source directory. 76f9328639SMarian Balakowicz# 777ebf7443Swdenk 78f9328639SMarian Balakowiczifdef O 79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line") 80f9328639SMarian BalakowiczBUILD_DIR := $(O) 81f9328639SMarian Balakowiczendif 82f9328639SMarian Balakowiczendif 837ebf7443Swdenk 84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),) 85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR) 864f0645ebSMarian Balakowicz 874f0645ebSMarian Balakowicz# Attempt to create a output directory. 884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 894f0645ebSMarian Balakowicz 904f0645ebSMarian Balakowicz# Verify if it was successful. 91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),) 94f9328639SMarian Balakowicz 95f9328639SMarian BalakowiczOBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 96f9328639SMarian BalakowiczSRCTREE := $(CURDIR) 97f9328639SMarian BalakowiczTOPDIR := $(SRCTREE) 98f9328639SMarian BalakowiczLNDIR := $(OBJTREE) 99f9328639SMarian Balakowiczexport TOPDIR SRCTREE OBJTREE 100f9328639SMarian Balakowicz 101f9328639SMarian BalakowiczMKCONFIG := $(SRCTREE)/mkconfig 102f9328639SMarian Balakowiczexport MKCONFIG 103f9328639SMarian Balakowicz 104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 105f9328639SMarian BalakowiczREMOTE_BUILD := 1 106f9328639SMarian Balakowiczexport REMOTE_BUILD 107f9328639SMarian Balakowiczendif 108f9328639SMarian Balakowicz 109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile 110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for 111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc. 112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 113f9328639SMarian Balakowiczobj := $(OBJTREE)/ 114f9328639SMarian Balakowiczsrc := $(SRCTREE)/ 115f9328639SMarian Balakowiczelse 116f9328639SMarian Balakowiczobj := 117f9328639SMarian Balakowiczsrc := 118f9328639SMarian Balakowiczendif 119f9328639SMarian Balakowiczexport obj src 120f9328639SMarian Balakowicz 1215013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere 1225013c09fSWolfgang Denkunexport CDPATH 1235013c09fSWolfgang Denk 124f9328639SMarian Balakowicz######################################################################### 125f9328639SMarian Balakowicz 126*f8f9dc98SKumar Galaifeq ($(ARCH),powerpc) 127*f8f9dc98SKumar GalaARCH = ppc 128*f8f9dc98SKumar Galaendif 129*f8f9dc98SKumar 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 243ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a 244ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \ 245ad5bb451SWolfgang Denk "post/lib_$(ARCH)/libpost$(ARCH).a"; fi) 246b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \ 247b4489621SSergei Poselenov "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi) 248ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \ 249ad5bb451SWolfgang Denk "post/cpu/$(CPU)/libpost$(CPU).a"; fi) 250ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ 251ad5bb451SWolfgang Denk "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) 2527ebf7443SwdenkLIBS += common/libcommon.a 2537651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 254500856ebSRafal JaworowskiLIBS += api/libapi.a 255f9328639SMarian Balakowicz 256f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 257019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE) 258a8c7c708Swdenk 2594f7cb08eSwdenk# Add GCC lib 2601a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 2613d3befa7Swdenk 262a8c7c708Swdenk# The "tools" are needed early, so put this first 263a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 264a8c7c708SwdenkSUBDIRS = tools \ 2650dc1fc22SRafal Jaworowski examples \ 2660dc1fc22SRafal Jaworowski api_examples 267500856ebSRafal Jaworowski 268b028f715Swdenk.PHONY : $(SUBDIRS) 269a8c7c708Swdenk 270887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 271887e2ec9SStefan RoeseNAND_SPL = nand_spl 272887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 273887e2ec9SStefan Roeseendif 274887e2ec9SStefan Roese 275751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 276751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 277751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 278751b9b51SKyungmin Parkendif 279751b9b51SKyungmin Park 280f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 281f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS)) 282f9328639SMarian Balakowicz 2837ebf7443Swdenk######################################################################### 284bdccc4feSwdenk######################################################################### 2857ebf7443Swdenk 286751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 28794a91e24SMike Frysingerifeq ($(ARCH),blackfin) 28894a91e24SMike FrysingerALL += $(obj)u-boot.ldr 28994a91e24SMike Frysingerendif 2907ebf7443Swdenk 291bdccc4feSwdenkall: $(ALL) 2927ebf7443Swdenk 293f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 2946310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 2956310eb9dSwdenk 296f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 2977ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 2987ebf7443Swdenk 299f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 3007ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 3017ebf7443Swdenk 30294a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 30394a91e24SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS) 30494a91e24SMike Frysinger 30594a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 30694a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 30794a91e24SMike Frysinger 30894a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 30994a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 31094a91e24SMike Frysinger 311f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 312bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 313bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 314881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 315bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 316bdccc4feSwdenk -d $< $@ 317bdccc4feSwdenk 318566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 31901159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 320566a494fSHeiko Schocher 321f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3227ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3237ebf7443Swdenk 324dd531aacSWolfgang Denk$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 3250858b835SMike Frysinger UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 326f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 327f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 328b2184c31Swdenk -Map u-boot.map -o u-boot 3297ebf7443Swdenk 33088f72527SJohannes Stezenbach$(OBJS): depend $(obj)include/autoconf.mk 331f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 332f9328639SMarian Balakowicz 33388f72527SJohannes Stezenbach$(LIBS): depend $(obj)include/autoconf.mk 334f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 335a8c7c708Swdenk 33688f72527SJohannes Stezenbach$(SUBDIRS): depend $(obj)include/autoconf.mk 337b028f715Swdenk $(MAKE) -C $@ all 3387ebf7443Swdenk 339f65c9812SMike Frysinger$(LDSCRIPT): depend $(obj)include/autoconf.mk 340f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 341f65c9812SMike Frysinger 342dd531aacSWolfgang Denk$(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3438318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 344887e2ec9SStefan Roese 345dd531aacSWolfgang Denk$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3468318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 347887e2ec9SStefan Roese 348751b9b51SKyungmin Park$(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk 3491bb707c3SKyungmin Park $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all 350751b9b51SKyungmin Park 351751b9b51SKyungmin Park$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 3521bb707c3SKyungmin Park $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all 353751b9b51SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 3541bb707c3SKyungmin Park cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin 355751b9b51SKyungmin Park 356ae6d1056SWolfgang Denk$(VERSION_FILE): 357ae6d1056SWolfgang Denk @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \ 358ae6d1056SWolfgang Denk echo -n "$(U_BOOT_VERSION)" ; \ 359881a87ecSWolfgang Denk echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ 360ae6d1056SWolfgang Denk $(TOPDIR)) ; \ 3610ec7a061SMike Frysinger echo "\"" ) > $@.tmp 3620ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 363881a87ecSWolfgang Denk 3648f713fdfSdzugdbtools: 365f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 366f9328639SMarian Balakowicz 367f9328639SMarian Balakowiczupdater: 368f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 369f9328639SMarian Balakowicz 370f9328639SMarian Balakowiczenv: 37164b3727bSMarkus Klotzbücher $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 3728f713fdfSdzu 373ae6d1056SWolfgang Denkdepend dep: $(VERSION_FILE) 374f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 3757ebf7443Swdenk 376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR) 378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU) 379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH) 380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs 381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat 382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos 383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2 384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net 385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk 386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common 387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator 388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block 389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon 390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c 391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input 392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc 393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd 394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand 395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy 396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand 397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net 398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin 399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci 400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia 401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe 402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc 403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial 40404a9e118SBen WarrenTAG_SUBDIRS += drivers/spi 405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb 406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video 407a340c325SJean-Christophe PLAGNIOL-VILLARD 408f9328639SMarian Balakowicztags ctags: 409ae6d1056SWolfgang Denk ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 41088fed9a1SWolfgang Denk -name '*.[ch]' -print` 4117ebf7443Swdenk 4127ebf7443Swdenketags: 413ae6d1056SWolfgang Denk etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 41488fed9a1SWolfgang Denk -name '*.[ch]' -print` 415ffda586fSLi Yangcscope: 416ffda586fSLi Yang find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \ 417ffda586fSLi Yang > cscope.files 418ffda586fSLi Yang cscope -b -q -k 4197ebf7443Swdenk 420f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 4217ebf7443Swdenk @$(NM) $< | \ 4227ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 423f9328639SMarian Balakowicz sort > $(obj)System.map 4247ebf7443Swdenk 4252f155f6cSGrant Likely# 4262f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4272f155f6cSGrant Likely# 4282f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4292f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4302f155f6cSGrant Likely# to regenerate the autoconf.mk file. 431ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE) 432ae6d1056SWolfgang Denk @$(XECHO) Generating include/autoconf.mk ; \ 43316fe7775SMike Frysinger set -e ; \ 434ae6d1056SWolfgang Denk : Generate the dependancies ; \ 435ae6d1056SWolfgang Denk $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \ 436ae6d1056SWolfgang Denk : Extract the config macros ; \ 437ae6d1056SWolfgang Denk $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@ 4382f155f6cSGrant Likely 439ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep 4402f155f6cSGrant Likely 4417ebf7443Swdenk######################################################################### 442ae6d1056SWolfgang Denkelse # !config.mk 443f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 444f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 445ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \ 446ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map: 4477ebf7443Swdenk @echo "System not configured - see README" >&2 4487ebf7443Swdenk @ exit 1 449ae6d1056SWolfgang Denkendif # config.mk 4507ebf7443Swdenk 4514e53a258SWolfgang Denk.PHONY : CHANGELOG 4524e53a258SWolfgang DenkCHANGELOG: 453b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 454b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 4554e53a258SWolfgang Denk 4567ebf7443Swdenk######################################################################### 4577ebf7443Swdenk 4587ebf7443Swdenkunconfig: 459887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 4602f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 4612f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 4627ebf7443Swdenk 4637ebf7443Swdenk#======================================================================== 4647ebf7443Swdenk# PowerPC 4657ebf7443Swdenk#======================================================================== 4660db5bca8Swdenk 4670db5bca8Swdenk######################################################################### 4680db5bca8Swdenk## MPC5xx Systems 4690db5bca8Swdenk######################################################################### 4700db5bca8Swdenk 4715e5f9ed2Swdenkcanmb_config: unconfig 472f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 4735e5f9ed2Swdenk 4740db5bca8Swdenkcmi_mpc5xx_config: unconfig 475f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 4760db5bca8Swdenk 477b6e4c403SwdenkPATI_config: unconfig 478f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 479b6e4c403Swdenk 4807ebf7443Swdenk######################################################################### 481945af8d7Swdenk## MPC5xxx Systems 482945af8d7Swdenk######################################################################### 483a87589daSwdenk 484dafba16eSWolfgang Denkaev_config: unconfig 485f9328639SMarian Balakowicz @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 486dafba16eSWolfgang Denk 4876ca24c64Sdzu@denx.deBC3450_config: unconfig 488f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 4896ca24c64Sdzu@denx.de 4905e4b3361SStefan Roesecpci5200_config: unconfig 491f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 4925e4b3361SStefan Roese 493a87589daSwdenkhmi1001_config: unconfig 494f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 495a87589daSwdenk 496e35745bbSwdenkLite5200_config \ 497e35745bbSwdenkLite5200_LOWBOOT_config \ 498e35745bbSwdenkLite5200_LOWBOOT08_config \ 499e35745bbSwdenkicecube_5200_config \ 500e35745bbSwdenkicecube_5200_LOWBOOT_config \ 501e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 502b2001f27Swdenkicecube_5200_DDR_config \ 50379d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 50479d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 505e35745bbSwdenkicecube_5100_config: unconfig 506f9328639SMarian Balakowicz @mkdir -p $(obj)include 507f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 50817d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 50917d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 510f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 511f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 51217d704ebSwdenk fi ; \ 513ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5145cf9da48Swdenk } 5155cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 516f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 5175cf9da48Swdenk echo "... with 8 MB flash only" ; \ 518ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 5195cf9da48Swdenk } 520b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 521f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 522ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 523b2001f27Swdenk } 524d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 525f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 526ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 527d4ca31c4Swdenk } 528a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 529f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 530ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 531945af8d7Swdenk } 532f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 533945af8d7Swdenk 5342605e90bSHeiko Schocherjupiter_config: unconfig 5352605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 5362605e90bSHeiko Schocher 5374707fb50SBartlomiej Siekav38b_config: unconfig 53890b1b2d6SGrant Likely @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 5394707fb50SBartlomiej Sieka 540138ff60cSwdenkinka4x0_config: unconfig 541f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 542138ff60cSwdenk 54309e4b0c5SWolfgang Denklite5200b_config \ 544d3832e8fSDomen Puncerlite5200b_PM_config \ 54509e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 546f9328639SMarian Balakowicz @mkdir -p $(obj)include 547f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 548f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 549ae6d1056SWolfgang Denk @ $(XECHO) "... DDR memory revision" 550f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 551f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 552d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 553d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 554ae6d1056SWolfgang Denk $(XECHO) "... with power management (low-power mode) support" ; \ 555d3832e8fSDomen Puncer } 55609e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 557f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 558ae6d1056SWolfgang Denk $(XECHO) "... with LOWBOOT configuration" ; \ 55909e4b0c5SWolfgang Denk } 560ae6d1056SWolfgang Denk @ $(XECHO) "... with MPC5200B processor" 561f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 56209e4b0c5SWolfgang Denk 563f1ee9825SStefan Roesemcc200_config \ 564ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 565ed1cf845SWolfgang Denkmcc200_highboot_config \ 566ed1cf845SWolfgang Denkmcc200_COM12_config \ 567ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 568113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 569113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 570ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 571ed1cf845SWolfgang Denkprs200_config \ 572ed1cf845SWolfgang Denkprs200_DDR_config \ 573ed1cf845SWolfgang Denkprs200_highboot_config \ 574ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 575f9328639SMarian Balakowicz @mkdir -p $(obj)include 576f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 5774819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 578ae6d1056SWolfgang Denk { $(XECHO) "... with lowboot configuration" ; \ 579f1ee9825SStefan Roese } 5804819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 581f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 582ae6d1056SWolfgang Denk $(XECHO) "... with highboot configuration" ; \ 5834819fad9SWolfgang Denk } 5844819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 585ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 586ed1cf845SWolfgang Denk then \ 587ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 588ed1cf845SWolfgang Denk else \ 589ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 590ed1cf845SWolfgang Denk then \ 591ae6d1056SWolfgang Denk $(XECHO) "... with DDR" ; \ 592ed1cf845SWolfgang Denk else \ 593f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 594ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 595ed1cf845SWolfgang Denk fi; \ 596ed1cf845SWolfgang Denk fi; \ 5974819fad9SWolfgang Denk } 5984819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 599f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 600ae6d1056SWolfgang Denk $(XECHO) "... with SDRAM" ; \ 6014819fad9SWolfgang Denk } 602463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 603f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 604ae6d1056SWolfgang Denk $(XECHO) "... with console on COM12" ; \ 605463764c8SWolfgang Denk } 606ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 607f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 608ed1cf845SWolfgang Denk } 609f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 61086ea5f93SWolfgang Denk 6118b7d1f0aSStefan Roesemecp5200_config: unconfig 612ae6d1056SWolfgang Denk @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 6138b7d1f0aSStefan Roese 6146341d9d7SHeiko Schochermunices_config: unconfig 615ae6d1056SWolfgang Denk @$(MKCONFIG) munices ppc mpc5xxx munices 6166341d9d7SHeiko Schocher 61791c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config: unconfig 618f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 619df04a3dfSWolfgang Denk 6205e4b3361SStefan Roesepf5200_config: unconfig 621f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 6225e4b3361SStefan Roese 62389394047SwdenkPM520_config \ 62489394047SwdenkPM520_DDR_config \ 62589394047SwdenkPM520_ROMBOOT_config \ 62689394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 627f9328639SMarian Balakowicz @mkdir -p $(obj)include 62889394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 629f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 630ae6d1056SWolfgang Denk $(XECHO) "... DDR memory revision" ; \ 63189394047Swdenk } 63289394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 633f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 634ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 63589394047Swdenk } 636f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 63789394047Swdenk 6386624b687SWolfgang Denksmmaco4_config: unconfig 639f9328639SMarian Balakowicz @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 6409cdc8386SWolfgang Denk 64186b116b1SBartlomiej Siekacm5200_config: unconfig 64291c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200 643fa1df308SBartlomiej Sieka 6449cdc8386SWolfgang Denkspieval_config: unconfig 645f9328639SMarian Balakowicz @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 6469cdc8386SWolfgang Denk 64745a212c4SWolfgang DenkTB5200_B_config \ 648b87dfd28SWolfgang DenkTB5200_config: unconfig 649f9328639SMarian Balakowicz @mkdir -p $(obj)include 65045a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 651f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 652ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200B processor" ; \ 65345a212c4SWolfgang Denk } 654f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 655b87dfd28SWolfgang Denk 656d4ca31c4SwdenkMINI5200_config \ 657d4ca31c4SwdenkEVAL5200_config \ 658d4ca31c4SwdenkTOP5200_config: unconfig 659f9328639SMarian Balakowicz @mkdir -p $(obj)include 660f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 661f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 662d4ca31c4Swdenk 6636c7a1408SwdenkTotal5100_config \ 6646c7a1408SwdenkTotal5200_config \ 6656c7a1408SwdenkTotal5200_lowboot_config \ 6666c7a1408SwdenkTotal5200_Rev2_config \ 6676c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 668f9328639SMarian Balakowicz @mkdir -p $(obj)include 669f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 6706c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 671f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 672ae6d1056SWolfgang Denk $(XECHO) "... with MGT5100 processor" ; \ 6736c7a1408Swdenk } 6746c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 675f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 676ae6d1056SWolfgang Denk $(XECHO) "... with MPC5200 processor" ; \ 6776c7a1408Swdenk } 6786c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 679f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 680ae6d1056SWolfgang Denk $(XECHO) "... revision 1 board" ; \ 6816c7a1408Swdenk } 6826c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 683f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 684ae6d1056SWolfgang Denk $(XECHO) "... revision 2 board" ; \ 6856c7a1408Swdenk } 6866c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 687f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 688ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 6896c7a1408Swdenk } 690f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 6916c7a1408Swdenk 6925196a7a0SWolfgang Denkcam5200_config \ 693d9384de2SMarian Balakowiczcam5200_niosflash_config \ 6945196a7a0SWolfgang Denkfo300_config \ 6955196a7a0SWolfgang DenkMiniFAP_config \ 6965078cce8SWolfgang DenkTQM5200S_config \ 6975078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 6985196a7a0SWolfgang DenkTQM5200_B_config \ 6995196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 7005196a7a0SWolfgang DenkTQM5200_config \ 7015196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 702f9328639SMarian Balakowicz @mkdir -p $(obj)include 703f9328639SMarian Balakowicz @mkdir -p $(obj)board/tqm5200 704135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 705f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 706f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 707f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 708ae6d1056SWolfgang Denk $(XECHO) "... TQM5200S on Cam5200" ; \ 7095078cce8SWolfgang Denk } 710d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 711d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 712ae6d1056SWolfgang Denk $(XECHO) "... with NIOS flash driver" ; \ 713d9384de2SMarian Balakowicz } 7146d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 715f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 716ae6d1056SWolfgang Denk $(XECHO) "... TQM5200 on FO300" ; \ 7176d3bc9b8SMarian Balakowicz } 718cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 719f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 720ae6d1056SWolfgang Denk $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 721978b1096SWolfgang Denk } 722cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 723f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 724ae6d1056SWolfgang Denk $(XECHO) "... on a STK52XX.100 base board" ; \ 72556523f12Swdenk } 7265078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 727f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 7285078cce8SWolfgang Denk } 7295078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 730f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 731f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 73245a212c4SWolfgang Denk } 733978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 734f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 735978b1096SWolfgang Denk } 736f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 7376dedf3d4SHeiko Schocheruc101_config: unconfig 7386dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 73953d4a498SBartlomiej Siekamotionpro_config: unconfig 74053d4a498SBartlomiej Sieka @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 74153d4a498SBartlomiej Sieka 74256523f12Swdenk 743945af8d7Swdenk######################################################################### 7448993e54bSRafal Jaworowski## MPC512x Systems 7458993e54bSRafal Jaworowski######################################################################### 7465f91db7fSJohn Rigbyads5121_config \ 7475f91db7fSJohn Rigbyads5121_PCI_config \ 7485f91db7fSJohn Rigby : unconfig 749210ed200SWolfgang Denk @mkdir -p $(obj)include 7505f91db7fSJohn Rigby @if [ "$(findstring _PCI_,$@)" ] ; then \ 7515f91db7fSJohn Rigby echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 7525f91db7fSJohn Rigby $(XECHO) "... with PCI enabled" ; \ 7535f91db7fSJohn Rigby fi 7545f91db7fSJohn Rigby @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121 7558993e54bSRafal Jaworowski 7568993e54bSRafal Jaworowski 7578993e54bSRafal Jaworowski######################################################################### 7587ebf7443Swdenk## MPC8xx Systems 7597ebf7443Swdenk######################################################################### 7607ebf7443Swdenk 7612d24a3a7SwdenkAdder_config \ 7622d24a3a7SwdenkAdder87x_config \ 76326238132SwdenkAdderII_config \ 7642d24a3a7Swdenk : unconfig 765f9328639SMarian Balakowicz @mkdir -p $(obj)include 76626238132Swdenk $(if $(findstring AdderII,$@), \ 767f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 768f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 7692d24a3a7Swdenk 77016c8d5e7SWolfgang DenkAdderUSB_config: unconfig 77191c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder 77216c8d5e7SWolfgang Denk 773180d3f74SwdenkADS860_config \ 774180d3f74SwdenkFADS823_config \ 775180d3f74SwdenkFADS850SAR_config \ 776180d3f74SwdenkMPC86xADS_config \ 7771114257cSwdenkMPC885ADS_config \ 778180d3f74SwdenkFADS860T_config: unconfig 779f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 7807ebf7443Swdenk 7817ebf7443SwdenkAMX860_config : unconfig 782f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 7837ebf7443Swdenk 7847ebf7443Swdenkc2mon_config: unconfig 785f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 7867ebf7443Swdenk 7877ebf7443SwdenkCCM_config: unconfig 788f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 7897ebf7443Swdenk 7907ebf7443Swdenkcogent_mpc8xx_config: unconfig 791f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 7927ebf7443Swdenk 7933bac3513SwdenkELPT860_config: unconfig 794f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 7953bac3513Swdenk 79684c960ceSWolfgang DenkEP88x_config: unconfig 797f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 79884c960ceSWolfgang Denk 7997ebf7443SwdenkESTEEM192E_config: unconfig 800f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 8017ebf7443Swdenk 8027ebf7443SwdenkETX094_config : unconfig 803f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 8047ebf7443Swdenk 8057ebf7443SwdenkFLAGADM_config: unconfig 806f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 8077ebf7443Swdenk 8087aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 8097aa78614Swdenk 8107aa78614SwdenkGEN860T_SC_config \ 8117ebf7443SwdenkGEN860T_config: unconfig 812f9328639SMarian Balakowicz @mkdir -p $(obj)include 8137aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 814f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 815ae6d1056SWolfgang Denk $(XECHO) "With reduced H/W feature set (SC)..." ; \ 8167aa78614Swdenk } 817f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 8187ebf7443Swdenk 8197ebf7443SwdenkGENIETV_config: unconfig 820f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 8217ebf7443Swdenk 8227ebf7443SwdenkGTH_config: unconfig 823f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 8247ebf7443Swdenk 8257ebf7443Swdenkhermes_config : unconfig 826f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 8277ebf7443Swdenk 828c40b2956SwdenkHMI10_config : unconfig 829f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 830c40b2956Swdenk 8317ebf7443SwdenkIAD210_config: unconfig 832f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 8337ebf7443Swdenk 8347ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 8357ebf7443Swdenk 8367ebf7443SwdenkICU862_100MHz_config \ 8377ebf7443SwdenkICU862_config: unconfig 838f9328639SMarian Balakowicz @mkdir -p $(obj)include 8397ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 840f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 841ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 8427ebf7443Swdenk } 843f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 8447ebf7443Swdenk 8457ebf7443SwdenkIP860_config : unconfig 846f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 8477ebf7443Swdenk 8487ebf7443SwdenkIVML24_256_config \ 8497ebf7443SwdenkIVML24_128_config \ 8507ebf7443SwdenkIVML24_config: unconfig 851f9328639SMarian Balakowicz @mkdir -p $(obj)include 8527ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 853f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 8547ebf7443Swdenk } 8557ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 856f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 8577ebf7443Swdenk } 8587ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 859f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 8607ebf7443Swdenk } 861f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 8627ebf7443Swdenk 8637ebf7443SwdenkIVMS8_256_config \ 8647ebf7443SwdenkIVMS8_128_config \ 8657ebf7443SwdenkIVMS8_config: unconfig 866f9328639SMarian Balakowicz @mkdir -p $(obj)include 8677ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 868f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 8697ebf7443Swdenk } 8707ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 871f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 8727ebf7443Swdenk } 8737ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 874f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 8757ebf7443Swdenk } 876f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 8777ebf7443Swdenk 87856f94be3SwdenkKUP4K_config : unconfig 879f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 8800608e04dSwdenk 8810608e04dSwdenkKUP4X_config : unconfig 882f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 88356f94be3Swdenk 8847ebf7443SwdenkLANTEC_config : unconfig 885f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 8867ebf7443Swdenk 8877ebf7443Swdenklwmon_config: unconfig 888f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 8897ebf7443Swdenk 8907ebf7443SwdenkMBX_config \ 8917ebf7443SwdenkMBX860T_config: unconfig 892f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 8937ebf7443Swdenk 894381e4e63SHeiko Schochermgsuvd_config: unconfig 895381e4e63SHeiko Schocher @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd 896381e4e63SHeiko Schocher 8977ebf7443SwdenkMHPC_config: unconfig 898f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 8997ebf7443Swdenk 9007ebf7443SwdenkMVS1_config : unconfig 901f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 9027ebf7443Swdenk 903993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 904993cad93Swdenk 905993cad93SwdenkNETVIA_V2_config \ 9067ebf7443SwdenkNETVIA_config: unconfig 907f9328639SMarian Balakowicz @mkdir -p $(obj)include 908993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 909f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 910ae6d1056SWolfgang Denk $(XECHO) "... Version 1" ; \ 911993cad93Swdenk } 912993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 913f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 914ae6d1056SWolfgang Denk $(XECHO) "... Version 2" ; \ 915993cad93Swdenk } 916f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 9177ebf7443Swdenk 918c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 919c26e454dSwdenk 920c26e454dSwdenkNETPHONE_V2_config \ 92104a85b3bSwdenkNETPHONE_config: unconfig 922f9328639SMarian Balakowicz @mkdir -p $(obj)include 923c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 924f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 925c26e454dSwdenk } 926c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 927f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 928c26e454dSwdenk } 929f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 93004a85b3bSwdenk 93179fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 93204a85b3bSwdenk 93379fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 93479fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 93579fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 93679fa88f3SwdenkNETTA_SWAPHOOK_config \ 93779fa88f3SwdenkNETTA_ISDN_6412_config \ 93804a85b3bSwdenkNETTA_ISDN_config \ 93979fa88f3SwdenkNETTA_6412_config \ 94004a85b3bSwdenkNETTA_config: unconfig 941f9328639SMarian Balakowicz @mkdir -p $(obj)include 94279fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 943f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 94404a85b3bSwdenk } 94579fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 946f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 94779fa88f3Swdenk } 94879fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 949f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 95079fa88f3Swdenk } 95179fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 952f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 95379fa88f3Swdenk } 95479fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 955f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 95679fa88f3Swdenk } 95779fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 958f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 95979fa88f3Swdenk } 960f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 96104a85b3bSwdenk 96279fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 96379fa88f3Swdenk 96479fa88f3SwdenkNETTA2_V2_config \ 96579fa88f3SwdenkNETTA2_config: unconfig 966f9328639SMarian Balakowicz @mkdir -p $(obj)include 96779fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 968f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 96979fa88f3Swdenk } 97079fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 971f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 97279fa88f3Swdenk } 973f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 97479fa88f3Swdenk 975a367d426Sdzu@denx.deNC650_Rev1_config \ 976a367d426Sdzu@denx.deNC650_Rev2_config \ 977a367d426Sdzu@denx.deCP850_config: unconfig 978f9328639SMarian Balakowicz @mkdir -p $(obj)include 979a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 980f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 981f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 982a367d426Sdzu@denx.de } 983a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 984f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 985a367d426Sdzu@denx.de } 986a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 987f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 988a367d426Sdzu@denx.de } 989f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 9907ca202f5Swdenk 9917ebf7443SwdenkNX823_config: unconfig 992f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 9937ebf7443Swdenk 9947ebf7443Swdenkpcu_e_config: unconfig 995f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 9967ebf7443Swdenk 9973bbc899fSwdenkQS850_config: unconfig 998f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 9993bbc899fSwdenk 10003bbc899fSwdenkQS823_config: unconfig 1001f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 10023bbc899fSwdenk 10033bbc899fSwdenkQS860T_config: unconfig 1004f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 10053bbc899fSwdenk 1006da93ed81Swdenkquantum_config: unconfig 1007f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 1008da93ed81Swdenk 10097ebf7443SwdenkR360MPI_config: unconfig 1010f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 10117ebf7443Swdenk 1012682011ffSwdenkRBC823_config: unconfig 1013f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 1014682011ffSwdenk 10157ebf7443SwdenkRPXClassic_config: unconfig 1016f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 10177ebf7443Swdenk 10187ebf7443SwdenkRPXlite_config: unconfig 1019f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 10207ebf7443Swdenk 1021e63c8ee3SwdenkRPXlite_DW_64_config \ 1022e63c8ee3SwdenkRPXlite_DW_LCD_config \ 1023e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 1024e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 1025e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 1026e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 1027e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 1028e63c8ee3SwdenkRPXlite_DW_config: unconfig 1029f9328639SMarian Balakowicz @mkdir -p $(obj)include 1030e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 1031f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1032ae6d1056SWolfgang Denk $(XECHO) "... with 64MHz system clock ..."; \ 1033e63c8ee3Swdenk } 1034e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1035f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1036f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1037ae6d1056SWolfgang Denk $(XECHO) "... with LCD display ..."; \ 1038e63c8ee3Swdenk } 1039e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 1040f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1041ae6d1056SWolfgang Denk $(XECHO) "... with ENV in NVRAM ..."; \ 1042e63c8ee3Swdenk } 1043f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1044e63c8ee3Swdenk 104573a8b27cSwdenkrmu_config: unconfig 1046f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 104773a8b27cSwdenk 10487ebf7443SwdenkRRvision_config: unconfig 1049f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 10507ebf7443Swdenk 10517ebf7443SwdenkRRvision_LCD_config: unconfig 1052f9328639SMarian Balakowicz @mkdir -p $(obj)include 1053f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1054f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1055f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 10567ebf7443Swdenk 10577ebf7443SwdenkSM850_config : unconfig 1058f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 10597ebf7443Swdenk 106091c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config: unconfig 1061f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1062b02d0177SMarkus Klotzbuecher 10637ebf7443SwdenkSPD823TS_config: unconfig 1064f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 10657ebf7443Swdenk 10666bdf4306SWolfgang Denkstxxtc_config: unconfig 1067f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 10686bdf4306SWolfgang Denk 1069dc7c9a1aSwdenksvm_sc8xx_config: unconfig 1070f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1071dc7c9a1aSwdenk 10727ebf7443SwdenkSXNI855T_config: unconfig 1073f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 10747ebf7443Swdenk 1075db2f721fSwdenk# EMK MPC8xx based modules 1076db2f721fSwdenkTOP860_config: unconfig 1077f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1078db2f721fSwdenk 10797ebf7443Swdenk# Play some tricks for configuration selection 1080e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 1081e9132ea9Swdenk# and only 823 boards may have LCD support 1082e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 10837ebf7443Swdenk 10847ebf7443SwdenkFPS850L_config \ 1085384ae025SwdenkFPS860L_config \ 1086f12e568cSwdenkNSCU_config \ 10877ebf7443SwdenkTQM823L_config \ 10887ebf7443SwdenkTQM823L_LCD_config \ 10897ebf7443SwdenkTQM850L_config \ 10907ebf7443SwdenkTQM855L_config \ 10917ebf7443SwdenkTQM860L_config \ 1092d126bfbdSwdenkTQM862L_config \ 1093ae3af05eSwdenkTQM823M_config \ 1094ae3af05eSwdenkTQM850M_config \ 1095f12e568cSwdenkTQM855M_config \ 1096f12e568cSwdenkTQM860M_config \ 1097f12e568cSwdenkTQM862M_config \ 10988cba090cSWolfgang DenkTQM866M_config \ 1099090eb735SMarkus KlotzbuecherTQM885D_config \ 1100efc6f447SGuennadi LiakhovetskiTK885D_config \ 11018cba090cSWolfgang Denkvirtlab2_config: unconfig 1102f9328639SMarian Balakowicz @mkdir -p $(obj)include 11037ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1104f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1105f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1106ae6d1056SWolfgang Denk $(XECHO) "... with LCD display" ; \ 11077ebf7443Swdenk } 1108f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 11097ebf7443Swdenk 11107ebf7443SwdenkTTTech_config: unconfig 1111f9328639SMarian Balakowicz @mkdir -p $(obj)include 1112f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1113f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1114f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 11157ebf7443Swdenk 1116ec0aee7bSwdenkuc100_config : unconfig 1117f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1118f7d1572bSwdenk 1119608c9146Swdenkv37_config: unconfig 1120f9328639SMarian Balakowicz @mkdir -p $(obj)include 1121f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1122f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1123f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1124608c9146Swdenk 112591e940d9Sdzuwtk_config: unconfig 1126f9328639SMarian Balakowicz @mkdir -p $(obj)include 1127f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1128f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1129f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 113091e940d9Sdzu 11317ebf7443Swdenk######################################################################### 11327ebf7443Swdenk## PPC4xx Systems 11337ebf7443Swdenk######################################################################### 1134e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 11357ebf7443Swdenk 113616c0cc1cSStefan Roeseacadia_config: unconfig 113716c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 113816c0cc1cSStefan Roese 1139c440bfe6SStefan Roeseacadia_nand_config: unconfig 114063e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 114163e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1142c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1143c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1144c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1145c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1146c440bfe6SStefan Roese 11477ebf7443SwdenkADCIOP_config: unconfig 1148f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 11497ebf7443Swdenk 1150899620c2SStefan Roesealpr_config: unconfig 115135d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1152899620c2SStefan Roese 11537521af1cSWolfgang DenkAP1000_config:unconfig 1154f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 11557521af1cSWolfgang Denk 1156c419d1d6SstroeseAPC405_config: unconfig 1157f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1158c419d1d6Sstroese 11597ebf7443SwdenkAR405_config: unconfig 1160f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 11617ebf7443Swdenk 1162549826eaSstroeseASH405_config: unconfig 1163f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1164549826eaSstroese 11658a316c9bSStefan Roesebamboo_config: unconfig 1166f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 11678a316c9bSStefan Roese 1168cf959c7dSStefan Roesebamboo_nand_config: unconfig 116963e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 117063e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1171cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1172f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1173cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1174cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1175cf959c7dSStefan Roese 11768a316c9bSStefan Roesebubinga_config: unconfig 1177f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1178549826eaSstroese 11797ebf7443SwdenkCANBT_config: unconfig 1180f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 11817ebf7443Swdenk 11824c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images 11834c9e8557SStefan Roesecanyonlands_config \ 11844c9e8557SStefan Roeseglacier_config: unconfig 11854c9e8557SStefan Roese @mkdir -p $(obj)include 11864c9e8557SStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 11874c9e8557SStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 11884c9e8557SStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 1189c813f1f8SStefan Roese 119071665ebfSStefan Roesecanyonlands_nand_config: unconfig 119171665ebfSStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/canyonlands 119271665ebfSStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/canyonlands 119371665ebfSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 119471665ebfSStefan Roese @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc 119571665ebfSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp 119671665ebfSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 119771665ebfSStefan Roese 11981d6f9720SwdenkCATcenter_config \ 11991d6f9720SwdenkCATcenter_25_config \ 12001d6f9720SwdenkCATcenter_33_config: unconfig 1201f9328639SMarian Balakowicz @mkdir -p $(obj)include 1202f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1203f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 12041d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1205f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1206ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 12071d6f9720Swdenk } 12081d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1209f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1210ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 12111d6f9720Swdenk } 1212f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 121310767ccbSwdenk 12147644f16fSStefan RoeseCPCI2DP_config: unconfig 1215f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 12167644f16fSStefan Roese 12177ebf7443SwdenkCPCI405_config \ 1218549826eaSstroeseCPCI4052_config \ 1219c419d1d6SstroeseCPCI405DT_config \ 1220549826eaSstroeseCPCI405AB_config: unconfig 1221f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1222f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 12237ebf7443Swdenk 12247ebf7443SwdenkCPCIISER4_config: unconfig 1225f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 12267ebf7443Swdenk 12277ebf7443SwdenkCRAYL1_config: unconfig 1228f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 12297ebf7443Swdenk 1230cd0a9de6Swdenkcsb272_config: unconfig 1231f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1232cd0a9de6Swdenk 1233aa245090Swdenkcsb472_config: unconfig 1234f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1235aa245090Swdenk 12367ebf7443SwdenkDASA_SIM_config: unconfig 1237f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 12387ebf7443Swdenk 123972cd5aa7SstroeseDP405_config: unconfig 1240f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 124172cd5aa7Sstroese 12427ebf7443SwdenkDU405_config: unconfig 1243f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 12447ebf7443Swdenk 12451a3ac86bSMatthias FuchsDU440_config: unconfig 12461a3ac86bSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 12471a3ac86bSMatthias Fuchs 12488a316c9bSStefan Roeseebony_config: unconfig 1249f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 12507ebf7443Swdenk 12517ebf7443SwdenkERIC_config: unconfig 1252f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 12537ebf7443Swdenk 1254d1cbe85bSwdenkEXBITGEN_config: unconfig 1255f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1256d1cbe85bSwdenk 1257c419d1d6SstroeseG2000_config: unconfig 1258f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1259c419d1d6Sstroese 1260ac982ea5SNiklaus Gigerhcu4_config: unconfig 1261b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 126235d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1263ac982ea5SNiklaus Giger 1264ac982ea5SNiklaus Gigerhcu5_config: unconfig 1265b7f6193eSNiklaus Giger @mkdir -p $(obj)board/netstal/common 126635d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1267ac982ea5SNiklaus Giger 1268c419d1d6SstroeseHH405_config: unconfig 1269f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1270c419d1d6Sstroese 127172cd5aa7SstroeseHUB405_config: unconfig 1272f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 127372cd5aa7Sstroese 1274db01a2eaSwdenkJSE_config: unconfig 1275f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1276db01a2eaSwdenk 1277b79316f2SStefan RoeseKAREF_config: unconfig 1278f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1279b79316f2SStefan Roese 12804745acaaSStefan Roesekatmai_config: unconfig 12814745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 12824745acaaSStefan Roese 1283353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR) 1284353f2688SStefan Roesekilauea_config \ 1285353f2688SStefan Roesehaleakala_config: unconfig 1286353f2688SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1287566806caSStefan Roese 12883d6cb3b2SStefan Roesekilauea_nand_config \ 12893d6cb3b2SStefan Roesehaleakala_nand_config: unconfig 12903d6cb3b2SStefan Roese @mkdir -p $(obj)include $(obj)board/amcc/kilauea 12913d6cb3b2SStefan Roese @mkdir -p $(obj)nand_spl/board/amcc/kilauea 12923d6cb3b2SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 12933d6cb3b2SStefan Roese @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 12943d6cb3b2SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 12953d6cb3b2SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 12963d6cb3b2SStefan Roese 1297c591dffeSLarry Johnsonkorat_config: unconfig 1298c591dffeSLarry Johnson @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1299c591dffeSLarry Johnson 13006e7fb6eaSStefan Roeseluan_config: unconfig 1301f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 13026e7fb6eaSStefan Roese 1303b765ffb7SStefan Roeselwmon5_config: unconfig 1304b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1305b765ffb7SStefan Roese 1306211ea91aSStefan Roesemakalu_config: unconfig 1307211ea91aSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1308211ea91aSStefan Roese 1309b05f3543SNiklaus Gigermcu25_config: unconfig 1310b05f3543SNiklaus Giger @mkdir -p $(obj)board/netstal/common 1311b05f3543SNiklaus Giger @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal 1312b05f3543SNiklaus Giger 1313b79316f2SStefan RoeseMETROBOX_config: unconfig 1314f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1315b79316f2SStefan Roese 13167ebf7443SwdenkMIP405_config: unconfig 1317f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 13187ebf7443Swdenk 1319f3e0de60SwdenkMIP405T_config: unconfig 1320f9328639SMarian Balakowicz @mkdir -p $(obj)include 1321f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1322ae6d1056SWolfgang Denk @$(XECHO) "Enable subset config for MIP405T" 1323f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1324f3e0de60Swdenk 13257ebf7443SwdenkML2_config: unconfig 1326f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 13277ebf7443Swdenk 1328028ab6b5Swdenkml300_config: unconfig 1329f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1330028ab6b5Swdenk 13318a316c9bSStefan Roeseocotea_config: unconfig 1332f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 13330e6d798cSwdenk 13347ebf7443SwdenkOCRTC_config \ 13357ebf7443SwdenkORSG_config: unconfig 1336f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 13377ebf7443Swdenk 13385568e613SStefan Roesep3p440_config: unconfig 1339f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 13405568e613SStefan Roese 13417ebf7443SwdenkPCI405_config: unconfig 1342f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 13437ebf7443Swdenk 1344a4c8d138SStefan Roesepcs440ep_config: unconfig 1345f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1346a4c8d138SStefan Roese 13477ebf7443SwdenkPIP405_config: unconfig 1348f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 13497ebf7443Swdenk 135072cd5aa7SstroesePLU405_config: unconfig 1351f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 135272cd5aa7Sstroese 1353549826eaSstroesePMC405_config: unconfig 1354f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1355549826eaSstroese 13568ba132caSMatthias FuchsPMC440_config: unconfig 13578ba132caSMatthias Fuchs @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 13588ba132caSMatthias Fuchs 1359281e00a3SwdenkPPChameleonEVB_config \ 1360e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1361e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1362e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1363e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1364e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1365e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1366f9328639SMarian Balakowicz @mkdir -p $(obj)include 13671d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1368f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1369ae6d1056SWolfgang Denk $(XECHO) "... BASIC model" ; \ 1370fbe4b5cbSwdenk } 13711d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1372f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1373ae6d1056SWolfgang Denk $(XECHO) "... MEDIUM model" ; \ 1374fbe4b5cbSwdenk } 13751d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1376f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1377ae6d1056SWolfgang Denk $(XECHO) "... HIGH-END model" ; \ 1378fbe4b5cbSwdenk } 1379e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1380f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1381ae6d1056SWolfgang Denk $(XECHO) "SysClk = 25MHz" ; \ 1382e55ca7e2Swdenk } 1383e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1384f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1385ae6d1056SWolfgang Denk $(XECHO) "SysClk = 33MHz" ; \ 1386e55ca7e2Swdenk } 1387f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 138812f34241Swdenk 1389430f1b0fSStefan Roesesbc405_config: unconfig 1390430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1391430f1b0fSStefan Roese 1392430f1b0fSStefan Roesesequoia_config \ 1393854bc8daSStefan Roeserainier_config: unconfig 13948318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1395430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1396430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 13972aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1398854bc8daSStefan Roese 1399430f1b0fSStefan Roesesequoia_nand_config \ 1400854bc8daSStefan Roeserainier_nand_config: unconfig 140163e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 140263e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 14038318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1404430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1405430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1406430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 14078318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 14088318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1409652a10c0Swdenk 14106d3e0107SWolfgang Denksc3_config:unconfig 141135d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1412ca43ba18SHeiko Schocher 1413d4024bb7SJohn Otkentaihu_config: unconfig 1414d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1415d4024bb7SJohn Otken 14165fb692caSStefan Roesetaishan_config: unconfig 14175fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 14185fb692caSStefan Roese 141972cd5aa7SstroeseVOH405_config: unconfig 1420f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 142172cd5aa7Sstroese 1422c419d1d6SstroeseVOM405_config: unconfig 1423f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1424c419d1d6Sstroese 1425feaedfcfSStefan RoeseCMS700_config: unconfig 1426f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1427feaedfcfSStefan Roese 14287ebf7443SwdenkW7OLMC_config \ 14297ebf7443SwdenkW7OLMG_config: unconfig 1430f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 14317ebf7443Swdenk 1432430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1433430f1b0fSStefan Roesewalnut_config \ 1434430f1b0fSStefan Roesesycamore_config: unconfig 1435430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 14367ebf7443Swdenk 1437c419d1d6SstroeseWUH405_config: unconfig 1438f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1439c419d1d6Sstroese 1440ba56f625SwdenkXPEDITE1K_config: unconfig 1441f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1442ba56f625Swdenk 1443430f1b0fSStefan Roeseyosemite_config \ 14448a316c9bSStefan Roeseyellowstone_config: unconfig 1445700200c6SStefan Roese @mkdir -p $(obj)include 1446430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1447430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 14482aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 14498a316c9bSStefan Roese 14506c5879f3SMarian Balakowiczyucca_config: unconfig 1451f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 14526c5879f3SMarian Balakowicz 1453779e9751SStefan Roesezeus_config: unconfig 1454779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1455779e9751SStefan Roese 14567ebf7443Swdenk######################################################################### 1457983fda83Swdenk## MPC8220 Systems 1458983fda83Swdenk######################################################################### 1459dc17fb6dSWolfgang Denk 1460dc17fb6dSWolfgang DenkAlaska8220_config \ 1461dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1462f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1463983fda83Swdenk 146412b43d51Swdenksorcery_config: unconfig 1465f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 146612b43d51Swdenk 1467983fda83Swdenk######################################################################### 14687ebf7443Swdenk## MPC824x Systems 14697ebf7443Swdenk######################################################################### 1470efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 14713bac3513Swdenk 14720332990bSwdenkA3000_config: unconfig 1473f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 14740332990bSwdenk 14758e6f1a8eSWolfgang Denkbarco_config: unconfig 1476f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 14778e6f1a8eSWolfgang Denk 14787ebf7443SwdenkBMW_config: unconfig 1479f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 14807ebf7443Swdenk 14813bac3513SwdenkCPC45_config \ 14823bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1483f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1484f9328639SMarian Balakowicz @cd $(obj)include ; \ 14853bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 14863bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1487ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 14883bac3513Swdenk else \ 14893bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1490ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 14913bac3513Swdenk fi; \ 14923bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 14933bac3513Swdenk 14947ebf7443SwdenkCU824_config: unconfig 1495f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 14967ebf7443Swdenk 14977abf0c58Swdenkdebris_config: unconfig 1498f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 14997abf0c58Swdenk 150080885a9dSwdenkeXalion_config: unconfig 1501f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 150280885a9dSwdenk 1503756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1504f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1505756f586aSwdenk 150653dd6ce4SWolfgang Denkkvme080_config: unconfig 1507f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 150853dd6ce4SWolfgang Denk 150961525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as 151061525f2fSGuennadi Liakhovetski# time permits. 151161525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \ 151261525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed 151361525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig 151461525f2fSGuennadi Liakhovetski @mkdir -p $(obj)include 151561525f2fSGuennadi Liakhovetski @case $@ in \ 151661525f2fSGuennadi Liakhovetski *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ 151761525f2fSGuennadi Liakhovetski *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ 151861525f2fSGuennadi Liakhovetski esac 151961525f2fSGuennadi Liakhovetski @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation 152061525f2fSGuennadi Liakhovetski 15217ebf7443SwdenkMOUSSE_config: unconfig 1522f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 15237ebf7443Swdenk 15247ebf7443SwdenkMUSENKI_config: unconfig 1525f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 15267ebf7443Swdenk 1527b4676a25SwdenkMVBLUE_config: unconfig 1528f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1529b4676a25Swdenk 15307ebf7443SwdenkOXC_config: unconfig 1531f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 15327ebf7443Swdenk 15337ebf7443SwdenkPN62_config: unconfig 1534f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 15357ebf7443Swdenk 15367ebf7443SwdenkSandpoint8240_config: unconfig 1537f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15387ebf7443Swdenk 15397ebf7443SwdenkSandpoint8245_config: unconfig 1540f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 15417ebf7443Swdenk 1542466b7410Swdenksbc8240_config: unconfig 1543f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1544466b7410Swdenk 1545d1cbe85bSwdenkSL8245_config: unconfig 1546f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1547d1cbe85bSwdenk 15487ebf7443Swdenkutx8245_config: unconfig 1549f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 15507ebf7443Swdenk 15517ebf7443Swdenk######################################################################### 15527ebf7443Swdenk## MPC8260 Systems 15537ebf7443Swdenk######################################################################### 15547ebf7443Swdenk 155554387ac9Swdenkatc_config: unconfig 1556f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 155754387ac9Swdenk 15587ebf7443Swdenkcogent_mpc8260_config: unconfig 1559f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 15607ebf7443Swdenk 15617ebf7443SwdenkCPU86_config \ 15627ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1563f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1564f9328639SMarian Balakowicz @cd $(obj)include ; \ 15657ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 15667ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1567ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 15687ebf7443Swdenk else \ 15697ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1570ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 15717ebf7443Swdenk fi; \ 15727ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 15737ebf7443Swdenk 1574384cc687SwdenkCPU87_config \ 1575384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1576f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1577f9328639SMarian Balakowicz @cd $(obj)include ; \ 1578384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1579384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1580ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1581384cc687Swdenk else \ 1582384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1583ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1584384cc687Swdenk fi; \ 1585384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1586384cc687Swdenk 1587f901a83bSWolfgang Denkep8248_config \ 1588f901a83bSWolfgang Denkep8248E_config : unconfig 1589f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1590f901a83bSWolfgang Denk 15917ebf7443Swdenkep8260_config: unconfig 1592f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 15937ebf7443Swdenk 15948d4ac794SWolfgang Denkep82xxm_config: unconfig 159590b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 15968d4ac794SWolfgang Denk 15977ebf7443Swdenkgw8260_config: unconfig 1598f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 15997ebf7443Swdenk 16007ebf7443Swdenkhymod_config: unconfig 1601f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 16027ebf7443Swdenk 16039dd41a7bSwdenkIDS8247_config: unconfig 1604f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 16059dd41a7bSwdenk 16067ebf7443SwdenkIPHASE4539_config: unconfig 1607f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 16087ebf7443Swdenk 1609c3c7f861SwdenkISPAN_config \ 1610c3c7f861SwdenkISPAN_REVB_config: unconfig 1611f9328639SMarian Balakowicz @mkdir -p $(obj)include 1612c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1613f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1614c3c7f861Swdenk fi 1615f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1616c3c7f861Swdenk 1617ac9db066SHeiko Schochermgcoge_config : unconfig 1618ac9db066SHeiko Schocher @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge 1619ac9db066SHeiko Schocher 162004a85b3bSwdenkMPC8260ADS_config \ 1621901787d6SwdenkMPC8260ADS_lowboot_config \ 162204a85b3bSwdenkMPC8260ADS_33MHz_config \ 1623901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 162404a85b3bSwdenkMPC8260ADS_40MHz_config \ 1625901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 162604a85b3bSwdenkMPC8272ADS_config \ 1627901787d6SwdenkMPC8272ADS_lowboot_config \ 162804a85b3bSwdenkPQ2FADS_config \ 1629901787d6SwdenkPQ2FADS_lowboot_config \ 163004a85b3bSwdenkPQ2FADS-VR_config \ 1631901787d6SwdenkPQ2FADS-VR_lowboot_config \ 163204a85b3bSwdenkPQ2FADS-ZU_config \ 1633901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 163404a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1635901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 163604a85b3bSwdenk : unconfig 1637f9328639SMarian Balakowicz @mkdir -p $(obj)include 1638b7e24d28SJon Loeliger @mkdir -p $(obj)board/freescale/mpc8260ads 163904a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1640f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1641f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 164204a85b3bSwdenk $(if $(findstring MHz,$@), \ 1643f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 164404a85b3bSwdenk $(if $(findstring VR,$@), \ 1645f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1646901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1647b7e24d28SJon Loeliger { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \ 1648ae6d1056SWolfgang Denk $(XECHO) "... with lowboot configuration" ; \ 1649901787d6Swdenk } 1650b7e24d28SJon Loeliger @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale 16517ebf7443Swdenk 1652db2f721fSwdenkMPC8266ADS_config: unconfig 1653aa3511e4SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale 1654db2f721fSwdenk 1655efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 165610f67017SwdenkPM825_config \ 1657efa329cbSwdenkPM825_ROMBOOT_config \ 1658efa329cbSwdenkPM825_BIGFLASH_config \ 1659efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 16607ebf7443SwdenkPM826_config \ 1661efa329cbSwdenkPM826_ROMBOOT_config \ 1662efa329cbSwdenkPM826_BIGFLASH_config \ 1663efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1664f9328639SMarian Balakowicz @mkdir -p $(obj)include 1665f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1666efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1667f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 16687ebf7443Swdenk else \ 1669f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1670efa329cbSwdenk fi 1671efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1672ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1673f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1674f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1675efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1676ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1677f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 16787ebf7443Swdenk fi; \ 1679efa329cbSwdenk else \ 1680ae6d1056SWolfgang Denk $(XECHO) "... booting from 64-bit flash" ; \ 1681efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1682ae6d1056SWolfgang Denk $(XECHO) "... with 32 MB Flash" ; \ 1683f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1684f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1685efa329cbSwdenk else \ 1686f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1687efa329cbSwdenk fi; \ 1688efa329cbSwdenk fi 1689f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1690efa329cbSwdenk 1691efa329cbSwdenkPM828_config \ 1692efa329cbSwdenkPM828_PCI_config \ 1693efa329cbSwdenkPM828_ROMBOOT_config \ 1694efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1695f9328639SMarian Balakowicz @mkdir -p $(obj)include 1696f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 169717076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1698f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1699ae6d1056SWolfgang Denk $(XECHO) "... with PCI enabled" ; \ 1700efa329cbSwdenk fi 1701efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1702ae6d1056SWolfgang Denk $(XECHO) "... booting from 8-bit flash" ; \ 1703f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1704f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1705efa329cbSwdenk fi 1706f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 17077ebf7443Swdenk 17087ebf7443Swdenkppmc8260_config: unconfig 1709f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 17107ebf7443Swdenk 17118b0bfc68SwdenkRattler8248_config \ 17128b0bfc68SwdenkRattler_config: unconfig 1713f9328639SMarian Balakowicz @mkdir -p $(obj)include 17148b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1715f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1716f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 17178b0bfc68Swdenk 17187ebf7443SwdenkRPXsuper_config: unconfig 1719f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 17207ebf7443Swdenk 17217ebf7443Swdenkrsdproto_config: unconfig 1722f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 17237ebf7443Swdenk 17247ebf7443Swdenksacsng_config: unconfig 1725f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 17267ebf7443Swdenk 17277ebf7443Swdenksbc8260_config: unconfig 1728f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 17297ebf7443Swdenk 17307ebf7443SwdenkSCM_config: unconfig 1731f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 17327ebf7443Swdenk 173327b207fdSwdenkTQM8255_AA_config \ 173427b207fdSwdenkTQM8260_AA_config \ 173527b207fdSwdenkTQM8260_AB_config \ 173627b207fdSwdenkTQM8260_AC_config \ 173727b207fdSwdenkTQM8260_AD_config \ 173827b207fdSwdenkTQM8260_AE_config \ 173927b207fdSwdenkTQM8260_AF_config \ 174027b207fdSwdenkTQM8260_AG_config \ 174127b207fdSwdenkTQM8260_AH_config \ 17421f62bc2dSWolfgang DenkTQM8260_AI_config \ 174327b207fdSwdenkTQM8265_AA_config: unconfig 1744f9328639SMarian Balakowicz @mkdir -p $(obj)include 174527b207fdSwdenk @case "$@" in \ 174627b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 174727b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 174827b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 174927b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 175027b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 175127b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 175227b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 175327b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 175427b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 17551f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 175627b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 175727b207fdSwdenk esac; \ 175827b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1759f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 176027b207fdSwdenk fi; \ 1761f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 176227b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 17631aaab9bfSWolfgang Denk if [ "$${CACHE}" = "yes" ] ; then \ 1764f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1765ae6d1056SWolfgang Denk $(XECHO) "... with L2 Cache support" ; \ 17667ebf7443Swdenk else \ 1767f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1768ae6d1056SWolfgang Denk $(XECHO) "... without L2 Cache support" ; \ 176927b207fdSwdenk fi; \ 17701aaab9bfSWolfgang Denk if [ "$${BMODE}" = "60x" ] ; then \ 1771f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1772ae6d1056SWolfgang Denk $(XECHO) "... with 60x Bus Mode" ; \ 177327b207fdSwdenk else \ 1774f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1775ae6d1056SWolfgang Denk $(XECHO) "... without 60x Bus Mode" ; \ 17767ebf7443Swdenk fi 1777f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 17787ebf7443Swdenk 1779fa230445SHeiko SchocherTQM8272_config: unconfig 1780210ed200SWolfgang Denk @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 1781fa230445SHeiko Schocher 1782ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1783ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1784f9328639SMarian Balakowicz @mkdir -p $(obj)include 1785f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1786f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1787ba91e26aSwdenk 178854387ac9SwdenkZPC1900_config: unconfig 1789f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 17907aa78614Swdenk 17914e5ca3ebSwdenk######################################################################### 17924e5ca3ebSwdenk## Coldfire 17934e5ca3ebSwdenk######################################################################### 17944e5ca3ebSwdenk 17951552af70STsiChungLiewM52277EVB_config: unconfig 17961552af70STsiChungLiew @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 17971552af70STsiChungLiew 17984a442d31STsiChungLiewM5235EVB_config \ 17994a442d31STsiChungLiewM5235EVB_Flash16_config \ 18004a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 18014a442d31STsiChungLiew @case "$@" in \ 18024a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 18034a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 18044a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 18054a442d31STsiChungLiew esac; \ 18064a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1807ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 18084a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18094a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18104a442d31STsiChungLiew else \ 18114a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 18124a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 18134a442d31STsiChungLiew fi 18144a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 18154a442d31STsiChungLiew 1816a605aacdSTsiChungLiewM5249EVB_config : unconfig 1817a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1818a605aacdSTsiChungLiew 1819a1436a84STsiChungLiewM5253EVBE_config : unconfig 1820a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1821a1436a84STsiChungLiew 18227481266eSWolfgang Denkcobra5272_config : unconfig 1823f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 18247481266eSWolfgang Denk 18254176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1826f9328639SMarian Balakowicz @mkdir -p $(obj)include 1827f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1828f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1829f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18304176c799SWolfgang Denk 18314176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1832f9328639SMarian Balakowicz @mkdir -p $(obj)include 1833f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1834f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1835f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 18364176c799SWolfgang Denk 1837daa6e418SBartlomiej Siekaidmr_config : unconfig 1838daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1839daa6e418SBartlomiej Sieka 18404176c799SWolfgang DenkM5271EVB_config : unconfig 1841f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 18424176c799SWolfgang Denk 18434e5ca3ebSwdenkM5272C3_config : unconfig 1844f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 18454e5ca3ebSwdenk 1846545c8e0aSMatthew FettkeM5275EVB_config : unconfig 1847545c8e0aSMatthew Fettke @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale 1848545c8e0aSMatthew Fettke 18494e5ca3ebSwdenkM5282EVB_config : unconfig 1850f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 18514e5ca3ebSwdenk 1852c419d1d6SstroeseTASREG_config : unconfig 1853f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1854c419d1d6Sstroese 18558e585f02STsiChung LiewM5329AFEE_config \ 18568e585f02STsiChung LiewM5329BFEE_config : unconfig 18578e585f02STsiChung Liew @case "$@" in \ 18588e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 18598e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 18608e585f02STsiChung Liew esac; \ 18618e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1862ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 18638e585f02STsiChung Liew fi 18648e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 18658e585f02STsiChung Liew 1866aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 1867aa5f1f9dSTsiChungLiew @case "$@" in \ 1868aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 1869aa5f1f9dSTsiChungLiew esac; \ 1870aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 1871aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1872aa5f1f9dSTsiChungLiew fi 1873aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1874aa5f1f9dSTsiChungLiew 18758ae158cdSTsiChungLiewM54455EVB_config \ 18768ae158cdSTsiChungLiewM54455EVB_atmel_config \ 18778ae158cdSTsiChungLiewM54455EVB_intel_config \ 18788ae158cdSTsiChungLiewM54455EVB_a33_config \ 18798ae158cdSTsiChungLiewM54455EVB_a66_config \ 18808ae158cdSTsiChungLiewM54455EVB_i33_config \ 18818ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 18828ae158cdSTsiChungLiew @case "$@" in \ 18838ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 18848ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 18858ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 18868ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 18878ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 18888ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 18898ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 18908ae158cdSTsiChungLiew esac; \ 18911aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 18924a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1893e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1894e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1895ae6d1056SWolfgang Denk $(XECHO) "... with INTEL boot..." ; \ 18968ae158cdSTsiChungLiew else \ 18974a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1898e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1899e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1900ae6d1056SWolfgang Denk $(XECHO) "... with ATMEL boot..." ; \ 19018ae158cdSTsiChungLiew fi; \ 19024a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1903ae6d1056SWolfgang Denk $(XECHO) "... with $${FREQ}Hz input clock" 19048ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 19058ae158cdSTsiChungLiew 190657a12720STsiChungLiewM5475AFE_config \ 190757a12720STsiChungLiewM5475BFE_config \ 190857a12720STsiChungLiewM5475CFE_config \ 190957a12720STsiChungLiewM5475DFE_config \ 191057a12720STsiChungLiewM5475EFE_config \ 191157a12720STsiChungLiewM5475FFE_config \ 191257a12720STsiChungLiewM5475GFE_config : unconfig 191357a12720STsiChungLiew @case "$@" in \ 191457a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 191557a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 191657a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 191757a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 191857a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 191957a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 192057a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 192157a12720STsiChungLiew esac; \ 192257a12720STsiChungLiew echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \ 192357a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 192457a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 192557a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 192657a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 192757a12720STsiChungLiew fi; \ 192857a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 192957a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 193057a12720STsiChungLiew fi; \ 193157a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 193257a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 193357a12720STsiChungLiew fi; \ 193457a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 193557a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 193657a12720STsiChungLiew fi 193757a12720STsiChungLiew @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 193857a12720STsiChungLiew 193957a12720STsiChungLiewM5485AFE_config \ 194057a12720STsiChungLiewM5485BFE_config \ 194157a12720STsiChungLiewM5485CFE_config \ 194257a12720STsiChungLiewM5485DFE_config \ 194357a12720STsiChungLiewM5485EFE_config \ 194457a12720STsiChungLiewM5485FFE_config \ 194557a12720STsiChungLiewM5485GFE_config \ 194657a12720STsiChungLiewM5485HFE_config : unconfig 194757a12720STsiChungLiew @case "$@" in \ 194857a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 194957a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 195057a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 195157a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 195257a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 195357a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 195457a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 19554d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 195657a12720STsiChungLiew esac; \ 195757a12720STsiChungLiew echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \ 195857a12720STsiChungLiew echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 195957a12720STsiChungLiew echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 196057a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 196157a12720STsiChungLiew echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 196257a12720STsiChungLiew fi; \ 196357a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 196457a12720STsiChungLiew echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 196557a12720STsiChungLiew fi; \ 196657a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 196757a12720STsiChungLiew echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 196857a12720STsiChungLiew fi; \ 196957a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 197057a12720STsiChungLiew echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 197157a12720STsiChungLiew fi 197257a12720STsiChungLiew @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 197357a12720STsiChungLiew 19747ebf7443Swdenk######################################################################### 1975f046ccd1SEran Liberty## MPC83xx Systems 1976f046ccd1SEran Liberty######################################################################### 1977f046ccd1SEran Liberty 19785c5d3242SKim PhillipsMPC8313ERDB_33_config \ 19795c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 1980cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1981c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 1982ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 1983cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 19845c5d3242SKim Phillips fi ; \ 19855c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1986ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 1987cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 19885c5d3242SKim Phillips fi ; 1989e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 19905c5d3242SKim Phillips 19918bd522ceSDave LiuMPC8315ERDB_config: unconfig 19928bd522ceSDave Liu @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 19938bd522ceSDave Liu 19941c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 19951c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 19961c274c4eSKim Phillips 19974decd84eSKim PhillipsMPC832XEMDS_config \ 19984decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 19994decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 2000281df457STony LiMPC832XEMDS_SLAVE_config \ 2001281df457STony LiMPC832XEMDS_ATM_config: unconfig 2002cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2003c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2004ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2005cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20064decd84eSKim Phillips fi ; \ 20074decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2008ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2009cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2010cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20114decd84eSKim Phillips fi ; \ 20124decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 2013ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2014cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2015281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20164decd84eSKim Phillips fi ; \ 20174decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 2018ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2019cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2020281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2021281df457STony Li fi ; \ 2022281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2023ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2024281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2025281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20264decd84eSKim Phillips fi ; 2027e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 2028e6f2e902SMarian Balakowicz 2029991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 2030e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 2031991425feSMarian Balakowicz 20327a78f148STimur TabiMPC8349ITX_config \ 20337a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 20347a78f148STimur TabiMPC8349ITXGP_config: unconfig 20357a78f148STimur Tabi @mkdir -p $(obj)include 2036e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 20377a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 20387a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 2039e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20407a78f148STimur Tabi fi 20417a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2042e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 20437a78f148STimur Tabi fi 2044e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 20454decd84eSKim Phillips 20465f820439SDave LiuMPC8360EMDS_config \ 20475f820439SDave LiuMPC8360EMDS_HOST_33_config \ 20485f820439SDave LiuMPC8360EMDS_HOST_66_config \ 2049281df457STony LiMPC8360EMDS_SLAVE_config \ 2050281df457STony LiMPC8360EMDS_ATM_config: unconfig 2051cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2052c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2053ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 2054cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 20555f820439SDave Liu fi ; \ 20565f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2057ae6d1056SWolfgang Denk $(XECHO) "...PCI SLAVE 66M" ; \ 2058cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2059cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 20605f820439SDave Liu fi ; \ 20615f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 2062ae6d1056SWolfgang Denk $(XECHO) -n "...33M ..." ; \ 2063cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2064281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 20655f820439SDave Liu fi ; \ 20665f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 2067ae6d1056SWolfgang Denk $(XECHO) -n "...66M..." ; \ 2068cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2069281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2070281df457STony Li fi ; \ 2071281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 2072ae6d1056SWolfgang Denk $(XECHO) -n "...ATM..." ; \ 2073281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2074281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 20755f820439SDave Liu fi ; 2076e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 20775f820439SDave Liu 2078fab6f556SAnton VorontsovMPC8360ERDK_33_config \ 2079fab6f556SAnton VorontsovMPC8360ERDK_66_config \ 208091c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config: unconfig 2081fab6f556SAnton Vorontsov @mkdir -p $(obj)include 2082c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2083ae6d1056SWolfgang Denk $(XECHO) -n "... CLKIN 33MHz " ; \ 2084fab6f556SAnton Vorontsov echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2085fab6f556SAnton Vorontsov fi ; 2086fab6f556SAnton Vorontsov @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2087fab6f556SAnton Vorontsov 208819580e66SDave LiuMPC837XEMDS_config \ 208919580e66SDave LiuMPC837XEMDS_HOST_config: unconfig 209019580e66SDave Liu @mkdir -p $(obj)include 2091c6fe4dabSWolfgang Denk @if [ "$(findstring _HOST_,$@)" ] ; then \ 2092ae6d1056SWolfgang Denk $(XECHO) -n "... PCI HOST " ; \ 209319580e66SDave Liu echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 209419580e66SDave Liu fi ; 209519580e66SDave Liu @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 209619580e66SDave Liu 20975e918a98SKim PhillipsMPC837XERDB_config: unconfig 20985e918a98SKim Phillips @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 20995e918a98SKim Phillips 210091e25769SPaul Gortmakersbc8349_config: unconfig 210191e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 210291e25769SPaul Gortmaker 21034decd84eSKim PhillipsTQM834x_config: unconfig 21044decd84eSKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 21054decd84eSKim Phillips 21062ad6b513STimur Tabi 2107f046ccd1SEran Liberty######################################################################### 210842d1f039Swdenk## MPC85xx Systems 210942d1f039Swdenk######################################################################### 211042d1f039Swdenk 21117bd6104bSrobert lazarskiATUM8548_config: unconfig 21127bd6104bSrobert lazarski @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 21137bd6104bSrobert lazarski 211442d1f039SwdenkMPC8540ADS_config: unconfig 2115c2d943ffSKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 211642d1f039Swdenk 2117b0e32949SLunsheng WangMPC8540EVAL_config \ 2118b0e32949SLunsheng WangMPC8540EVAL_33_config \ 2119b0e32949SLunsheng WangMPC8540EVAL_66_config \ 2120b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 2121b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 2122f9328639SMarian Balakowicz @mkdir -p $(obj)include 2123c6fe4dabSWolfgang Denk @if [ "$(findstring _33_,$@)" ] ; then \ 2124ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2125b0e32949SLunsheng Wang else \ 2126f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2127ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2128b0e32949SLunsheng Wang fi ; \ 2129b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 2130f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2131ae6d1056SWolfgang Denk $(XECHO) " slave" ; \ 2132b0e32949SLunsheng Wang else \ 2133ae6d1056SWolfgang Denk $(XECHO) " host" ; \ 2134b0e32949SLunsheng Wang fi 2135f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2136b0e32949SLunsheng Wang 213742d1f039SwdenkMPC8560ADS_config: unconfig 2138870ceac5SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 213942d1f039Swdenk 21407f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 214103f5c550SwdenkMPC8541CDS_config: unconfig 21427f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2143c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21447f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2145ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21467f3f2bd2SRandy Vinson fi 2147415a613bSKumar Gala @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 214803f5c550Swdenk 214981f481caSAndy FlemingMPC8544DS_config: unconfig 215081f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 215181f481caSAndy Fleming 21527f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 2153d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 21547f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2155c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21567f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2157ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21587f3f2bd2SRandy Vinson fi 2159415a613bSKumar Gala @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2160d9b94f28SJon Loeliger 21617f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 216203f5c550SwdenkMPC8555CDS_config: unconfig 21637f3f2bd2SRandy Vinson @mkdir -p $(obj)include 2164c6fe4dabSWolfgang Denk @if [ "$(findstring _legacy_,$@)" ] ; then \ 21657f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2166ae6d1056SWolfgang Denk $(XECHO) "... legacy" ; \ 21677f3f2bd2SRandy Vinson fi 2168415a613bSKumar Gala @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 21697abf0c58Swdenk 217067431059SAndy FlemingMPC8568MDS_config: unconfig 2171acbca876SKumar Gala @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 217267431059SAndy Fleming 2173384cc687SwdenkPM854_config: unconfig 2174f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2175384cc687Swdenk 2176b20d0032SWolfgang DenkPM856_config: unconfig 2177f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2178b20d0032SWolfgang Denk 2179c15f3120Swdenksbc8540_config \ 2180c15f3120Swdenksbc8540_33_config \ 2181c15f3120Swdenksbc8540_66_config: unconfig 2182f9328639SMarian Balakowicz @mkdir -p $(obj)include 2183c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2184f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2185ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 2186c15f3120Swdenk else \ 2187ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 2188c15f3120Swdenk fi 2189f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2190c15f3120Swdenk 219111c45ebdSJoe Hammansbc8548_config: unconfig 219211c45ebdSJoe Hamman @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 219311c45ebdSJoe Hamman 2194466b7410Swdenksbc8560_config \ 2195466b7410Swdenksbc8560_33_config \ 2196466b7410Swdenksbc8560_66_config: unconfig 2197f9328639SMarian Balakowicz @mkdir -p $(obj)include 21988b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 2199f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2200ae6d1056SWolfgang Denk $(XECHO) "... 66 MHz PCI" ; \ 22018b07a110Swdenk else \ 2202ae6d1056SWolfgang Denk $(XECHO) "... 33 MHz PCI" ; \ 22038b07a110Swdenk fi 2204f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 22058b07a110Swdenk 220603f5c550Swdenkstxgp3_config: unconfig 2207f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 220803f5c550Swdenk 2209ee152983SWolfgang Denkstxssa_config \ 2210ee152983SWolfgang Denkstxssa_4M_config: unconfig 2211ee152983SWolfgang Denk @mkdir -p $(obj)include 2212ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 2213ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2214ae6d1056SWolfgang Denk $(XECHO) "... with 4 MiB flash memory" ; \ 2215ee152983SWolfgang Denk fi 2216ee152983SWolfgang Denk @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 221735171dc0SDan Malek 2218d96f41e0SStefan RoeseTQM8540_config \ 2219d96f41e0SStefan RoeseTQM8541_config \ 2220d96f41e0SStefan RoeseTQM8555_config \ 2221f5c5ef4aSwdenkTQM8560_config: unconfig 2222f9328639SMarian Balakowicz @mkdir -p $(obj)include 2223a889bd27SWolfgang Denk @CTYPE=$(subst TQM,,$(@:_config=)); \ 2224ae6d1056SWolfgang Denk $(XECHO) "... TQM"$${CTYPE}; \ 2225f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2226f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2227f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2228f9328639SMarian Balakowicz echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 22298a783a65SGrant Likely echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 2230f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 2231f5c5ef4aSwdenk 223242d1f039Swdenk######################################################################### 2233debb7354SJon Loeliger## MPC86xx Systems 2234debb7354SJon Loeliger######################################################################### 2235debb7354SJon Loeliger 22363c89d754SJon LoeligerMPC8610HPCD_config: unconfig 22373c89d754SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 22383c89d754SJon Loeliger 2239debb7354SJon LoeligerMPC8641HPCN_config: unconfig 22404ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2241debb7354SJon Loeliger 2242c646bba6SJoe Hammansbc8641d_config: unconfig 224391c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d 2244debb7354SJon Loeliger 2245debb7354SJon Loeliger######################################################################### 22467ebf7443Swdenk## 74xx/7xx Systems 22477ebf7443Swdenk######################################################################### 22487ebf7443Swdenk 2249c7de829cSwdenkAmigaOneG3SE_config: unconfig 2250f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2251c7de829cSwdenk 225215647dc7SwdenkBAB7xx_config: unconfig 2253f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 225415647dc7Swdenk 2255c419d1d6SstroeseCPCI750_config: unconfig 2256f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2257c419d1d6Sstroese 22583a473b2aSwdenkDB64360_config: unconfig 2259f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 22603a473b2aSwdenk 22613a473b2aSwdenkDB64460_config: unconfig 2262f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 22633a473b2aSwdenk 226415647dc7SwdenkELPPC_config: unconfig 2265f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 226615647dc7Swdenk 22677ebf7443SwdenkEVB64260_config \ 22687ebf7443SwdenkEVB64260_750CX_config: unconfig 2269f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 22707ebf7443Swdenk 22714c52783bSroy zangmpc7448hpc2_config: unconfig 22727f1d846eSJon Loeliger @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale 22734c52783bSroy zang 227415647dc7SwdenkP3G4_config: unconfig 2275f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 22767ebf7443Swdenk 22771eac2a71SStefan Roesep3m750_config \ 22781eac2a71SStefan Roesep3m7448_config: unconfig 22791eac2a71SStefan Roese @mkdir -p $(obj)include 22801eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 22811eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 22821eac2a71SStefan Roese else \ 22831eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 22841eac2a71SStefan Roese fi 22851eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 22861eac2a71SStefan Roese 22877ebf7443SwdenkPCIPPC2_config \ 22887ebf7443SwdenkPCIPPC6_config: unconfig 2289f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 22907ebf7443Swdenk 229115647dc7SwdenkZUMA_config: unconfig 2292f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 229312f34241Swdenk 2294f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2295f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2296f5e0d039SHeiko Schocher 22977ebf7443Swdenk#======================================================================== 22987ebf7443Swdenk# ARM 22997ebf7443Swdenk#======================================================================== 23007ebf7443Swdenk######################################################################### 23017ebf7443Swdenk## StrongARM Systems 23027ebf7443Swdenk######################################################################### 23037ebf7443Swdenk 2304ea66bc88Swdenkassabet_config : unconfig 2305f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2306ea66bc88Swdenk 23077ebf7443Swdenkdnp1110_config : unconfig 2308f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 23097ebf7443Swdenk 2310855a496fSwdenkgcplus_config : unconfig 2311f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2312855a496fSwdenk 2313855a496fSwdenklart_config : unconfig 2314f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2315855a496fSwdenk 23167ebf7443Swdenkshannon_config : unconfig 2317f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 23187ebf7443Swdenk 23197ebf7443Swdenk######################################################################### 23202e5983d2Swdenk## ARM92xT Systems 23217ebf7443Swdenk######################################################################### 23227ebf7443Swdenk 2323b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 232443d9616cSwdenk 23253ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 232663e73c9aSwdenk 2327a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2328a56bd922Swdenk 232920b197c6SStelian Popat91cap9adk_config : unconfig 2330a8a78f2dSStelian Pop @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9 233120b197c6SStelian Pop 2332a85f9f21Swdenkat91rm9200dk_config : unconfig 233365230107SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 2334a85f9f21Swdenk 23350176d43eSStelian Popat91sam9260ek_config : unconfig 23360176d43eSStelian Pop @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9 23370176d43eSStelian Pop 2338a85f9f21Swdenkcmc_pu2_config : unconfig 2339f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2340a85f9f21Swdenk 2341645da510SWolfgang Denkcsb637_config : unconfig 2342f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2343645da510SWolfgang Denk 23440e4018d2SWolfgang Denkmp2usb_config : unconfig 2345f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 23460e4018d2SWolfgang Denk 2347ea8d989fSTimo Tuunainenm501sk_config : unconfig 2348ea8d989fSTimo Tuunainen @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 234987cb6862SWolfgang Denk 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 237699b0d285SWolfgang Denkkb9202_config : unconfig 2377f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 237899b0d285SWolfgang Denk 2379f832d8a1Swdenklpd7a400_config \ 2380f832d8a1Swdenklpd7a404_config: unconfig 2381f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 23823d3befa7Swdenk 2383281e00a3Swdenkmx1ads_config : unconfig 2384f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2385281e00a3Swdenk 2386281e00a3Swdenkmx1fs2_config : unconfig 2387f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2388281e00a3Swdenk 2389ac7eb8a3SWolfgang Denknetstar_config: unconfig 2390f4e7cbfcSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm925t netstar 2391ac7eb8a3SWolfgang Denk 23922e5983d2Swdenkomap1510inn_config : unconfig 2393f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 23942e5983d2Swdenk 23951eaeb58eSwdenkomap5912osk_config : unconfig 2396f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 23971eaeb58eSwdenk 2398c74b2108SSergey Kubushyndavinci_dvevm_config : unconfig 2399c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2400c74b2108SSergey Kubushyn 2401c74b2108SSergey Kubushyndavinci_schmoogie_config : unconfig 2402c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2403c74b2108SSergey Kubushyn 2404c74b2108SSergey Kubushyndavinci_sonata_config : unconfig 2405c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2406c74b2108SSergey Kubushyn 240763e73c9aSwdenkomap1610inn_config \ 240863e73c9aSwdenkomap1610inn_cs0boot_config \ 240963e73c9aSwdenkomap1610inn_cs3boot_config \ 24103ff02c27Swdenkomap1610inn_cs_autoboot_config \ 241163e73c9aSwdenkomap1610h2_config \ 241263e73c9aSwdenkomap1610h2_cs0boot_config \ 24133ff02c27Swdenkomap1610h2_cs3boot_config \ 24143ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2415f9328639SMarian Balakowicz @mkdir -p $(obj)include 241663e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2417cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2418ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 24193ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2420cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2421ae6d1056SWolfgang Denk $(XECHO) "... configured for CS_AUTO boot"; \ 242263e73c9aSwdenk else \ 2423cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2424ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 242563e73c9aSwdenk fi; 2426f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 24276f21347dSwdenk 2428a56bd922Swdenkomap730p2_config \ 2429a56bd922Swdenkomap730p2_cs0boot_config \ 2430a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2431f9328639SMarian Balakowicz @mkdir -p $(obj)include 2432a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2433f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2434ae6d1056SWolfgang Denk $(XECHO) "... configured for CS0 boot"; \ 2435a56bd922Swdenk else \ 2436f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2437ae6d1056SWolfgang Denk $(XECHO) "... configured for CS3 boot"; \ 2438a56bd922Swdenk fi; 2439f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2440a56bd922Swdenk 244132cb2c70SWolfgang Denksbc2410x_config: unconfig 2442f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 244332cb2c70SWolfgang Denk 2444281e00a3Swdenkscb9328_config : unconfig 2445f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2446281e00a3Swdenk 24477ebf7443Swdenksmdk2400_config : unconfig 2448f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 24497ebf7443Swdenk 24507ebf7443Swdenksmdk2410_config : unconfig 2451f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 24527ebf7443Swdenk 24532d24a3a7SwdenkSX1_config : unconfig 2454f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 24552d24a3a7Swdenk 2456b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 245743d9616cSwdenktrab_config \ 2458b0639ca3Swdenktrab_bigram_config \ 2459b0639ca3Swdenktrab_bigflash_config \ 2460f54ebdfaSwdenktrab_old_config: unconfig 2461f9328639SMarian Balakowicz @mkdir -p $(obj)include 2462f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2463b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2464f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2465f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2466ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2467b0639ca3Swdenk } 2468b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2469f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2470f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2471ae6d1056SWolfgang Denk $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2472f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2473b0639ca3Swdenk } 2474f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2475f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2476f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2477ae6d1056SWolfgang Denk $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2478f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 247943d9616cSwdenk } 2480f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 24817ebf7443Swdenk 24821cb8e980SwdenkVCMA9_config : unconfig 2483f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 24841cb8e980Swdenk 248587cb6862SWolfgang Denk#======================================================================== 248687cb6862SWolfgang Denk# ARM supplied Versatile development boards 248787cb6862SWolfgang Denk#======================================================================== 248887cb6862SWolfgang Denkversatile_config \ 248987cb6862SWolfgang Denkversatileab_config \ 249087cb6862SWolfgang Denkversatilepb_config : unconfig 249196782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2492074cff0dSwdenk 24933c2b3d45Swdenkvoiceblue_config: unconfig 24944fedfddfSLadislav Michl @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 24953c2b3d45Swdenk 249616b013e7Swdenkcm4008_config : unconfig 2497f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 249816b013e7Swdenk 249916b013e7Swdenkcm41xx_config : unconfig 2500f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 250116b013e7Swdenk 2502074cff0dSwdenk######################################################################### 2503074cff0dSwdenk## S3C44B0 Systems 2504074cff0dSwdenk######################################################################### 2505074cff0dSwdenk 2506074cff0dSwdenkB2_config : unconfig 2507f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2508074cff0dSwdenk 25097ebf7443Swdenk######################################################################### 25107ebf7443Swdenk## ARM720T Systems 25117ebf7443Swdenk######################################################################### 25127ebf7443Swdenk 2513c570b2fdSWolfgang Denkarmadillo_config: unconfig 2514f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2515c570b2fdSWolfgang Denk 25167ebf7443Swdenkep7312_config : unconfig 2517f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 25187ebf7443Swdenk 25192d24a3a7Swdenkimpa7_config : unconfig 2520f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 25212d24a3a7Swdenk 25222d1a537dSwdenkmodnet50_config : unconfig 2523f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 25242d1a537dSwdenk 252539539887Swdenkevb4510_config : unconfig 2526f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 252739539887Swdenk 25286bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2529b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2530b0d8f5bfSPeter Pearse 2531b0d8f5bfSPeter PearseSMN42_config : unconfig 2532b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 25336bd2447eSGary Jennejohn 25347ebf7443Swdenk######################################################################### 253543d9616cSwdenk## XScale Systems 25367ebf7443Swdenk######################################################################### 25377ebf7443Swdenk 2538799891efSMichael Schwingenactux1_config : unconfig 2539799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux1 2540799891efSMichael Schwingen 2541799891efSMichael Schwingenactux2_config : unconfig 2542799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux2 2543799891efSMichael Schwingen 2544799891efSMichael Schwingenactux3_config : unconfig 2545799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux3 2546799891efSMichael Schwingen 2547799891efSMichael Schwingenactux4_config : unconfig 2548799891efSMichael Schwingen @$(MKCONFIG) $(@:_config=) arm ixp actux4 2549799891efSMichael Schwingen 255020787e23Swdenkadsvix_config : unconfig 2551f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa adsvix 255220787e23Swdenk 2553fabd46acSwdenkcerf250_config : unconfig 2554f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2555fabd46acSwdenk 25567ebf7443Swdenkcradle_config : unconfig 2557f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 25587ebf7443Swdenk 25597ebf7443Swdenkcsb226_config : unconfig 2560f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 25617ebf7443Swdenk 256291c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config : unconfig 2563f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 25640be248faSWolfgang Denk 256543d9616cSwdenkinnokom_config : unconfig 2566f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 256743d9616cSwdenk 25682d5b561eSwdenkixdp425_config : unconfig 2569f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 25702d5b561eSwdenk 2571ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2572f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2573ba94a1bbSWolfgang Denk 257443d9616cSwdenklubbock_config : unconfig 2575f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 257643d9616cSwdenk 25775720df78SHeiko Schocherpleb2_config : unconfig 2578f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 25795720df78SHeiko Schocher 258052f52c14Swdenklogodl_config : unconfig 2581f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 258252f52c14Swdenk 25839d8d5a5bSStefan Roesepdnb3_config \ 25849d8d5a5bSStefan Roesescpu_config: unconfig 2585cdd917a4SWolfgang Denk @mkdir -p $(obj)include 25869d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2587cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2588ae6d1056SWolfgang Denk $(XECHO) "... on SCPU board variant" ; \ 25899d8d5a5bSStefan Roese fi 25909d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2591ba94a1bbSWolfgang Denk 2592f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2593f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2594f57f70aaSWolfgang Denk 25955e5803e1Sstefano babictrizepsiv_config : unconfig 25965e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 25975e5803e1Sstefano babic 25983e38691eSwdenkwepep250_config : unconfig 2599f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 26003e38691eSwdenk 26014ec3a7f0Swdenkxaeniax_config : unconfig 2602f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 26034ec3a7f0Swdenk 2604efa329cbSwdenkxm250_config : unconfig 2605f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2606efa329cbSwdenk 2607ca0e7748Swdenkxsengine_config : unconfig 2608f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2609ca0e7748Swdenk 2610e0269579SMarkus Klotzbücherzylonite_config : 2611f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2612e0269579SMarkus Klotzbücher 26138ed96046Swdenk######################################################################### 26148ed96046Swdenk## ARM1136 Systems 26158ed96046Swdenk######################################################################### 26168ed96046Swdenkomap2420h4_config : unconfig 26175252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx 26185ca9881aSPeter Pearse 26195ca9881aSPeter Pearseapollon_config : unconfig 2620c6fe4dabSWolfgang Denk @mkdir -p $(obj)include 2621751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 26225252ed95SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx 2623751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 26248ed96046Swdenk 2625caebc95bSSascha Hauerimx31_litekit_config : unconfig 2626caebc95bSSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31 2627caebc95bSSascha Hauer 26285ad86216SSascha Hauerimx31_phycore_config : unconfig 26295ad86216SSascha Hauer @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31 26305ad86216SSascha Hauer 26312262cfeeSwdenk#======================================================================== 26322262cfeeSwdenk# i386 26332262cfeeSwdenk#======================================================================== 26342262cfeeSwdenk######################################################################### 26352262cfeeSwdenk## AMD SC520 CDP 26362262cfeeSwdenk######################################################################### 26372262cfeeSwdenksc520_cdp_config : unconfig 2638f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 26392262cfeeSwdenk 26407a8e9bedSwdenksc520_spunk_config : unconfig 2641f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26427a8e9bedSwdenk 26437a8e9bedSwdenksc520_spunk_rel_config : unconfig 2644f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 26457a8e9bedSwdenk 264643d9616cSwdenk#======================================================================== 264743d9616cSwdenk# MIPS 264843d9616cSwdenk#======================================================================== 26497ebf7443Swdenk######################################################################### 265043d9616cSwdenk## MIPS32 4Kc 265143d9616cSwdenk######################################################################### 265243d9616cSwdenk 2653e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2654e0ac62d7Swdenk 2655e0ac62d7Swdenkincaip_100MHz_config \ 2656e0ac62d7Swdenkincaip_133MHz_config \ 2657e0ac62d7Swdenkincaip_150MHz_config \ 265843d9616cSwdenkincaip_config: unconfig 2659f9328639SMarian Balakowicz @mkdir -p $(obj)include 2660e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2661f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2662ae6d1056SWolfgang Denk $(XECHO) "... with 100MHz system clock" ; \ 2663e0ac62d7Swdenk } 2664e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2665f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2666ae6d1056SWolfgang Denk $(XECHO) "... with 133MHz system clock" ; \ 2667e0ac62d7Swdenk } 2668e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2669f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2670ae6d1056SWolfgang Denk $(XECHO) "... with 150MHz system clock" ; \ 2671e0ac62d7Swdenk } 2672f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2673e0ac62d7Swdenk 2674f4863a7aSwdenktb0229_config: unconfig 2675f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2676f4863a7aSwdenk 2677e0ac62d7Swdenk######################################################################### 267869459791Swdenk## MIPS32 AU1X00 267969459791Swdenk######################################################################### 268069459791Swdenkdbau1000_config : unconfig 2681f9328639SMarian Balakowicz @mkdir -p $(obj)include 2682210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 2683f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 268469459791Swdenk 268569459791Swdenkdbau1100_config : unconfig 2686f9328639SMarian Balakowicz @mkdir -p $(obj)include 2687210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 2688f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 268969459791Swdenk 269069459791Swdenkdbau1500_config : unconfig 2691f9328639SMarian Balakowicz @mkdir -p $(obj)include 2692210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 2693f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 269469459791Swdenk 2695ff36fd85Swdenkdbau1550_config : unconfig 2696f9328639SMarian Balakowicz @mkdir -p $(obj)include 2697210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2698f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2699ff36fd85Swdenk 2700ff36fd85Swdenkdbau1550_el_config : unconfig 2701f9328639SMarian Balakowicz @mkdir -p $(obj)include 2702210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 2703f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2704ff36fd85Swdenk 2705265817c7SWolfgang Denkpb1000_config : unconfig 2706f9328639SMarian Balakowicz @mkdir -p $(obj)include 2707210ed200SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 2708f9328639SMarian Balakowicz @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2709265817c7SWolfgang Denk 27108a773983SShinya Kuribayashigth2_config: unconfig 27118a773983SShinya Kuribayashi @mkdir -p $(obj)include 27128a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 27138a773983SShinya Kuribayashi @$(MKCONFIG) -a gth2 mips mips gth2 27148a773983SShinya Kuribayashi 27150764c164SVlad Lunguqemu_mips_config: unconfig 27160764c164SVlad Lungu @mkdir -p $(obj)include 2717210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 27180764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 27190764c164SVlad Lungu 272069459791Swdenk######################################################################### 2721e0ac62d7Swdenk## MIPS64 5Kc 2722e0ac62d7Swdenk######################################################################### 272343d9616cSwdenk 27243e38691eSwdenkpurple_config : unconfig 2725f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 272643d9616cSwdenk 27274a551709Swdenk#======================================================================== 27284a551709Swdenk# Nios 27294a551709Swdenk#======================================================================== 27304a551709Swdenk######################################################################### 27314a551709Swdenk## Nios32 27324a551709Swdenk######################################################################### 27334a551709Swdenk 2734c935d3bdSwdenkDK1C20_safe_32_config \ 2735c935d3bdSwdenkDK1C20_standard_32_config \ 27364a551709SwdenkDK1C20_config: unconfig 2737f9328639SMarian Balakowicz @mkdir -p $(obj)include 2738c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2739f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2740ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2741c935d3bdSwdenk } 2742c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2743f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2744ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2745c935d3bdSwdenk } 2746c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2747f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2748ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2749c935d3bdSwdenk } 2750f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2751c935d3bdSwdenk 2752c935d3bdSwdenkDK1S10_safe_32_config \ 2753c935d3bdSwdenkDK1S10_standard_32_config \ 2754ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2755c935d3bdSwdenkDK1S10_config: unconfig 2756f9328639SMarian Balakowicz @mkdir -p $(obj)include 2757c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2758f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2759ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2760c935d3bdSwdenk } 2761c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2762f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2763ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2764c935d3bdSwdenk } 2765ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2766f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2767ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 2768ec4c544bSwdenk } 2769c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2770f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2771ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2772c935d3bdSwdenk } 2773f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 27744a551709Swdenk 2775aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 2776aaf224abSwdenkADNPESC1_base_32_config \ 2777aaf224abSwdenkADNPESC1_config: unconfig 2778f9328639SMarian Balakowicz @mkdir -p $(obj)include 2779aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2780f9328639SMarian Balakowicz { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2781ae6d1056SWolfgang Denk $(XECHO) "... DNP/EVA2 configuration" ; \ 2782aaf224abSwdenk } 2783aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 2784f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2785ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration" ; \ 2786aaf224abSwdenk } 2787aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2788f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2789ae6d1056SWolfgang Denk $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2790aaf224abSwdenk } 2791f9328639SMarian Balakowicz @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2792aaf224abSwdenk 27935c952cf0Swdenk######################################################################### 27945c952cf0Swdenk## Nios-II 27955c952cf0Swdenk######################################################################### 27965c952cf0Swdenk 27979cc83378SScott McNuttEP1C20_config : unconfig 2798f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 27999cc83378SScott McNutt 28009cc83378SScott McNuttEP1S10_config : unconfig 2801f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 28029cc83378SScott McNutt 28039cc83378SScott McNuttEP1S40_config : unconfig 2804f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 28059cc83378SScott McNutt 28065c952cf0SwdenkPK1C20_config : unconfig 2807f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 28085c952cf0Swdenk 28095c952cf0SwdenkPCI5441_config : unconfig 2810f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 28114a551709Swdenk 2812507bbe3eSwdenk#======================================================================== 2813507bbe3eSwdenk# MicroBlaze 2814507bbe3eSwdenk#======================================================================== 2815507bbe3eSwdenk######################################################################### 2816507bbe3eSwdenk## Microblaze 2817507bbe3eSwdenk######################################################################### 2818507bbe3eSwdenksuzaku_config: unconfig 2819f9328639SMarian Balakowicz @mkdir -p $(obj)include 2820210ed200SWolfgang Denk @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h 2821f9328639SMarian Balakowicz @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2822507bbe3eSwdenk 2823cfc67116SMichal Simekml401_config: unconfig 2824cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2825210ed200SWolfgang Denk @echo "#define CONFIG_ML401 1" > $(obj)include/config.h 282690b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2827cfc67116SMichal Simek 282817980495SMichal Simekxupv2p_config: unconfig 2829cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2830210ed200SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h 283190b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 283217980495SMichal Simek 283360fa72d6SMike Frysinger#======================================================================== 283460fa72d6SMike Frysinger# Blackfin 283560fa72d6SMike Frysinger#======================================================================== 28360afe519aSWolfgang Denk 283760fa72d6SMike Frysinger# Analog Devices boards 283860fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit 28390afe519aSWolfgang Denk 284060fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config) : unconfig 28419171fc81SMike Frysinger @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=) 284226bf7decSAubrey Li 284360fa72d6SMike Frysinger$(BFIN_BOARDS): 284460fa72d6SMike Frysinger $(MAKE) $@_config 284560fa72d6SMike Frysinger $(MAKE) 28460afe519aSWolfgang Denk 28475e3b0bc1SHaavard Skinnemoen#======================================================================== 28485e3b0bc1SHaavard Skinnemoen# AVR32 28495e3b0bc1SHaavard Skinnemoen#======================================================================== 28505e3b0bc1SHaavard Skinnemoen######################################################################### 28515e3b0bc1SHaavard Skinnemoen## AT32AP7xxx 28525e3b0bc1SHaavard Skinnemoen######################################################################### 28535e3b0bc1SHaavard Skinnemoen 28545e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 285536f28f8aSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28565e3b0bc1SHaavard Skinnemoen 2857667568dbSHaavard Skinnemoenatstk1003_config : unconfig 2858667568dbSHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2859667568dbSHaavard Skinnemoen 286064ff2357SHaavard Skinnemoenatstk1004_config : unconfig 286164ff2357SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 28620afe519aSWolfgang Denk 28636b443944SHaavard Skinnemoenatngw100_config : unconfig 28646b443944SHaavard Skinnemoen @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 28656b443944SHaavard Skinnemoen 28660afe519aSWolfgang Denk######################################################################### 28670afe519aSWolfgang Denk######################################################################### 28683e38691eSwdenk######################################################################### 28697ebf7443Swdenk 287069df3c4dSNobuhiro Iwamatsu######################################################################### 2871b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH) 2872b2b5e2bbSYoshihiro Shimoda######################################################################### 28733313e0e2SMark Jonasmpr2_config: unconfig 28743313e0e2SMark Jonas @ >include/config.h 28753313e0e2SMark Jonas @echo "#define CONFIG_MPR2 1" >> include/config.h 28763313e0e2SMark Jonas @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2 28773313e0e2SMark Jonas 2878b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig 2879210ed200SWolfgang Denk @echo "#define CONFIG_MS7720SE 1" > include/config.h 288091c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se 2881b2b5e2bbSYoshihiro Shimoda 2882b2b5e2bbSYoshihiro Shimoda######################################################################### 288369df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH) 288469df3c4dSNobuhiro Iwamatsu######################################################################### 288569df3c4dSNobuhiro Iwamatsums7750se_config: unconfig 2886210ed200SWolfgang Denk @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h 288791c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se 288869df3c4dSNobuhiro Iwamatsu 2889d91ea45dSNobuhiro Iwamatsums7722se_config : unconfig 2890210ed200SWolfgang Denk @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h 289191c82076SJean-Christophe PLAGNIOL-VILLARD @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se 28927a8e9bedSwdenk 2893c2042f59Sgoda.yusukeMigoR_config : unconfig 2894c2042f59Sgoda.yusuke @ >include/config.h 2895c2042f59Sgoda.yusuke @echo "#define CONFIG_MIGO_R 1" >> include/config.h 2896c2042f59Sgoda.yusuke @./mkconfig -a $(@:_config=) sh sh4 MigoR 2897c2042f59Sgoda.yusuke 2898c133c1fbSYusuke Godar7780mp_config: unconfig 2899c133c1fbSYusuke Goda @ >include/config.h 2900c133c1fbSYusuke Goda @echo "#define CONFIG_R7780MP 1" >> include/config.h 2901c133c1fbSYusuke Goda @./mkconfig -a $(@:_config=) sh sh4 r7780mp 2902c133c1fbSYusuke Goda 2903f5e2466fSNobuhiro Iwamatsur2dplus_config : unconfig 2904f5e2466fSNobuhiro Iwamatsu @ >include/config.h 2905f5e2466fSNobuhiro Iwamatsu @echo "#define CONFIG_R2DPLUS 1" >> include/config.h 2906f5e2466fSNobuhiro Iwamatsu @./mkconfig -a $(@:_config=) sh sh4 r2dplus 2907f5e2466fSNobuhiro Iwamatsu 2908c2f02da2SDaniel Hellstrom#======================================================================== 2909c2f02da2SDaniel Hellstrom# SPARC 2910c2f02da2SDaniel Hellstrom#======================================================================== 29111e9a164eSDaniel Hellstrom######################################################################### 29121e9a164eSDaniel Hellstrom## LEON3 29131e9a164eSDaniel Hellstrom######################################################################### 2914c2f02da2SDaniel Hellstrom 291571d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board 291671d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig 291771d7e4c0SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler 291871d7e4c0SDaniel Hellstrom 29196ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system 29206ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig 29216ed8a43aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler 29226ed8a43aSDaniel Hellstrom 29236940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS 29246940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60. 29256940383dSDaniel Hellstromgr_ep2s60_config: unconfig 29266940383dSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler 29276940383dSDaniel Hellstrom 2928823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator 2929823edd8aSDaniel Hellstromgrsim_config : unconfig 2930823edd8aSDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler 2931823edd8aSDaniel Hellstrom 29327ebf7443Swdenk######################################################################### 2933b330990cSDaniel Hellstrom## LEON2 2934b330990cSDaniel Hellstrom######################################################################### 2935b330990cSDaniel Hellstrom 2936ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator 2937ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig 2938ab68f921SDaniel Hellstrom @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler 2939ab68f921SDaniel Hellstrom 29407ebf7443Swdenk######################################################################### 29417ebf7443Swdenk######################################################################### 29427ebf7443Swdenk######################################################################### 294385ec0bccSwdenk 29443e38691eSwdenkclean: 2945f9301e1cSWolfgang Denk @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \ 2946f9301e1cSWolfgang Denk $(obj)examples/hello_world $(obj)examples/interrupt \ 2947f9301e1cSWolfgang Denk $(obj)examples/mem_to_mem_idma2intr \ 2948f9301e1cSWolfgang Denk $(obj)examples/sched $(obj)examples/smc91111_eeprom \ 2949f9301e1cSWolfgang Denk $(obj)examples/test_burst $(obj)examples/timer 2950f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 2951f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 2952f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 2953f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 2954f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 2955f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 2956f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 2957f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 2958f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 2959f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 2960f9301e1cSWolfgang Denk $(obj)board/{integratorap,integratorcp}/u-boot.lds \ 29619171fc81SMike Frysinger $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \ 29629171fc81SMike Frysinger $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] 2963f9301e1cSWolfgang Denk @rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map} 29641bb707c3SKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map} 2965f9301e1cSWolfgang Denk @rm -f $(obj)api_examples/demo $(VERSION_FILE) 2966ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 29677ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 29687ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 29697ebf7443Swdenk | xargs rm -f 29707ebf7443Swdenk 29717ebf7443Swdenkclobber: clean 2972ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \( -name .depend \ 29734c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 29744c0d4c3bSwdenk -print0 \ 29754c0d4c3bSwdenk | xargs -0 rm -f 2976ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 29775013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 2978ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2979766529fcSBartlomiej Sieka @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes} 29807e492d82SMarian Balakowicz @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c} 29817e492d82SMarian Balakowicz @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h} 29825013c09fSWolfgang Denk @rm -f $(obj)cpu/mpc824x/bedbug_603e.c 2983ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2984ae6d1056SWolfgang Denk @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 2985751b9b51SKyungmin Park @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f 2986ae6d1056SWolfgang Denk @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f 29877ebf7443Swdenk 2988f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 29897ebf7443Swdenkmrproper \ 29907ebf7443Swdenkdistclean: clobber unconfig 2991f9328639SMarian Balakowiczelse 2992f9328639SMarian Balakowiczmrproper \ 2993f9328639SMarian Balakowiczdistclean: clobber unconfig 2994ae6d1056SWolfgang Denk rm -rf $(obj)* 2995f9328639SMarian Balakowiczendif 29967ebf7443Swdenk 29977ebf7443Swdenkbackup: 29987ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 29997ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 30007ebf7443Swdenk 30017ebf7443Swdenk######################################################################### 3002