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