uboot-nand-markbad-reallybad.patch
[u-boot-openmoko/mini2440.git] / Makefile
blob583087dc0fe7a8ed1024f02d1128340e992d6007
2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
6 # project.
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 # MA 02111-1307 USA
24 VERSION = 1
25 PATCHLEVEL = 3
26 SUBLEVEL = 2
27 EXTRAVERSION =
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
32 sed -e s/i.86/i386/ \
33 -e s/sun4u/sparc64/ \
34 -e s/arm.*/arm/ \
35 -e s/sa110/arm/ \
36 -e s/powerpc/ppc/ \
37 -e s/ppc64/ppc/ \
38 -e s/macppc/ppc/)
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/')
43 export HOSTARCH HOSTOS
45 # Deal with colliding definitions from tcsh etc.
46 VENDOR=
48 #########################################################################
49 # Allow for silent builds
50 ifeq (,$(findstring s,$(MAKEFLAGS)))
51 XECHO = echo
52 else
53 XECHO = :
54 endif
56 #########################################################################
58 # U-boot build supports producing a object files to the separate external
59 # directory. Two use cases are supported:
61 # 1) Add O= to the make command line
62 # 'make O=/tmp/build all'
64 # 2) Set environement variable BUILD_DIR to point to the desired location
65 # 'export BUILD_DIR=/tmp/build'
66 # 'make'
68 # The second approach can also be used with a MAKEALL script
69 # 'export BUILD_DIR=/tmp/build'
70 # './MAKEALL'
72 # Command line 'O=' setting overrides BUILD_DIR environent variable.
74 # When none of the above methods is used the local build is performed and
75 # the object files are placed in the source directory.
78 ifdef O
79 ifeq ("$(origin O)", "command line")
80 BUILD_DIR := $(O)
81 endif
82 endif
84 ifneq ($(BUILD_DIR),)
85 saved-output := $(BUILD_DIR)
87 # Attempt to create a output directory.
88 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
90 # Verify if it was successful.
91 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93 endif # ifneq ($(BUILD_DIR),)
95 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96 SRCTREE := $(CURDIR)
97 TOPDIR := $(SRCTREE)
98 LNDIR := $(OBJTREE)
99 export TOPDIR SRCTREE OBJTREE
101 MKCONFIG := $(SRCTREE)/mkconfig
102 export MKCONFIG
104 ifneq ($(OBJTREE),$(SRCTREE))
105 REMOTE_BUILD := 1
106 export REMOTE_BUILD
107 endif
109 # $(obj) and (src) are defined in config.mk but here in main Makefile
110 # we also need them before config.mk is included which is the case for
111 # some targets like unconfig, clean, clobber, distclean, etc.
112 ifneq ($(OBJTREE),$(SRCTREE))
113 obj := $(OBJTREE)/
114 src := $(SRCTREE)/
115 else
116 obj :=
117 src :=
118 endif
119 export obj src
121 # Make sure CDPATH settings don't interfere
122 unexport CDPATH
124 #########################################################################
126 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
128 # load ARCH, BOARD, and CPU configuration
129 include $(obj)include/config.mk
130 export ARCH CPU BOARD VENDOR SOC
132 ifndef CROSS_COMPILE
133 ifeq ($(HOSTARCH),$(ARCH))
134 CROSS_COMPILE =
135 else
136 ifeq ($(ARCH),ppc)
137 CROSS_COMPILE = ppc_8xx-
138 endif
139 ifeq ($(ARCH),arm)
140 CROSS_COMPILE = arm-linux-
141 endif
142 ifeq ($(ARCH),i386)
143 CROSS_COMPILE = i386-linux-
144 endif
145 ifeq ($(ARCH),mips)
146 CROSS_COMPILE = mips_4KC-
147 endif
148 ifeq ($(ARCH),nios)
149 CROSS_COMPILE = nios-elf-
150 endif
151 ifeq ($(ARCH),nios2)
152 CROSS_COMPILE = nios2-elf-
153 endif
154 ifeq ($(ARCH),m68k)
155 CROSS_COMPILE = m68k-elf-
156 endif
157 ifeq ($(ARCH),microblaze)
158 CROSS_COMPILE = mb-
159 endif
160 ifeq ($(ARCH),blackfin)
161 CROSS_COMPILE = bfin-uclinux-
162 endif
163 ifeq ($(ARCH),avr32)
164 CROSS_COMPILE = avr32-linux-
165 endif
166 ifeq ($(ARCH),sh)
167 CROSS_COMPILE = sh4-linux-
168 endif # sh
169 endif # HOSTARCH,ARCH
170 endif # CROSS_COMPILE
172 export CROSS_COMPILE
174 # load other configuration
175 include $(TOPDIR)/config.mk
177 #########################################################################
178 # U-Boot objects....order is important (i.e. start must be first)
180 OBJS = cpu/$(CPU)/start.o
181 ifeq ($(CPU),i386)
182 OBJS += cpu/$(CPU)/start16.o
183 OBJS += cpu/$(CPU)/reset.o
184 endif
185 ifeq ($(CPU),ppc4xx)
186 OBJS += cpu/$(CPU)/resetvec.o
187 endif
188 ifeq ($(CPU),mpc85xx)
189 OBJS += cpu/$(CPU)/resetvec.o
190 endif
192 OBJS := $(addprefix $(obj),$(OBJS))
194 LIBS = lib_generic/libgeneric.a
195 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
196 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
197 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
198 LIBS += cpu/$(CPU)/lib$(CPU).a
199 ifdef SOC
200 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
201 endif
202 ifeq ($(CPU),ixp)
203 LIBS += cpu/ixp/npe/libnpe.a
204 endif
205 LIBS += lib_$(ARCH)/lib$(ARCH).a
206 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
207 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
208 LIBS += net/libnet.a
209 LIBS += disk/libdisk.a
210 LIBS += drivers/bios_emulator/libatibiosemu.a
211 LIBS += drivers/block/libblock.a
212 LIBS += drivers/dma/libdma.a
213 LIBS += drivers/hwmon/libhwmon.a
214 LIBS += drivers/i2c/libi2c.a
215 LIBS += drivers/input/libinput.a
216 LIBS += drivers/misc/libmisc.a
217 LIBS += drivers/mtd/libmtd.a
218 LIBS += drivers/mtd/nand/libnand.a
219 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
220 LIBS += drivers/mtd/onenand/libonenand.a
221 LIBS += drivers/net/libnet.a
222 LIBS += drivers/net/sk98lin/libsk98lin.a
223 LIBS += drivers/pci/libpci.a
224 LIBS += drivers/pcmcia/libpcmcia.a
225 LIBS += drivers/spi/libspi.a
226 ifeq ($(CPU),mpc83xx)
227 LIBS += drivers/qe/qe.a
228 endif
229 ifeq ($(CPU),mpc85xx)
230 LIBS += drivers/qe/qe.a
231 endif
232 LIBS += drivers/rtc/librtc.a
233 LIBS += drivers/serial/libserial.a
234 LIBS += drivers/usb/libusb.a
235 LIBS += drivers/video/libvideo.a
236 LIBS += post/libpost.a post/drivers/libpostdrivers.a
237 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
238 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
239 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
240 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
241 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
242 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
243 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
244 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
245 LIBS += common/libcommon.a
246 LIBS += libfdt/libfdt.a
247 LIBS += api/libapi.a
249 LIBS := $(addprefix $(obj),$(LIBS))
250 .PHONY : $(LIBS) $(VERSION_FILE)
252 # Add GCC lib
253 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
255 # The "tools" are needed early, so put this first
256 # Don't include stuff already done in $(LIBS)
257 SUBDIRS = tools \
258 examples \
259 api_examples
261 .PHONY : $(SUBDIRS)
263 ifeq ($(CONFIG_NAND_U_BOOT),y)
264 NAND_SPL = nand_spl
265 U_BOOT_NAND = $(obj)u-boot-nand.bin
266 endif
268 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
269 ONENAND_IPL = onenand_ipl
270 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
271 endif
273 __OBJS := $(subst $(obj),,$(OBJS))
274 __LIBS := $(subst $(obj),,$(LIBS))
276 #########################################################################
277 #########################################################################
279 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
280 ifeq ($(ARCH),blackfin)
281 ALL += $(obj)u-boot.ldr
282 endif
284 all: $(ALL)
286 $(obj)u-boot.hex: $(obj)u-boot
287 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
289 $(obj)u-boot.srec: $(obj)u-boot
290 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
292 $(obj)u-boot.bin: $(obj)u-boot
293 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
295 $(obj)u-boot.ldr: $(obj)u-boot
296 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
298 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
299 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
301 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
302 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
304 $(obj)u-boot.udfu: $(obj)u-boot.bin
305 ./tools/mkudfu -v $(CONFIG_USB_DFU_VENDOR) \
306 -p $(CONFIG_USB_DFU_PRODUCT) \
307 -r $(CONFIG_USB_DFU_REVISION) \
308 -d $< $@
310 $(obj)u-boot.img: $(obj)u-boot.bin
311 ./tools/mkimage -A $(ARCH) -T firmware -C none \
312 -a $(TEXT_BASE) -e 0 \
313 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
314 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
315 -d $< $@
317 $(obj)u-boot.sha1: $(obj)u-boot.bin
318 $(obj)tools/ubsha1 $(obj)u-boot.bin
320 $(obj)u-boot.dis: $(obj)u-boot
321 $(OBJDUMP) -d $< > $@
323 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
324 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
325 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
326 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
327 -Map u-boot.map -o u-boot
329 $(OBJS): depend $(obj)include/autoconf.mk
330 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
332 $(LIBS): depend $(obj)include/autoconf.mk
333 $(MAKE) -C $(dir $(subst $(obj),,$@))
335 $(SUBDIRS): depend $(obj)include/autoconf.mk
336 $(MAKE) -C $@ all
338 $(LDSCRIPT): depend $(obj)include/autoconf.mk
339 $(MAKE) -C $(dir $@) $(notdir $@)
341 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
342 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
344 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
345 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
347 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
348 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
350 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
351 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
352 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
353 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
355 $(VERSION_FILE):
356 @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
357 echo -n "$(U_BOOT_VERSION)" ; \
358 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
359 $(TOPDIR)) ; \
360 echo "\"" ) > $@.tmp
361 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
363 gdbtools:
364 $(MAKE) -C tools/gdb all || exit 1
366 updater:
367 $(MAKE) -C tools/updater all || exit 1
369 env:
370 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
372 depend dep: $(VERSION_FILE)
373 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
375 TAG_SUBDIRS += include
376 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
377 TAG_SUBDIRS += cpu/$(CPU)
378 TAG_SUBDIRS += lib_$(ARCH)
379 TAG_SUBDIRS += fs/cramfs
380 TAG_SUBDIRS += fs/fat
381 TAG_SUBDIRS += fs/fdos
382 TAG_SUBDIRS += fs/jffs2
383 TAG_SUBDIRS += net
384 TAG_SUBDIRS += disk
385 TAG_SUBDIRS += common
386 TAG_SUBDIRS += drivers/bios_emulator
387 TAG_SUBDIRS += drivers/block
388 TAG_SUBDIRS += drivers/hwmon
389 TAG_SUBDIRS += drivers/i2c
390 TAG_SUBDIRS += drivers/input
391 TAG_SUBDIRS += drivers/misc
392 TAG_SUBDIRS += drivers/mtd
393 TAG_SUBDIRS += drivers/mtd/nand
394 TAG_SUBDIRS += drivers/mtd/nand_legacy
395 TAG_SUBDIRS += drivers/mtd/onenand
396 TAG_SUBDIRS += drivers/net
397 TAG_SUBDIRS += drivers/net/sk98lin
398 TAG_SUBDIRS += drivers/pci
399 TAG_SUBDIRS += drivers/pcmcia
400 TAG_SUBDIRS += drivers/qe
401 TAG_SUBDIRS += drivers/rtc
402 TAG_SUBDIRS += drivers/serial
403 TAG_SUBDIRS += drivers/spi
404 TAG_SUBDIRS += drivers/usb
405 TAG_SUBDIRS += drivers/video
407 tags ctags:
408 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
409 -name '*.[ch]' -print`
411 etags:
412 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
413 -name '*.[ch]' -print`
414 cscope:
415 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
416 > cscope.files
417 cscope -b -q -k
419 $(obj)System.map: $(obj)u-boot
420 @$(NM) $< | \
421 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
422 sort > $(obj)System.map
425 # Auto-generate the autoconf.mk file (which is included by all makefiles)
427 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
428 # the dep file is only include in this top level makefile to determine when
429 # to regenerate the autoconf.mk file.
430 $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
431 @$(XECHO) Generating include/autoconf.mk ; \
432 set -e ; \
433 : Generate the dependancies ; \
434 $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
435 : Extract the config macros ; \
436 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
438 sinclude $(obj)include/autoconf.mk.dep
440 #########################################################################
441 else # !config.mk
442 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
443 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
444 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
445 dep tags ctags etags cscope $(obj)System.map:
446 @echo "System not configured - see README" >&2
447 @ exit 1
448 endif # config.mk
450 .PHONY : CHANGELOG
451 CHANGELOG:
452 git log --no-merges U-Boot-1_1_5.. | \
453 unexpand -a | sed -e 's/\s\s*$$//' > $@
455 #########################################################################
457 unconfig:
458 @rm -f $(obj)include/config.h $(obj)include/config.mk \
459 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
460 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
462 #========================================================================
463 # PowerPC
464 #========================================================================
466 #########################################################################
467 ## MPC5xx Systems
468 #########################################################################
470 canmb_config: unconfig
471 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
473 cmi_mpc5xx_config: unconfig
474 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
476 PATI_config: unconfig
477 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
479 #########################################################################
480 ## MPC5xxx Systems
481 #########################################################################
483 aev_config: unconfig
484 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
486 BC3450_config: unconfig
487 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
489 cpci5200_config: unconfig
490 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
492 hmi1001_config: unconfig
493 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
495 Lite5200_config \
496 Lite5200_LOWBOOT_config \
497 Lite5200_LOWBOOT08_config \
498 icecube_5200_config \
499 icecube_5200_LOWBOOT_config \
500 icecube_5200_LOWBOOT08_config \
501 icecube_5200_DDR_config \
502 icecube_5200_DDR_LOWBOOT_config \
503 icecube_5200_DDR_LOWBOOT08_config \
504 icecube_5100_config: unconfig
505 @mkdir -p $(obj)include
506 @mkdir -p $(obj)board/icecube
507 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
508 { if [ "$(findstring DDR,$@)" ] ; \
509 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
510 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
511 fi ; \
512 $(XECHO) "... with LOWBOOT configuration" ; \
514 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
515 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
516 echo "... with 8 MB flash only" ; \
517 $(XECHO) "... with LOWBOOT configuration" ; \
519 @[ -z "$(findstring DDR,$@)" ] || \
520 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
521 $(XECHO) "... DDR memory revision" ; \
523 @[ -z "$(findstring 5200,$@)" ] || \
524 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
525 $(XECHO) "... with MPC5200 processor" ; \
527 @[ -z "$(findstring 5100,$@)" ] || \
528 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
529 $(XECHO) "... with MGT5100 processor" ; \
531 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
533 jupiter_config: unconfig
534 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
536 v38b_config: unconfig
537 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
539 inka4x0_config: unconfig
540 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
542 lite5200b_config \
543 lite5200b_PM_config \
544 lite5200b_LOWBOOT_config: unconfig
545 @mkdir -p $(obj)include
546 @mkdir -p $(obj)board/icecube
547 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
548 @ $(XECHO) "... DDR memory revision"
549 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
550 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
551 @[ -z "$(findstring _PM_,$@)" ] || \
552 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
553 $(XECHO) "... with power management (low-power mode) support" ; \
555 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
556 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
557 $(XECHO) "... with LOWBOOT configuration" ; \
559 @ $(XECHO) "... with MPC5200B processor"
560 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
562 mcc200_config \
563 mcc200_SDRAM_config \
564 mcc200_highboot_config \
565 mcc200_COM12_config \
566 mcc200_COM12_SDRAM_config \
567 mcc200_COM12_highboot_config \
568 mcc200_COM12_highboot_SDRAM_config \
569 mcc200_highboot_SDRAM_config \
570 prs200_config \
571 prs200_DDR_config \
572 prs200_highboot_config \
573 prs200_highboot_DDR_config: unconfig
574 @mkdir -p $(obj)include
575 @mkdir -p $(obj)board/mcc200
576 @[ -n "$(findstring highboot,$@)" ] || \
577 { $(XECHO) "... with lowboot configuration" ; \
579 @[ -z "$(findstring highboot,$@)" ] || \
580 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
581 $(XECHO) "... with highboot configuration" ; \
583 @[ -n "$(findstring _SDRAM,$@)" ] || \
584 { if [ -n "$(findstring mcc200,$@)" ]; \
585 then \
586 $(XECHO) "... with DDR" ; \
587 else \
588 if [ -n "$(findstring _DDR,$@)" ];\
589 then \
590 $(XECHO) "... with DDR" ; \
591 else \
592 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
593 $(XECHO) "... with SDRAM" ; \
594 fi; \
595 fi; \
597 @[ -z "$(findstring _SDRAM,$@)" ] || \
598 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
599 $(XECHO) "... with SDRAM" ; \
601 @[ -z "$(findstring COM12,$@)" ] || \
602 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
603 $(XECHO) "... with console on COM12" ; \
605 @[ -z "$(findstring prs200,$@)" ] || \
606 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
608 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
610 mecp5200_config: unconfig
611 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
613 munices_config: unconfig
614 @$(MKCONFIG) munices ppc mpc5xxx munices
616 o2dnt_config: unconfig
617 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
619 pf5200_config: unconfig
620 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
622 PM520_config \
623 PM520_DDR_config \
624 PM520_ROMBOOT_config \
625 PM520_ROMBOOT_DDR_config: unconfig
626 @mkdir -p $(obj)include
627 @[ -z "$(findstring DDR,$@)" ] || \
628 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
629 $(XECHO) "... DDR memory revision" ; \
631 @[ -z "$(findstring ROMBOOT,$@)" ] || \
632 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
633 $(XECHO) "... booting from 8-bit flash" ; \
635 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
637 smmaco4_config: unconfig
638 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
640 cm5200_config: unconfig
641 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
643 spieval_config: unconfig
644 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
646 TB5200_B_config \
647 TB5200_config: unconfig
648 @mkdir -p $(obj)include
649 @[ -z "$(findstring _B,$@)" ] || \
650 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
651 $(XECHO) "... with MPC5200B processor" ; \
653 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
655 MINI5200_config \
656 EVAL5200_config \
657 TOP5200_config: unconfig
658 @mkdir -p $(obj)include
659 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
660 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
662 Total5100_config \
663 Total5200_config \
664 Total5200_lowboot_config \
665 Total5200_Rev2_config \
666 Total5200_Rev2_lowboot_config: unconfig
667 @mkdir -p $(obj)include
668 @mkdir -p $(obj)board/total5200
669 @[ -z "$(findstring 5100,$@)" ] || \
670 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
671 $(XECHO) "... with MGT5100 processor" ; \
673 @[ -z "$(findstring 5200,$@)" ] || \
674 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
675 $(XECHO) "... with MPC5200 processor" ; \
677 @[ -n "$(findstring Rev,$@)" ] || \
678 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
679 $(XECHO) "... revision 1 board" ; \
681 @[ -z "$(findstring Rev2_,$@)" ] || \
682 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
683 $(XECHO) "... revision 2 board" ; \
685 @[ -z "$(findstring lowboot_,$@)" ] || \
686 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
687 $(XECHO) "... with lowboot configuration" ; \
689 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
691 cam5200_config \
692 cam5200_niosflash_config \
693 fo300_config \
694 MiniFAP_config \
695 TQM5200S_config \
696 TQM5200S_HIGHBOOT_config \
697 TQM5200_B_config \
698 TQM5200_B_HIGHBOOT_config \
699 TQM5200_config \
700 TQM5200_STK100_config: unconfig
701 @mkdir -p $(obj)include
702 @mkdir -p $(obj)board/tqm5200
703 @[ -z "$(findstring cam5200,$@)" ] || \
704 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
705 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
706 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
707 $(XECHO) "... TQM5200S on Cam5200" ; \
709 @[ -z "$(findstring niosflash,$@)" ] || \
710 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
711 $(XECHO) "... with NIOS flash driver" ; \
713 @[ -z "$(findstring fo300,$@)" ] || \
714 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
715 $(XECHO) "... TQM5200 on FO300" ; \
717 @[ -z "$(findstring MiniFAP,$@)" ] || \
718 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
719 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
721 @[ -z "$(findstring STK100,$@)" ] || \
722 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
723 $(XECHO) "... on a STK52XX.100 base board" ; \
725 @[ -z "$(findstring TQM5200_B,$@)" ] || \
726 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
728 @[ -z "$(findstring TQM5200S,$@)" ] || \
729 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
730 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
732 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
733 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
735 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
736 uc101_config: unconfig
737 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
738 motionpro_config: unconfig
739 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
742 #########################################################################
743 ## MPC512x Systems
744 #########################################################################
745 ads5121_config \
746 ads5121_PCI_config \
747 : unconfig
748 @mkdir -p $(obj)include
749 @if [ "$(findstring _PCI_,$@)" ] ; then \
750 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
751 $(XECHO) "... with PCI enabled" ; \
753 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
756 #########################################################################
757 ## MPC8xx Systems
758 #########################################################################
760 Adder_config \
761 Adder87x_config \
762 AdderII_config \
763 : unconfig
764 @mkdir -p $(obj)include
765 $(if $(findstring AdderII,$@), \
766 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
767 @$(MKCONFIG) -a Adder ppc mpc8xx adder
769 AdderUSB_config: unconfig
770 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
772 ADS860_config \
773 FADS823_config \
774 FADS850SAR_config \
775 MPC86xADS_config \
776 MPC885ADS_config \
777 FADS860T_config: unconfig
778 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
780 AMX860_config : unconfig
781 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
783 c2mon_config: unconfig
784 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
786 CCM_config: unconfig
787 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
789 cogent_mpc8xx_config: unconfig
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
792 ELPT860_config: unconfig
793 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
795 EP88x_config: unconfig
796 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
798 ESTEEM192E_config: unconfig
799 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
801 ETX094_config : unconfig
802 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
804 FLAGADM_config: unconfig
805 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
807 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
809 GEN860T_SC_config \
810 GEN860T_config: unconfig
811 @mkdir -p $(obj)include
812 @[ -z "$(findstring _SC,$@)" ] || \
813 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
814 $(XECHO) "With reduced H/W feature set (SC)..." ; \
816 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
818 GENIETV_config: unconfig
819 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
821 GTH_config: unconfig
822 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
824 hermes_config : unconfig
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
827 HMI10_config : unconfig
828 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
830 IAD210_config: unconfig
831 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
833 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
835 ICU862_100MHz_config \
836 ICU862_config: unconfig
837 @mkdir -p $(obj)include
838 @[ -z "$(findstring _100MHz,$@)" ] || \
839 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
840 $(XECHO) "... with 100MHz system clock" ; \
842 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
844 IP860_config : unconfig
845 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
847 IVML24_256_config \
848 IVML24_128_config \
849 IVML24_config: unconfig
850 @mkdir -p $(obj)include
851 @[ -z "$(findstring IVML24_config,$@)" ] || \
852 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
854 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
855 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
857 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
858 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
860 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
862 IVMS8_256_config \
863 IVMS8_128_config \
864 IVMS8_config: unconfig
865 @mkdir -p $(obj)include
866 @[ -z "$(findstring IVMS8_config,$@)" ] || \
867 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
869 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
870 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
872 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
873 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
875 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
877 KUP4K_config : unconfig
878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
880 KUP4X_config : unconfig
881 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
883 LANTEC_config : unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
886 lwmon_config: unconfig
887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
889 MBX_config \
890 MBX860T_config: unconfig
891 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
893 mgsuvd_config: unconfig
894 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
896 MHPC_config: unconfig
897 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
899 MVS1_config : unconfig
900 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
902 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
904 NETVIA_V2_config \
905 NETVIA_config: unconfig
906 @mkdir -p $(obj)include
907 @[ -z "$(findstring NETVIA_config,$@)" ] || \
908 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
909 $(XECHO) "... Version 1" ; \
911 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
912 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
913 $(XECHO) "... Version 2" ; \
915 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
917 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
919 NETPHONE_V2_config \
920 NETPHONE_config: unconfig
921 @mkdir -p $(obj)include
922 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
923 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
925 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
926 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
928 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
930 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
932 NETTA_ISDN_6412_SWAPHOOK_config \
933 NETTA_ISDN_SWAPHOOK_config \
934 NETTA_6412_SWAPHOOK_config \
935 NETTA_SWAPHOOK_config \
936 NETTA_ISDN_6412_config \
937 NETTA_ISDN_config \
938 NETTA_6412_config \
939 NETTA_config: unconfig
940 @mkdir -p $(obj)include
941 @[ -z "$(findstring ISDN_,$@)" ] || \
942 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
944 @[ -n "$(findstring ISDN_,$@)" ] || \
945 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
947 @[ -z "$(findstring 6412_,$@)" ] || \
948 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
950 @[ -n "$(findstring 6412_,$@)" ] || \
951 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
953 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
954 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
956 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
957 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
959 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
961 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
963 NETTA2_V2_config \
964 NETTA2_config: unconfig
965 @mkdir -p $(obj)include
966 @[ -z "$(findstring NETTA2_config,$@)" ] || \
967 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
969 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
970 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
972 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
974 NC650_Rev1_config \
975 NC650_Rev2_config \
976 CP850_config: unconfig
977 @mkdir -p $(obj)include
978 @[ -z "$(findstring CP850,$@)" ] || \
979 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
980 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
982 @[ -z "$(findstring Rev1,$@)" ] || \
983 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
985 @[ -z "$(findstring Rev2,$@)" ] || \
986 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
988 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
990 NX823_config: unconfig
991 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
993 pcu_e_config: unconfig
994 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
996 QS850_config: unconfig
997 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
999 QS823_config: unconfig
1000 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
1002 QS860T_config: unconfig
1003 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
1005 quantum_config: unconfig
1006 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1008 R360MPI_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
1011 RBC823_config: unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1014 RPXClassic_config: unconfig
1015 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
1017 RPXlite_config: unconfig
1018 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
1020 RPXlite_DW_64_config \
1021 RPXlite_DW_LCD_config \
1022 RPXlite_DW_64_LCD_config \
1023 RPXlite_DW_NVRAM_config \
1024 RPXlite_DW_NVRAM_64_config \
1025 RPXlite_DW_NVRAM_LCD_config \
1026 RPXlite_DW_NVRAM_64_LCD_config \
1027 RPXlite_DW_config: unconfig
1028 @mkdir -p $(obj)include
1029 @[ -z "$(findstring _64,$@)" ] || \
1030 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1031 $(XECHO) "... with 64MHz system clock ..."; \
1033 @[ -z "$(findstring _LCD,$@)" ] || \
1034 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1035 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1036 $(XECHO) "... with LCD display ..."; \
1038 @[ -z "$(findstring _NVRAM,$@)" ] || \
1039 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1040 $(XECHO) "... with ENV in NVRAM ..."; \
1042 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1044 rmu_config: unconfig
1045 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1047 RRvision_config: unconfig
1048 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1050 RRvision_LCD_config: unconfig
1051 @mkdir -p $(obj)include
1052 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1053 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1054 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1056 SM850_config : unconfig
1057 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1059 spc1920_config: unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1062 SPD823TS_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1065 stxxtc_config: unconfig
1066 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1068 svm_sc8xx_config: unconfig
1069 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1071 SXNI855T_config: unconfig
1072 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1074 # EMK MPC8xx based modules
1075 TOP860_config: unconfig
1076 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1078 # Play some tricks for configuration selection
1079 # Only 855 and 860 boards may come with FEC
1080 # and only 823 boards may have LCD support
1081 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1083 FPS850L_config \
1084 FPS860L_config \
1085 NSCU_config \
1086 TQM823L_config \
1087 TQM823L_LCD_config \
1088 TQM850L_config \
1089 TQM855L_config \
1090 TQM860L_config \
1091 TQM862L_config \
1092 TQM823M_config \
1093 TQM850M_config \
1094 TQM855M_config \
1095 TQM860M_config \
1096 TQM862M_config \
1097 TQM866M_config \
1098 TQM885D_config \
1099 TK885D_config \
1100 virtlab2_config: unconfig
1101 @mkdir -p $(obj)include
1102 @[ -z "$(findstring _LCD,$@)" ] || \
1103 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1104 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1105 $(XECHO) "... with LCD display" ; \
1107 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1109 TTTech_config: unconfig
1110 @mkdir -p $(obj)include
1111 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1112 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1113 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1115 uc100_config : unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1118 v37_config: unconfig
1119 @mkdir -p $(obj)include
1120 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1121 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1122 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1124 wtk_config: unconfig
1125 @mkdir -p $(obj)include
1126 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1127 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1128 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1130 #########################################################################
1131 ## PPC4xx Systems
1132 #########################################################################
1133 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1135 acadia_config: unconfig
1136 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1138 acadia_nand_config: unconfig
1139 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1140 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1141 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1142 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1143 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1144 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1146 ADCIOP_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1149 alpr_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1152 AP1000_config:unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1155 APC405_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1158 AR405_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1161 ASH405_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1164 bamboo_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1167 bamboo_nand_config: unconfig
1168 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1169 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1170 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1171 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1172 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1173 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1175 bubinga_config: unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1178 CANBT_config: unconfig
1179 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1181 # Canyonlands & Glacier use different U-Boot images
1182 canyonlands_config \
1183 glacier_config: unconfig
1184 @mkdir -p $(obj)include
1185 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1186 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1187 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1189 canyonlands_nand_config: unconfig
1190 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1191 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1192 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1193 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1194 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1195 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1197 CATcenter_config \
1198 CATcenter_25_config \
1199 CATcenter_33_config: unconfig
1200 @mkdir -p $(obj)include
1201 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1202 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1203 @[ -z "$(findstring _25,$@)" ] || \
1204 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1205 $(XECHO) "SysClk = 25MHz" ; \
1207 @[ -z "$(findstring _33,$@)" ] || \
1208 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1209 $(XECHO) "SysClk = 33MHz" ; \
1211 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1213 CPCI2DP_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1216 CPCI405_config \
1217 CPCI4052_config \
1218 CPCI405DT_config \
1219 CPCI405AB_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1221 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1223 CPCIISER4_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1226 CRAYL1_config: unconfig
1227 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1229 csb272_config: unconfig
1230 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1232 csb472_config: unconfig
1233 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1235 DASA_SIM_config: unconfig
1236 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1238 DP405_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1241 DU405_config: unconfig
1242 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1244 DU440_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1247 ebony_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1250 ERIC_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1253 EXBITGEN_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1256 G2000_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1259 hcu4_config: unconfig
1260 @mkdir -p $(obj)board/netstal/common
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1263 hcu5_config: unconfig
1264 @mkdir -p $(obj)board/netstal/common
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1267 HH405_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1270 HUB405_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1273 JSE_config: unconfig
1274 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1276 KAREF_config: unconfig
1277 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1279 katmai_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1282 # Kilauea & Haleakala images are identical (recognized via PVR)
1283 kilauea_config \
1284 haleakala_config: unconfig
1285 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1287 kilauea_nand_config \
1288 haleakala_nand_config: unconfig
1289 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1290 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1291 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1292 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1293 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1294 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1296 korat_config: unconfig
1297 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1299 luan_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1302 lwmon5_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1305 makalu_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1308 mcu25_config: unconfig
1309 @mkdir -p $(obj)board/netstal/common
1310 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1312 METROBOX_config: unconfig
1313 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1315 MIP405_config: unconfig
1316 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1318 MIP405T_config: unconfig
1319 @mkdir -p $(obj)include
1320 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1321 @$(XECHO) "Enable subset config for MIP405T"
1322 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1324 ML2_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1327 ml300_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1330 ocotea_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1333 OCRTC_config \
1334 ORSG_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1337 p3p440_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1340 PCI405_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1343 pcs440ep_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1346 PIP405_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1349 PLU405_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1352 PMC405_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1355 PMC440_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1358 PPChameleonEVB_config \
1359 PPChameleonEVB_BA_25_config \
1360 PPChameleonEVB_ME_25_config \
1361 PPChameleonEVB_HI_25_config \
1362 PPChameleonEVB_BA_33_config \
1363 PPChameleonEVB_ME_33_config \
1364 PPChameleonEVB_HI_33_config: unconfig
1365 @mkdir -p $(obj)include
1366 @[ -z "$(findstring EVB_BA,$@)" ] || \
1367 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1368 $(XECHO) "... BASIC model" ; \
1370 @[ -z "$(findstring EVB_ME,$@)" ] || \
1371 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1372 $(XECHO) "... MEDIUM model" ; \
1374 @[ -z "$(findstring EVB_HI,$@)" ] || \
1375 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1376 $(XECHO) "... HIGH-END model" ; \
1378 @[ -z "$(findstring _25,$@)" ] || \
1379 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1380 $(XECHO) "SysClk = 25MHz" ; \
1382 @[ -z "$(findstring _33,$@)" ] || \
1383 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1384 $(XECHO) "SysClk = 33MHz" ; \
1386 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1388 sbc405_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1391 sequoia_config \
1392 rainier_config: unconfig
1393 @mkdir -p $(obj)include
1394 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1395 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1396 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1398 sequoia_nand_config \
1399 rainier_nand_config: unconfig
1400 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1401 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1402 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1403 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1404 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1405 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1406 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1407 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1409 sc3_config:unconfig
1410 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1412 taihu_config: unconfig
1413 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1415 taishan_config: unconfig
1416 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1418 VOH405_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1421 VOM405_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1424 CMS700_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1427 W7OLMC_config \
1428 W7OLMG_config: unconfig
1429 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1431 # Walnut & Sycamore images are identical (recognized via PVR)
1432 walnut_config \
1433 sycamore_config: unconfig
1434 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1436 WUH405_config: unconfig
1437 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1439 XPEDITE1K_config: unconfig
1440 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1442 yosemite_config \
1443 yellowstone_config: unconfig
1444 @mkdir -p $(obj)include
1445 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1446 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1447 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1449 yucca_config: unconfig
1450 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1452 zeus_config: unconfig
1453 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1455 #########################################################################
1456 ## MPC8220 Systems
1457 #########################################################################
1459 Alaska8220_config \
1460 Yukon8220_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1463 sorcery_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1466 #########################################################################
1467 ## MPC824x Systems
1468 #########################################################################
1469 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1471 A3000_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1474 barco_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1477 BMW_config: unconfig
1478 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1480 CPC45_config \
1481 CPC45_ROMBOOT_config: unconfig
1482 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1483 @cd $(obj)include ; \
1484 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1485 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1486 $(XECHO) "... booting from 8-bit flash" ; \
1487 else \
1488 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1489 $(XECHO) "... booting from 64-bit flash" ; \
1490 fi; \
1491 echo "export CONFIG_BOOT_ROM" >> config.mk;
1493 CU824_config: unconfig
1494 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1496 debris_config: unconfig
1497 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1499 eXalion_config: unconfig
1500 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1502 HIDDEN_DRAGON_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1505 kvme080_config: unconfig
1506 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1508 MOUSSE_config: unconfig
1509 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1511 MUSENKI_config: unconfig
1512 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1514 MVBLUE_config: unconfig
1515 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1517 OXC_config: unconfig
1518 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1520 PN62_config: unconfig
1521 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1523 Sandpoint8240_config: unconfig
1524 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1526 Sandpoint8245_config: unconfig
1527 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1529 sbc8240_config: unconfig
1530 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1532 SL8245_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1535 utx8245_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1538 #########################################################################
1539 ## MPC8260 Systems
1540 #########################################################################
1542 atc_config: unconfig
1543 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1545 cogent_mpc8260_config: unconfig
1546 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1548 CPU86_config \
1549 CPU86_ROMBOOT_config: unconfig
1550 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1551 @cd $(obj)include ; \
1552 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1553 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1554 $(XECHO) "... booting from 8-bit flash" ; \
1555 else \
1556 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1557 $(XECHO) "... booting from 64-bit flash" ; \
1558 fi; \
1559 echo "export CONFIG_BOOT_ROM" >> config.mk;
1561 CPU87_config \
1562 CPU87_ROMBOOT_config: unconfig
1563 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1564 @cd $(obj)include ; \
1565 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1566 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1567 $(XECHO) "... booting from 8-bit flash" ; \
1568 else \
1569 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1570 $(XECHO) "... booting from 64-bit flash" ; \
1571 fi; \
1572 echo "export CONFIG_BOOT_ROM" >> config.mk;
1574 ep8248_config \
1575 ep8248E_config : unconfig
1576 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1578 ep8260_config: unconfig
1579 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1581 ep82xxm_config: unconfig
1582 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1584 gw8260_config: unconfig
1585 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1587 hymod_config: unconfig
1588 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1590 IDS8247_config: unconfig
1591 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1593 IPHASE4539_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1596 ISPAN_config \
1597 ISPAN_REVB_config: unconfig
1598 @mkdir -p $(obj)include
1599 @if [ "$(findstring _REVB_,$@)" ] ; then \
1600 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1602 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1604 mgcoge_config : unconfig
1605 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1607 MPC8260ADS_config \
1608 MPC8260ADS_lowboot_config \
1609 MPC8260ADS_33MHz_config \
1610 MPC8260ADS_33MHz_lowboot_config \
1611 MPC8260ADS_40MHz_config \
1612 MPC8260ADS_40MHz_lowboot_config \
1613 MPC8272ADS_config \
1614 MPC8272ADS_lowboot_config \
1615 PQ2FADS_config \
1616 PQ2FADS_lowboot_config \
1617 PQ2FADS-VR_config \
1618 PQ2FADS-VR_lowboot_config \
1619 PQ2FADS-ZU_config \
1620 PQ2FADS-ZU_lowboot_config \
1621 PQ2FADS-ZU_66MHz_config \
1622 PQ2FADS-ZU_66MHz_lowboot_config \
1623 : unconfig
1624 @mkdir -p $(obj)include
1625 @mkdir -p $(obj)board/freescale/mpc8260ads
1626 $(if $(findstring PQ2FADS,$@), \
1627 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1628 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1629 $(if $(findstring MHz,$@), \
1630 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1631 $(if $(findstring VR,$@), \
1632 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1633 @[ -z "$(findstring lowboot_,$@)" ] || \
1634 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1635 $(XECHO) "... with lowboot configuration" ; \
1637 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
1639 MPC8266ADS_config: unconfig
1640 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1642 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1643 PM825_config \
1644 PM825_ROMBOOT_config \
1645 PM825_BIGFLASH_config \
1646 PM825_ROMBOOT_BIGFLASH_config \
1647 PM826_config \
1648 PM826_ROMBOOT_config \
1649 PM826_BIGFLASH_config \
1650 PM826_ROMBOOT_BIGFLASH_config: unconfig
1651 @mkdir -p $(obj)include
1652 @mkdir -p $(obj)board/pm826
1653 @if [ "$(findstring PM825_,$@)" ] ; then \
1654 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1655 else \
1656 >$(obj)include/config.h ; \
1658 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1659 $(XECHO) "... booting from 8-bit flash" ; \
1660 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1661 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1662 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1663 $(XECHO) "... with 32 MB Flash" ; \
1664 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1665 fi; \
1666 else \
1667 $(XECHO) "... booting from 64-bit flash" ; \
1668 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1669 $(XECHO) "... with 32 MB Flash" ; \
1670 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1671 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1672 else \
1673 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1674 fi; \
1676 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1678 PM828_config \
1679 PM828_PCI_config \
1680 PM828_ROMBOOT_config \
1681 PM828_ROMBOOT_PCI_config: unconfig
1682 @mkdir -p $(obj)include
1683 @mkdir -p $(obj)board/pm826
1684 @if [ "$(findstring _PCI_,$@)" ] ; then \
1685 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1686 $(XECHO) "... with PCI enabled" ; \
1688 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1689 $(XECHO) "... booting from 8-bit flash" ; \
1690 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1691 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1693 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1695 ppmc8260_config: unconfig
1696 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1698 Rattler8248_config \
1699 Rattler_config: unconfig
1700 @mkdir -p $(obj)include
1701 $(if $(findstring 8248,$@), \
1702 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1703 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1705 RPXsuper_config: unconfig
1706 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1708 rsdproto_config: unconfig
1709 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1711 sacsng_config: unconfig
1712 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1714 sbc8260_config: unconfig
1715 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1717 SCM_config: unconfig
1718 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1720 TQM8255_AA_config \
1721 TQM8260_AA_config \
1722 TQM8260_AB_config \
1723 TQM8260_AC_config \
1724 TQM8260_AD_config \
1725 TQM8260_AE_config \
1726 TQM8260_AF_config \
1727 TQM8260_AG_config \
1728 TQM8260_AH_config \
1729 TQM8260_AI_config \
1730 TQM8265_AA_config: unconfig
1731 @mkdir -p $(obj)include
1732 @case "$@" in \
1733 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1734 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1735 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1736 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1737 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1738 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1739 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1740 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1741 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1742 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1743 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1744 esac; \
1745 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1746 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1747 fi; \
1748 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1749 echo "... with $${CFREQ}MHz system clock" ; \
1750 if [ "$${CACHE}" = "yes" ] ; then \
1751 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1752 $(XECHO) "... with L2 Cache support" ; \
1753 else \
1754 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1755 $(XECHO) "... without L2 Cache support" ; \
1756 fi; \
1757 if [ "$${BMODE}" = "60x" ] ; then \
1758 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1759 $(XECHO) "... with 60x Bus Mode" ; \
1760 else \
1761 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1762 $(XECHO) "... without 60x Bus Mode" ; \
1764 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1766 TQM8272_config: unconfig
1767 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1769 VoVPN-GW_66MHz_config \
1770 VoVPN-GW_100MHz_config: unconfig
1771 @mkdir -p $(obj)include
1772 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1773 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1775 ZPC1900_config: unconfig
1776 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1778 #########################################################################
1779 ## Coldfire
1780 #########################################################################
1782 M52277EVB_config: unconfig
1783 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1785 M5235EVB_config \
1786 M5235EVB_Flash16_config \
1787 M5235EVB_Flash32_config: unconfig
1788 @case "$@" in \
1789 M5235EVB_config) FLASH=16;; \
1790 M5235EVB_Flash16_config) FLASH=16;; \
1791 M5235EVB_Flash32_config) FLASH=32;; \
1792 esac; \
1793 if [ "$${FLASH}" != "16" ] ; then \
1794 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1795 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1796 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1797 else \
1798 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1799 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1801 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1803 M5249EVB_config : unconfig
1804 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1806 M5253EVBE_config : unconfig
1807 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1809 cobra5272_config : unconfig
1810 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1812 EB+MCF-EV123_config : unconfig
1813 @mkdir -p $(obj)include
1814 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1815 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1816 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1818 EB+MCF-EV123_internal_config : unconfig
1819 @mkdir -p $(obj)include
1820 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1821 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1822 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1824 idmr_config : unconfig
1825 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1827 M5271EVB_config : unconfig
1828 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1830 M5272C3_config : unconfig
1831 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1833 M5275EVB_config : unconfig
1834 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1836 M5282EVB_config : unconfig
1837 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1839 TASREG_config : unconfig
1840 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1842 M5329AFEE_config \
1843 M5329BFEE_config : unconfig
1844 @case "$@" in \
1845 M5329AFEE_config) NAND=0;; \
1846 M5329BFEE_config) NAND=16;; \
1847 esac; \
1848 if [ "$${NAND}" != "0" ] ; then \
1849 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1851 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1853 M5373EVB_config : unconfig
1854 @case "$@" in \
1855 M5373EVB_config) NAND=16;; \
1856 esac; \
1857 if [ "$${NAND}" != "0" ] ; then \
1858 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1860 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1862 M54455EVB_config \
1863 M54455EVB_atmel_config \
1864 M54455EVB_intel_config \
1865 M54455EVB_a33_config \
1866 M54455EVB_a66_config \
1867 M54455EVB_i33_config \
1868 M54455EVB_i66_config : unconfig
1869 @case "$@" in \
1870 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1871 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1872 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1873 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1874 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1875 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1876 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1877 esac; \
1878 if [ "$${FLASH}" = "INTEL" ] ; then \
1879 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1880 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1881 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1882 $(XECHO) "... with INTEL boot..." ; \
1883 else \
1884 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1885 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1886 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1887 $(XECHO) "... with ATMEL boot..." ; \
1888 fi; \
1889 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1890 $(XECHO) "... with $${FREQ}Hz input clock"
1891 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1893 M5475AFE_config \
1894 M5475BFE_config \
1895 M5475CFE_config \
1896 M5475DFE_config \
1897 M5475EFE_config \
1898 M5475FFE_config \
1899 M5475GFE_config : unconfig
1900 @case "$@" in \
1901 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1902 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1903 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1904 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1905 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1906 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1907 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1908 esac; \
1909 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1910 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1911 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1912 if [ "$${RAM1}" != "0" ] ; then \
1913 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1914 fi; \
1915 if [ "$${CODE}" != "0" ] ; then \
1916 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1917 fi; \
1918 if [ "$${VID}" == "1" ] ; then \
1919 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1920 fi; \
1921 if [ "$${USB}" == "1" ] ; then \
1922 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1924 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1926 M5485AFE_config \
1927 M5485BFE_config \
1928 M5485CFE_config \
1929 M5485DFE_config \
1930 M5485EFE_config \
1931 M5485FFE_config \
1932 M5485GFE_config \
1933 M5485HFE_config : unconfig
1934 @case "$@" in \
1935 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1936 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1937 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1938 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1939 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1940 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1941 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1942 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1943 esac; \
1944 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1945 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1946 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1947 if [ "$${RAM1}" != "0" ] ; then \
1948 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1949 fi; \
1950 if [ "$${CODE}" != "0" ] ; then \
1951 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1952 fi; \
1953 if [ "$${VID}" == "1" ] ; then \
1954 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1955 fi; \
1956 if [ "$${USB}" == "1" ] ; then \
1957 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1959 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1961 #########################################################################
1962 ## MPC83xx Systems
1963 #########################################################################
1965 MPC8313ERDB_33_config \
1966 MPC8313ERDB_66_config: unconfig
1967 @mkdir -p $(obj)include
1968 @if [ "$(findstring _33_,$@)" ] ; then \
1969 $(XECHO) -n "...33M ..." ; \
1970 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1971 fi ; \
1972 if [ "$(findstring _66_,$@)" ] ; then \
1973 $(XECHO) -n "...66M..." ; \
1974 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1975 fi ;
1976 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1978 MPC8315ERDB_config: unconfig
1979 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1981 MPC8323ERDB_config: unconfig
1982 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1984 MPC832XEMDS_config \
1985 MPC832XEMDS_HOST_33_config \
1986 MPC832XEMDS_HOST_66_config \
1987 MPC832XEMDS_SLAVE_config \
1988 MPC832XEMDS_ATM_config: unconfig
1989 @mkdir -p $(obj)include
1990 @if [ "$(findstring _HOST_,$@)" ] ; then \
1991 $(XECHO) -n "... PCI HOST " ; \
1992 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1993 fi ; \
1994 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1995 $(XECHO) "...PCI SLAVE 66M" ; \
1996 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1997 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1998 fi ; \
1999 if [ "$(findstring _33_,$@)" ] ; then \
2000 $(XECHO) -n "...33M ..." ; \
2001 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2002 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2003 fi ; \
2004 if [ "$(findstring _66_,$@)" ] ; then \
2005 $(XECHO) -n "...66M..." ; \
2006 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2007 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2008 fi ; \
2009 if [ "$(findstring _ATM_,$@)" ] ; then \
2010 $(XECHO) -n "...ATM..." ; \
2011 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2012 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2013 fi ;
2014 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2016 MPC8349EMDS_config: unconfig
2017 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2019 MPC8349ITX_config \
2020 MPC8349ITX_LOWBOOT_config \
2021 MPC8349ITXGP_config: unconfig
2022 @mkdir -p $(obj)include
2023 @mkdir -p $(obj)board/freescale/mpc8349itx
2024 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2025 @if [ "$(findstring GP,$@)" ] ; then \
2026 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2028 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2029 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2031 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2033 MPC8360EMDS_config \
2034 MPC8360EMDS_HOST_33_config \
2035 MPC8360EMDS_HOST_66_config \
2036 MPC8360EMDS_SLAVE_config \
2037 MPC8360EMDS_ATM_config: unconfig
2038 @mkdir -p $(obj)include
2039 @if [ "$(findstring _HOST_,$@)" ] ; then \
2040 $(XECHO) -n "... PCI HOST " ; \
2041 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2042 fi ; \
2043 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2044 $(XECHO) "...PCI SLAVE 66M" ; \
2045 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2046 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2047 fi ; \
2048 if [ "$(findstring _33_,$@)" ] ; then \
2049 $(XECHO) -n "...33M ..." ; \
2050 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2051 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2052 fi ; \
2053 if [ "$(findstring _66_,$@)" ] ; then \
2054 $(XECHO) -n "...66M..." ; \
2055 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2056 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2057 fi ; \
2058 if [ "$(findstring _ATM_,$@)" ] ; then \
2059 $(XECHO) -n "...ATM..." ; \
2060 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2061 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2062 fi ;
2063 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2065 MPC8360ERDK_33_config \
2066 MPC8360ERDK_66_config \
2067 MPC8360ERDK_config: unconfig
2068 @mkdir -p $(obj)include
2069 @if [ "$(findstring _33_,$@)" ] ; then \
2070 $(XECHO) -n "... CLKIN 33MHz " ; \
2071 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2072 fi ;
2073 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2075 MPC837XEMDS_config \
2076 MPC837XEMDS_HOST_config: unconfig
2077 @mkdir -p $(obj)include
2078 @if [ "$(findstring _HOST_,$@)" ] ; then \
2079 $(XECHO) -n "... PCI HOST " ; \
2080 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2081 fi ;
2082 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2084 MPC837XERDB_config: unconfig
2085 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2087 sbc8349_config: unconfig
2088 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2090 TQM834x_config: unconfig
2091 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2094 #########################################################################
2095 ## MPC85xx Systems
2096 #########################################################################
2098 ATUM8548_config: unconfig
2099 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2101 MPC8540ADS_config: unconfig
2102 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2104 MPC8540EVAL_config \
2105 MPC8540EVAL_33_config \
2106 MPC8540EVAL_66_config \
2107 MPC8540EVAL_33_slave_config \
2108 MPC8540EVAL_66_slave_config: unconfig
2109 @mkdir -p $(obj)include
2110 @if [ "$(findstring _33_,$@)" ] ; then \
2111 $(XECHO) "... 33 MHz PCI" ; \
2112 else \
2113 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2114 $(XECHO) "... 66 MHz PCI" ; \
2115 fi ; \
2116 if [ "$(findstring _slave_,$@)" ] ; then \
2117 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2118 $(XECHO) " slave" ; \
2119 else \
2120 $(XECHO) " host" ; \
2122 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2124 MPC8560ADS_config: unconfig
2125 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2127 MPC8541CDS_legacy_config \
2128 MPC8541CDS_config: unconfig
2129 @mkdir -p $(obj)include
2130 @if [ "$(findstring _legacy_,$@)" ] ; then \
2131 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2132 $(XECHO) "... legacy" ; \
2134 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2136 MPC8544DS_config: unconfig
2137 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2139 MPC8548CDS_legacy_config \
2140 MPC8548CDS_config: unconfig
2141 @mkdir -p $(obj)include
2142 @if [ "$(findstring _legacy_,$@)" ] ; then \
2143 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2144 $(XECHO) "... legacy" ; \
2146 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2148 MPC8555CDS_legacy_config \
2149 MPC8555CDS_config: unconfig
2150 @mkdir -p $(obj)include
2151 @if [ "$(findstring _legacy_,$@)" ] ; then \
2152 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2153 $(XECHO) "... legacy" ; \
2155 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2157 MPC8568MDS_config: unconfig
2158 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2160 PM854_config: unconfig
2161 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2163 PM856_config: unconfig
2164 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2166 sbc8540_config \
2167 sbc8540_33_config \
2168 sbc8540_66_config: unconfig
2169 @mkdir -p $(obj)include
2170 @if [ "$(findstring _66_,$@)" ] ; then \
2171 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2172 $(XECHO) "... 66 MHz PCI" ; \
2173 else \
2174 $(XECHO) "... 33 MHz PCI" ; \
2176 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2178 sbc8548_config: unconfig
2179 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2181 sbc8560_config \
2182 sbc8560_33_config \
2183 sbc8560_66_config: unconfig
2184 @mkdir -p $(obj)include
2185 @if [ "$(findstring _66_,$@)" ] ; then \
2186 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2187 $(XECHO) "... 66 MHz PCI" ; \
2188 else \
2189 $(XECHO) "... 33 MHz PCI" ; \
2191 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2193 stxgp3_config: unconfig
2194 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2196 stxssa_config \
2197 stxssa_4M_config: unconfig
2198 @mkdir -p $(obj)include
2199 @if [ "$(findstring _4M_,$@)" ] ; then \
2200 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2201 $(XECHO) "... with 4 MiB flash memory" ; \
2203 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2205 TQM8540_config \
2206 TQM8541_config \
2207 TQM8555_config \
2208 TQM8560_config: unconfig
2209 @mkdir -p $(obj)include
2210 @CTYPE=$(subst TQM,,$(@:_config=)); \
2211 $(XECHO) "... TQM"$${CTYPE}; \
2212 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2213 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2214 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2215 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2216 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2217 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2219 #########################################################################
2220 ## MPC86xx Systems
2221 #########################################################################
2223 MPC8610HPCD_config: unconfig
2224 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2226 MPC8641HPCN_config: unconfig
2227 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2229 sbc8641d_config: unconfig
2230 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2232 #########################################################################
2233 ## 74xx/7xx Systems
2234 #########################################################################
2236 AmigaOneG3SE_config: unconfig
2237 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2239 BAB7xx_config: unconfig
2240 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2242 CPCI750_config: unconfig
2243 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2245 DB64360_config: unconfig
2246 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2248 DB64460_config: unconfig
2249 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2251 ELPPC_config: unconfig
2252 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2254 EVB64260_config \
2255 EVB64260_750CX_config: unconfig
2256 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2258 mpc7448hpc2_config: unconfig
2259 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
2261 P3G4_config: unconfig
2262 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2264 p3m750_config \
2265 p3m7448_config: unconfig
2266 @mkdir -p $(obj)include
2267 @if [ "$(findstring 750_,$@)" ] ; then \
2268 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2269 else \
2270 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2272 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2274 PCIPPC2_config \
2275 PCIPPC6_config: unconfig
2276 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2278 ZUMA_config: unconfig
2279 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2281 ppmc7xx_config: unconfig
2282 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2284 #========================================================================
2285 # ARM
2286 #========================================================================
2287 #########################################################################
2288 ## StrongARM Systems
2289 #########################################################################
2291 assabet_config : unconfig
2292 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2294 dnp1110_config : unconfig
2295 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2297 gcplus_config : unconfig
2298 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2300 lart_config : unconfig
2301 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2303 shannon_config : unconfig
2304 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2306 #########################################################################
2307 ## ARM92xT Systems
2308 #########################################################################
2310 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2312 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2314 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2316 at91cap9adk_config : unconfig
2317 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2319 at91rm9200dk_config : unconfig
2320 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2322 at91sam9260ek_config : unconfig
2323 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2325 cmc_pu2_config : unconfig
2326 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2328 csb637_config : unconfig
2329 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2331 mp2usb_config : unconfig
2332 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2334 m501sk_config : unconfig
2335 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2337 ########################################################################
2338 ## ARM Integrator boards - see doc/README-integrator for more info.
2339 integratorap_config \
2340 ap_config \
2341 ap966_config \
2342 ap922_config \
2343 ap922_XA10_config \
2344 ap7_config \
2345 ap720t_config \
2346 ap920t_config \
2347 ap926ejs_config \
2348 ap946es_config: unconfig
2349 @board/integratorap/split_by_variant.sh $@
2351 integratorcp_config \
2352 cp_config \
2353 cp920t_config \
2354 cp926ejs_config \
2355 cp946es_config \
2356 cp1136_config \
2357 cp966_config \
2358 cp922_config \
2359 cp922_XA10_config \
2360 cp1026_config: unconfig
2361 @board/integratorcp/split_by_variant.sh $@
2363 kb9202_config : unconfig
2364 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2366 lpd7a400_config \
2367 lpd7a404_config: unconfig
2368 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2370 mx1ads_config : unconfig
2371 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2373 mx1fs2_config : unconfig
2374 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2376 netstar_config: unconfig
2377 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2379 omap1510inn_config : unconfig
2380 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2382 omap5912osk_config : unconfig
2383 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2385 davinci_dvevm_config : unconfig
2386 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2388 davinci_schmoogie_config : unconfig
2389 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2391 davinci_sonata_config : unconfig
2392 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2394 pmdra_config : unconfig
2395 @$(MKCONFIG) $(@:_config=) arm arm926ejs pmdra prodrive davinci
2397 omap1610inn_config \
2398 omap1610inn_cs0boot_config \
2399 omap1610inn_cs3boot_config \
2400 omap1610inn_cs_autoboot_config \
2401 omap1610h2_config \
2402 omap1610h2_cs0boot_config \
2403 omap1610h2_cs3boot_config \
2404 omap1610h2_cs_autoboot_config: unconfig
2405 @mkdir -p $(obj)include
2406 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2407 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2408 $(XECHO) "... configured for CS0 boot"; \
2409 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2410 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2411 $(XECHO) "... configured for CS_AUTO boot"; \
2412 else \
2413 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2414 $(XECHO) "... configured for CS3 boot"; \
2416 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2418 omap730p2_config \
2419 omap730p2_cs0boot_config \
2420 omap730p2_cs3boot_config : unconfig
2421 @mkdir -p $(obj)include
2422 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2423 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2424 $(XECHO) "... configured for CS0 boot"; \
2425 else \
2426 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2427 $(XECHO) "... configured for CS3 boot"; \
2429 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2431 sbc2410x_config: unconfig
2432 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2434 gta01_config \
2435 gta01v3_config \
2436 gta01bv2_config \
2437 gta01bv3_config \
2438 gta01bv4_config \
2439 gta01v4_config : unconfig
2440 @sh board/neo1973/gta01/split_by_variant.sh $@
2442 qt2410_config : unconfig
2443 @./mkconfig $(@:_config=) arm arm920t qt2410 NULL s3c24x0
2445 scb9328_config : unconfig
2446 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2448 smdk2400_config : unconfig
2449 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2451 smdk2410_config : unconfig
2452 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2454 SX1_config : unconfig
2455 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2457 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2458 trab_config \
2459 trab_bigram_config \
2460 trab_bigflash_config \
2461 trab_old_config: unconfig
2462 @mkdir -p $(obj)include
2463 @mkdir -p $(obj)board/trab
2464 @[ -z "$(findstring _bigram,$@)" ] || \
2465 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2466 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2467 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2469 @[ -z "$(findstring _bigflash,$@)" ] || \
2470 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2471 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2472 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2473 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2475 @[ -z "$(findstring _old,$@)" ] || \
2476 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2477 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2478 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2479 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2481 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2483 VCMA9_config : unconfig
2484 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2486 #========================================================================
2487 # ARM supplied Versatile development boards
2488 #========================================================================
2489 versatile_config \
2490 versatileab_config \
2491 versatilepb_config : unconfig
2492 @board/versatile/split_by_variant.sh $@
2494 voiceblue_config: unconfig
2495 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2497 cm4008_config : unconfig
2498 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2500 cm41xx_config : unconfig
2501 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2503 #########################################################################
2504 ## S3C44B0 Systems
2505 #########################################################################
2507 B2_config : unconfig
2508 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2510 #########################################################################
2511 ## ARM720T Systems
2512 #########################################################################
2514 armadillo_config: unconfig
2515 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2517 ep7312_config : unconfig
2518 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2520 impa7_config : unconfig
2521 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2523 modnet50_config : unconfig
2524 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2526 evb4510_config : unconfig
2527 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2529 lpc2292sodimm_config: unconfig
2530 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2532 SMN42_config : unconfig
2533 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2535 #########################################################################
2536 ## XScale Systems
2537 #########################################################################
2539 actux1_config : unconfig
2540 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2542 actux2_config : unconfig
2543 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2545 actux3_config : unconfig
2546 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2548 actux4_config : unconfig
2549 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2551 adsvix_config : unconfig
2552 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2554 cerf250_config : unconfig
2555 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2557 cradle_config : unconfig
2558 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2560 csb226_config : unconfig
2561 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2563 delta_config : unconfig
2564 @$(MKCONFIG) $(@:_config=) arm pxa delta
2566 innokom_config : unconfig
2567 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2569 ixdp425_config : unconfig
2570 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2572 ixdpg425_config : unconfig
2573 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2575 lubbock_config : unconfig
2576 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2578 pleb2_config : unconfig
2579 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2581 logodl_config : unconfig
2582 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2584 pdnb3_config \
2585 scpu_config: unconfig
2586 @mkdir -p $(obj)include
2587 @if [ "$(findstring scpu_,$@)" ] ; then \
2588 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2589 $(XECHO) "... on SCPU board variant" ; \
2591 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2593 pxa255_idp_config: unconfig
2594 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2596 trizepsiv_config : unconfig
2597 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2599 wepep250_config : unconfig
2600 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2602 xaeniax_config : unconfig
2603 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2605 xm250_config : unconfig
2606 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2608 xsengine_config : unconfig
2609 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2611 zylonite_config :
2612 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2614 #########################################################################
2615 ## ARM1136 Systems
2616 #########################################################################
2617 omap2420h4_config : unconfig
2618 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2620 apollon_config : unconfig
2621 @mkdir -p $(obj)include
2622 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2623 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2624 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2626 imx31_litekit_config : unconfig
2627 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2629 imx31_phycore_config : unconfig
2630 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
2632 mx31ads_config : unconfig
2633 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2635 #========================================================================
2636 # i386
2637 #========================================================================
2638 #########################################################################
2639 ## AMD SC520 CDP
2640 #########################################################################
2641 sc520_cdp_config : unconfig
2642 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2644 sc520_spunk_config : unconfig
2645 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2647 sc520_spunk_rel_config : unconfig
2648 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2650 #========================================================================
2651 # MIPS
2652 #========================================================================
2653 #########################################################################
2654 ## MIPS32 4Kc
2655 #########################################################################
2657 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2659 incaip_100MHz_config \
2660 incaip_133MHz_config \
2661 incaip_150MHz_config \
2662 incaip_config: unconfig
2663 @mkdir -p $(obj)include
2664 @[ -z "$(findstring _100MHz,$@)" ] || \
2665 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2666 $(XECHO) "... with 100MHz system clock" ; \
2668 @[ -z "$(findstring _133MHz,$@)" ] || \
2669 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2670 $(XECHO) "... with 133MHz system clock" ; \
2672 @[ -z "$(findstring _150MHz,$@)" ] || \
2673 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2674 $(XECHO) "... with 150MHz system clock" ; \
2676 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2678 tb0229_config: unconfig
2679 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2681 #########################################################################
2682 ## MIPS32 AU1X00
2683 #########################################################################
2684 dbau1000_config : unconfig
2685 @mkdir -p $(obj)include
2686 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2687 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2689 dbau1100_config : unconfig
2690 @mkdir -p $(obj)include
2691 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2692 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2694 dbau1500_config : unconfig
2695 @mkdir -p $(obj)include
2696 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2697 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2699 dbau1550_config : unconfig
2700 @mkdir -p $(obj)include
2701 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2702 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2704 dbau1550_el_config : unconfig
2705 @mkdir -p $(obj)include
2706 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2707 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2709 pb1000_config : unconfig
2710 @mkdir -p $(obj)include
2711 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2712 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2714 gth2_config: unconfig
2715 @mkdir -p $(obj)include
2716 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2717 @$(MKCONFIG) -a gth2 mips mips gth2
2719 qemu_mips_config: unconfig
2720 @mkdir -p $(obj)include
2721 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2722 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2724 #########################################################################
2725 ## MIPS64 5Kc
2726 #########################################################################
2728 purple_config : unconfig
2729 @$(MKCONFIG) $(@:_config=) mips mips purple
2731 #========================================================================
2732 # Nios
2733 #========================================================================
2734 #########################################################################
2735 ## Nios32
2736 #########################################################################
2738 DK1C20_safe_32_config \
2739 DK1C20_standard_32_config \
2740 DK1C20_config: unconfig
2741 @mkdir -p $(obj)include
2742 @[ -z "$(findstring _safe_32,$@)" ] || \
2743 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2744 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2746 @[ -z "$(findstring _standard_32,$@)" ] || \
2747 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2748 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2750 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2751 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2752 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2754 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2756 DK1S10_safe_32_config \
2757 DK1S10_standard_32_config \
2758 DK1S10_mtx_ldk_20_config \
2759 DK1S10_config: unconfig
2760 @mkdir -p $(obj)include
2761 @[ -z "$(findstring _safe_32,$@)" ] || \
2762 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2763 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2765 @[ -z "$(findstring _standard_32,$@)" ] || \
2766 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2767 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2769 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2770 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2771 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2773 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2774 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2775 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2777 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2779 ADNPESC1_DNPEVA2_base_32_config \
2780 ADNPESC1_base_32_config \
2781 ADNPESC1_config: unconfig
2782 @mkdir -p $(obj)include
2783 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2784 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2785 $(XECHO) "... DNP/EVA2 configuration" ; \
2787 @[ -z "$(findstring _base_32,$@)" ] || \
2788 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2789 $(XECHO) "... NIOS 'base_32' configuration" ; \
2791 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2792 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2793 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2795 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2797 #########################################################################
2798 ## Nios-II
2799 #########################################################################
2801 EP1C20_config : unconfig
2802 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2804 EP1S10_config : unconfig
2805 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2807 EP1S40_config : unconfig
2808 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2810 PK1C20_config : unconfig
2811 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2813 PCI5441_config : unconfig
2814 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2816 #========================================================================
2817 # MicroBlaze
2818 #========================================================================
2819 #########################################################################
2820 ## Microblaze
2821 #########################################################################
2822 suzaku_config: unconfig
2823 @mkdir -p $(obj)include
2824 @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2825 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2827 ml401_config: unconfig
2828 @mkdir -p $(obj)include
2829 @echo "#define CONFIG_ML401 1" > $(obj)include/config.h
2830 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2832 xupv2p_config: unconfig
2833 @mkdir -p $(obj)include
2834 @echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
2835 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2837 #========================================================================
2838 # Blackfin
2839 #========================================================================
2841 # Analog Devices boards
2842 BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
2844 $(BFIN_BOARDS:%=%_config) : unconfig
2845 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
2847 $(BFIN_BOARDS):
2848 $(MAKE) $@_config
2849 $(MAKE)
2851 #========================================================================
2852 # AVR32
2853 #========================================================================
2854 #########################################################################
2855 ## AT32AP7xxx
2856 #########################################################################
2858 atstk1002_config : unconfig
2859 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2861 atstk1003_config : unconfig
2862 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2864 atstk1004_config : unconfig
2865 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2867 atngw100_config : unconfig
2868 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2870 #########################################################################
2871 #########################################################################
2872 #########################################################################
2874 #########################################################################
2875 ## sh3 (Renesas SuperH)
2876 #########################################################################
2877 mpr2_config: unconfig
2878 @ >include/config.h
2879 @echo "#define CONFIG_MPR2 1" >> include/config.h
2880 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
2882 ms7720se_config: unconfig
2883 @echo "#define CONFIG_MS7720SE 1" > include/config.h
2884 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2886 #########################################################################
2887 ## sh4 (Renesas SuperH)
2888 #########################################################################
2889 ms7750se_config: unconfig
2890 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2891 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
2893 ms7722se_config : unconfig
2894 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2895 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
2897 MigoR_config : unconfig
2898 @ >include/config.h
2899 @echo "#define CONFIG_MIGO_R 1" >> include/config.h
2900 @./mkconfig -a $(@:_config=) sh sh4 MigoR
2902 r7780mp_config: unconfig
2903 @ >include/config.h
2904 @echo "#define CONFIG_R7780MP 1" >> include/config.h
2905 @./mkconfig -a $(@:_config=) sh sh4 r7780mp
2907 r2dplus_config : unconfig
2908 @ >include/config.h
2909 @echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2910 @./mkconfig -a $(@:_config=) sh sh4 r2dplus
2912 #########################################################################
2913 #########################################################################
2914 #########################################################################
2916 clean:
2917 @rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2918 $(obj)examples/hello_world $(obj)examples/interrupt \
2919 $(obj)examples/mem_to_mem_idma2intr \
2920 $(obj)examples/sched $(obj)examples/smc91111_eeprom \
2921 $(obj)examples/test_burst $(obj)examples/timer
2922 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2923 $(obj)tools/env/{fw_printenv,fw_setenv} \
2924 $(obj)tools/envcrc \
2925 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2926 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2927 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2928 $(obj)tools/ncb $(obj)tools/ubsha1
2929 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2930 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2931 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2932 $(obj)board/{integratorap,integratorcp}/u-boot.lds \
2933 $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
2934 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2935 @rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
2936 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2937 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
2938 @find $(OBJTREE) -type f \
2939 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2940 -o -name '*.o' -o -name '*.a' \) -print \
2941 | xargs rm -f
2943 clobber: clean
2944 @find $(OBJTREE) -type f \( -name .depend \
2945 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2946 -print0 \
2947 | xargs -0 rm -f
2948 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
2949 $(obj)cscope.* $(obj)*.*~
2950 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2951 @rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
2952 @rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c}
2953 @rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
2954 @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
2955 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2956 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2957 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2958 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
2960 ifeq ($(OBJTREE),$(SRCTREE))
2961 mrproper \
2962 distclean: clobber unconfig
2963 else
2964 mrproper \
2965 distclean: clobber unconfig
2966 rm -rf $(obj)*
2967 endif
2969 backup:
2970 F=`basename $(TOPDIR)` ; cd .. ; \
2971 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2973 #########################################################################