1 7ebf7443Swdenk# 2 63640019SWolfgang Denk# (C) Copyright 2000-2007 3 7ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 7ebf7443Swdenk# 5 7ebf7443Swdenk# See file CREDITS for list of people who contributed to this 6 7ebf7443Swdenk# project. 7 7ebf7443Swdenk# 8 7ebf7443Swdenk# This program is free software; you can redistribute it and/or 9 7ebf7443Swdenk# modify it under the terms of the GNU General Public License as 10 45a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of 11 7ebf7443Swdenk# the License, or (at your option) any later version. 12 7ebf7443Swdenk# 13 7ebf7443Swdenk# This program is distributed in the hope that it will be useful, 14 7ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 15 7ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 7ebf7443Swdenk# GNU General Public License for more details. 17 7ebf7443Swdenk# 18 7ebf7443Swdenk# You should have received a copy of the GNU General Public License 19 7ebf7443Swdenk# along with this program; if not, write to the Free Software 20 7ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 7ebf7443Swdenk# MA 02111-1307 USA 22 7ebf7443Swdenk# 23 7ebf7443Swdenk 24 881a87ecSWolfgang DenkVERSION = 1 25 754bac48SWolfgang DenkPATCHLEVEL = 3 26 f4eb5452SWolfgang DenkSUBLEVEL = 0 27 9a337ddcSWolfgang DenkEXTRAVERSION = 28 881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 29 f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h 30 881a87ecSWolfgang Denk 31 7ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 32 7ebf7443Swdenk sed -e s/i.86/i386/ \ 33 7ebf7443Swdenk -e s/sun4u/sparc64/ \ 34 7ebf7443Swdenk -e s/arm.*/arm/ \ 35 7ebf7443Swdenk -e s/sa110/arm/ \ 36 7ebf7443Swdenk -e s/powerpc/ppc/ \ 37 a2280646SKumar Gala -e s/ppc64/ppc/ \ 38 7ebf7443Swdenk -e s/macppc/ppc/) 39 7ebf7443Swdenk 40 f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 41 7ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 42 7ebf7443Swdenk 43 f9d77ed3SWolfgang Denkexport HOSTARCH HOSTOS 44 7ebf7443Swdenk 45 7ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 46 7ebf7443SwdenkVENDOR= 47 7ebf7443Swdenk 48 7ebf7443Swdenk######################################################################### 49 f9328639SMarian Balakowicz# 50 f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external 51 f9328639SMarian Balakowicz# directory. Two use cases are supported: 52 f9328639SMarian Balakowicz# 53 f9328639SMarian Balakowicz# 1) Add O= to the make command line 54 f9328639SMarian Balakowicz# 'make O=/tmp/build all' 55 f9328639SMarian Balakowicz# 56 f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location 57 f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 58 f9328639SMarian Balakowicz# 'make' 59 f9328639SMarian Balakowicz# 60 f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script 61 f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 62 f9328639SMarian Balakowicz# './MAKEALL' 63 f9328639SMarian Balakowicz# 64 f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable. 65 f9328639SMarian Balakowicz# 66 f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and 67 f9328639SMarian Balakowicz# the object files are placed in the source directory. 68 f9328639SMarian Balakowicz# 69 7ebf7443Swdenk 70 f9328639SMarian Balakowiczifdef O 71 f9328639SMarian Balakowiczifeq ("$(origin O)", "command line") 72 f9328639SMarian BalakowiczBUILD_DIR := $(O) 73 f9328639SMarian Balakowiczendif 74 f9328639SMarian Balakowiczendif 75 7ebf7443Swdenk 76 f9328639SMarian Balakowiczifneq ($(BUILD_DIR),) 77 f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR) 78 4f0645ebSMarian Balakowicz 79 4f0645ebSMarian Balakowicz# Attempt to create a output directory. 80 4f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 81 4f0645ebSMarian Balakowicz 82 4f0645ebSMarian Balakowicz# Verify if it was successful. 83 f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 84 f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 85 f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),) 86 f9328639SMarian Balakowicz 87 f9328639SMarian BalakowiczOBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 88 f9328639SMarian BalakowiczSRCTREE := $(CURDIR) 89 f9328639SMarian BalakowiczTOPDIR := $(SRCTREE) 90 f9328639SMarian BalakowiczLNDIR := $(OBJTREE) 91 f9328639SMarian Balakowiczexport TOPDIR SRCTREE OBJTREE 92 f9328639SMarian Balakowicz 93 f9328639SMarian BalakowiczMKCONFIG := $(SRCTREE)/mkconfig 94 f9328639SMarian Balakowiczexport MKCONFIG 95 f9328639SMarian Balakowicz 96 f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 97 f9328639SMarian BalakowiczREMOTE_BUILD := 1 98 f9328639SMarian Balakowiczexport REMOTE_BUILD 99 f9328639SMarian Balakowiczendif 100 f9328639SMarian Balakowicz 101 f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile 102 f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for 103 f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc. 104 f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 105 f9328639SMarian Balakowiczobj := $(OBJTREE)/ 106 f9328639SMarian Balakowiczsrc := $(SRCTREE)/ 107 f9328639SMarian Balakowiczelse 108 f9328639SMarian Balakowiczobj := 109 f9328639SMarian Balakowiczsrc := 110 f9328639SMarian Balakowiczendif 111 f9328639SMarian Balakowiczexport obj src 112 f9328639SMarian Balakowicz 113 f9328639SMarian Balakowicz######################################################################### 114 f9328639SMarian Balakowicz 115 f9328639SMarian Balakowiczifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk)) 116 f9328639SMarian Balakowicz 117 7ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 118 f9328639SMarian Balakowiczinclude $(OBJTREE)/include/config.mk 119 1d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 120 f9328639SMarian Balakowicz 121 7ebf7443Swdenkifndef CROSS_COMPILE 122 a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 123 7ebf7443SwdenkCROSS_COMPILE = 124 7ebf7443Swdenkelse 125 7ebf7443Swdenkifeq ($(ARCH),ppc) 126 16c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx- 127 7ebf7443Swdenkendif 128 7ebf7443Swdenkifeq ($(ARCH),arm) 129 dc7c9a1aSwdenkCROSS_COMPILE = arm-linux- 130 7ebf7443Swdenkendif 131 2262cfeeSwdenkifeq ($(ARCH),i386) 132 7a8e9bedSwdenkCROSS_COMPILE = i386-linux- 133 7a8e9bedSwdenkendif 134 43d9616cSwdenkifeq ($(ARCH),mips) 135 43d9616cSwdenkCROSS_COMPILE = mips_4KC- 136 43d9616cSwdenkendif 137 4a551709Swdenkifeq ($(ARCH),nios) 138 4a551709SwdenkCROSS_COMPILE = nios-elf- 139 4a551709Swdenkendif 140 5c952cf0Swdenkifeq ($(ARCH),nios2) 141 5c952cf0SwdenkCROSS_COMPILE = nios2-elf- 142 5c952cf0Swdenkendif 143 4e5ca3ebSwdenkifeq ($(ARCH),m68k) 144 4e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 145 4e5ca3ebSwdenkendif 146 507bbe3eSwdenkifeq ($(ARCH),microblaze) 147 507bbe3eSwdenkCROSS_COMPILE = mb- 148 507bbe3eSwdenkendif 149 0afe519aSWolfgang Denkifeq ($(ARCH),blackfin) 150 ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux- 151 0afe519aSWolfgang Denkendif 152 7b64fef3SWolfgang Denkifeq ($(ARCH),avr32) 153 5374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux- 154 7b64fef3SWolfgang Denkendif 155 7ebf7443Swdenkendif 156 7ebf7443Swdenkendif 157 7ebf7443Swdenk 158 7ebf7443Swdenkexport CROSS_COMPILE 159 7ebf7443Swdenk 160 92b197f0SWolfgang Denk# load other configuration 161 92b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 162 92b197f0SWolfgang Denk 163 7ebf7443Swdenk######################################################################### 164 7ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 165 7ebf7443Swdenk 166 7ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 167 2262cfeeSwdenkifeq ($(CPU),i386) 168 2262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 169 2262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 170 2262cfeeSwdenkendif 171 7ebf7443Swdenkifeq ($(CPU),ppc4xx) 172 7ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 173 7ebf7443Swdenkendif 174 42d1f039Swdenkifeq ($(CPU),mpc85xx) 175 42d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 176 42d1f039Swdenkendif 177 0afe519aSWolfgang Denkifeq ($(CPU),bf533) 178 0afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 179 ef26a08fSAubrey.LiOBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 180 0afe519aSWolfgang Denkendif 181 26bf7decSAubrey Liifeq ($(CPU),bf537) 182 26bf7decSAubrey LiOBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 183 26bf7decSAubrey LiOBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 184 26bf7decSAubrey Liendif 185 65458987SAubrey Liifeq ($(CPU),bf561) 186 65458987SAubrey LiOBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 187 65458987SAubrey LiOBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 188 7ebf7443Swdenkendif 189 7ebf7443Swdenk 190 f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 191 f9328639SMarian Balakowicz 192 9fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 193 7608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 194 7608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 195 9fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 196 7ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 197 1d9f4105Swdenkifdef SOC 198 1d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 199 1d9f4105Swdenkendif 200 323bfa8fSStefan Roeseifeq ($(CPU),ixp) 201 323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a 202 323bfa8fSStefan Roeseendif 203 7ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 204 518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 205 c419d1d6Sstroese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 206 7ebf7443SwdenkLIBS += net/libnet.a 207 7ebf7443SwdenkLIBS += disk/libdisk.a 208 2439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/libdrivers.a 209 2439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/bios_emulator/libatibiosemu.a 210 *33daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 211 f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 212 080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 213 16b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 214 2439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/nand/libnand.a 215 2439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/nand_legacy/libnand_legacy.a 216 2439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/libnet.a 217 2439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a 218 2439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/onenand/libonenand.a 219 93a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 220 73646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 221 0c698dcaSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 222 0c698dcaSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/serial/libserial.a 223 0c698dcaSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a 224 352d2591SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 225 7737d5c6SDave Liuifeq ($(CPU),mpc83xx) 226 7737d5c6SDave LiuLIBS += drivers/qe/qe.a 227 7737d5c6SDave Liuendif 228 da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 229 da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 230 da9d4610SAndy Flemingendif 231 ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a 232 ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \ 233 ad5bb451SWolfgang Denk "post/lib_$(ARCH)/libpost$(ARCH).a"; fi) 234 b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \ 235 b4489621SSergei Poselenov "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi) 236 ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \ 237 ad5bb451SWolfgang Denk "post/cpu/$(CPU)/libpost$(CPU).a"; fi) 238 ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ 239 ad5bb451SWolfgang Denk "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) 240 7ebf7443SwdenkLIBS += common/libcommon.a 241 7651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a 242 f9328639SMarian Balakowicz 243 f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 244 9fd5e31fSwdenk.PHONY : $(LIBS) 245 a8c7c708Swdenk 246 4f7cb08eSwdenk# Add GCC lib 247 1a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 248 3d3befa7Swdenk 249 a8c7c708Swdenk# The "tools" are needed early, so put this first 250 a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 251 a8c7c708SwdenkSUBDIRS = tools \ 252 ad5bb451SWolfgang Denk examples 253 ad5bb451SWolfgang Denk 254 b028f715Swdenk.PHONY : $(SUBDIRS) 255 a8c7c708Swdenk 256 887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 257 887e2ec9SStefan RoeseNAND_SPL = nand_spl 258 887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 259 887e2ec9SStefan Roeseendif 260 887e2ec9SStefan Roese 261 f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 262 f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS)) 263 f9328639SMarian Balakowicz 264 7ebf7443Swdenk######################################################################### 265 bdccc4feSwdenk######################################################################### 266 7ebf7443Swdenk 267 566a494fSHeiko SchocherALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) 268 7ebf7443Swdenk 269 bdccc4feSwdenkall: $(ALL) 270 7ebf7443Swdenk 271 f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 272 6310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 273 6310eb9dSwdenk 274 f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 275 7ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 276 7ebf7443Swdenk 277 f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 278 7ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 279 7ebf7443Swdenk 280 f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 281 bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 282 bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 283 881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 284 bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 285 bdccc4feSwdenk -d $< $@ 286 bdccc4feSwdenk 287 566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 288 01159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 289 566a494fSHeiko Schocher 290 f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 291 7ebf7443Swdenk $(OBJDUMP) -d $< > $@ 292 7ebf7443Swdenk 293 f9328639SMarian Balakowicz$(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 294 8bde7f77Swdenk UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 295 f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 296 f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 297 b2184c31Swdenk -Map u-boot.map -o u-boot 298 7ebf7443Swdenk 299 f9328639SMarian Balakowicz$(OBJS): 300 f9328639SMarian Balakowicz $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 301 f9328639SMarian Balakowicz 302 a8c7c708Swdenk$(LIBS): 303 f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 304 a8c7c708Swdenk 305 a8c7c708Swdenk$(SUBDIRS): 306 b028f715Swdenk $(MAKE) -C $@ all 307 7ebf7443Swdenk 308 887e2ec9SStefan Roese$(NAND_SPL): version 309 8318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 310 887e2ec9SStefan Roese 311 887e2ec9SStefan Roese$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 312 8318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 313 887e2ec9SStefan Roese 314 881a87ecSWolfgang Denkversion: 315 881a87ecSWolfgang Denk @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \ 316 881a87ecSWolfgang Denk echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \ 317 881a87ecSWolfgang Denk echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ 318 881a87ecSWolfgang Denk $(TOPDIR)) >> $(VERSION_FILE); \ 319 881a87ecSWolfgang Denk echo "\"" >> $(VERSION_FILE) 320 881a87ecSWolfgang Denk 321 8f713fdfSdzugdbtools: 322 f9328639SMarian Balakowicz $(MAKE) -C tools/gdb all || exit 1 323 f9328639SMarian Balakowicz 324 f9328639SMarian Balakowiczupdater: 325 f9328639SMarian Balakowicz $(MAKE) -C tools/updater all || exit 1 326 f9328639SMarian Balakowicz 327 f9328639SMarian Balakowiczenv: 328 f9328639SMarian Balakowicz $(MAKE) -C tools/env all || exit 1 329 8f713fdfSdzu 330 f8d3ca7bSWolfgang Denkdepend dep: version 331 f9328639SMarian Balakowicz for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 332 7ebf7443Swdenk 333 f9328639SMarian Balakowicztags ctags: 334 f9328639SMarian Balakowicz ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \ 335 bda6c8aeSwdenk lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 336 bda6c8aeSwdenk fs/cramfs fs/fat fs/fdos fs/jffs2 \ 337 bda6c8aeSwdenk net disk rtc dtt drivers drivers/sk98lin common \ 338 7ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 339 7ebf7443Swdenk 340 7ebf7443Swdenketags: 341 f9328639SMarian Balakowicz etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \ 342 eedcd078Swdenk lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 343 eedcd078Swdenk fs/cramfs fs/fat fs/fdos fs/jffs2 \ 344 eedcd078Swdenk net disk rtc dtt drivers drivers/sk98lin common \ 345 7ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 346 7ebf7443Swdenk 347 f9328639SMarian Balakowicz$(obj)System.map: $(obj)u-boot 348 7ebf7443Swdenk @$(NM) $< | \ 349 7ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 350 f9328639SMarian Balakowicz sort > $(obj)System.map 351 7ebf7443Swdenk 352 7ebf7443Swdenk######################################################################### 353 7ebf7443Swdenkelse 354 f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 355 f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 356 f9328639SMarian Balakowicz$(SUBDIRS) version gdbtools updater env depend \ 357 f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map: 358 7ebf7443Swdenk @echo "System not configured - see README" >&2 359 7ebf7443Swdenk @ exit 1 360 7ebf7443Swdenkendif 361 7ebf7443Swdenk 362 4e53a258SWolfgang Denk.PHONY : CHANGELOG 363 4e53a258SWolfgang DenkCHANGELOG: 364 b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 365 b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 366 4e53a258SWolfgang Denk 367 7ebf7443Swdenk######################################################################### 368 7ebf7443Swdenk 369 7ebf7443Swdenkunconfig: 370 887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 371 887e2ec9SStefan Roese $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp 372 7ebf7443Swdenk 373 7ebf7443Swdenk#======================================================================== 374 7ebf7443Swdenk# PowerPC 375 7ebf7443Swdenk#======================================================================== 376 0db5bca8Swdenk 377 0db5bca8Swdenk######################################################################### 378 0db5bca8Swdenk## MPC5xx Systems 379 0db5bca8Swdenk######################################################################### 380 0db5bca8Swdenk 381 5e5f9ed2Swdenkcanmb_config: unconfig 382 f9328639SMarian Balakowicz @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 383 5e5f9ed2Swdenk 384 0db5bca8Swdenkcmi_mpc5xx_config: unconfig 385 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 386 0db5bca8Swdenk 387 b6e4c403SwdenkPATI_config: unconfig 388 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 389 b6e4c403Swdenk 390 7ebf7443Swdenk######################################################################### 391 945af8d7Swdenk## MPC5xxx Systems 392 945af8d7Swdenk######################################################################### 393 a87589daSwdenk 394 dafba16eSWolfgang Denkaev_config: unconfig 395 f9328639SMarian Balakowicz @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 396 dafba16eSWolfgang Denk 397 6ca24c64Sdzu@denx.deBC3450_config: unconfig 398 f9328639SMarian Balakowicz @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 399 6ca24c64Sdzu@denx.de 400 5e4b3361SStefan Roesecpci5200_config: unconfig 401 f9328639SMarian Balakowicz @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 402 5e4b3361SStefan Roese 403 a87589daSwdenkhmi1001_config: unconfig 404 f9328639SMarian Balakowicz @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 405 a87589daSwdenk 406 e35745bbSwdenkLite5200_config \ 407 e35745bbSwdenkLite5200_LOWBOOT_config \ 408 e35745bbSwdenkLite5200_LOWBOOT08_config \ 409 e35745bbSwdenkicecube_5200_config \ 410 e35745bbSwdenkicecube_5200_LOWBOOT_config \ 411 e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 412 b2001f27Swdenkicecube_5200_DDR_config \ 413 79d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 414 79d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 415 e35745bbSwdenkicecube_5100_config: unconfig 416 f9328639SMarian Balakowicz @mkdir -p $(obj)include 417 f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 418 f9328639SMarian Balakowicz @ >$(obj)include/config.h 419 17d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 420 17d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 421 f9328639SMarian Balakowicz then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 422 f9328639SMarian Balakowicz else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 423 17d704ebSwdenk fi ; \ 424 5cf9da48Swdenk echo "... with LOWBOOT configuration" ; \ 425 5cf9da48Swdenk } 426 5cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 427 f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 428 5cf9da48Swdenk echo "... with 8 MB flash only" ; \ 429 17d704ebSwdenk echo "... with LOWBOOT configuration" ; \ 430 5cf9da48Swdenk } 431 b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 432 f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 433 b2001f27Swdenk echo "... DDR memory revision" ; \ 434 b2001f27Swdenk } 435 d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 436 f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 437 d4ca31c4Swdenk echo "... with MPC5200 processor" ; \ 438 d4ca31c4Swdenk } 439 a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 440 f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 441 945af8d7Swdenk echo "... with MGT5100 processor" ; \ 442 945af8d7Swdenk } 443 f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 444 945af8d7Swdenk 445 2605e90bSHeiko Schocherjupiter_config: unconfig 446 2605e90bSHeiko Schocher @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 447 2605e90bSHeiko Schocher 448 4707fb50SBartlomiej Siekav38b_config: unconfig 449 90b1b2d6SGrant Likely @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 450 4707fb50SBartlomiej Sieka 451 138ff60cSwdenkinka4x0_config: unconfig 452 f9328639SMarian Balakowicz @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 453 138ff60cSwdenk 454 09e4b0c5SWolfgang Denklite5200b_config \ 455 d3832e8fSDomen Puncerlite5200b_PM_config \ 456 09e4b0c5SWolfgang Denklite5200b_LOWBOOT_config: unconfig 457 f9328639SMarian Balakowicz @mkdir -p $(obj)include 458 f9328639SMarian Balakowicz @mkdir -p $(obj)board/icecube 459 f9328639SMarian Balakowicz @ >$(obj)include/config.h 460 f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 461 09e4b0c5SWolfgang Denk @ echo "... DDR memory revision" 462 f9328639SMarian Balakowicz @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 463 f9328639SMarian Balakowicz @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 464 d3832e8fSDomen Puncer @[ -z "$(findstring _PM_,$@)" ] || \ 465 d3832e8fSDomen Puncer { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 466 d3832e8fSDomen Puncer echo "... with power management (low-power mode) support" ; \ 467 d3832e8fSDomen Puncer } 468 09e4b0c5SWolfgang Denk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 469 f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 470 09e4b0c5SWolfgang Denk echo "... with LOWBOOT configuration" ; \ 471 09e4b0c5SWolfgang Denk } 472 09e4b0c5SWolfgang Denk @ echo "... with MPC5200B processor" 473 f9328639SMarian Balakowicz @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 474 09e4b0c5SWolfgang Denk 475 f1ee9825SStefan Roesemcc200_config \ 476 ed1cf845SWolfgang Denkmcc200_SDRAM_config \ 477 ed1cf845SWolfgang Denkmcc200_highboot_config \ 478 ed1cf845SWolfgang Denkmcc200_COM12_config \ 479 ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config \ 480 113f64e0SWolfgang Denkmcc200_COM12_highboot_config \ 481 113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config \ 482 ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config \ 483 ed1cf845SWolfgang Denkprs200_config \ 484 ed1cf845SWolfgang Denkprs200_DDR_config \ 485 ed1cf845SWolfgang Denkprs200_highboot_config \ 486 ed1cf845SWolfgang Denkprs200_highboot_DDR_config: unconfig 487 f9328639SMarian Balakowicz @mkdir -p $(obj)include 488 f9328639SMarian Balakowicz @mkdir -p $(obj)board/mcc200 489 f9328639SMarian Balakowicz @ >$(obj)include/config.h 490 4819fad9SWolfgang Denk @[ -n "$(findstring highboot,$@)" ] || \ 491 4819fad9SWolfgang Denk { echo "... with lowboot configuration" ; \ 492 f1ee9825SStefan Roese } 493 4819fad9SWolfgang Denk @[ -z "$(findstring highboot,$@)" ] || \ 494 f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 495 4819fad9SWolfgang Denk echo "... with highboot configuration" ; \ 496 4819fad9SWolfgang Denk } 497 4819fad9SWolfgang Denk @[ -n "$(findstring _SDRAM,$@)" ] || \ 498 ed1cf845SWolfgang Denk { if [ -n "$(findstring mcc200,$@)" ]; \ 499 ed1cf845SWolfgang Denk then \ 500 ed1cf845SWolfgang Denk echo "... with DDR" ; \ 501 ed1cf845SWolfgang Denk else \ 502 ed1cf845SWolfgang Denk if [ -n "$(findstring _DDR,$@)" ];\ 503 ed1cf845SWolfgang Denk then \ 504 ed1cf845SWolfgang Denk echo "... with DDR" ; \ 505 ed1cf845SWolfgang Denk else \ 506 f9328639SMarian Balakowicz echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 507 ed1cf845SWolfgang Denk echo "... with SDRAM" ; \ 508 ed1cf845SWolfgang Denk fi; \ 509 ed1cf845SWolfgang Denk fi; \ 510 4819fad9SWolfgang Denk } 511 4819fad9SWolfgang Denk @[ -z "$(findstring _SDRAM,$@)" ] || \ 512 f9328639SMarian Balakowicz { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 513 4819fad9SWolfgang Denk echo "... with SDRAM" ; \ 514 4819fad9SWolfgang Denk } 515 463764c8SWolfgang Denk @[ -z "$(findstring COM12,$@)" ] || \ 516 f9328639SMarian Balakowicz { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 517 463764c8SWolfgang Denk echo "... with console on COM12" ; \ 518 463764c8SWolfgang Denk } 519 ed1cf845SWolfgang Denk @[ -z "$(findstring prs200,$@)" ] || \ 520 f9328639SMarian Balakowicz { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 521 ed1cf845SWolfgang Denk } 522 f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 523 86ea5f93SWolfgang Denk 524 8b7d1f0aSStefan Roesemecp5200_config: unconfig 525 8b7d1f0aSStefan Roese @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd 526 8b7d1f0aSStefan Roese 527 df04a3dfSWolfgang Denko2dnt_config: 528 f9328639SMarian Balakowicz @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 529 df04a3dfSWolfgang Denk 530 5e4b3361SStefan Roesepf5200_config: unconfig 531 f9328639SMarian Balakowicz @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 532 5e4b3361SStefan Roese 533 89394047SwdenkPM520_config \ 534 89394047SwdenkPM520_DDR_config \ 535 89394047SwdenkPM520_ROMBOOT_config \ 536 89394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 537 f9328639SMarian Balakowicz @mkdir -p $(obj)include 538 f9328639SMarian Balakowicz @ >$(obj)include/config.h 539 89394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 540 f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 541 89394047Swdenk echo "... DDR memory revision" ; \ 542 89394047Swdenk } 543 89394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 544 f9328639SMarian Balakowicz { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 545 89394047Swdenk echo "... booting from 8-bit flash" ; \ 546 89394047Swdenk } 547 f9328639SMarian Balakowicz @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 548 89394047Swdenk 549 6624b687SWolfgang Denksmmaco4_config: unconfig 550 f9328639SMarian Balakowicz @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 551 9cdc8386SWolfgang Denk 552 86b116b1SBartlomiej Siekacm5200_config: unconfig 553 86b116b1SBartlomiej Sieka @./mkconfig -a cm5200 ppc mpc5xxx cm5200 554 fa1df308SBartlomiej Sieka 555 9cdc8386SWolfgang Denkspieval_config: unconfig 556 f9328639SMarian Balakowicz @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 557 9cdc8386SWolfgang Denk 558 45a212c4SWolfgang DenkTB5200_B_config \ 559 b87dfd28SWolfgang DenkTB5200_config: unconfig 560 f9328639SMarian Balakowicz @mkdir -p $(obj)include 561 45a212c4SWolfgang Denk @[ -z "$(findstring _B,$@)" ] || \ 562 f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 563 45a212c4SWolfgang Denk echo "... with MPC5200B processor" ; \ 564 45a212c4SWolfgang Denk } 565 f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 566 b87dfd28SWolfgang Denk 567 d4ca31c4SwdenkMINI5200_config \ 568 d4ca31c4SwdenkEVAL5200_config \ 569 d4ca31c4SwdenkTOP5200_config: unconfig 570 f9328639SMarian Balakowicz @mkdir -p $(obj)include 571 f9328639SMarian Balakowicz @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 572 f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 573 d4ca31c4Swdenk 574 6c7a1408SwdenkTotal5100_config \ 575 6c7a1408SwdenkTotal5200_config \ 576 6c7a1408SwdenkTotal5200_lowboot_config \ 577 6c7a1408SwdenkTotal5200_Rev2_config \ 578 6c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 579 f9328639SMarian Balakowicz @mkdir -p $(obj)include 580 f9328639SMarian Balakowicz @mkdir -p $(obj)board/total5200 581 f9328639SMarian Balakowicz @ >$(obj)include/config.h 582 6c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 583 f9328639SMarian Balakowicz { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 584 6c7a1408Swdenk echo "... with MGT5100 processor" ; \ 585 6c7a1408Swdenk } 586 6c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 587 f9328639SMarian Balakowicz { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 588 6c7a1408Swdenk echo "... with MPC5200 processor" ; \ 589 6c7a1408Swdenk } 590 6c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 591 f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 592 6c7a1408Swdenk echo "... revision 1 board" ; \ 593 6c7a1408Swdenk } 594 6c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 595 f9328639SMarian Balakowicz { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 596 6c7a1408Swdenk echo "... revision 2 board" ; \ 597 6c7a1408Swdenk } 598 6c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 599 f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 600 6c7a1408Swdenk echo "... with lowboot configuration" ; \ 601 6c7a1408Swdenk } 602 f9328639SMarian Balakowicz @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 603 6c7a1408Swdenk 604 5196a7a0SWolfgang Denkcam5200_config \ 605 d9384de2SMarian Balakowiczcam5200_niosflash_config \ 606 5196a7a0SWolfgang Denkfo300_config \ 607 5196a7a0SWolfgang DenkMiniFAP_config \ 608 5078cce8SWolfgang DenkTQM5200S_config \ 609 5078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \ 610 5196a7a0SWolfgang DenkTQM5200_B_config \ 611 5196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \ 612 5196a7a0SWolfgang DenkTQM5200_config \ 613 5196a7a0SWolfgang DenkTQM5200_STK100_config: unconfig 614 f9328639SMarian Balakowicz @mkdir -p $(obj)include 615 f9328639SMarian Balakowicz @mkdir -p $(obj)board/tqm5200 616 f9328639SMarian Balakowicz @ >$(obj)include/config.h 617 135ae006SWolfgang Denk @[ -z "$(findstring cam5200,$@)" ] || \ 618 f9328639SMarian Balakowicz { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 619 f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 620 f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 621 135ae006SWolfgang Denk echo "... TQM5200S on Cam5200" ; \ 622 5078cce8SWolfgang Denk } 623 d9384de2SMarian Balakowicz @[ -z "$(findstring niosflash,$@)" ] || \ 624 d9384de2SMarian Balakowicz { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 625 d9384de2SMarian Balakowicz echo "... with NIOS flash driver" ; \ 626 d9384de2SMarian Balakowicz } 627 6d3bc9b8SMarian Balakowicz @[ -z "$(findstring fo300,$@)" ] || \ 628 f9328639SMarian Balakowicz { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 629 6d3bc9b8SMarian Balakowicz echo "... TQM5200 on FO300" ; \ 630 6d3bc9b8SMarian Balakowicz } 631 cd65a3dcSWolfgang Denk @[ -z "$(findstring MiniFAP,$@)" ] || \ 632 f9328639SMarian Balakowicz { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 633 45a212c4SWolfgang Denk echo "... TQM5200_AC on MiniFAP" ; \ 634 978b1096SWolfgang Denk } 635 cd65a3dcSWolfgang Denk @[ -z "$(findstring STK100,$@)" ] || \ 636 f9328639SMarian Balakowicz { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 637 cd65a3dcSWolfgang Denk echo "... on a STK52XX.100 base board" ; \ 638 56523f12Swdenk } 639 5078cce8SWolfgang Denk @[ -z "$(findstring TQM5200_B,$@)" ] || \ 640 f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 641 5078cce8SWolfgang Denk } 642 5078cce8SWolfgang Denk @[ -z "$(findstring TQM5200S,$@)" ] || \ 643 f9328639SMarian Balakowicz { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 644 f9328639SMarian Balakowicz echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 645 45a212c4SWolfgang Denk } 646 978b1096SWolfgang Denk @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 647 f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 648 978b1096SWolfgang Denk } 649 f9328639SMarian Balakowicz @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 650 6dedf3d4SHeiko Schocheruc101_config: unconfig 651 6dedf3d4SHeiko Schocher @$(MKCONFIG) uc101 ppc mpc5xxx uc101 652 53d4a498SBartlomiej Siekamotionpro_config: unconfig 653 53d4a498SBartlomiej Sieka @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 654 53d4a498SBartlomiej Sieka 655 56523f12Swdenk 656 945af8d7Swdenk######################################################################### 657 8993e54bSRafal Jaworowski## MPC512x Systems 658 8993e54bSRafal Jaworowski######################################################################### 659 8993e54bSRafal Jaworowskiads5121_config: unconfig 660 8993e54bSRafal Jaworowski @$(MKCONFIG) ads5121 ppc mpc512x ads5121 661 8993e54bSRafal Jaworowski 662 8993e54bSRafal Jaworowski 663 8993e54bSRafal Jaworowski######################################################################### 664 7ebf7443Swdenk## MPC8xx Systems 665 7ebf7443Swdenk######################################################################### 666 7ebf7443Swdenk 667 2d24a3a7SwdenkAdder_config \ 668 2d24a3a7SwdenkAdder87x_config \ 669 26238132SwdenkAdderII_config \ 670 2d24a3a7Swdenk : unconfig 671 f9328639SMarian Balakowicz @mkdir -p $(obj)include 672 26238132Swdenk $(if $(findstring AdderII,$@), \ 673 f9328639SMarian Balakowicz @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 674 f9328639SMarian Balakowicz @$(MKCONFIG) -a Adder ppc mpc8xx adder 675 2d24a3a7Swdenk 676 16c8d5e7SWolfgang DenkAdderUSB_config: unconfig 677 16c8d5e7SWolfgang Denk @./mkconfig -a AdderUSB ppc mpc8xx adder 678 16c8d5e7SWolfgang Denk 679 180d3f74SwdenkADS860_config \ 680 180d3f74SwdenkFADS823_config \ 681 180d3f74SwdenkFADS850SAR_config \ 682 180d3f74SwdenkMPC86xADS_config \ 683 1114257cSwdenkMPC885ADS_config \ 684 180d3f74SwdenkFADS860T_config: unconfig 685 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 686 7ebf7443Swdenk 687 7ebf7443SwdenkAMX860_config : unconfig 688 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 689 7ebf7443Swdenk 690 7ebf7443Swdenkc2mon_config: unconfig 691 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 692 7ebf7443Swdenk 693 7ebf7443SwdenkCCM_config: unconfig 694 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 695 7ebf7443Swdenk 696 7ebf7443Swdenkcogent_mpc8xx_config: unconfig 697 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 698 7ebf7443Swdenk 699 3bac3513SwdenkELPT860_config: unconfig 700 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 701 3bac3513Swdenk 702 84c960ceSWolfgang DenkEP88x_config: unconfig 703 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 704 84c960ceSWolfgang Denk 705 7ebf7443SwdenkESTEEM192E_config: unconfig 706 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 707 7ebf7443Swdenk 708 7ebf7443SwdenkETX094_config : unconfig 709 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 710 7ebf7443Swdenk 711 7ebf7443SwdenkFLAGADM_config: unconfig 712 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 713 7ebf7443Swdenk 714 7aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 715 7aa78614Swdenk 716 7aa78614SwdenkGEN860T_SC_config \ 717 7ebf7443SwdenkGEN860T_config: unconfig 718 f9328639SMarian Balakowicz @mkdir -p $(obj)include 719 f9328639SMarian Balakowicz @ >$(obj)include/config.h 720 7aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 721 f9328639SMarian Balakowicz { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 722 7aa78614Swdenk echo "With reduced H/W feature set (SC)..." ; \ 723 7aa78614Swdenk } 724 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 725 7ebf7443Swdenk 726 7ebf7443SwdenkGENIETV_config: unconfig 727 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 728 7ebf7443Swdenk 729 7ebf7443SwdenkGTH_config: unconfig 730 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 731 7ebf7443Swdenk 732 7ebf7443Swdenkhermes_config : unconfig 733 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 734 7ebf7443Swdenk 735 c40b2956SwdenkHMI10_config : unconfig 736 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 737 c40b2956Swdenk 738 7ebf7443SwdenkIAD210_config: unconfig 739 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 740 7ebf7443Swdenk 741 7ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 742 7ebf7443Swdenk 743 7ebf7443SwdenkICU862_100MHz_config \ 744 7ebf7443SwdenkICU862_config: unconfig 745 f9328639SMarian Balakowicz @mkdir -p $(obj)include 746 f9328639SMarian Balakowicz @ >$(obj)include/config.h 747 7ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 748 f9328639SMarian Balakowicz { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 749 7ebf7443Swdenk echo "... with 100MHz system clock" ; \ 750 7ebf7443Swdenk } 751 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 752 7ebf7443Swdenk 753 7ebf7443SwdenkIP860_config : unconfig 754 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 755 7ebf7443Swdenk 756 7ebf7443SwdenkIVML24_256_config \ 757 7ebf7443SwdenkIVML24_128_config \ 758 7ebf7443SwdenkIVML24_config: unconfig 759 f9328639SMarian Balakowicz @mkdir -p $(obj)include 760 f9328639SMarian Balakowicz @ >$(obj)include/config.h 761 7ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 762 f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 763 7ebf7443Swdenk } 764 7ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 765 f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 766 7ebf7443Swdenk } 767 7ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 768 f9328639SMarian Balakowicz { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 769 7ebf7443Swdenk } 770 f9328639SMarian Balakowicz @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 771 7ebf7443Swdenk 772 7ebf7443SwdenkIVMS8_256_config \ 773 7ebf7443SwdenkIVMS8_128_config \ 774 7ebf7443SwdenkIVMS8_config: unconfig 775 f9328639SMarian Balakowicz @mkdir -p $(obj)include 776 f9328639SMarian Balakowicz @ >$(obj)include/config.h 777 7ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 778 f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 779 7ebf7443Swdenk } 780 7ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 781 f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 782 7ebf7443Swdenk } 783 7ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 784 f9328639SMarian Balakowicz { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 785 7ebf7443Swdenk } 786 f9328639SMarian Balakowicz @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 787 7ebf7443Swdenk 788 56f94be3SwdenkKUP4K_config : unconfig 789 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 790 0608e04dSwdenk 791 0608e04dSwdenkKUP4X_config : unconfig 792 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 793 56f94be3Swdenk 794 7ebf7443SwdenkLANTEC_config : unconfig 795 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 796 7ebf7443Swdenk 797 7ebf7443Swdenklwmon_config: unconfig 798 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 799 7ebf7443Swdenk 800 7ebf7443SwdenkMBX_config \ 801 7ebf7443SwdenkMBX860T_config: unconfig 802 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 803 7ebf7443Swdenk 804 7ebf7443SwdenkMHPC_config: unconfig 805 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 806 7ebf7443Swdenk 807 7ebf7443SwdenkMVS1_config : unconfig 808 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 809 7ebf7443Swdenk 810 993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 811 993cad93Swdenk 812 993cad93SwdenkNETVIA_V2_config \ 813 7ebf7443SwdenkNETVIA_config: unconfig 814 f9328639SMarian Balakowicz @mkdir -p $(obj)include 815 f9328639SMarian Balakowicz @ >$(obj)include/config.h 816 993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 817 f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 818 993cad93Swdenk echo "... Version 1" ; \ 819 993cad93Swdenk } 820 993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 821 f9328639SMarian Balakowicz { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 822 993cad93Swdenk echo "... Version 2" ; \ 823 993cad93Swdenk } 824 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 825 7ebf7443Swdenk 826 c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 827 c26e454dSwdenk 828 c26e454dSwdenkNETPHONE_V2_config \ 829 04a85b3bSwdenkNETPHONE_config: unconfig 830 f9328639SMarian Balakowicz @mkdir -p $(obj)include 831 f9328639SMarian Balakowicz @ >$(obj)include/config.h 832 c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 833 f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 834 c26e454dSwdenk } 835 c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 836 f9328639SMarian Balakowicz { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 837 c26e454dSwdenk } 838 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 839 04a85b3bSwdenk 840 79fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 841 04a85b3bSwdenk 842 79fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 843 79fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 844 79fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 845 79fa88f3SwdenkNETTA_SWAPHOOK_config \ 846 79fa88f3SwdenkNETTA_ISDN_6412_config \ 847 04a85b3bSwdenkNETTA_ISDN_config \ 848 79fa88f3SwdenkNETTA_6412_config \ 849 04a85b3bSwdenkNETTA_config: unconfig 850 f9328639SMarian Balakowicz @mkdir -p $(obj)include 851 f9328639SMarian Balakowicz @ >$(obj)include/config.h 852 79fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 853 f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 854 04a85b3bSwdenk } 855 79fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 856 f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 857 79fa88f3Swdenk } 858 79fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 859 f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 860 79fa88f3Swdenk } 861 79fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 862 f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 863 79fa88f3Swdenk } 864 79fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 865 f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 866 79fa88f3Swdenk } 867 79fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 868 f9328639SMarian Balakowicz { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 869 79fa88f3Swdenk } 870 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 871 04a85b3bSwdenk 872 79fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 873 79fa88f3Swdenk 874 79fa88f3SwdenkNETTA2_V2_config \ 875 79fa88f3SwdenkNETTA2_config: unconfig 876 f9328639SMarian Balakowicz @mkdir -p $(obj)include 877 f9328639SMarian Balakowicz @ >$(obj)include/config.h 878 79fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 879 f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 880 79fa88f3Swdenk } 881 79fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 882 f9328639SMarian Balakowicz { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 883 79fa88f3Swdenk } 884 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 885 79fa88f3Swdenk 886 a367d426Sdzu@denx.deNC650_Rev1_config \ 887 a367d426Sdzu@denx.deNC650_Rev2_config \ 888 a367d426Sdzu@denx.deCP850_config: unconfig 889 f9328639SMarian Balakowicz @mkdir -p $(obj)include 890 f9328639SMarian Balakowicz @ >$(obj)include/config.h 891 a367d426Sdzu@denx.de @[ -z "$(findstring CP850,$@)" ] || \ 892 f9328639SMarian Balakowicz { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 893 f9328639SMarian Balakowicz echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 894 a367d426Sdzu@denx.de } 895 a367d426Sdzu@denx.de @[ -z "$(findstring Rev1,$@)" ] || \ 896 f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 897 a367d426Sdzu@denx.de } 898 a367d426Sdzu@denx.de @[ -z "$(findstring Rev2,$@)" ] || \ 899 f9328639SMarian Balakowicz { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 900 a367d426Sdzu@denx.de } 901 f9328639SMarian Balakowicz @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 902 7ca202f5Swdenk 903 7ebf7443SwdenkNX823_config: unconfig 904 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 905 7ebf7443Swdenk 906 7ebf7443Swdenkpcu_e_config: unconfig 907 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 908 7ebf7443Swdenk 909 3bbc899fSwdenkQS850_config: unconfig 910 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 911 3bbc899fSwdenk 912 3bbc899fSwdenkQS823_config: unconfig 913 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 914 3bbc899fSwdenk 915 3bbc899fSwdenkQS860T_config: unconfig 916 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 917 3bbc899fSwdenk 918 da93ed81Swdenkquantum_config: unconfig 919 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 920 da93ed81Swdenk 921 7ebf7443SwdenkR360MPI_config: unconfig 922 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 923 7ebf7443Swdenk 924 682011ffSwdenkRBC823_config: unconfig 925 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 926 682011ffSwdenk 927 7ebf7443SwdenkRPXClassic_config: unconfig 928 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 929 7ebf7443Swdenk 930 7ebf7443SwdenkRPXlite_config: unconfig 931 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 932 7ebf7443Swdenk 933 e63c8ee3SwdenkRPXlite_DW_64_config \ 934 e63c8ee3SwdenkRPXlite_DW_LCD_config \ 935 e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 936 e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 937 e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 938 e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 939 e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 940 e63c8ee3SwdenkRPXlite_DW_config: unconfig 941 f9328639SMarian Balakowicz @mkdir -p $(obj)include 942 f9328639SMarian Balakowicz @ >$(obj)include/config.h 943 e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 944 f9328639SMarian Balakowicz { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 945 e63c8ee3Swdenk echo "... with 64MHz system clock ..."; \ 946 e63c8ee3Swdenk } 947 e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 948 f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 949 f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 950 e63c8ee3Swdenk echo "... with LCD display ..."; \ 951 e63c8ee3Swdenk } 952 e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 953 f9328639SMarian Balakowicz { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 954 e63c8ee3Swdenk echo "... with ENV in NVRAM ..."; \ 955 e63c8ee3Swdenk } 956 f9328639SMarian Balakowicz @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 957 e63c8ee3Swdenk 958 73a8b27cSwdenkrmu_config: unconfig 959 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 960 73a8b27cSwdenk 961 7ebf7443SwdenkRRvision_config: unconfig 962 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 963 7ebf7443Swdenk 964 7ebf7443SwdenkRRvision_LCD_config: unconfig 965 f9328639SMarian Balakowicz @mkdir -p $(obj)include 966 f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 967 f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 968 f9328639SMarian Balakowicz @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 969 7ebf7443Swdenk 970 7ebf7443SwdenkSM850_config : unconfig 971 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 972 7ebf7443Swdenk 973 b02d0177SMarkus Klotzbuecherspc1920_config: 974 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 975 b02d0177SMarkus Klotzbuecher 976 7ebf7443SwdenkSPD823TS_config: unconfig 977 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 978 7ebf7443Swdenk 979 6bdf4306SWolfgang Denkstxxtc_config: unconfig 980 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 981 6bdf4306SWolfgang Denk 982 dc7c9a1aSwdenksvm_sc8xx_config: unconfig 983 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 984 dc7c9a1aSwdenk 985 7ebf7443SwdenkSXNI855T_config: unconfig 986 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 987 7ebf7443Swdenk 988 db2f721fSwdenk# EMK MPC8xx based modules 989 db2f721fSwdenkTOP860_config: unconfig 990 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 991 db2f721fSwdenk 992 7ebf7443Swdenk# Play some tricks for configuration selection 993 e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 994 e9132ea9Swdenk# and only 823 boards may have LCD support 995 e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 996 7ebf7443Swdenk 997 7ebf7443SwdenkFPS850L_config \ 998 384ae025SwdenkFPS860L_config \ 999 f12e568cSwdenkNSCU_config \ 1000 7ebf7443SwdenkTQM823L_config \ 1001 7ebf7443SwdenkTQM823L_LCD_config \ 1002 7ebf7443SwdenkTQM850L_config \ 1003 7ebf7443SwdenkTQM855L_config \ 1004 7ebf7443SwdenkTQM860L_config \ 1005 d126bfbdSwdenkTQM862L_config \ 1006 ae3af05eSwdenkTQM823M_config \ 1007 ae3af05eSwdenkTQM850M_config \ 1008 f12e568cSwdenkTQM855M_config \ 1009 f12e568cSwdenkTQM860M_config \ 1010 f12e568cSwdenkTQM862M_config \ 1011 8cba090cSWolfgang DenkTQM866M_config \ 1012 090eb735SMarkus KlotzbuecherTQM885D_config \ 1013 8cba090cSWolfgang Denkvirtlab2_config: unconfig 1014 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1015 f9328639SMarian Balakowicz @ >$(obj)include/config.h 1016 7ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 1017 f9328639SMarian Balakowicz { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1018 f9328639SMarian Balakowicz echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1019 7ebf7443Swdenk echo "... with LCD display" ; \ 1020 7ebf7443Swdenk } 1021 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 1022 7ebf7443Swdenk 1023 7ebf7443SwdenkTTTech_config: unconfig 1024 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1025 f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1026 f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1027 f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 1028 7ebf7443Swdenk 1029 ec0aee7bSwdenkuc100_config : unconfig 1030 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1031 f7d1572bSwdenk 1032 608c9146Swdenkv37_config: unconfig 1033 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1034 f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1035 f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1036 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1037 608c9146Swdenk 1038 91e940d9Sdzuwtk_config: unconfig 1039 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1040 f9328639SMarian Balakowicz @echo "#define CONFIG_LCD" >$(obj)include/config.h 1041 f9328639SMarian Balakowicz @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1042 f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 1043 91e940d9Sdzu 1044 7ebf7443Swdenk######################################################################### 1045 7ebf7443Swdenk## PPC4xx Systems 1046 7ebf7443Swdenk######################################################################### 1047 e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 1048 7ebf7443Swdenk 1049 16c0cc1cSStefan Roeseacadia_config: unconfig 1050 16c0cc1cSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 1051 16c0cc1cSStefan Roese 1052 c440bfe6SStefan Roeseacadia_nand_config: unconfig 1053 63e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/acadia 1054 63e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/acadia 1055 c440bfe6SStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1056 c440bfe6SStefan Roese @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1057 c440bfe6SStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1058 c440bfe6SStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1059 c440bfe6SStefan Roese 1060 7ebf7443SwdenkADCIOP_config: unconfig 1061 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 1062 7ebf7443Swdenk 1063 899620c2SStefan Roesealpr_config: unconfig 1064 35d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1065 899620c2SStefan Roese 1066 7521af1cSWolfgang DenkAP1000_config:unconfig 1067 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 1068 7521af1cSWolfgang Denk 1069 c419d1d6SstroeseAPC405_config: unconfig 1070 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1071 c419d1d6Sstroese 1072 7ebf7443SwdenkAR405_config: unconfig 1073 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 1074 7ebf7443Swdenk 1075 549826eaSstroeseASH405_config: unconfig 1076 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1077 549826eaSstroese 1078 8a316c9bSStefan Roesebamboo_config: unconfig 1079 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 1080 8a316c9bSStefan Roese 1081 cf959c7dSStefan Roesebamboo_nand_config: unconfig 1082 63e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/bamboo 1083 63e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1084 cf959c7dSStefan Roese @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1085 f3679aa1SStefan Roese @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1086 cf959c7dSStefan Roese @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1087 cf959c7dSStefan Roese @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1088 cf959c7dSStefan Roese 1089 8a316c9bSStefan Roesebubinga_config: unconfig 1090 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1091 549826eaSstroese 1092 7ebf7443SwdenkCANBT_config: unconfig 1093 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 1094 7ebf7443Swdenk 1095 1d6f9720SwdenkCATcenter_config \ 1096 1d6f9720SwdenkCATcenter_25_config \ 1097 1d6f9720SwdenkCATcenter_33_config: unconfig 1098 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1099 f9328639SMarian Balakowicz @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1100 f9328639SMarian Balakowicz @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 1101 1d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1102 f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1103 1d6f9720Swdenk echo "SysClk = 25MHz" ; \ 1104 1d6f9720Swdenk } 1105 1d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1106 f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1107 1d6f9720Swdenk echo "SysClk = 33MHz" ; \ 1108 1d6f9720Swdenk } 1109 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 1110 10767ccbSwdenk 1111 7644f16fSStefan RoeseCPCI2DP_config: unconfig 1112 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 1113 7644f16fSStefan Roese 1114 7ebf7443SwdenkCPCI405_config \ 1115 549826eaSstroeseCPCI4052_config \ 1116 c419d1d6SstroeseCPCI405DT_config \ 1117 549826eaSstroeseCPCI405AB_config: unconfig 1118 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1119 f9328639SMarian Balakowicz @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 1120 7ebf7443Swdenk 1121 7ebf7443SwdenkCPCI440_config: unconfig 1122 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd 1123 7ebf7443Swdenk 1124 7ebf7443SwdenkCPCIISER4_config: unconfig 1125 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 1126 7ebf7443Swdenk 1127 7ebf7443SwdenkCRAYL1_config: unconfig 1128 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 1129 7ebf7443Swdenk 1130 cd0a9de6Swdenkcsb272_config: unconfig 1131 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1132 cd0a9de6Swdenk 1133 aa245090Swdenkcsb472_config: unconfig 1134 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1135 aa245090Swdenk 1136 7ebf7443SwdenkDASA_SIM_config: unconfig 1137 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 1138 7ebf7443Swdenk 1139 72cd5aa7SstroeseDP405_config: unconfig 1140 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 1141 72cd5aa7Sstroese 1142 7ebf7443SwdenkDU405_config: unconfig 1143 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 1144 7ebf7443Swdenk 1145 8a316c9bSStefan Roeseebony_config: unconfig 1146 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 1147 7ebf7443Swdenk 1148 7ebf7443SwdenkERIC_config: unconfig 1149 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 1150 7ebf7443Swdenk 1151 d1cbe85bSwdenkEXBITGEN_config: unconfig 1152 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1153 d1cbe85bSwdenk 1154 c419d1d6SstroeseG2000_config: unconfig 1155 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1156 c419d1d6Sstroese 1157 ac982ea5SNiklaus Gigerhcu4_config: unconfig 1158 35d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1159 ac982ea5SNiklaus Giger 1160 ac982ea5SNiklaus Gigerhcu5_config: unconfig 1161 35d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1162 ac982ea5SNiklaus Giger 1163 c419d1d6SstroeseHH405_config: unconfig 1164 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1165 c419d1d6Sstroese 1166 72cd5aa7SstroeseHUB405_config: unconfig 1167 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 1168 72cd5aa7Sstroese 1169 db01a2eaSwdenkJSE_config: unconfig 1170 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1171 db01a2eaSwdenk 1172 b79316f2SStefan RoeseKAREF_config: unconfig 1173 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1174 b79316f2SStefan Roese 1175 4745acaaSStefan Roesekatmai_config: unconfig 1176 4745acaaSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 1177 4745acaaSStefan Roese 1178 6e7fb6eaSStefan Roeseluan_config: unconfig 1179 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 1180 6e7fb6eaSStefan Roese 1181 b765ffb7SStefan Roeselwmon5_config: unconfig 1182 b765ffb7SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1183 b765ffb7SStefan Roese 1184 b79316f2SStefan RoeseMETROBOX_config: unconfig 1185 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1186 b79316f2SStefan Roese 1187 7ebf7443SwdenkMIP405_config: unconfig 1188 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 1189 7ebf7443Swdenk 1190 f3e0de60SwdenkMIP405T_config: unconfig 1191 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1192 f9328639SMarian Balakowicz @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1193 f3e0de60Swdenk @echo "Enable subset config for MIP405T" 1194 f9328639SMarian Balakowicz @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1195 f3e0de60Swdenk 1196 7ebf7443SwdenkML2_config: unconfig 1197 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 1198 7ebf7443Swdenk 1199 028ab6b5Swdenkml300_config: unconfig 1200 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1201 028ab6b5Swdenk 1202 8a316c9bSStefan Roeseocotea_config: unconfig 1203 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 1204 0e6d798cSwdenk 1205 7ebf7443SwdenkOCRTC_config \ 1206 7ebf7443SwdenkORSG_config: unconfig 1207 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 1208 7ebf7443Swdenk 1209 5568e613SStefan Roesep3p440_config: unconfig 1210 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 1211 5568e613SStefan Roese 1212 7ebf7443SwdenkPCI405_config: unconfig 1213 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 1214 7ebf7443Swdenk 1215 a4c8d138SStefan Roesepcs440ep_config: unconfig 1216 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1217 a4c8d138SStefan Roese 1218 7ebf7443SwdenkPIP405_config: unconfig 1219 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 1220 7ebf7443Swdenk 1221 72cd5aa7SstroesePLU405_config: unconfig 1222 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 1223 72cd5aa7Sstroese 1224 549826eaSstroesePMC405_config: unconfig 1225 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1226 549826eaSstroese 1227 281e00a3SwdenkPPChameleonEVB_config \ 1228 e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 1229 e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 1230 e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 1231 e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 1232 e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 1233 e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 1234 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1235 f9328639SMarian Balakowicz @ >$(obj)include/config.h 1236 1d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 1237 f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1238 fbe4b5cbSwdenk echo "... BASIC model" ; \ 1239 fbe4b5cbSwdenk } 1240 1d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 1241 f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1242 fbe4b5cbSwdenk echo "... MEDIUM model" ; \ 1243 fbe4b5cbSwdenk } 1244 1d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 1245 f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1246 fbe4b5cbSwdenk echo "... HIGH-END model" ; \ 1247 fbe4b5cbSwdenk } 1248 e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 1249 f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1250 e55ca7e2Swdenk echo "SysClk = 25MHz" ; \ 1251 e55ca7e2Swdenk } 1252 e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 1253 f9328639SMarian Balakowicz { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1254 e55ca7e2Swdenk echo "SysClk = 33MHz" ; \ 1255 e55ca7e2Swdenk } 1256 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 1257 12f34241Swdenk 1258 430f1b0fSStefan Roesesbc405_config: unconfig 1259 430f1b0fSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1260 430f1b0fSStefan Roese 1261 430f1b0fSStefan Roesesequoia_config \ 1262 854bc8daSStefan Roeserainier_config: unconfig 1263 8318fbf8SMarian Balakowicz @mkdir -p $(obj)include 1264 430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1265 430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1266 2aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1267 854bc8daSStefan Roese 1268 430f1b0fSStefan Roesesequoia_nand_config \ 1269 854bc8daSStefan Roeserainier_nand_config: unconfig 1270 63e22764SWolfgang Denk @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1271 63e22764SWolfgang Denk @mkdir -p $(obj)nand_spl/board/amcc/sequoia 1272 8318fbf8SMarian Balakowicz @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1273 430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1274 430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1275 430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1276 8318fbf8SMarian Balakowicz @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1277 8318fbf8SMarian Balakowicz @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1278 652a10c0Swdenk 1279 6d3e0107SWolfgang Denksc3_config:unconfig 1280 35d22f95SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1281 ca43ba18SHeiko Schocher 1282 d4024bb7SJohn Otkentaihu_config: unconfig 1283 d4024bb7SJohn Otken @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1284 d4024bb7SJohn Otken 1285 5fb692caSStefan Roesetaishan_config: unconfig 1286 5fb692caSStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 1287 5fb692caSStefan Roese 1288 72cd5aa7SstroeseVOH405_config: unconfig 1289 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 1290 72cd5aa7Sstroese 1291 c419d1d6SstroeseVOM405_config: unconfig 1292 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1293 c419d1d6Sstroese 1294 feaedfcfSStefan RoeseCMS700_config: unconfig 1295 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1296 feaedfcfSStefan Roese 1297 7ebf7443SwdenkW7OLMC_config \ 1298 7ebf7443SwdenkW7OLMG_config: unconfig 1299 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 1300 7ebf7443Swdenk 1301 430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR) 1302 430f1b0fSStefan Roesewalnut_config \ 1303 430f1b0fSStefan Roesesycamore_config: unconfig 1304 430f1b0fSStefan Roese @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 1305 7ebf7443Swdenk 1306 c419d1d6SstroeseWUH405_config: unconfig 1307 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1308 c419d1d6Sstroese 1309 ba56f625SwdenkXPEDITE1K_config: unconfig 1310 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1311 ba56f625Swdenk 1312 430f1b0fSStefan Roeseyosemite_config \ 1313 8a316c9bSStefan Roeseyellowstone_config: unconfig 1314 700200c6SStefan Roese @mkdir -p $(obj)include 1315 430f1b0fSStefan Roese @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1316 430f1b0fSStefan Roese tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1317 2aa54f65SStefan Roese @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 1318 8a316c9bSStefan Roese 1319 6c5879f3SMarian Balakowiczyucca_config: unconfig 1320 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 1321 6c5879f3SMarian Balakowicz 1322 779e9751SStefan Roesezeus_config: unconfig 1323 779e9751SStefan Roese @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1324 779e9751SStefan Roese 1325 7ebf7443Swdenk######################################################################### 1326 983fda83Swdenk## MPC8220 Systems 1327 983fda83Swdenk######################################################################### 1328 dc17fb6dSWolfgang Denk 1329 dc17fb6dSWolfgang DenkAlaska8220_config \ 1330 dc17fb6dSWolfgang DenkYukon8220_config: unconfig 1331 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1332 983fda83Swdenk 1333 12b43d51Swdenksorcery_config: unconfig 1334 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 1335 12b43d51Swdenk 1336 983fda83Swdenk######################################################################### 1337 7ebf7443Swdenk## MPC824x Systems 1338 7ebf7443Swdenk######################################################################### 1339 efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 1340 3bac3513Swdenk 1341 0332990bSwdenkA3000_config: unconfig 1342 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 1343 0332990bSwdenk 1344 8e6f1a8eSWolfgang Denkbarco_config: unconfig 1345 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 1346 8e6f1a8eSWolfgang Denk 1347 7ebf7443SwdenkBMW_config: unconfig 1348 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 1349 7ebf7443Swdenk 1350 3bac3513SwdenkCPC45_config \ 1351 3bac3513SwdenkCPC45_ROMBOOT_config: unconfig 1352 f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1353 f9328639SMarian Balakowicz @cd $(obj)include ; \ 1354 3bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1355 3bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1356 3bac3513Swdenk echo "... booting from 8-bit flash" ; \ 1357 3bac3513Swdenk else \ 1358 3bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1359 3bac3513Swdenk echo "... booting from 64-bit flash" ; \ 1360 3bac3513Swdenk fi; \ 1361 3bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1362 3bac3513Swdenk 1363 7ebf7443SwdenkCU824_config: unconfig 1364 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 1365 7ebf7443Swdenk 1366 7abf0c58Swdenkdebris_config: unconfig 1367 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 1368 7abf0c58Swdenk 1369 80885a9dSwdenkeXalion_config: unconfig 1370 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 1371 80885a9dSwdenk 1372 756f586aSwdenkHIDDEN_DRAGON_config: unconfig 1373 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1374 756f586aSwdenk 1375 53dd6ce4SWolfgang Denkkvme080_config: unconfig 1376 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 1377 53dd6ce4SWolfgang Denk 1378 7ebf7443SwdenkMOUSSE_config: unconfig 1379 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 1380 7ebf7443Swdenk 1381 7ebf7443SwdenkMUSENKI_config: unconfig 1382 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 1383 7ebf7443Swdenk 1384 b4676a25SwdenkMVBLUE_config: unconfig 1385 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1386 b4676a25Swdenk 1387 7ebf7443SwdenkOXC_config: unconfig 1388 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 1389 7ebf7443Swdenk 1390 7ebf7443SwdenkPN62_config: unconfig 1391 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 1392 7ebf7443Swdenk 1393 7ebf7443SwdenkSandpoint8240_config: unconfig 1394 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 1395 7ebf7443Swdenk 1396 7ebf7443SwdenkSandpoint8245_config: unconfig 1397 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 1398 7ebf7443Swdenk 1399 466b7410Swdenksbc8240_config: unconfig 1400 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1401 466b7410Swdenk 1402 d1cbe85bSwdenkSL8245_config: unconfig 1403 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1404 d1cbe85bSwdenk 1405 7ebf7443Swdenkutx8245_config: unconfig 1406 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 1407 7ebf7443Swdenk 1408 7ebf7443Swdenk######################################################################### 1409 7ebf7443Swdenk## MPC8260 Systems 1410 7ebf7443Swdenk######################################################################### 1411 7ebf7443Swdenk 1412 54387ac9Swdenkatc_config: unconfig 1413 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 1414 54387ac9Swdenk 1415 7ebf7443Swdenkcogent_mpc8260_config: unconfig 1416 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 1417 7ebf7443Swdenk 1418 7ebf7443SwdenkCPU86_config \ 1419 7ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 1420 f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1421 f9328639SMarian Balakowicz @cd $(obj)include ; \ 1422 7ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1423 7ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1424 7ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 1425 7ebf7443Swdenk else \ 1426 7ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1427 7ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 1428 7ebf7443Swdenk fi; \ 1429 7ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1430 7ebf7443Swdenk 1431 384cc687SwdenkCPU87_config \ 1432 384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1433 f9328639SMarian Balakowicz @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1434 f9328639SMarian Balakowicz @cd $(obj)include ; \ 1435 384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1436 384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1437 384cc687Swdenk echo "... booting from 8-bit flash" ; \ 1438 384cc687Swdenk else \ 1439 384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1440 384cc687Swdenk echo "... booting from 64-bit flash" ; \ 1441 384cc687Swdenk fi; \ 1442 384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1443 384cc687Swdenk 1444 f901a83bSWolfgang Denkep8248_config \ 1445 f901a83bSWolfgang Denkep8248E_config : unconfig 1446 f9328639SMarian Balakowicz @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1447 f901a83bSWolfgang Denk 1448 7ebf7443Swdenkep8260_config: unconfig 1449 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 1450 7ebf7443Swdenk 1451 8d4ac794SWolfgang Denkep82xxm_config: unconfig 1452 90b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 1453 8d4ac794SWolfgang Denk 1454 7ebf7443Swdenkgw8260_config: unconfig 1455 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 1456 7ebf7443Swdenk 1457 7ebf7443Swdenkhymod_config: unconfig 1458 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 1459 7ebf7443Swdenk 1460 9dd41a7bSwdenkIDS8247_config: unconfig 1461 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 1462 9dd41a7bSwdenk 1463 7ebf7443SwdenkIPHASE4539_config: unconfig 1464 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 1465 7ebf7443Swdenk 1466 c3c7f861SwdenkISPAN_config \ 1467 c3c7f861SwdenkISPAN_REVB_config: unconfig 1468 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1469 c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1470 f9328639SMarian Balakowicz echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1471 c3c7f861Swdenk fi 1472 f9328639SMarian Balakowicz @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1473 c3c7f861Swdenk 1474 04a85b3bSwdenkMPC8260ADS_config \ 1475 901787d6SwdenkMPC8260ADS_lowboot_config \ 1476 04a85b3bSwdenkMPC8260ADS_33MHz_config \ 1477 901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 1478 04a85b3bSwdenkMPC8260ADS_40MHz_config \ 1479 901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 1480 04a85b3bSwdenkMPC8272ADS_config \ 1481 901787d6SwdenkMPC8272ADS_lowboot_config \ 1482 04a85b3bSwdenkPQ2FADS_config \ 1483 901787d6SwdenkPQ2FADS_lowboot_config \ 1484 04a85b3bSwdenkPQ2FADS-VR_config \ 1485 901787d6SwdenkPQ2FADS-VR_lowboot_config \ 1486 04a85b3bSwdenkPQ2FADS-ZU_config \ 1487 901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 1488 04a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1489 901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 1490 04a85b3bSwdenk : unconfig 1491 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1492 f9328639SMarian Balakowicz @mkdir -p $(obj)board/mpc8260ads 1493 04a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 1494 f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1495 f9328639SMarian Balakowicz @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 1496 04a85b3bSwdenk $(if $(findstring MHz,$@), \ 1497 f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 1498 04a85b3bSwdenk $(if $(findstring VR,$@), \ 1499 f9328639SMarian Balakowicz @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1500 901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1501 f9328639SMarian Balakowicz { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \ 1502 901787d6Swdenk echo "... with lowboot configuration" ; \ 1503 901787d6Swdenk } 1504 f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads 1505 7ebf7443Swdenk 1506 db2f721fSwdenkMPC8266ADS_config: unconfig 1507 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads 1508 db2f721fSwdenk 1509 efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 1510 10f67017SwdenkPM825_config \ 1511 efa329cbSwdenkPM825_ROMBOOT_config \ 1512 efa329cbSwdenkPM825_BIGFLASH_config \ 1513 efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 1514 7ebf7443SwdenkPM826_config \ 1515 efa329cbSwdenkPM826_ROMBOOT_config \ 1516 efa329cbSwdenkPM826_BIGFLASH_config \ 1517 efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1518 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1519 f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1520 efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1521 f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 1522 7ebf7443Swdenk else \ 1523 f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1524 efa329cbSwdenk fi 1525 efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1526 efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 1527 f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1528 f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1529 efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1530 efa329cbSwdenk echo "... with 32 MB Flash" ; \ 1531 f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1532 7ebf7443Swdenk fi; \ 1533 efa329cbSwdenk else \ 1534 efa329cbSwdenk echo "... booting from 64-bit flash" ; \ 1535 efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1536 efa329cbSwdenk echo "... with 32 MB Flash" ; \ 1537 f9328639SMarian Balakowicz echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1538 f9328639SMarian Balakowicz echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1539 efa329cbSwdenk else \ 1540 f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1541 efa329cbSwdenk fi; \ 1542 efa329cbSwdenk fi 1543 f9328639SMarian Balakowicz @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1544 efa329cbSwdenk 1545 efa329cbSwdenkPM828_config \ 1546 efa329cbSwdenkPM828_PCI_config \ 1547 efa329cbSwdenkPM828_ROMBOOT_config \ 1548 efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1549 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1550 f9328639SMarian Balakowicz @mkdir -p $(obj)board/pm826 1551 17076266SMarian Balakowicz @if [ "$(findstring _PCI_,$@)" ] ; then \ 1552 f9328639SMarian Balakowicz echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1553 efa329cbSwdenk echo "... with PCI enabled" ; \ 1554 efa329cbSwdenk else \ 1555 f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1556 efa329cbSwdenk fi 1557 efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1558 efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 1559 f9328639SMarian Balakowicz echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1560 f9328639SMarian Balakowicz echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1561 efa329cbSwdenk fi 1562 f9328639SMarian Balakowicz @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 1563 7ebf7443Swdenk 1564 7ebf7443Swdenkppmc8260_config: unconfig 1565 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 1566 7ebf7443Swdenk 1567 8b0bfc68SwdenkRattler8248_config \ 1568 8b0bfc68SwdenkRattler_config: unconfig 1569 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1570 8b0bfc68Swdenk $(if $(findstring 8248,$@), \ 1571 f9328639SMarian Balakowicz @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1572 f9328639SMarian Balakowicz @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 1573 8b0bfc68Swdenk 1574 7ebf7443SwdenkRPXsuper_config: unconfig 1575 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 1576 7ebf7443Swdenk 1577 7ebf7443Swdenkrsdproto_config: unconfig 1578 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 1579 7ebf7443Swdenk 1580 7ebf7443Swdenksacsng_config: unconfig 1581 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 1582 7ebf7443Swdenk 1583 7ebf7443Swdenksbc8260_config: unconfig 1584 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 1585 7ebf7443Swdenk 1586 7ebf7443SwdenkSCM_config: unconfig 1587 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 1588 7ebf7443Swdenk 1589 27b207fdSwdenkTQM8255_AA_config \ 1590 27b207fdSwdenkTQM8260_AA_config \ 1591 27b207fdSwdenkTQM8260_AB_config \ 1592 27b207fdSwdenkTQM8260_AC_config \ 1593 27b207fdSwdenkTQM8260_AD_config \ 1594 27b207fdSwdenkTQM8260_AE_config \ 1595 27b207fdSwdenkTQM8260_AF_config \ 1596 27b207fdSwdenkTQM8260_AG_config \ 1597 27b207fdSwdenkTQM8260_AH_config \ 1598 1f62bc2dSWolfgang DenkTQM8260_AI_config \ 1599 27b207fdSwdenkTQM8265_AA_config: unconfig 1600 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1601 27b207fdSwdenk @case "$@" in \ 1602 27b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 1603 27b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 1604 27b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1605 27b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1606 27b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1607 27b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 1608 27b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1609 27b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 1610 27b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 1611 1f62bc2dSWolfgang Denk TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1612 27b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 1613 27b207fdSwdenk esac; \ 1614 f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1615 27b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1616 f9328639SMarian Balakowicz echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 1617 27b207fdSwdenk fi; \ 1618 f9328639SMarian Balakowicz echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 1619 27b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 1620 27b207fdSwdenk if [ "$${CACHE}" == "yes" ] ; then \ 1621 f9328639SMarian Balakowicz echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1622 27b207fdSwdenk echo "... with L2 Cache support" ; \ 1623 7ebf7443Swdenk else \ 1624 f9328639SMarian Balakowicz echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1625 7ebf7443Swdenk echo "... without L2 Cache support" ; \ 1626 27b207fdSwdenk fi; \ 1627 27b207fdSwdenk if [ "$${BMODE}" == "60x" ] ; then \ 1628 f9328639SMarian Balakowicz echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1629 27b207fdSwdenk echo "... with 60x Bus Mode" ; \ 1630 27b207fdSwdenk else \ 1631 f9328639SMarian Balakowicz echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1632 27b207fdSwdenk echo "... without 60x Bus Mode" ; \ 1633 7ebf7443Swdenk fi 1634 f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 1635 7ebf7443Swdenk 1636 fa230445SHeiko SchocherTQM8272_config: unconfig 1637 fa230445SHeiko Schocher @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272 1638 fa230445SHeiko Schocher 1639 ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1640 ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1641 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1642 f9328639SMarian Balakowicz @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1643 f9328639SMarian Balakowicz @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1644 ba91e26aSwdenk 1645 54387ac9SwdenkZPC1900_config: unconfig 1646 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 1647 7aa78614Swdenk 1648 4e5ca3ebSwdenk######################################################################### 1649 4e5ca3ebSwdenk## Coldfire 1650 4e5ca3ebSwdenk######################################################################### 1651 4e5ca3ebSwdenk 1652 4a442d31STsiChungLiewM5235EVB_config \ 1653 4a442d31STsiChungLiewM5235EVB_Flash16_config \ 1654 4a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 1655 4a442d31STsiChungLiew @case "$@" in \ 1656 4a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 1657 4a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 1658 4a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 1659 4a442d31STsiChungLiew esac; \ 1660 4a442d31STsiChungLiew >include/config.h ; \ 1661 4a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 1662 4a442d31STsiChungLiew echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \ 1663 4a442d31STsiChungLiew echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 1664 4a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 1665 4a442d31STsiChungLiew else \ 1666 4a442d31STsiChungLiew echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 1667 4a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 1668 4a442d31STsiChungLiew fi 1669 4a442d31STsiChungLiew @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 1670 4a442d31STsiChungLiew 1671 a605aacdSTsiChungLiewM5249EVB_config : unconfig 1672 a605aacdSTsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1673 a605aacdSTsiChungLiew 1674 a1436a84STsiChungLiewM5253EVBE_config : unconfig 1675 a1436a84STsiChungLiew @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1676 a1436a84STsiChungLiew 1677 7481266eSWolfgang Denkcobra5272_config : unconfig 1678 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 1679 7481266eSWolfgang Denk 1680 4176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 1681 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1682 f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1683 f9328639SMarian Balakowicz @ >$(obj)include/config.h 1684 f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1685 f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 1686 4176c799SWolfgang Denk 1687 4176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 1688 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1689 f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1690 f9328639SMarian Balakowicz @ >$(obj)include/config.h 1691 f9328639SMarian Balakowicz @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1692 f9328639SMarian Balakowicz @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 1693 4176c799SWolfgang Denk 1694 daa6e418SBartlomiej Siekaidmr_config : unconfig 1695 daa6e418SBartlomiej Sieka @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1696 daa6e418SBartlomiej Sieka 1697 4176c799SWolfgang DenkM5271EVB_config : unconfig 1698 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 1699 4176c799SWolfgang Denk 1700 4e5ca3ebSwdenkM5272C3_config : unconfig 1701 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 1702 4e5ca3ebSwdenk 1703 4e5ca3ebSwdenkM5282EVB_config : unconfig 1704 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 1705 4e5ca3ebSwdenk 1706 c419d1d6SstroeseTASREG_config : unconfig 1707 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1708 c419d1d6Sstroese 1709 3a108ed8SZachary P. Landaur5200_config : unconfig 1710 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200 1711 3a108ed8SZachary P. Landau 1712 8e585f02STsiChung LiewM5329AFEE_config \ 1713 8e585f02STsiChung LiewM5329BFEE_config : unconfig 1714 8e585f02STsiChung Liew @case "$@" in \ 1715 8e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 1716 8e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 1717 8e585f02STsiChung Liew esac; \ 1718 8e585f02STsiChung Liew >include/config.h ; \ 1719 8e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 1720 ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1721 8e585f02STsiChung Liew fi 1722 8e585f02STsiChung Liew @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 1723 8e585f02STsiChung Liew 1724 8ae158cdSTsiChungLiewM54455EVB_config \ 1725 8ae158cdSTsiChungLiewM54455EVB_atmel_config \ 1726 8ae158cdSTsiChungLiewM54455EVB_intel_config \ 1727 8ae158cdSTsiChungLiewM54455EVB_a33_config \ 1728 8ae158cdSTsiChungLiewM54455EVB_a66_config \ 1729 8ae158cdSTsiChungLiewM54455EVB_i33_config \ 1730 8ae158cdSTsiChungLiewM54455EVB_i66_config : unconfig 1731 8ae158cdSTsiChungLiew @case "$@" in \ 1732 8ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 1733 8ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 1734 8ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 1735 8ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 1736 8ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 1737 8ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 1738 8ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 1739 8ae158cdSTsiChungLiew esac; \ 1740 8ae158cdSTsiChungLiew >include/config.h ; \ 1741 8ae158cdSTsiChungLiew if [ "$${FLASH}" == "INTEL" ] ; then \ 1742 4a442d31STsiChungLiew echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1743 e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1744 e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1745 8ae158cdSTsiChungLiew echo "... with INTEL boot..." ; \ 1746 8ae158cdSTsiChungLiew else \ 1747 4a442d31STsiChungLiew echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1748 e8ee8f3aSTsiChungLiew echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1749 e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1750 8ae158cdSTsiChungLiew echo "... with ATMEL boot..." ; \ 1751 8ae158cdSTsiChungLiew fi; \ 1752 4a442d31STsiChungLiew echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1753 8ae158cdSTsiChungLiew echo "... with $${FREQ}Hz input clock" 1754 8ae158cdSTsiChungLiew @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 1755 8ae158cdSTsiChungLiew 1756 7ebf7443Swdenk######################################################################### 1757 f046ccd1SEran Liberty## MPC83xx Systems 1758 f046ccd1SEran Liberty######################################################################### 1759 f046ccd1SEran Liberty 1760 5c5d3242SKim PhillipsMPC8313ERDB_33_config \ 1761 5c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig 1762 cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1763 cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 1764 5c5d3242SKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 1765 5c5d3242SKim Phillips echo -n "...33M ..." ; \ 1766 cdd917a4SWolfgang Denk echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 1767 5c5d3242SKim Phillips fi ; \ 1768 5c5d3242SKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1769 5c5d3242SKim Phillips echo -n "...66M..." ; \ 1770 cdd917a4SWolfgang Denk echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 1771 5c5d3242SKim Phillips fi ; 1772 e58fe957SKim Phillips @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 1773 5c5d3242SKim Phillips 1774 1c274c4eSKim PhillipsMPC8323ERDB_config: unconfig 1775 1c274c4eSKim Phillips @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 1776 1c274c4eSKim Phillips 1777 4decd84eSKim PhillipsMPC832XEMDS_config \ 1778 4decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \ 1779 4decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \ 1780 281df457STony LiMPC832XEMDS_SLAVE_config \ 1781 281df457STony LiMPC832XEMDS_ATM_config: unconfig 1782 cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1783 cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 1784 4decd84eSKim Phillips if [ "$(findstring _HOST_,$@)" ] ; then \ 1785 4decd84eSKim Phillips echo -n "... PCI HOST " ; \ 1786 cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1787 4decd84eSKim Phillips fi ; \ 1788 4decd84eSKim Phillips if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1789 4decd84eSKim Phillips echo "...PCI SLAVE 66M" ; \ 1790 cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1791 cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 1792 4decd84eSKim Phillips fi ; \ 1793 4decd84eSKim Phillips if [ "$(findstring _33_,$@)" ] ; then \ 1794 4decd84eSKim Phillips echo -n "...33M ..." ; \ 1795 cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1796 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1797 4decd84eSKim Phillips fi ; \ 1798 4decd84eSKim Phillips if [ "$(findstring _66_,$@)" ] ; then \ 1799 4decd84eSKim Phillips echo -n "...66M..." ; \ 1800 cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1801 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1802 281df457STony Li fi ; \ 1803 281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1804 281df457STony Li echo -n "...ATM..." ; \ 1805 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1806 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 1807 4decd84eSKim Phillips fi ; 1808 e58fe957SKim Phillips @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 1809 e6f2e902SMarian Balakowicz 1810 991425feSMarian BalakowiczMPC8349EMDS_config: unconfig 1811 e58fe957SKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 1812 991425feSMarian Balakowicz 1813 7a78f148STimur TabiMPC8349ITX_config \ 1814 7a78f148STimur TabiMPC8349ITX_LOWBOOT_config \ 1815 7a78f148STimur TabiMPC8349ITXGP_config: unconfig 1816 7a78f148STimur Tabi @mkdir -p $(obj)include 1817 e21659e3SSam Sparks @mkdir -p $(obj)board/freescale/mpc8349itx 1818 7a78f148STimur Tabi @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 1819 7a78f148STimur Tabi @if [ "$(findstring GP,$@)" ] ; then \ 1820 e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 1821 7a78f148STimur Tabi fi 1822 7a78f148STimur Tabi @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 1823 e21659e3SSam Sparks echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 1824 7a78f148STimur Tabi fi 1825 e58fe957SKim Phillips @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 1826 4decd84eSKim Phillips 1827 5f820439SDave LiuMPC8360EMDS_config \ 1828 5f820439SDave LiuMPC8360EMDS_HOST_33_config \ 1829 5f820439SDave LiuMPC8360EMDS_HOST_66_config \ 1830 281df457STony LiMPC8360EMDS_SLAVE_config \ 1831 281df457STony LiMPC8360EMDS_ATM_config: unconfig 1832 cdd917a4SWolfgang Denk @mkdir -p $(obj)include 1833 cdd917a4SWolfgang Denk @echo "" >$(obj)include/config.h ; \ 1834 5f820439SDave Liu if [ "$(findstring _HOST_,$@)" ] ; then \ 1835 5f820439SDave Liu echo -n "... PCI HOST " ; \ 1836 cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1837 5f820439SDave Liu fi ; \ 1838 5f820439SDave Liu if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1839 5f820439SDave Liu echo "...PCI SLAVE 66M" ; \ 1840 cdd917a4SWolfgang Denk echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1841 cdd917a4SWolfgang Denk echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 1842 5f820439SDave Liu fi ; \ 1843 5f820439SDave Liu if [ "$(findstring _33_,$@)" ] ; then \ 1844 5f820439SDave Liu echo -n "...33M ..." ; \ 1845 cdd917a4SWolfgang Denk echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1846 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1847 5f820439SDave Liu fi ; \ 1848 5f820439SDave Liu if [ "$(findstring _66_,$@)" ] ; then \ 1849 5f820439SDave Liu echo -n "...66M..." ; \ 1850 cdd917a4SWolfgang Denk echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1851 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1852 281df457STony Li fi ; \ 1853 281df457STony Li if [ "$(findstring _ATM_,$@)" ] ; then \ 1854 281df457STony Li echo -n "...ATM..." ; \ 1855 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1856 281df457STony Li echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 1857 5f820439SDave Liu fi ; 1858 e58fe957SKim Phillips @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 1859 5f820439SDave Liu 1860 91e25769SPaul Gortmakersbc8349_config: unconfig 1861 91e25769SPaul Gortmaker @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 1862 91e25769SPaul Gortmaker 1863 4decd84eSKim PhillipsTQM834x_config: unconfig 1864 4decd84eSKim Phillips @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 1865 4decd84eSKim Phillips 1866 2ad6b513STimur Tabi 1867 f046ccd1SEran Liberty######################################################################### 1868 42d1f039Swdenk## MPC85xx Systems 1869 42d1f039Swdenk######################################################################### 1870 42d1f039Swdenk 1871 42d1f039SwdenkMPC8540ADS_config: unconfig 1872 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads 1873 42d1f039Swdenk 1874 b0e32949SLunsheng WangMPC8540EVAL_config \ 1875 b0e32949SLunsheng WangMPC8540EVAL_33_config \ 1876 b0e32949SLunsheng WangMPC8540EVAL_66_config \ 1877 b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 1878 b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 1879 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1880 f9328639SMarian Balakowicz @echo "" >$(obj)include/config.h ; \ 1881 b0e32949SLunsheng Wang if [ "$(findstring _33_,$@)" ] ; then \ 1882 cdd917a4SWolfgang Denk echo "... 33 MHz PCI" ; \ 1883 b0e32949SLunsheng Wang else \ 1884 f9328639SMarian Balakowicz echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 1885 cdd917a4SWolfgang Denk echo "... 66 MHz PCI" ; \ 1886 b0e32949SLunsheng Wang fi ; \ 1887 b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 1888 f9328639SMarian Balakowicz echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 1889 b0e32949SLunsheng Wang echo " slave" ; \ 1890 b0e32949SLunsheng Wang else \ 1891 b0e32949SLunsheng Wang echo " host" ; \ 1892 b0e32949SLunsheng Wang fi 1893 f9328639SMarian Balakowicz @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 1894 b0e32949SLunsheng Wang 1895 42d1f039SwdenkMPC8560ADS_config: unconfig 1896 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads 1897 42d1f039Swdenk 1898 7f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \ 1899 03f5c550SwdenkMPC8541CDS_config: unconfig 1900 7f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1901 7f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 1902 7f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 1903 7f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 1904 7f3f2bd2SRandy Vinson echo "... legacy" ; \ 1905 7f3f2bd2SRandy Vinson fi 1906 7f3f2bd2SRandy Vinson @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds cds 1907 03f5c550Swdenk 1908 81f481caSAndy FlemingMPC8544DS_config: unconfig 1909 81f481caSAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 1910 81f481caSAndy Fleming 1911 7f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \ 1912 d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 1913 7f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1914 7f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 1915 7f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 1916 7f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 1917 7f3f2bd2SRandy Vinson echo "... legacy" ; \ 1918 7f3f2bd2SRandy Vinson fi 1919 7f3f2bd2SRandy Vinson @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds cds 1920 d9b94f28SJon Loeliger 1921 7f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \ 1922 03f5c550SwdenkMPC8555CDS_config: unconfig 1923 7f3f2bd2SRandy Vinson @mkdir -p $(obj)include 1924 7f3f2bd2SRandy Vinson @echo "" >$(obj)include/config.h ; \ 1925 7f3f2bd2SRandy Vinson if [ "$(findstring _legacy_,$@)" ] ; then \ 1926 7f3f2bd2SRandy Vinson echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 1927 7f3f2bd2SRandy Vinson echo "... legacy" ; \ 1928 7f3f2bd2SRandy Vinson fi 1929 7f3f2bd2SRandy Vinson @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds cds 1930 7abf0c58Swdenk 1931 67431059SAndy FlemingMPC8568MDS_config: unconfig 1932 67431059SAndy Fleming @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds 1933 67431059SAndy Fleming 1934 384cc687SwdenkPM854_config: unconfig 1935 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 1936 384cc687Swdenk 1937 b20d0032SWolfgang DenkPM856_config: unconfig 1938 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 1939 b20d0032SWolfgang Denk 1940 c15f3120Swdenksbc8540_config \ 1941 c15f3120Swdenksbc8540_33_config \ 1942 c15f3120Swdenksbc8540_66_config: unconfig 1943 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1944 c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 1945 f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 1946 c15f3120Swdenk echo "... 66 MHz PCI" ; \ 1947 c15f3120Swdenk else \ 1948 f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1949 c15f3120Swdenk echo "... 33 MHz PCI" ; \ 1950 c15f3120Swdenk fi 1951 f9328639SMarian Balakowicz @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 1952 c15f3120Swdenk 1953 466b7410Swdenksbc8560_config \ 1954 466b7410Swdenksbc8560_33_config \ 1955 466b7410Swdenksbc8560_66_config: unconfig 1956 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1957 8b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 1958 f9328639SMarian Balakowicz echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 1959 8b07a110Swdenk echo "... 66 MHz PCI" ; \ 1960 8b07a110Swdenk else \ 1961 f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1962 8b07a110Swdenk echo "... 33 MHz PCI" ; \ 1963 8b07a110Swdenk fi 1964 f9328639SMarian Balakowicz @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 1965 8b07a110Swdenk 1966 03f5c550Swdenkstxgp3_config: unconfig 1967 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 1968 03f5c550Swdenk 1969 ee152983SWolfgang Denkstxssa_config \ 1970 ee152983SWolfgang Denkstxssa_4M_config: unconfig 1971 ee152983SWolfgang Denk @mkdir -p $(obj)include 1972 ee152983SWolfgang Denk @if [ "$(findstring _4M_,$@)" ] ; then \ 1973 ee152983SWolfgang Denk echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 1974 ee152983SWolfgang Denk echo "... with 4 MiB flash memory" ; \ 1975 ee152983SWolfgang Denk else \ 1976 ee152983SWolfgang Denk >$(obj)include/config.h ; \ 1977 ee152983SWolfgang Denk fi 1978 ee152983SWolfgang Denk @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 1979 35171dc0SDan Malek 1980 d96f41e0SStefan RoeseTQM8540_config \ 1981 d96f41e0SStefan RoeseTQM8541_config \ 1982 d96f41e0SStefan RoeseTQM8555_config \ 1983 f5c5ef4aSwdenkTQM8560_config: unconfig 1984 f9328639SMarian Balakowicz @mkdir -p $(obj)include 1985 a889bd27SWolfgang Denk @CTYPE=$(subst TQM,,$(@:_config=)); \ 1986 f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 1987 d96f41e0SStefan Roese echo "... TQM"$${CTYPE}; \ 1988 f9328639SMarian Balakowicz echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 1989 f9328639SMarian Balakowicz echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 1990 f9328639SMarian Balakowicz echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 1991 f9328639SMarian Balakowicz echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 1992 8a783a65SGrant Likely echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 1993 f9328639SMarian Balakowicz @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 1994 f5c5ef4aSwdenk 1995 42d1f039Swdenk######################################################################### 1996 debb7354SJon Loeliger## MPC86xx Systems 1997 debb7354SJon Loeliger######################################################################### 1998 debb7354SJon Loeliger 1999 debb7354SJon LoeligerMPC8641HPCN_config: unconfig 2000 4ce91774SJon Loeliger @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2001 debb7354SJon Loeliger 2002 c646bba6SJoe Hammansbc8641d_config: unconfig 2003 c646bba6SJoe Hamman @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d 2004 debb7354SJon Loeliger 2005 debb7354SJon Loeliger######################################################################### 2006 7ebf7443Swdenk## 74xx/7xx Systems 2007 7ebf7443Swdenk######################################################################### 2008 7ebf7443Swdenk 2009 c7de829cSwdenkAmigaOneG3SE_config: unconfig 2010 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2011 c7de829cSwdenk 2012 15647dc7SwdenkBAB7xx_config: unconfig 2013 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 2014 15647dc7Swdenk 2015 c419d1d6SstroeseCPCI750_config: unconfig 2016 f9328639SMarian Balakowicz @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2017 c419d1d6Sstroese 2018 3a473b2aSwdenkDB64360_config: unconfig 2019 f9328639SMarian Balakowicz @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 2020 3a473b2aSwdenk 2021 3a473b2aSwdenkDB64460_config: unconfig 2022 f9328639SMarian Balakowicz @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 2023 3a473b2aSwdenk 2024 15647dc7SwdenkELPPC_config: unconfig 2025 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 2026 15647dc7Swdenk 2027 7ebf7443SwdenkEVB64260_config \ 2028 7ebf7443SwdenkEVB64260_750CX_config: unconfig 2029 f9328639SMarian Balakowicz @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 2030 7ebf7443Swdenk 2031 4c52783bSroy zangmpc7448hpc2_config: unconfig 2032 ee311214Sroy zang @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 2033 4c52783bSroy zang 2034 15647dc7SwdenkP3G4_config: unconfig 2035 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 2036 7ebf7443Swdenk 2037 1eac2a71SStefan Roesep3m750_config \ 2038 1eac2a71SStefan Roesep3m7448_config: unconfig 2039 1eac2a71SStefan Roese @mkdir -p $(obj)include 2040 1eac2a71SStefan Roese @if [ "$(findstring 750_,$@)" ] ; then \ 2041 1eac2a71SStefan Roese echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 2042 1eac2a71SStefan Roese else \ 2043 1eac2a71SStefan Roese echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 2044 1eac2a71SStefan Roese fi 2045 1eac2a71SStefan Roese @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 2046 1eac2a71SStefan Roese 2047 7ebf7443SwdenkPCIPPC2_config \ 2048 7ebf7443SwdenkPCIPPC6_config: unconfig 2049 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 2050 7ebf7443Swdenk 2051 15647dc7SwdenkZUMA_config: unconfig 2052 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 2053 12f34241Swdenk 2054 f5e0d039SHeiko Schocherppmc7xx_config: unconfig 2055 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2056 f5e0d039SHeiko Schocher 2057 7ebf7443Swdenk#======================================================================== 2058 7ebf7443Swdenk# ARM 2059 7ebf7443Swdenk#======================================================================== 2060 7ebf7443Swdenk######################################################################### 2061 7ebf7443Swdenk## StrongARM Systems 2062 7ebf7443Swdenk######################################################################### 2063 7ebf7443Swdenk 2064 ea66bc88Swdenkassabet_config : unconfig 2065 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2066 ea66bc88Swdenk 2067 7ebf7443Swdenkdnp1110_config : unconfig 2068 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 2069 7ebf7443Swdenk 2070 855a496fSwdenkgcplus_config : unconfig 2071 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2072 855a496fSwdenk 2073 855a496fSwdenklart_config : unconfig 2074 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2075 855a496fSwdenk 2076 7ebf7443Swdenkshannon_config : unconfig 2077 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 2078 7ebf7443Swdenk 2079 7ebf7443Swdenk######################################################################### 2080 2e5983d2Swdenk## ARM92xT Systems 2081 7ebf7443Swdenk######################################################################### 2082 7ebf7443Swdenk 2083 b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 2084 43d9616cSwdenk 2085 3ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2086 63e73c9aSwdenk 2087 a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2088 a56bd922Swdenk 2089 a85f9f21Swdenkat91rm9200dk_config : unconfig 2090 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200 2091 a85f9f21Swdenk 2092 a85f9f21Swdenkcmc_pu2_config : unconfig 2093 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2094 a85f9f21Swdenk 2095 645da510SWolfgang Denkcsb637_config : unconfig 2096 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2097 645da510SWolfgang Denk 2098 0e4018d2SWolfgang Denkmp2usb_config : unconfig 2099 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 2100 0e4018d2SWolfgang Denk 2101 87cb6862SWolfgang Denk 2102 74f4304eSWolfgang Denk######################################################################## 2103 87cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 2104 87cb6862SWolfgang Denkintegratorap_config \ 2105 87cb6862SWolfgang Denkap_config \ 2106 87cb6862SWolfgang Denkap966_config \ 2107 87cb6862SWolfgang Denkap922_config \ 2108 87cb6862SWolfgang Denkap922_XA10_config \ 2109 87cb6862SWolfgang Denkap7_config \ 2110 87cb6862SWolfgang Denkap720t_config \ 2111 87cb6862SWolfgang Denkap920t_config \ 2112 87cb6862SWolfgang Denkap926ejs_config \ 2113 87cb6862SWolfgang Denkap946es_config: unconfig 2114 96782c63SWolfgang Denk @board/integratorap/split_by_variant.sh $@ 2115 3d3befa7Swdenk 2116 87cb6862SWolfgang Denkintegratorcp_config \ 2117 87cb6862SWolfgang Denkcp_config \ 2118 87cb6862SWolfgang Denkcp920t_config \ 2119 87cb6862SWolfgang Denkcp926ejs_config \ 2120 87cb6862SWolfgang Denkcp946es_config \ 2121 87cb6862SWolfgang Denkcp1136_config \ 2122 87cb6862SWolfgang Denkcp966_config \ 2123 87cb6862SWolfgang Denkcp922_config \ 2124 87cb6862SWolfgang Denkcp922_XA10_config \ 2125 87cb6862SWolfgang Denkcp1026_config: unconfig 2126 96782c63SWolfgang Denk @board/integratorcp/split_by_variant.sh $@ 2127 25d6712aSwdenk 2128 99b0d285SWolfgang Denkkb9202_config : unconfig 2129 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 2130 99b0d285SWolfgang Denk 2131 f832d8a1Swdenklpd7a400_config \ 2132 f832d8a1Swdenklpd7a404_config: unconfig 2133 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 2134 3d3befa7Swdenk 2135 281e00a3Swdenkmx1ads_config : unconfig 2136 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2137 281e00a3Swdenk 2138 281e00a3Swdenkmx1fs2_config : unconfig 2139 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2140 281e00a3Swdenk 2141 ac7eb8a3SWolfgang Denknetstar_32_config \ 2142 ac7eb8a3SWolfgang Denknetstar_config: unconfig 2143 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2144 ac7eb8a3SWolfgang Denk @if [ "$(findstring _32_,$@)" ] ; then \ 2145 ac7eb8a3SWolfgang Denk echo "... 32MB SDRAM" ; \ 2146 f9328639SMarian Balakowicz echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \ 2147 ac7eb8a3SWolfgang Denk else \ 2148 ac7eb8a3SWolfgang Denk echo "... 64MB SDRAM" ; \ 2149 f9328639SMarian Balakowicz echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \ 2150 ac7eb8a3SWolfgang Denk fi 2151 f9328639SMarian Balakowicz @$(MKCONFIG) -a netstar arm arm925t netstar 2152 ac7eb8a3SWolfgang Denk 2153 2e5983d2Swdenkomap1510inn_config : unconfig 2154 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 2155 2e5983d2Swdenk 2156 1eaeb58eSwdenkomap5912osk_config : unconfig 2157 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 2158 1eaeb58eSwdenk 2159 c74b2108SSergey Kubushyndavinci_dvevm_config : unconfig 2160 c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2161 c74b2108SSergey Kubushyn 2162 c74b2108SSergey Kubushyndavinci_schmoogie_config : unconfig 2163 c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2164 c74b2108SSergey Kubushyn 2165 c74b2108SSergey Kubushyndavinci_sonata_config : unconfig 2166 c74b2108SSergey Kubushyn @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2167 c74b2108SSergey Kubushyn 2168 63e73c9aSwdenkomap1610inn_config \ 2169 63e73c9aSwdenkomap1610inn_cs0boot_config \ 2170 63e73c9aSwdenkomap1610inn_cs3boot_config \ 2171 3ff02c27Swdenkomap1610inn_cs_autoboot_config \ 2172 63e73c9aSwdenkomap1610h2_config \ 2173 63e73c9aSwdenkomap1610h2_cs0boot_config \ 2174 3ff02c27Swdenkomap1610h2_cs3boot_config \ 2175 3ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 2176 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2177 63e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2178 cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2179 b79a11ccSwdenk echo "... configured for CS0 boot"; \ 2180 3ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2181 cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2182 3ff02c27Swdenk echo "... configured for CS_AUTO boot"; \ 2183 63e73c9aSwdenk else \ 2184 cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2185 b79a11ccSwdenk echo "... configured for CS3 boot"; \ 2186 63e73c9aSwdenk fi; 2187 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 2188 6f21347dSwdenk 2189 a56bd922Swdenkomap730p2_config \ 2190 a56bd922Swdenkomap730p2_cs0boot_config \ 2191 a56bd922Swdenkomap730p2_cs3boot_config : unconfig 2192 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2193 a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2194 f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2195 a56bd922Swdenk echo "... configured for CS0 boot"; \ 2196 a56bd922Swdenk else \ 2197 f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2198 a56bd922Swdenk echo "... configured for CS3 boot"; \ 2199 a56bd922Swdenk fi; 2200 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2201 a56bd922Swdenk 2202 32cb2c70SWolfgang Denksbc2410x_config: unconfig 2203 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 2204 32cb2c70SWolfgang Denk 2205 281e00a3Swdenkscb9328_config : unconfig 2206 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2207 281e00a3Swdenk 2208 7ebf7443Swdenksmdk2400_config : unconfig 2209 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 2210 7ebf7443Swdenk 2211 7ebf7443Swdenksmdk2410_config : unconfig 2212 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 2213 7ebf7443Swdenk 2214 2d24a3a7SwdenkSX1_config : unconfig 2215 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm925t sx1 2216 2d24a3a7Swdenk 2217 b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 2218 43d9616cSwdenktrab_config \ 2219 b0639ca3Swdenktrab_bigram_config \ 2220 b0639ca3Swdenktrab_bigflash_config \ 2221 f54ebdfaSwdenktrab_old_config: unconfig 2222 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2223 f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 2224 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2225 b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 2226 f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2227 f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2228 b0639ca3Swdenk echo "... with 8 MB Flash, 32 MB RAM" ; \ 2229 b0639ca3Swdenk } 2230 b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 2231 f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2232 f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2233 b0639ca3Swdenk echo "... with 16 MB Flash, 16 MB RAM" ; \ 2234 f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2235 b0639ca3Swdenk } 2236 f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 2237 f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2238 f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2239 b2001f27Swdenk echo "... with 8 MB Flash, 16 MB RAM" ; \ 2240 f9328639SMarian Balakowicz echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2241 43d9616cSwdenk } 2242 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 2243 7ebf7443Swdenk 2244 1cb8e980SwdenkVCMA9_config : unconfig 2245 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 2246 1cb8e980Swdenk 2247 87cb6862SWolfgang Denk#======================================================================== 2248 87cb6862SWolfgang Denk# ARM supplied Versatile development boards 2249 87cb6862SWolfgang Denk#======================================================================== 2250 87cb6862SWolfgang Denkversatile_config \ 2251 87cb6862SWolfgang Denkversatileab_config \ 2252 87cb6862SWolfgang Denkversatilepb_config : unconfig 2253 96782c63SWolfgang Denk @board/versatile/split_by_variant.sh $@ 2254 074cff0dSwdenk 2255 3c2b3d45Swdenkvoiceblue_smallflash_config \ 2256 3c2b3d45Swdenkvoiceblue_config: unconfig 2257 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2258 f9328639SMarian Balakowicz @mkdir -p $(obj)board/voiceblue 2259 3c2b3d45Swdenk @if [ "$(findstring _smallflash_,$@)" ] ; then \ 2260 3c2b3d45Swdenk echo "... boot from lower flash bank" ; \ 2261 f9328639SMarian Balakowicz echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \ 2262 f9328639SMarian Balakowicz echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \ 2263 3c2b3d45Swdenk else \ 2264 3c2b3d45Swdenk echo "... boot from upper flash bank" ; \ 2265 f9328639SMarian Balakowicz >$(obj)include/config.h ; \ 2266 f9328639SMarian Balakowicz echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \ 2267 3c2b3d45Swdenk fi 2268 f9328639SMarian Balakowicz @$(MKCONFIG) -a voiceblue arm arm925t voiceblue 2269 3c2b3d45Swdenk 2270 16b013e7Swdenkcm4008_config : unconfig 2271 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 2272 16b013e7Swdenk 2273 16b013e7Swdenkcm41xx_config : unconfig 2274 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 2275 16b013e7Swdenk 2276 0c32d96dSWolfgang Denkgth2_config : unconfig 2277 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2278 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2279 f9328639SMarian Balakowicz @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h 2280 f9328639SMarian Balakowicz @$(MKCONFIG) -a gth2 mips mips gth2 2281 0c32d96dSWolfgang Denk 2282 074cff0dSwdenk######################################################################### 2283 074cff0dSwdenk## S3C44B0 Systems 2284 074cff0dSwdenk######################################################################### 2285 074cff0dSwdenk 2286 074cff0dSwdenkB2_config : unconfig 2287 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2288 074cff0dSwdenk 2289 7ebf7443Swdenk######################################################################### 2290 7ebf7443Swdenk## ARM720T Systems 2291 7ebf7443Swdenk######################################################################### 2292 7ebf7443Swdenk 2293 c570b2fdSWolfgang Denkarmadillo_config: unconfig 2294 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2295 c570b2fdSWolfgang Denk 2296 7ebf7443Swdenkep7312_config : unconfig 2297 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 2298 7ebf7443Swdenk 2299 2d24a3a7Swdenkimpa7_config : unconfig 2300 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t impa7 2301 2d24a3a7Swdenk 2302 2d1a537dSwdenkmodnet50_config : unconfig 2303 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 2304 2d1a537dSwdenk 2305 39539887Swdenkevb4510_config : unconfig 2306 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 2307 39539887Swdenk 2308 6bd2447eSGary Jennejohnlpc2292sodimm_config: unconfig 2309 b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2310 b0d8f5bfSPeter Pearse 2311 b0d8f5bfSPeter PearseSMN42_config : unconfig 2312 b0d8f5bfSPeter Pearse @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 2313 6bd2447eSGary Jennejohn 2314 7ebf7443Swdenk######################################################################### 2315 43d9616cSwdenk## XScale Systems 2316 7ebf7443Swdenk######################################################################### 2317 7ebf7443Swdenk 2318 20787e23Swdenkadsvix_config : unconfig 2319 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa adsvix 2320 20787e23Swdenk 2321 fabd46acSwdenkcerf250_config : unconfig 2322 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2323 fabd46acSwdenk 2324 7ebf7443Swdenkcradle_config : unconfig 2325 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa cradle 2326 7ebf7443Swdenk 2327 7ebf7443Swdenkcsb226_config : unconfig 2328 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa csb226 2329 7ebf7443Swdenk 2330 0be248faSWolfgang Denkdelta_config : 2331 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa delta 2332 0be248faSWolfgang Denk 2333 43d9616cSwdenkinnokom_config : unconfig 2334 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa innokom 2335 43d9616cSwdenk 2336 2d5b561eSwdenkixdp425_config : unconfig 2337 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2338 2d5b561eSwdenk 2339 ba94a1bbSWolfgang Denkixdpg425_config : unconfig 2340 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2341 ba94a1bbSWolfgang Denk 2342 43d9616cSwdenklubbock_config : unconfig 2343 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa lubbock 2344 43d9616cSwdenk 2345 5720df78SHeiko Schocherpleb2_config : unconfig 2346 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pleb2 2347 5720df78SHeiko Schocher 2348 52f52c14Swdenklogodl_config : unconfig 2349 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa logodl 2350 52f52c14Swdenk 2351 9d8d5a5bSStefan Roesepdnb3_config \ 2352 9d8d5a5bSStefan Roesescpu_config: unconfig 2353 cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2354 9d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 2355 cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2356 9d8d5a5bSStefan Roese echo "... on SCPU board variant" ; \ 2357 9d8d5a5bSStefan Roese else \ 2358 cdd917a4SWolfgang Denk >$(obj)include/config.h ; \ 2359 9d8d5a5bSStefan Roese fi 2360 9d8d5a5bSStefan Roese @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2361 ba94a1bbSWolfgang Denk 2362 f57f70aaSWolfgang Denkpxa255_idp_config: unconfig 2363 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2364 f57f70aaSWolfgang Denk 2365 5e5803e1Sstefano babictrizepsiv_config : unconfig 2366 5e5803e1Sstefano babic @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 2367 5e5803e1Sstefano babic 2368 3e38691eSwdenkwepep250_config : unconfig 2369 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa wepep250 2370 3e38691eSwdenk 2371 4ec3a7f0Swdenkxaeniax_config : unconfig 2372 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 2373 4ec3a7f0Swdenk 2374 efa329cbSwdenkxm250_config : unconfig 2375 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xm250 2376 efa329cbSwdenk 2377 ca0e7748Swdenkxsengine_config : unconfig 2378 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2379 ca0e7748Swdenk 2380 e0269579SMarkus Klotzbücherzylonite_config : 2381 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2382 e0269579SMarkus Klotzbücher 2383 8ed96046Swdenk######################################################################### 2384 8ed96046Swdenk## ARM1136 Systems 2385 8ed96046Swdenk######################################################################### 2386 8ed96046Swdenkomap2420h4_config : unconfig 2387 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 2388 8ed96046Swdenk 2389 2262cfeeSwdenk#======================================================================== 2390 2262cfeeSwdenk# i386 2391 2262cfeeSwdenk#======================================================================== 2392 2262cfeeSwdenk######################################################################### 2393 2262cfeeSwdenk## AMD SC520 CDP 2394 2262cfeeSwdenk######################################################################### 2395 2262cfeeSwdenksc520_cdp_config : unconfig 2396 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 2397 2262cfeeSwdenk 2398 7a8e9bedSwdenksc520_spunk_config : unconfig 2399 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 2400 7a8e9bedSwdenk 2401 7a8e9bedSwdenksc520_spunk_rel_config : unconfig 2402 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 2403 7a8e9bedSwdenk 2404 43d9616cSwdenk#======================================================================== 2405 43d9616cSwdenk# MIPS 2406 43d9616cSwdenk#======================================================================== 2407 7ebf7443Swdenk######################################################################### 2408 43d9616cSwdenk## MIPS32 4Kc 2409 43d9616cSwdenk######################################################################### 2410 43d9616cSwdenk 2411 e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2412 e0ac62d7Swdenk 2413 e0ac62d7Swdenkincaip_100MHz_config \ 2414 e0ac62d7Swdenkincaip_133MHz_config \ 2415 e0ac62d7Swdenkincaip_150MHz_config \ 2416 43d9616cSwdenkincaip_config: unconfig 2417 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2418 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2419 e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 2420 f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2421 e0ac62d7Swdenk echo "... with 100MHz system clock" ; \ 2422 e0ac62d7Swdenk } 2423 e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 2424 f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2425 e0ac62d7Swdenk echo "... with 133MHz system clock" ; \ 2426 e0ac62d7Swdenk } 2427 e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 2428 f9328639SMarian Balakowicz { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2429 e0ac62d7Swdenk echo "... with 150MHz system clock" ; \ 2430 e0ac62d7Swdenk } 2431 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2432 e0ac62d7Swdenk 2433 f4863a7aSwdenktb0229_config: unconfig 2434 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips tb0229 2435 f4863a7aSwdenk 2436 e0ac62d7Swdenk######################################################################### 2437 69459791Swdenk## MIPS32 AU1X00 2438 69459791Swdenk######################################################################### 2439 69459791Swdenkdbau1000_config : unconfig 2440 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2441 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2442 f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h 2443 f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2444 69459791Swdenk 2445 69459791Swdenkdbau1100_config : unconfig 2446 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2447 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2448 f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h 2449 f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2450 69459791Swdenk 2451 69459791Swdenkdbau1500_config : unconfig 2452 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2453 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2454 f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h 2455 f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2456 69459791Swdenk 2457 ff36fd85Swdenkdbau1550_config : unconfig 2458 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2459 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2460 f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2461 f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2462 ff36fd85Swdenk 2463 ff36fd85Swdenkdbau1550_el_config : unconfig 2464 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2465 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2466 f9328639SMarian Balakowicz @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2467 f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2468 ff36fd85Swdenk 2469 265817c7SWolfgang Denkpb1000_config : unconfig 2470 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2471 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2472 f9328639SMarian Balakowicz @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h 2473 f9328639SMarian Balakowicz @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2474 265817c7SWolfgang Denk 2475 69459791Swdenk######################################################################### 2476 e0ac62d7Swdenk## MIPS64 5Kc 2477 e0ac62d7Swdenk######################################################################### 2478 43d9616cSwdenk 2479 3e38691eSwdenkpurple_config : unconfig 2480 f9328639SMarian Balakowicz @$(MKCONFIG) $(@:_config=) mips mips purple 2481 43d9616cSwdenk 2482 4a551709Swdenk#======================================================================== 2483 4a551709Swdenk# Nios 2484 4a551709Swdenk#======================================================================== 2485 4a551709Swdenk######################################################################### 2486 4a551709Swdenk## Nios32 2487 4a551709Swdenk######################################################################### 2488 4a551709Swdenk 2489 c935d3bdSwdenkDK1C20_safe_32_config \ 2490 c935d3bdSwdenkDK1C20_standard_32_config \ 2491 4a551709SwdenkDK1C20_config: unconfig 2492 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2493 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2494 c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2495 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2496 c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 2497 c935d3bdSwdenk } 2498 c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2499 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2500 c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 2501 c935d3bdSwdenk } 2502 c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2503 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2504 c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2505 c935d3bdSwdenk } 2506 f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2507 c935d3bdSwdenk 2508 c935d3bdSwdenkDK1S10_safe_32_config \ 2509 c935d3bdSwdenkDK1S10_standard_32_config \ 2510 ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 2511 c935d3bdSwdenkDK1S10_config: unconfig 2512 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2513 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2514 c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 2515 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2516 c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 2517 c935d3bdSwdenk } 2518 c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 2519 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2520 c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 2521 c935d3bdSwdenk } 2522 ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2523 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2524 ec4c544bSwdenk echo "... NIOS 'mtx_ldk_20' configuration" ; \ 2525 ec4c544bSwdenk } 2526 c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2527 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2528 c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2529 c935d3bdSwdenk } 2530 f9328639SMarian Balakowicz @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 2531 4a551709Swdenk 2532 aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 2533 aaf224abSwdenkADNPESC1_base_32_config \ 2534 aaf224abSwdenkADNPESC1_config: unconfig 2535 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2536 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2537 aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2538 f9328639SMarian Balakowicz { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2539 aaf224abSwdenk echo "... DNP/EVA2 configuration" ; \ 2540 aaf224abSwdenk } 2541 aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 2542 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2543 aaf224abSwdenk echo "... NIOS 'base_32' configuration" ; \ 2544 aaf224abSwdenk } 2545 aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2546 f9328639SMarian Balakowicz { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2547 aaf224abSwdenk echo "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2548 aaf224abSwdenk } 2549 f9328639SMarian Balakowicz @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2550 aaf224abSwdenk 2551 5c952cf0Swdenk######################################################################### 2552 5c952cf0Swdenk## Nios-II 2553 5c952cf0Swdenk######################################################################### 2554 5c952cf0Swdenk 2555 9cc83378SScott McNuttEP1C20_config : unconfig 2556 f9328639SMarian Balakowicz @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 2557 9cc83378SScott McNutt 2558 9cc83378SScott McNuttEP1S10_config : unconfig 2559 f9328639SMarian Balakowicz @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 2560 9cc83378SScott McNutt 2561 9cc83378SScott McNuttEP1S40_config : unconfig 2562 f9328639SMarian Balakowicz @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 2563 9cc83378SScott McNutt 2564 5c952cf0SwdenkPK1C20_config : unconfig 2565 f9328639SMarian Balakowicz @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 2566 5c952cf0Swdenk 2567 5c952cf0SwdenkPCI5441_config : unconfig 2568 f9328639SMarian Balakowicz @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 2569 4a551709Swdenk 2570 507bbe3eSwdenk#======================================================================== 2571 507bbe3eSwdenk# MicroBlaze 2572 507bbe3eSwdenk#======================================================================== 2573 507bbe3eSwdenk######################################################################### 2574 507bbe3eSwdenk## Microblaze 2575 507bbe3eSwdenk######################################################################### 2576 507bbe3eSwdenksuzaku_config: unconfig 2577 f9328639SMarian Balakowicz @mkdir -p $(obj)include 2578 f9328639SMarian Balakowicz @ >$(obj)include/config.h 2579 f9328639SMarian Balakowicz @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h 2580 f9328639SMarian Balakowicz @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2581 507bbe3eSwdenk 2582 cfc67116SMichal Simekml401_config: unconfig 2583 cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2584 cdd917a4SWolfgang Denk @ >$(obj)include/config.h 2585 cdd917a4SWolfgang Denk @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h 2586 90b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2587 cfc67116SMichal Simek 2588 17980495SMichal Simekxupv2p_config: unconfig 2589 cdd917a4SWolfgang Denk @mkdir -p $(obj)include 2590 cdd917a4SWolfgang Denk @ >$(obj)include/config.h 2591 cdd917a4SWolfgang Denk @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h 2592 90b1b2d6SGrant Likely @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 2593 17980495SMichal Simek 2594 3e38691eSwdenk######################################################################### 2595 0afe519aSWolfgang Denk## Blackfin 2596 0afe519aSWolfgang Denk######################################################################### 2597 ef26a08fSAubrey.Libf533-ezkit_config: unconfig 2598 ef26a08fSAubrey.Li @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit 2599 0afe519aSWolfgang Denk 2600 ef26a08fSAubrey.Libf533-stamp_config: unconfig 2601 ef26a08fSAubrey.Li @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp 2602 0afe519aSWolfgang Denk 2603 26bf7decSAubrey Libf537-stamp_config: unconfig 2604 26bf7decSAubrey Li @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp 2605 26bf7decSAubrey Li 2606 65458987SAubrey Libf561-ezkit_config: unconfig 2607 65458987SAubrey Li @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit 2608 0afe519aSWolfgang Denk 2609 5e3b0bc1SHaavard Skinnemoen#======================================================================== 2610 5e3b0bc1SHaavard Skinnemoen# AVR32 2611 5e3b0bc1SHaavard Skinnemoen#======================================================================== 2612 5e3b0bc1SHaavard Skinnemoen######################################################################### 2613 5e3b0bc1SHaavard Skinnemoen## AT32AP7xxx 2614 5e3b0bc1SHaavard Skinnemoen######################################################################### 2615 5e3b0bc1SHaavard Skinnemoen 2616 5e3b0bc1SHaavard Skinnemoenatstk1002_config : unconfig 2617 90b1b2d6SGrant Likely @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000 2618 5e3b0bc1SHaavard Skinnemoen 2619 0afe519aSWolfgang Denk######################################################################### 2620 0afe519aSWolfgang Denk######################################################################### 2621 3e38691eSwdenk######################################################################### 2622 7ebf7443Swdenk 2623 7ebf7443Swdenkclean: 2624 f9328639SMarian Balakowicz find $(OBJTREE) -type f \ 2625 7ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 2626 7ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 2627 7ebf7443Swdenk | xargs rm -f 2628 f9328639SMarian Balakowicz rm -f $(obj)examples/hello_world $(obj)examples/timer \ 2629 f9328639SMarian Balakowicz $(obj)examples/eepro100_eeprom $(obj)examples/sched \ 2630 f9328639SMarian Balakowicz $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \ 2631 d214fbbdSWolfgang Denk $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \ 2632 f9328639SMarian Balakowicz $(obj)examples/test_burst 2633 f9328639SMarian Balakowicz rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \ 2634 566a494fSHeiko Schocher $(obj)tools/gen_eth_addr $(obj)tools/ubsha1 2635 f9328639SMarian Balakowicz rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb 2636 f9328639SMarian Balakowicz rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo 2637 f9328639SMarian Balakowicz rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend 2638 f9328639SMarian Balakowicz rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv 2639 f9328639SMarian Balakowicz rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image 2640 f9328639SMarian Balakowicz rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit 2641 f9328639SMarian Balakowicz rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin 2642 f9328639SMarian Balakowicz rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom 2643 f9328639SMarian Balakowicz rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds 2644 8440bb14SAubrey Li rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds 2645 65458987SAubrey Li rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds 2646 f9328639SMarian Balakowicz rm -f $(obj)include/bmp_logo.h 2647 8318fbf8SMarian Balakowicz rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map 2648 7ebf7443Swdenk 2649 7ebf7443Swdenkclobber: clean 2650 f9328639SMarian Balakowicz find $(OBJTREE) -type f \( -name .depend \ 2651 4c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 2652 4c0d4c3bSwdenk -print0 \ 2653 4c0d4c3bSwdenk | xargs -0 rm -f 2654 f9328639SMarian Balakowicz rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h 2655 f9328639SMarian Balakowicz rm -fr $(obj)*.*~ 2656 f9328639SMarian Balakowicz rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2657 566a494fSHeiko Schocher rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c 2658 f9328639SMarian Balakowicz rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c 2659 f9328639SMarian Balakowicz rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2660 8318fbf8SMarian Balakowicz [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 2661 7ebf7443Swdenk 2662 f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 2663 7ebf7443Swdenkmrproper \ 2664 7ebf7443Swdenkdistclean: clobber unconfig 2665 f9328639SMarian Balakowiczelse 2666 f9328639SMarian Balakowiczmrproper \ 2667 f9328639SMarian Balakowiczdistclean: clobber unconfig 2668 f9328639SMarian Balakowicz rm -rf $(OBJTREE)/* 2669 f9328639SMarian Balakowiczendif 2670 7ebf7443Swdenk 2671 7ebf7443Swdenkbackup: 2672 7ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 2673 7ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 2674 7ebf7443Swdenk 2675 7ebf7443Swdenk######################################################################### 2676