2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
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,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
39 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
40 sed -e 's/\(cygwin\).*/cygwin/')
42 export HOSTARCH HOSTOS
44 # Deal with colliding definitions from tcsh etc.
47 #########################################################################
49 # U-boot build supports producing a object files to the separate external
50 # directory. Two use cases are supported:
52 # 1) Add O= to the make command line
53 # 'make O=/tmp/build all'
55 # 2) Set environement variable BUILD_DIR to point to the desired location
56 # 'export BUILD_DIR=/tmp/build'
59 # The second approach can also be used with a MAKEALL script
60 # 'export BUILD_DIR=/tmp/build'
63 # Command line 'O=' setting overrides BUILD_DIR environent variable.
65 # When none of the above methods is used the local build is performed and
66 # the object files are placed in the source directory.
70 ifeq ("$(origin O)", "command line")
76 saved-output := $(BUILD_DIR)
78 # Attempt to create a output directory.
79 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
81 # Verify if it was successful.
82 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
83 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
84 endif # ifneq ($(BUILD_DIR),)
86 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
90 export TOPDIR SRCTREE OBJTREE
92 MKCONFIG := $(SRCTREE)/mkconfig
95 ifneq ($(OBJTREE),$(SRCTREE))
100 # $(obj) and (src) are defined in config.mk but here in main Makefile
101 # we also need them before config.mk is included which is the case for
102 # some targets like unconfig, clean, clobber, distclean, etc.
103 ifneq ($(OBJTREE),$(SRCTREE))
112 #########################################################################
114 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
116 # load ARCH, BOARD, and CPU configuration
117 include $(OBJTREE)/include/config.mk
118 export ARCH CPU BOARD VENDOR SOC
121 ifeq ($(HOSTARCH),$(ARCH))
125 CROSS_COMPILE = powerpc-linux-
128 CROSS_COMPILE = arm-linux-
131 CROSS_COMPILE = i386-linux-
134 CROSS_COMPILE = mips_4KC-
137 CROSS_COMPILE = nios-elf-
140 CROSS_COMPILE = nios2-elf-
143 CROSS_COMPILE = m68k-elf-
145 ifeq ($(ARCH),microblaze)
148 ifeq ($(ARCH),blackfin)
149 CROSS_COMPILE = bfin-uclinux-
152 CROSS_COMPILE = avr32-linux-
159 # load other configuration
160 include $(TOPDIR)/config.mk
162 #########################################################################
163 # U-Boot objects....order is important (i.e. start must be first)
165 OBJS = cpu/$(CPU)/start.o
167 OBJS += cpu/$(CPU)/start16.o
168 OBJS += cpu/$(CPU)/reset.o
171 OBJS += cpu/$(CPU)/resetvec.o
173 ifeq ($(CPU),mpc85xx)
174 OBJS += cpu/$(CPU)/resetvec.o
177 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
178 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
181 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
182 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
185 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
186 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
189 OBJS := $(addprefix $(obj),$(OBJS))
191 LIBS = lib_generic/libgeneric.a
192 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
193 LIBS += cpu/$(CPU)/lib$(CPU).a
195 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
198 LIBS += cpu/ixp/npe/libnpe.a
200 LIBS += lib_$(ARCH)/lib$(ARCH).a
201 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
202 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
204 LIBS += disk/libdisk.a
207 LIBS += drivers/libdrivers.a
208 LIBS += drivers/nand/libnand.a
209 LIBS += drivers/nand_legacy/libnand_legacy.a
210 LIBS += drivers/net/libnet.a
211 ifeq ($(CPU),mpc83xx)
212 LIBS += drivers/qe/qe.a
214 LIBS += drivers/serial/libserial.a
215 LIBS += drivers/sk98lin/libsk98lin.a
216 LIBS += post/libpost.a post/drivers/libpostdrivers.a
217 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
218 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
219 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
220 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
221 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
222 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
223 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
224 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
225 LIBS += common/libcommon.a
226 LIBS += libfdt/libfdt.a
228 LIBS := $(addprefix $(obj),$(LIBS))
232 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
234 # The "tools" are needed early, so put this first
235 # Don't include stuff already done in $(LIBS)
241 ifeq ($(CONFIG_NAND_U_BOOT),y)
243 U_BOOT_NAND = $(obj)u-boot-nand.bin
246 __OBJS := $(subst $(obj),,$(OBJS))
247 __LIBS := $(subst $(obj),,$(LIBS))
249 #########################################################################
250 #########################################################################
252 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
256 $(obj)u-boot.hex: $(obj)u-boot
257 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
259 $(obj)u-boot.srec: $(obj)u-boot
260 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
262 $(obj)u-boot.bin: $(obj)u-boot
263 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
265 $(obj)u-boot.img: $(obj)u-boot.bin
266 ./tools/mkimage -A $(ARCH) -T firmware -C none \
267 -a $(TEXT_BASE) -e 0 \
268 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
269 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
272 $(obj)u-boot.sha1: $(obj)u-boot.bin
273 $(obj)tools/ubsha1 $(obj)u-boot.bin
275 $(obj)u-boot.dis: $(obj)u-boot
276 $(OBJDUMP) -d $< > $@
278 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
279 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
280 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
281 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
282 -Map u-boot.map -o u-boot
285 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
288 $(MAKE) -C $(dir $(subst $(obj),,$@))
294 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
296 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
297 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
300 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
301 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
302 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
303 $(TOPDIR)) >> $(VERSION_FILE); \
304 echo "\"" >> $(VERSION_FILE)
307 $(MAKE) -C tools/gdb all || exit 1
310 $(MAKE) -C tools/updater all || exit 1
313 $(MAKE) -C tools/env all || exit 1
316 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
319 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
320 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
321 fs/cramfs fs/fat fs/fdos fs/jffs2 \
322 net disk rtc dtt drivers drivers/sk98lin common \
323 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
326 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
327 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
328 fs/cramfs fs/fat fs/fdos fs/jffs2 \
329 net disk rtc dtt drivers drivers/sk98lin common \
330 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
332 $(obj)System.map: $(obj)u-boot
334 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
335 sort > $(obj)System.map
337 #########################################################################
339 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
340 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
341 $(SUBDIRS) version gdbtools updater env depend \
342 dep tags ctags etags $(obj)System.map:
343 @echo "System not configured - see README" >&2
349 git log --no-merges U-Boot-1_1_5.. | \
350 unexpand -a | sed -e 's/\s\s*$$//' > $@
352 #########################################################################
355 @rm -f $(obj)include/config.h $(obj)include/config.mk \
356 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
358 #========================================================================
360 #========================================================================
362 #########################################################################
364 #########################################################################
366 canmb_config: unconfig
367 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
369 cmi_mpc5xx_config: unconfig
370 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
372 PATI_config: unconfig
373 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
375 #########################################################################
377 #########################################################################
380 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
382 BC3450_config: unconfig
383 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
385 cpci5200_config: unconfig
386 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
388 hmi1001_config: unconfig
389 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
392 Lite5200_LOWBOOT_config \
393 Lite5200_LOWBOOT08_config \
394 icecube_5200_config \
395 icecube_5200_LOWBOOT_config \
396 icecube_5200_LOWBOOT08_config \
397 icecube_5200_DDR_config \
398 icecube_5200_DDR_LOWBOOT_config \
399 icecube_5200_DDR_LOWBOOT08_config \
400 icecube_5100_config: unconfig
401 @mkdir -p $(obj)include
402 @mkdir -p $(obj)board/icecube
403 @ >$(obj)include/config.h
404 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
405 { if [ "$(findstring DDR,$@)" ] ; \
406 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
407 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
409 echo "... with LOWBOOT configuration" ; \
411 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
412 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
413 echo "... with 8 MB flash only" ; \
414 echo "... with LOWBOOT configuration" ; \
416 @[ -z "$(findstring DDR,$@)" ] || \
417 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
418 echo "... DDR memory revision" ; \
420 @[ -z "$(findstring 5200,$@)" ] || \
421 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
422 echo "... with MPC5200 processor" ; \
424 @[ -z "$(findstring 5100,$@)" ] || \
425 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
426 echo "... with MGT5100 processor" ; \
428 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
430 jupiter_config: unconfig
431 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
433 v38b_config: unconfig
434 @./mkconfig -a v38b ppc mpc5xxx v38b
436 inka4x0_config: unconfig
437 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
440 lite5200b_PM_config \
441 lite5200b_LOWBOOT_config: unconfig
442 @mkdir -p $(obj)include
443 @mkdir -p $(obj)board/icecube
444 @ >$(obj)include/config.h
445 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
446 @ echo "... DDR memory revision"
447 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
448 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
449 @[ -z "$(findstring _PM_,$@)" ] || \
450 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
451 echo "... with power management (low-power mode) support" ; \
453 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
454 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
455 echo "... with LOWBOOT configuration" ; \
457 @ echo "... with MPC5200B processor"
458 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
461 mcc200_SDRAM_config \
462 mcc200_highboot_config \
463 mcc200_COM12_config \
464 mcc200_COM12_SDRAM_config \
465 mcc200_COM12_highboot_config \
466 mcc200_COM12_highboot_SDRAM_config \
467 mcc200_highboot_SDRAM_config \
470 prs200_highboot_config \
471 prs200_highboot_DDR_config: unconfig
472 @mkdir -p $(obj)include
473 @mkdir -p $(obj)board/mcc200
474 @ >$(obj)include/config.h
475 @[ -n "$(findstring highboot,$@)" ] || \
476 { echo "... with lowboot configuration" ; \
478 @[ -z "$(findstring highboot,$@)" ] || \
479 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
480 echo "... with highboot configuration" ; \
482 @[ -n "$(findstring _SDRAM,$@)" ] || \
483 { if [ -n "$(findstring mcc200,$@)" ]; \
485 echo "... with DDR" ; \
487 if [ -n "$(findstring _DDR,$@)" ];\
489 echo "... with DDR" ; \
491 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
492 echo "... with SDRAM" ; \
496 @[ -z "$(findstring _SDRAM,$@)" ] || \
497 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
498 echo "... with SDRAM" ; \
500 @[ -z "$(findstring COM12,$@)" ] || \
501 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
502 echo "... with console on COM12" ; \
504 @[ -z "$(findstring prs200,$@)" ] || \
505 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
507 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
509 mecp5200_config: unconfig
510 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
513 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
515 pf5200_config: unconfig
516 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
520 PM520_ROMBOOT_config \
521 PM520_ROMBOOT_DDR_config: unconfig
522 @mkdir -p $(obj)include
523 @ >$(obj)include/config.h
524 @[ -z "$(findstring DDR,$@)" ] || \
525 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
526 echo "... DDR memory revision" ; \
528 @[ -z "$(findstring ROMBOOT,$@)" ] || \
529 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
530 echo "... booting from 8-bit flash" ; \
532 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
534 smmaco4_config: unconfig
535 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
537 cm1_qp1_config: unconfig
539 @[ -z "$(findstring cm1_qp1,$@)" ] || \
540 { echo "... with 64 MByte SDRAM" ; \
541 echo "... with 32 MByte Flash" ; \
543 @./mkconfig -a cm1_qp1 ppc mpc5xxx cm1_qp1
545 spieval_config: unconfig
546 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
549 TB5200_config: unconfig
550 @mkdir -p $(obj)include
551 @[ -z "$(findstring _B,$@)" ] || \
552 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
553 echo "... with MPC5200B processor" ; \
555 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
559 TOP5200_config: unconfig
560 @mkdir -p $(obj)include
561 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
562 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
566 Total5200_lowboot_config \
567 Total5200_Rev2_config \
568 Total5200_Rev2_lowboot_config: unconfig
569 @mkdir -p $(obj)include
570 @mkdir -p $(obj)board/total5200
571 @ >$(obj)include/config.h
572 @[ -z "$(findstring 5100,$@)" ] || \
573 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
574 echo "... with MGT5100 processor" ; \
576 @[ -z "$(findstring 5200,$@)" ] || \
577 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
578 echo "... with MPC5200 processor" ; \
580 @[ -n "$(findstring Rev,$@)" ] || \
581 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
582 echo "... revision 1 board" ; \
584 @[ -z "$(findstring Rev2_,$@)" ] || \
585 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
586 echo "... revision 2 board" ; \
588 @[ -z "$(findstring lowboot_,$@)" ] || \
589 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
590 echo "... with lowboot configuration" ; \
592 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
595 cam5200_niosflash_config \
599 TQM5200S_HIGHBOOT_config \
601 TQM5200_B_HIGHBOOT_config \
603 TQM5200_STK100_config: unconfig
604 @mkdir -p $(obj)include
605 @mkdir -p $(obj)board/tqm5200
606 @ >$(obj)include/config.h
607 @[ -z "$(findstring cam5200,$@)" ] || \
608 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
609 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
610 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
611 echo "... TQM5200S on Cam5200" ; \
613 @[ -z "$(findstring niosflash,$@)" ] || \
614 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
615 echo "... with NIOS flash driver" ; \
617 @[ -z "$(findstring fo300,$@)" ] || \
618 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
619 echo "... TQM5200 on FO300" ; \
621 @[ -z "$(findstring MiniFAP,$@)" ] || \
622 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
623 echo "... TQM5200_AC on MiniFAP" ; \
625 @[ -z "$(findstring STK100,$@)" ] || \
626 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
627 echo "... on a STK52XX.100 base board" ; \
629 @[ -z "$(findstring TQM5200_B,$@)" ] || \
630 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
632 @[ -z "$(findstring TQM5200S,$@)" ] || \
633 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
634 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
636 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
637 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
639 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
640 uc101_config: unconfig
641 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
642 motionpro_config: unconfig
643 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
646 #########################################################################
648 #########################################################################
654 @mkdir -p $(obj)include
655 $(if $(findstring AdderII,$@), \
656 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
657 @$(MKCONFIG) -a Adder ppc mpc8xx adder
664 FADS860T_config: unconfig
665 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
667 AMX860_config : unconfig
668 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
670 c2mon_config: unconfig
671 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
674 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
676 cogent_mpc8xx_config: unconfig
677 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
679 ELPT860_config: unconfig
680 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
682 EP88x_config: unconfig
683 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
685 ESTEEM192E_config: unconfig
686 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
688 ETX094_config : unconfig
689 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
691 FLAGADM_config: unconfig
692 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
694 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
697 GEN860T_config: unconfig
698 @mkdir -p $(obj)include
699 @ >$(obj)include/config.h
700 @[ -z "$(findstring _SC,$@)" ] || \
701 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
702 echo "With reduced H/W feature set (SC)..." ; \
704 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
706 GENIETV_config: unconfig
707 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
710 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
712 hermes_config : unconfig
713 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
715 HMI10_config : unconfig
716 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
718 IAD210_config: unconfig
719 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
721 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
723 ICU862_100MHz_config \
724 ICU862_config: unconfig
725 @mkdir -p $(obj)include
726 @ >$(obj)include/config.h
727 @[ -z "$(findstring _100MHz,$@)" ] || \
728 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
729 echo "... with 100MHz system clock" ; \
731 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
733 IP860_config : unconfig
734 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
738 IVML24_config: unconfig
739 @mkdir -p $(obj)include
740 @ >$(obj)include/config.h
741 @[ -z "$(findstring IVML24_config,$@)" ] || \
742 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
744 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
745 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
747 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
748 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
750 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
754 IVMS8_config: unconfig
755 @mkdir -p $(obj)include
756 @ >$(obj)include/config.h
757 @[ -z "$(findstring IVMS8_config,$@)" ] || \
758 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
760 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
761 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
763 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
764 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
766 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
768 KUP4K_config : unconfig
769 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
771 KUP4X_config : unconfig
772 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
774 LANTEC_config : unconfig
775 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
777 lwmon_config: unconfig
778 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
781 MBX860T_config: unconfig
782 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
784 MHPC_config: unconfig
785 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
787 MVS1_config : unconfig
788 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
790 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
793 NETVIA_config: unconfig
794 @mkdir -p $(obj)include
795 @ >$(obj)include/config.h
796 @[ -z "$(findstring NETVIA_config,$@)" ] || \
797 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
798 echo "... Version 1" ; \
800 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
801 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
802 echo "... Version 2" ; \
804 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
806 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
809 NETPHONE_config: unconfig
810 @mkdir -p $(obj)include
811 @ >$(obj)include/config.h
812 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
813 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
815 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
816 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
818 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
820 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
822 NETTA_ISDN_6412_SWAPHOOK_config \
823 NETTA_ISDN_SWAPHOOK_config \
824 NETTA_6412_SWAPHOOK_config \
825 NETTA_SWAPHOOK_config \
826 NETTA_ISDN_6412_config \
829 NETTA_config: unconfig
830 @mkdir -p $(obj)include
831 @ >$(obj)include/config.h
832 @[ -z "$(findstring ISDN_,$@)" ] || \
833 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
835 @[ -n "$(findstring ISDN_,$@)" ] || \
836 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
838 @[ -z "$(findstring 6412_,$@)" ] || \
839 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
841 @[ -n "$(findstring 6412_,$@)" ] || \
842 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
844 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
845 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
847 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
848 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
850 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
852 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
855 NETTA2_config: unconfig
856 @mkdir -p $(obj)include
857 @ >$(obj)include/config.h
858 @[ -z "$(findstring NETTA2_config,$@)" ] || \
859 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
861 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
862 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
864 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
868 CP850_config: unconfig
869 @mkdir -p $(obj)include
870 @ >$(obj)include/config.h
871 @[ -z "$(findstring CP850,$@)" ] || \
872 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
873 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
875 @[ -z "$(findstring Rev1,$@)" ] || \
876 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
878 @[ -z "$(findstring Rev2,$@)" ] || \
879 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
881 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
883 NX823_config: unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
886 pcu_e_config: unconfig
887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
889 QS850_config: unconfig
890 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
892 QS823_config: unconfig
893 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
895 QS860T_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
898 quantum_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
901 R360MPI_config: unconfig
902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
904 RBC823_config: unconfig
905 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
907 RPXClassic_config: unconfig
908 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
910 RPXlite_config: unconfig
911 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
913 RPXlite_DW_64_config \
914 RPXlite_DW_LCD_config \
915 RPXlite_DW_64_LCD_config \
916 RPXlite_DW_NVRAM_config \
917 RPXlite_DW_NVRAM_64_config \
918 RPXlite_DW_NVRAM_LCD_config \
919 RPXlite_DW_NVRAM_64_LCD_config \
920 RPXlite_DW_config: unconfig
921 @mkdir -p $(obj)include
922 @ >$(obj)include/config.h
923 @[ -z "$(findstring _64,$@)" ] || \
924 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
925 echo "... with 64MHz system clock ..."; \
927 @[ -z "$(findstring _LCD,$@)" ] || \
928 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
929 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
930 echo "... with LCD display ..."; \
932 @[ -z "$(findstring _NVRAM,$@)" ] || \
933 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
934 echo "... with ENV in NVRAM ..."; \
936 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
939 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
941 RRvision_config: unconfig
942 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
944 RRvision_LCD_config: unconfig
945 @mkdir -p $(obj)include
946 @echo "#define CONFIG_LCD" >$(obj)include/config.h
947 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
948 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
950 SM850_config : unconfig
951 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
954 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
956 SPD823TS_config: unconfig
957 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
959 stxxtc_config: unconfig
960 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
962 svm_sc8xx_config: unconfig
963 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
965 SXNI855T_config: unconfig
966 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
968 # EMK MPC8xx based modules
969 TOP860_config: unconfig
970 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
972 # Play some tricks for configuration selection
973 # Only 855 and 860 boards may come with FEC
974 # and only 823 boards may have LCD support
975 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
993 virtlab2_config: unconfig
994 @mkdir -p $(obj)include
995 @ >$(obj)include/config.h
996 @[ -z "$(findstring _LCD,$@)" ] || \
997 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
998 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
999 echo "... with LCD display" ; \
1001 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1003 TTTech_config: unconfig
1004 @mkdir -p $(obj)include
1005 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1006 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1007 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1009 uc100_config : unconfig
1010 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1012 v37_config: unconfig
1013 @mkdir -p $(obj)include
1014 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1015 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1016 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1018 wtk_config: unconfig
1019 @mkdir -p $(obj)include
1020 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1021 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1022 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1024 #########################################################################
1026 #########################################################################
1027 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1029 acadia_config: unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1032 acadia_nand_config: unconfig
1033 @mkdir -p $(obj)include
1034 @mkdir -p $(obj)nand_spl
1035 @mkdir -p $(obj)board/amcc/acadia
1036 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1037 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1038 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1039 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1041 ADCIOP_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1044 alpr_config: unconfig
1045 @./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
1047 AP1000_config:unconfig
1048 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1050 APC405_config: unconfig
1051 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1053 AR405_config: unconfig
1054 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1056 ASH405_config: unconfig
1057 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1059 bamboo_config: unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1062 bamboo_nand_config: unconfig
1063 @mkdir -p $(obj)include
1064 @mkdir -p $(obj)nand_spl
1065 @mkdir -p $(obj)board/amcc/bamboo
1066 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1067 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1068 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1069 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1071 bubinga_config: unconfig
1072 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1074 CANBT_config: unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1078 CATcenter_25_config \
1079 CATcenter_33_config: unconfig
1080 @mkdir -p $(obj)include
1081 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1082 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1083 @[ -z "$(findstring _25,$@)" ] || \
1084 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1085 echo "SysClk = 25MHz" ; \
1087 @[ -z "$(findstring _33,$@)" ] || \
1088 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1089 echo "SysClk = 33MHz" ; \
1091 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1093 CPCI2DP_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1099 CPCI405AB_config: unconfig
1100 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1101 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1103 CPCI440_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1106 CPCIISER4_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1109 CRAYL1_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1112 csb272_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1115 csb472_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1118 DASA_SIM_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1121 DP405_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1124 DU405_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1127 ebony_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1130 ERIC_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1133 EXBITGEN_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1136 G2000_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1139 HH405_config: unconfig
1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1142 HUB405_config: unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1145 JSE_config: unconfig
1146 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1148 KAREF_config: unconfig
1149 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1151 katmai_config: unconfig
1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1154 luan_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1157 lwmon5_config: unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1160 METROBOX_config: unconfig
1161 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1163 MIP405_config: unconfig
1164 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1166 MIP405T_config: unconfig
1167 @mkdir -p $(obj)include
1168 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1169 @echo "Enable subset config for MIP405T"
1170 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1172 ML2_config: unconfig
1173 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1175 ml300_config: unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1178 ocotea_config: unconfig
1179 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1182 ORSG_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1185 p3p440_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1188 PCI405_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1191 pcs440ep_config: unconfig
1192 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1194 PIP405_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1197 PLU405_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1200 PMC405_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1203 PPChameleonEVB_config \
1204 PPChameleonEVB_BA_25_config \
1205 PPChameleonEVB_ME_25_config \
1206 PPChameleonEVB_HI_25_config \
1207 PPChameleonEVB_BA_33_config \
1208 PPChameleonEVB_ME_33_config \
1209 PPChameleonEVB_HI_33_config: unconfig
1210 @mkdir -p $(obj)include
1211 @ >$(obj)include/config.h
1212 @[ -z "$(findstring EVB_BA,$@)" ] || \
1213 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1214 echo "... BASIC model" ; \
1216 @[ -z "$(findstring EVB_ME,$@)" ] || \
1217 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1218 echo "... MEDIUM model" ; \
1220 @[ -z "$(findstring EVB_HI,$@)" ] || \
1221 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1222 echo "... HIGH-END model" ; \
1224 @[ -z "$(findstring _25,$@)" ] || \
1225 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1226 echo "SysClk = 25MHz" ; \
1228 @[ -z "$(findstring _33,$@)" ] || \
1229 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1230 echo "SysClk = 33MHz" ; \
1232 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1234 sbc405_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1238 rainier_config: unconfig
1239 @mkdir -p $(obj)include
1240 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1241 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1242 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1244 sequoia_nand_config \
1245 rainier_nand_config: unconfig
1246 @mkdir -p $(obj)include
1247 @mkdir -p $(obj)nand_spl
1248 @mkdir -p $(obj)board/amcc/sequoia
1249 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1250 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1251 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1252 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1253 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1254 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1257 @./mkconfig $(@:_config=) ppc ppc4xx sc3
1259 taishan_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1262 VOH405_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1265 VOM405_config: unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1268 CMS700_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1272 W7OLMG_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1275 # Walnut & Sycamore images are identical (recognized via PVR)
1277 sycamore_config: unconfig
1278 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1280 WUH405_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1283 XPEDITE1K_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1287 yellowstone_config: unconfig
1288 @mkdir -p $(obj)include
1289 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1290 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1291 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1293 yucca_config: unconfig
1294 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1296 #########################################################################
1298 #########################################################################
1301 Yukon8220_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1304 sorcery_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1307 #########################################################################
1309 #########################################################################
1310 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1312 A3000_config: unconfig
1313 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1315 barco_config: unconfig
1316 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1318 BMW_config: unconfig
1319 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1322 CPC45_ROMBOOT_config: unconfig
1323 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1324 @cd $(obj)include ; \
1325 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1326 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1327 echo "... booting from 8-bit flash" ; \
1329 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1330 echo "... booting from 64-bit flash" ; \
1332 echo "export CONFIG_BOOT_ROM" >> config.mk;
1334 CU824_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1337 debris_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1340 eXalion_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1343 HIDDEN_DRAGON_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1346 kvme080_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1349 MOUSSE_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1352 MUSENKI_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1355 MVBLUE_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1358 OXC_config: unconfig
1359 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1361 PN62_config: unconfig
1362 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1364 Sandpoint8240_config: unconfig
1365 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1367 Sandpoint8245_config: unconfig
1368 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1370 sbc8240_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1373 SL8245_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1376 utx8245_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1379 #########################################################################
1381 #########################################################################
1383 atc_config: unconfig
1384 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1386 cogent_mpc8260_config: unconfig
1387 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1390 CPU86_ROMBOOT_config: unconfig
1391 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1392 @cd $(obj)include ; \
1393 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1394 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1395 echo "... booting from 8-bit flash" ; \
1397 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1398 echo "... booting from 64-bit flash" ; \
1400 echo "export CONFIG_BOOT_ROM" >> config.mk;
1403 CPU87_ROMBOOT_config: unconfig
1404 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1405 @cd $(obj)include ; \
1406 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1407 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1408 echo "... booting from 8-bit flash" ; \
1410 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1411 echo "... booting from 64-bit flash" ; \
1413 echo "export CONFIG_BOOT_ROM" >> config.mk;
1416 ep8248E_config : unconfig
1417 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1419 ep8260_config: unconfig
1420 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1422 ep82xxm_config: unconfig
1423 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1425 gw8260_config: unconfig
1426 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1428 hymod_config: unconfig
1429 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1431 IDS8247_config: unconfig
1432 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1434 IPHASE4539_config: unconfig
1435 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1438 ISPAN_REVB_config: unconfig
1439 @mkdir -p $(obj)include
1440 @if [ "$(findstring _REVB_,$@)" ] ; then \
1441 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1443 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1446 MPC8260ADS_lowboot_config \
1447 MPC8260ADS_33MHz_config \
1448 MPC8260ADS_33MHz_lowboot_config \
1449 MPC8260ADS_40MHz_config \
1450 MPC8260ADS_40MHz_lowboot_config \
1452 MPC8272ADS_lowboot_config \
1454 PQ2FADS_lowboot_config \
1456 PQ2FADS-VR_lowboot_config \
1458 PQ2FADS-ZU_lowboot_config \
1459 PQ2FADS-ZU_66MHz_config \
1460 PQ2FADS-ZU_66MHz_lowboot_config \
1462 @mkdir -p $(obj)include
1463 @mkdir -p $(obj)board/mpc8260ads
1464 $(if $(findstring PQ2FADS,$@), \
1465 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1466 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1467 $(if $(findstring MHz,$@), \
1468 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1469 $(if $(findstring VR,$@), \
1470 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1471 @[ -z "$(findstring lowboot_,$@)" ] || \
1472 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1473 echo "... with lowboot configuration" ; \
1475 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1477 MPC8266ADS_config: unconfig
1478 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1480 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1482 PM825_ROMBOOT_config \
1483 PM825_BIGFLASH_config \
1484 PM825_ROMBOOT_BIGFLASH_config \
1486 PM826_ROMBOOT_config \
1487 PM826_BIGFLASH_config \
1488 PM826_ROMBOOT_BIGFLASH_config: unconfig
1489 @mkdir -p $(obj)include
1490 @mkdir -p $(obj)board/pm826
1491 @if [ "$(findstring PM825_,$@)" ] ; then \
1492 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1494 >$(obj)include/config.h ; \
1496 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1497 echo "... booting from 8-bit flash" ; \
1498 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1499 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1500 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1501 echo "... with 32 MB Flash" ; \
1502 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1505 echo "... booting from 64-bit flash" ; \
1506 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1507 echo "... with 32 MB Flash" ; \
1508 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1509 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1511 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1514 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1518 PM828_ROMBOOT_config \
1519 PM828_ROMBOOT_PCI_config: unconfig
1520 @mkdir -p $(obj)include
1521 @mkdir -p $(obj)board/pm826
1522 @if [ "$(findstring _PCI_,$@)" ] ; then \
1523 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1524 echo "... with PCI enabled" ; \
1526 >$(obj)include/config.h ; \
1528 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1529 echo "... booting from 8-bit flash" ; \
1530 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1531 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1533 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1535 ppmc8260_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1538 Rattler8248_config \
1539 Rattler_config: unconfig
1540 @mkdir -p $(obj)include
1541 $(if $(findstring 8248,$@), \
1542 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1543 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1545 RPXsuper_config: unconfig
1546 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1548 rsdproto_config: unconfig
1549 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1551 sacsng_config: unconfig
1552 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1554 sbc8260_config: unconfig
1555 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1557 SCM_config: unconfig
1558 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1570 TQM8265_AA_config: unconfig
1571 @mkdir -p $(obj)include
1573 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1574 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1575 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1576 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1577 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1578 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1579 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1580 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1581 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1582 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1583 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1585 >$(obj)include/config.h ; \
1586 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1587 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1589 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1590 echo "... with $${CFREQ}MHz system clock" ; \
1591 if [ "$${CACHE}" == "yes" ] ; then \
1592 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1593 echo "... with L2 Cache support" ; \
1595 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1596 echo "... without L2 Cache support" ; \
1598 if [ "$${BMODE}" == "60x" ] ; then \
1599 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1600 echo "... with 60x Bus Mode" ; \
1602 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1603 echo "... without 60x Bus Mode" ; \
1605 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1607 TQM8272_config: unconfig
1608 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1610 VoVPN-GW_66MHz_config \
1611 VoVPN-GW_100MHz_config: unconfig
1612 @mkdir -p $(obj)include
1613 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1614 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1616 ZPC1900_config: unconfig
1617 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1619 #########################################################################
1621 #########################################################################
1623 cobra5272_config : unconfig
1624 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1626 EB+MCF-EV123_config : unconfig
1627 @mkdir -p $(obj)include
1628 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1629 @ >$(obj)include/config.h
1630 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1631 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1633 EB+MCF-EV123_internal_config : unconfig
1634 @mkdir -p $(obj)include
1635 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1636 @ >$(obj)include/config.h
1637 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1638 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1640 idmr_config : unconfig
1641 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1643 M5271EVB_config : unconfig
1644 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1646 M5272C3_config : unconfig
1647 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1649 M5282EVB_config : unconfig
1650 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1652 TASREG_config : unconfig
1653 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1655 r5200_config : unconfig
1656 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1659 M5329BFEE_config : unconfig
1661 M5329AFEE_config) NAND=0;; \
1662 M5329BFEE_config) NAND=16;; \
1664 >include/config.h ; \
1665 if [ "$${NAND}" != "0" ] ; then \
1666 echo "#define NANDFLASH_SIZE $${NAND}" >> include/config.h ; \
1668 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1670 #########################################################################
1672 #########################################################################
1674 MPC8313ERDB_33_config \
1675 MPC8313ERDB_66_config: unconfig
1676 @echo "" >include/config.h ; \
1677 if [ "$(findstring _33_,$@)" ] ; then \
1678 echo -n "...33M ..." ; \
1679 echo "#define CFG_33MHZ" >>include/config.h ; \
1681 if [ "$(findstring _66_,$@)" ] ; then \
1682 echo -n "...66M..." ; \
1683 echo "#define CFG_66MHZ" >>include/config.h ; \
1685 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1687 MPC832XEMDS_config \
1688 MPC832XEMDS_HOST_33_config \
1689 MPC832XEMDS_HOST_66_config \
1690 MPC832XEMDS_SLAVE_config: unconfig
1691 @echo "" >include/config.h ; \
1692 if [ "$(findstring _HOST_,$@)" ] ; then \
1693 echo -n "... PCI HOST " ; \
1694 echo "#define CONFIG_PCI" >>include/config.h ; \
1696 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1697 echo "...PCI SLAVE 66M" ; \
1698 echo "#define CONFIG_PCI" >>include/config.h ; \
1699 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1701 if [ "$(findstring _33_,$@)" ] ; then \
1702 echo -n "...33M ..." ; \
1703 echo "#define PCI_33M" >>include/config.h ; \
1705 if [ "$(findstring _66_,$@)" ] ; then \
1706 echo -n "...66M..." ; \
1707 echo "#define PCI_66M" >>include/config.h ; \
1709 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1711 MPC8349EMDS_config: unconfig
1712 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1715 MPC8349ITX_LOWBOOT_config \
1716 MPC8349ITXGP_config: unconfig
1717 @mkdir -p $(obj)include
1718 @mkdir -p $(obj)board/mpc8349itx
1719 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1720 @if [ "$(findstring GP,$@)" ] ; then \
1721 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1723 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1724 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1726 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1728 MPC8360EMDS_config \
1729 MPC8360EMDS_HOST_33_config \
1730 MPC8360EMDS_HOST_66_config \
1731 MPC8360EMDS_SLAVE_config: unconfig
1732 @echo "" >include/config.h ; \
1733 if [ "$(findstring _HOST_,$@)" ] ; then \
1734 echo -n "... PCI HOST " ; \
1735 echo "#define CONFIG_PCI" >>include/config.h ; \
1737 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1738 echo "...PCI SLAVE 66M" ; \
1739 echo "#define CONFIG_PCI" >>include/config.h ; \
1740 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1742 if [ "$(findstring _33_,$@)" ] ; then \
1743 echo -n "...33M ..." ; \
1744 echo "#define PCI_33M" >>include/config.h ; \
1746 if [ "$(findstring _66_,$@)" ] ; then \
1747 echo -n "...66M..." ; \
1748 echo "#define PCI_66M" >>include/config.h ; \
1750 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1752 sbc8349_config: unconfig
1753 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1755 TQM834x_config: unconfig
1756 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1759 #########################################################################
1761 #########################################################################
1763 MPC8540ADS_config: unconfig
1764 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1766 MPC8540EVAL_config \
1767 MPC8540EVAL_33_config \
1768 MPC8540EVAL_66_config \
1769 MPC8540EVAL_33_slave_config \
1770 MPC8540EVAL_66_slave_config: unconfig
1771 @mkdir -p $(obj)include
1772 @echo "" >$(obj)include/config.h ; \
1773 if [ "$(findstring _33_,$@)" ] ; then \
1774 echo -n "... 33 MHz PCI" ; \
1776 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1777 echo -n "... 66 MHz PCI" ; \
1779 if [ "$(findstring _slave_,$@)" ] ; then \
1780 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1785 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1787 MPC8560ADS_config: unconfig
1788 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1790 MPC8541CDS_config: unconfig
1791 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1793 MPC8544DS_config: unconfig
1794 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1796 MPC8548CDS_config: unconfig
1797 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1799 MPC8555CDS_config: unconfig
1800 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1802 MPC8568MDS_config: unconfig
1803 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1805 PM854_config: unconfig
1806 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1808 PM856_config: unconfig
1809 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1813 sbc8540_66_config: unconfig
1814 @mkdir -p $(obj)include
1815 @if [ "$(findstring _66_,$@)" ] ; then \
1816 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1817 echo "... 66 MHz PCI" ; \
1819 >$(obj)include/config.h ; \
1820 echo "... 33 MHz PCI" ; \
1822 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1826 sbc8560_66_config: unconfig
1827 @mkdir -p $(obj)include
1828 @if [ "$(findstring _66_,$@)" ] ; then \
1829 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1830 echo "... 66 MHz PCI" ; \
1832 >$(obj)include/config.h ; \
1833 echo "... 33 MHz PCI" ; \
1835 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1837 stxgp3_config: unconfig
1838 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1841 stxssa_4M_config: unconfig
1842 @mkdir -p $(obj)include
1843 @if [ "$(findstring _4M_,$@)" ] ; then \
1844 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1845 echo "... with 4 MiB flash memory" ; \
1847 >$(obj)include/config.h ; \
1849 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1854 TQM8560_config: unconfig
1855 @mkdir -p $(obj)include
1856 @CTYPE=$(subst TQM,,$(@:_config=)); \
1857 >$(obj)include/config.h ; \
1858 echo "... TQM"$${CTYPE}; \
1859 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1860 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1861 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1862 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1863 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1864 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1866 #########################################################################
1868 #########################################################################
1870 MPC8641HPCN_config: unconfig
1871 @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1874 #########################################################################
1876 #########################################################################
1878 AmigaOneG3SE_config: unconfig
1879 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1881 BAB7xx_config: unconfig
1882 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1884 CPCI750_config: unconfig
1885 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1887 DB64360_config: unconfig
1888 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1890 DB64460_config: unconfig
1891 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1893 ELPPC_config: unconfig
1894 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1897 EVB64260_750CX_config: unconfig
1898 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1900 mpc7448hpc2_config: unconfig
1901 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1903 P3G4_config: unconfig
1904 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1907 p3m7448_config: unconfig
1908 @mkdir -p $(obj)include
1909 @if [ "$(findstring 750_,$@)" ] ; then \
1910 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1912 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1914 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1917 PCIPPC6_config: unconfig
1918 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1920 ZUMA_config: unconfig
1921 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1923 ppmc7xx_config: unconfig
1924 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1926 #========================================================================
1928 #========================================================================
1929 #########################################################################
1930 ## StrongARM Systems
1931 #########################################################################
1933 assabet_config : unconfig
1934 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1936 dnp1110_config : unconfig
1937 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1939 gcplus_config : unconfig
1940 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1942 lart_config : unconfig
1943 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1945 shannon_config : unconfig
1946 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1948 #########################################################################
1950 #########################################################################
1952 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1954 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1956 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1958 at91rm9200dk_config : unconfig
1959 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1961 cmc_pu2_config : unconfig
1962 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1964 csb637_config : unconfig
1965 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1967 mp2usb_config : unconfig
1968 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1971 ########################################################################
1972 ## ARM Integrator boards - see doc/README-integrator for more info.
1973 integratorap_config \
1982 ap946es_config: unconfig
1983 @board/integratorap/split_by_variant.sh $@
1985 integratorcp_config \
1994 cp1026_config: unconfig
1995 @board/integratorcp/split_by_variant.sh $@
1997 kb9202_config : unconfig
1998 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2001 lpd7a404_config: unconfig
2002 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2004 mx1ads_config : unconfig
2005 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2007 mx1fs2_config : unconfig
2008 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2011 netstar_config: unconfig
2012 @mkdir -p $(obj)include
2013 @if [ "$(findstring _32_,$@)" ] ; then \
2014 echo "... 32MB SDRAM" ; \
2015 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2017 echo "... 64MB SDRAM" ; \
2018 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2020 @$(MKCONFIG) -a netstar arm arm925t netstar
2022 omap1510inn_config : unconfig
2023 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2025 omap5912osk_config : unconfig
2026 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2028 omap1610inn_config \
2029 omap1610inn_cs0boot_config \
2030 omap1610inn_cs3boot_config \
2031 omap1610inn_cs_autoboot_config \
2033 omap1610h2_cs0boot_config \
2034 omap1610h2_cs3boot_config \
2035 omap1610h2_cs_autoboot_config: unconfig
2036 @mkdir -p $(obj)include
2037 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2038 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
2039 echo "... configured for CS0 boot"; \
2040 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2041 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
2042 echo "... configured for CS_AUTO boot"; \
2044 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
2045 echo "... configured for CS3 boot"; \
2047 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2050 omap730p2_cs0boot_config \
2051 omap730p2_cs3boot_config : unconfig
2052 @mkdir -p $(obj)include
2053 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2054 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2055 echo "... configured for CS0 boot"; \
2057 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2058 echo "... configured for CS3 boot"; \
2060 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2062 sbc2410x_config: unconfig
2063 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2065 scb9328_config : unconfig
2066 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2068 smdk2400_config : unconfig
2069 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2071 smdk2410_config : unconfig
2072 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2074 SX1_config : unconfig
2075 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2077 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2079 trab_bigram_config \
2080 trab_bigflash_config \
2081 trab_old_config: unconfig
2082 @mkdir -p $(obj)include
2083 @mkdir -p $(obj)board/trab
2084 @ >$(obj)include/config.h
2085 @[ -z "$(findstring _bigram,$@)" ] || \
2086 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2087 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2088 echo "... with 8 MB Flash, 32 MB RAM" ; \
2090 @[ -z "$(findstring _bigflash,$@)" ] || \
2091 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2092 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2093 echo "... with 16 MB Flash, 16 MB RAM" ; \
2094 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2096 @[ -z "$(findstring _old,$@)" ] || \
2097 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2098 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2099 echo "... with 8 MB Flash, 16 MB RAM" ; \
2100 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2102 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2104 VCMA9_config : unconfig
2105 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2107 #========================================================================
2108 # ARM supplied Versatile development boards
2109 #========================================================================
2111 versatileab_config \
2112 versatilepb_config : unconfig
2113 @board/versatile/split_by_variant.sh $@
2115 voiceblue_smallflash_config \
2116 voiceblue_config: unconfig
2117 @mkdir -p $(obj)include
2118 @mkdir -p $(obj)board/voiceblue
2119 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2120 echo "... boot from lower flash bank" ; \
2121 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2122 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2124 echo "... boot from upper flash bank" ; \
2125 >$(obj)include/config.h ; \
2126 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2128 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2130 cm4008_config : unconfig
2131 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2133 cm41xx_config : unconfig
2134 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2136 gth2_config : unconfig
2137 @mkdir -p $(obj)include
2138 @ >$(obj)include/config.h
2139 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2140 @$(MKCONFIG) -a gth2 mips mips gth2
2142 #########################################################################
2144 #########################################################################
2146 B2_config : unconfig
2147 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2149 #########################################################################
2151 #########################################################################
2153 armadillo_config: unconfig
2154 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2156 ep7312_config : unconfig
2157 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2159 impa7_config : unconfig
2160 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2162 modnet50_config : unconfig
2163 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2165 evb4510_config : unconfig
2166 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2168 lpc2292sodimm_config: unconfig
2169 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2171 SMN42_config : unconfig
2172 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2174 #########################################################################
2176 #########################################################################
2178 adsvix_config : unconfig
2179 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2181 cerf250_config : unconfig
2182 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2184 cradle_config : unconfig
2185 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2187 csb226_config : unconfig
2188 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2191 @$(MKCONFIG) $(@:_config=) arm pxa delta
2193 innokom_config : unconfig
2194 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2196 ixdp425_config : unconfig
2197 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2199 ixdpg425_config : unconfig
2200 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2202 lubbock_config : unconfig
2203 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2205 pleb2_config : unconfig
2206 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2208 logodl_config : unconfig
2209 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2212 scpu_config: unconfig
2213 @if [ "$(findstring scpu_,$@)" ] ; then \
2214 echo "#define CONFIG_SCPU" >>include/config.h ; \
2215 echo "... on SCPU board variant" ; \
2217 >include/config.h ; \
2219 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2221 pxa255_idp_config: unconfig
2222 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2224 wepep250_config : unconfig
2225 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2227 xaeniax_config : unconfig
2228 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2230 xm250_config : unconfig
2231 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2233 xsengine_config : unconfig
2234 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2237 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2239 #########################################################################
2241 #########################################################################
2242 omap2420h4_config : unconfig
2243 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2245 #========================================================================
2247 #========================================================================
2248 #########################################################################
2250 #########################################################################
2251 sc520_cdp_config : unconfig
2252 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2254 sc520_spunk_config : unconfig
2255 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2257 sc520_spunk_rel_config : unconfig
2258 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2260 #========================================================================
2262 #========================================================================
2263 #########################################################################
2265 #########################################################################
2267 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2269 incaip_100MHz_config \
2270 incaip_133MHz_config \
2271 incaip_150MHz_config \
2272 incaip_config: unconfig
2273 @mkdir -p $(obj)include
2274 @ >$(obj)include/config.h
2275 @[ -z "$(findstring _100MHz,$@)" ] || \
2276 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2277 echo "... with 100MHz system clock" ; \
2279 @[ -z "$(findstring _133MHz,$@)" ] || \
2280 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2281 echo "... with 133MHz system clock" ; \
2283 @[ -z "$(findstring _150MHz,$@)" ] || \
2284 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2285 echo "... with 150MHz system clock" ; \
2287 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2289 tb0229_config: unconfig
2290 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2292 #########################################################################
2294 #########################################################################
2295 dbau1000_config : unconfig
2296 @mkdir -p $(obj)include
2297 @ >$(obj)include/config.h
2298 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2299 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2301 dbau1100_config : unconfig
2302 @mkdir -p $(obj)include
2303 @ >$(obj)include/config.h
2304 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2305 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2307 dbau1500_config : unconfig
2308 @mkdir -p $(obj)include
2309 @ >$(obj)include/config.h
2310 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2311 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2313 dbau1550_config : unconfig
2314 @mkdir -p $(obj)include
2315 @ >$(obj)include/config.h
2316 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2317 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2319 dbau1550_el_config : unconfig
2320 @mkdir -p $(obj)include
2321 @ >$(obj)include/config.h
2322 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2323 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2325 pb1000_config : unconfig
2326 @mkdir -p $(obj)include
2327 @ >$(obj)include/config.h
2328 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2329 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2331 #########################################################################
2333 #########################################################################
2335 purple_config : unconfig
2336 @$(MKCONFIG) $(@:_config=) mips mips purple
2338 #========================================================================
2340 #========================================================================
2341 #########################################################################
2343 #########################################################################
2345 DK1C20_safe_32_config \
2346 DK1C20_standard_32_config \
2347 DK1C20_config: unconfig
2348 @mkdir -p $(obj)include
2349 @ >$(obj)include/config.h
2350 @[ -z "$(findstring _safe_32,$@)" ] || \
2351 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2352 echo "... NIOS 'safe_32' configuration" ; \
2354 @[ -z "$(findstring _standard_32,$@)" ] || \
2355 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2356 echo "... NIOS 'standard_32' configuration" ; \
2358 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2359 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2360 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2362 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2364 DK1S10_safe_32_config \
2365 DK1S10_standard_32_config \
2366 DK1S10_mtx_ldk_20_config \
2367 DK1S10_config: unconfig
2368 @mkdir -p $(obj)include
2369 @ >$(obj)include/config.h
2370 @[ -z "$(findstring _safe_32,$@)" ] || \
2371 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2372 echo "... NIOS 'safe_32' configuration" ; \
2374 @[ -z "$(findstring _standard_32,$@)" ] || \
2375 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2376 echo "... NIOS 'standard_32' configuration" ; \
2378 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2379 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2380 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2382 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2383 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2384 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2386 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2388 ADNPESC1_DNPEVA2_base_32_config \
2389 ADNPESC1_base_32_config \
2390 ADNPESC1_config: unconfig
2391 @mkdir -p $(obj)include
2392 @ >$(obj)include/config.h
2393 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2394 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2395 echo "... DNP/EVA2 configuration" ; \
2397 @[ -z "$(findstring _base_32,$@)" ] || \
2398 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2399 echo "... NIOS 'base_32' configuration" ; \
2401 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2402 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2403 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2405 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2407 #########################################################################
2409 #########################################################################
2411 EP1C20_config : unconfig
2412 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2414 EP1S10_config : unconfig
2415 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2417 EP1S40_config : unconfig
2418 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2420 PK1C20_config : unconfig
2421 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2423 PCI5441_config : unconfig
2424 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2426 #========================================================================
2428 #========================================================================
2429 #########################################################################
2431 #########################################################################
2432 suzaku_config: unconfig
2433 @mkdir -p $(obj)include
2434 @ >$(obj)include/config.h
2435 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2436 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2438 ml401_config: unconfig
2440 @echo "#define CONFIG_ML401 1" >> include/config.h
2441 @./mkconfig -a $(@:_config=) microblaze microblaze ml401 xilinx
2443 xupv2p_config: unconfig
2445 @echo "#define CONFIG_XUPV2P 1" >> include/config.h
2446 @./mkconfig -a $(@:_config=) microblaze microblaze xupv2p xilinx
2448 #########################################################################
2450 #########################################################################
2451 bf533-ezkit_config: unconfig
2452 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2454 bf533-stamp_config: unconfig
2455 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2457 bf537-stamp_config: unconfig
2458 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2460 bf561-ezkit_config: unconfig
2461 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2463 #========================================================================
2465 #========================================================================
2466 #########################################################################
2468 #########################################################################
2470 atstk1002_config : unconfig
2471 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2473 #########################################################################
2474 #########################################################################
2475 #########################################################################
2478 find $(OBJTREE) -type f \
2479 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2480 -o -name '*.o' -o -name '*.a' \) -print \
2482 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2483 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2484 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2485 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2486 $(obj)examples/test_burst
2487 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2488 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2489 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2490 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2491 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2492 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2493 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2494 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2495 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2496 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2497 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2498 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2499 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2500 rm -f $(obj)include/bmp_logo.h
2501 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2504 find $(OBJTREE) -type f \( -name .depend \
2505 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2508 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2510 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2511 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2512 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2513 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2514 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2516 ifeq ($(OBJTREE),$(SRCTREE))
2518 distclean: clobber unconfig
2521 distclean: clobber unconfig
2526 F=`basename $(TOPDIR)` ; cd .. ; \
2527 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2529 #########################################################################