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 ifeq ($(CPU),mpc83xx)
211 LIBS += drivers/qe/qe.a
213 LIBS += drivers/sk98lin/libsk98lin.a
214 LIBS += post/libpost.a post/drivers/libpostdrivers.a
215 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
216 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
217 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
218 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
219 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
220 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
221 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
222 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
223 LIBS += common/libcommon.a
224 LIBS += libfdt/libfdt.a
226 LIBS := $(addprefix $(obj),$(LIBS))
230 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
232 # The "tools" are needed early, so put this first
233 # Don't include stuff already done in $(LIBS)
239 ifeq ($(CONFIG_NAND_U_BOOT),y)
241 U_BOOT_NAND = $(obj)u-boot-nand.bin
244 __OBJS := $(subst $(obj),,$(OBJS))
245 __LIBS := $(subst $(obj),,$(LIBS))
247 #########################################################################
248 #########################################################################
250 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
254 $(obj)u-boot.hex: $(obj)u-boot
255 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
257 $(obj)u-boot.srec: $(obj)u-boot
258 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
260 $(obj)u-boot.bin: $(obj)u-boot
261 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
263 $(obj)u-boot.img: $(obj)u-boot.bin
264 ./tools/mkimage -A $(ARCH) -T firmware -C none \
265 -a $(TEXT_BASE) -e 0 \
266 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
267 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
270 $(obj)u-boot.sha1: $(obj)u-boot.bin
271 $(obj)tools/ubsha1 $(obj)u-boot.bin
273 $(obj)u-boot.dis: $(obj)u-boot
274 $(OBJDUMP) -d $< > $@
276 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
277 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
278 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
279 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
280 -Map u-boot.map -o u-boot
283 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
286 $(MAKE) -C $(dir $(subst $(obj),,$@))
292 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
294 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
295 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
298 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
299 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
300 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
301 $(TOPDIR)) >> $(VERSION_FILE); \
302 echo "\"" >> $(VERSION_FILE)
305 $(MAKE) -C tools/gdb all || exit 1
308 $(MAKE) -C tools/updater all || exit 1
311 $(MAKE) -C tools/env all || exit 1
314 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
317 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
318 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
319 fs/cramfs fs/fat fs/fdos fs/jffs2 \
320 net disk rtc dtt drivers drivers/sk98lin common \
321 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
324 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
325 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
326 fs/cramfs fs/fat fs/fdos fs/jffs2 \
327 net disk rtc dtt drivers drivers/sk98lin common \
328 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
330 $(obj)System.map: $(obj)u-boot
332 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
333 sort > $(obj)System.map
335 #########################################################################
337 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
338 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
339 $(SUBDIRS) version gdbtools updater env depend \
340 dep tags ctags etags $(obj)System.map:
341 @echo "System not configured - see README" >&2
347 git log --no-merges U-Boot-1_1_5.. | \
348 unexpand -a | sed -e 's/\s\s*$$//' > $@
350 #########################################################################
353 @rm -f $(obj)include/config.h $(obj)include/config.mk \
354 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
356 #========================================================================
358 #========================================================================
360 #########################################################################
362 #########################################################################
364 canmb_config: unconfig
365 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
367 cmi_mpc5xx_config: unconfig
368 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
370 PATI_config: unconfig
371 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
373 #########################################################################
375 #########################################################################
378 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
380 BC3450_config: unconfig
381 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
383 cpci5200_config: unconfig
384 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
386 hmi1001_config: unconfig
387 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
390 Lite5200_LOWBOOT_config \
391 Lite5200_LOWBOOT08_config \
392 icecube_5200_config \
393 icecube_5200_LOWBOOT_config \
394 icecube_5200_LOWBOOT08_config \
395 icecube_5200_DDR_config \
396 icecube_5200_DDR_LOWBOOT_config \
397 icecube_5200_DDR_LOWBOOT08_config \
398 icecube_5100_config: unconfig
399 @mkdir -p $(obj)include
400 @mkdir -p $(obj)board/icecube
401 @ >$(obj)include/config.h
402 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
403 { if [ "$(findstring DDR,$@)" ] ; \
404 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
405 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
407 echo "... with LOWBOOT configuration" ; \
409 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
410 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
411 echo "... with 8 MB flash only" ; \
412 echo "... with LOWBOOT configuration" ; \
414 @[ -z "$(findstring DDR,$@)" ] || \
415 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
416 echo "... DDR memory revision" ; \
418 @[ -z "$(findstring 5200,$@)" ] || \
419 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
420 echo "... with MPC5200 processor" ; \
422 @[ -z "$(findstring 5100,$@)" ] || \
423 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
424 echo "... with MGT5100 processor" ; \
426 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
428 jupiter_config: unconfig
429 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
431 v38b_config: unconfig
432 @./mkconfig -a v38b ppc mpc5xxx v38b
434 inka4x0_config: unconfig
435 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
438 lite5200b_PM_config \
439 lite5200b_LOWBOOT_config: unconfig
440 @mkdir -p $(obj)include
441 @mkdir -p $(obj)board/icecube
442 @ >$(obj)include/config.h
443 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
444 @ echo "... DDR memory revision"
445 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
446 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
447 @[ -z "$(findstring _PM_,$@)" ] || \
448 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
449 echo "... with power management (low-power mode) support" ; \
451 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
452 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
453 echo "... with LOWBOOT configuration" ; \
455 @ echo "... with MPC5200B processor"
456 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
459 mcc200_SDRAM_config \
460 mcc200_highboot_config \
461 mcc200_COM12_config \
462 mcc200_COM12_SDRAM_config \
463 mcc200_COM12_highboot_config \
464 mcc200_COM12_highboot_SDRAM_config \
465 mcc200_highboot_SDRAM_config \
468 prs200_highboot_config \
469 prs200_highboot_DDR_config: unconfig
470 @mkdir -p $(obj)include
471 @mkdir -p $(obj)board/mcc200
472 @ >$(obj)include/config.h
473 @[ -n "$(findstring highboot,$@)" ] || \
474 { echo "... with lowboot configuration" ; \
476 @[ -z "$(findstring highboot,$@)" ] || \
477 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
478 echo "... with highboot configuration" ; \
480 @[ -n "$(findstring _SDRAM,$@)" ] || \
481 { if [ -n "$(findstring mcc200,$@)" ]; \
483 echo "... with DDR" ; \
485 if [ -n "$(findstring _DDR,$@)" ];\
487 echo "... with DDR" ; \
489 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
490 echo "... with SDRAM" ; \
494 @[ -z "$(findstring _SDRAM,$@)" ] || \
495 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
496 echo "... with SDRAM" ; \
498 @[ -z "$(findstring COM12,$@)" ] || \
499 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
500 echo "... with console on COM12" ; \
502 @[ -z "$(findstring prs200,$@)" ] || \
503 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
505 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
507 mecp5200_config: unconfig
508 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
511 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
513 pf5200_config: unconfig
514 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
518 PM520_ROMBOOT_config \
519 PM520_ROMBOOT_DDR_config: unconfig
520 @mkdir -p $(obj)include
521 @ >$(obj)include/config.h
522 @[ -z "$(findstring DDR,$@)" ] || \
523 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
524 echo "... DDR memory revision" ; \
526 @[ -z "$(findstring ROMBOOT,$@)" ] || \
527 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
528 echo "... booting from 8-bit flash" ; \
530 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
532 smmaco4_config: unconfig
533 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
535 cm1_qp1_config: unconfig
537 @[ -z "$(findstring cm1_qp1,$@)" ] || \
538 { echo "... with 64 MByte SDRAM" ; \
539 echo "... with 32 MByte Flash" ; \
541 @./mkconfig -a cm1_qp1 ppc mpc5xxx cm1_qp1
543 spieval_config: unconfig
544 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
547 TB5200_config: unconfig
548 @mkdir -p $(obj)include
549 @[ -z "$(findstring _B,$@)" ] || \
550 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
551 echo "... with MPC5200B processor" ; \
553 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
557 TOP5200_config: unconfig
558 @mkdir -p $(obj)include
559 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
560 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
564 Total5200_lowboot_config \
565 Total5200_Rev2_config \
566 Total5200_Rev2_lowboot_config: unconfig
567 @mkdir -p $(obj)include
568 @mkdir -p $(obj)board/total5200
569 @ >$(obj)include/config.h
570 @[ -z "$(findstring 5100,$@)" ] || \
571 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
572 echo "... with MGT5100 processor" ; \
574 @[ -z "$(findstring 5200,$@)" ] || \
575 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
576 echo "... with MPC5200 processor" ; \
578 @[ -n "$(findstring Rev,$@)" ] || \
579 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
580 echo "... revision 1 board" ; \
582 @[ -z "$(findstring Rev2_,$@)" ] || \
583 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
584 echo "... revision 2 board" ; \
586 @[ -z "$(findstring lowboot_,$@)" ] || \
587 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
588 echo "... with lowboot configuration" ; \
590 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
593 cam5200_niosflash_config \
597 TQM5200S_HIGHBOOT_config \
599 TQM5200_B_HIGHBOOT_config \
601 TQM5200_STK100_config: unconfig
602 @mkdir -p $(obj)include
603 @mkdir -p $(obj)board/tqm5200
604 @ >$(obj)include/config.h
605 @[ -z "$(findstring cam5200,$@)" ] || \
606 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
607 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
608 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
609 echo "... TQM5200S on Cam5200" ; \
611 @[ -z "$(findstring niosflash,$@)" ] || \
612 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
613 echo "... with NIOS flash driver" ; \
615 @[ -z "$(findstring fo300,$@)" ] || \
616 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
617 echo "... TQM5200 on FO300" ; \
619 @[ -z "$(findstring MiniFAP,$@)" ] || \
620 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
621 echo "... TQM5200_AC on MiniFAP" ; \
623 @[ -z "$(findstring STK100,$@)" ] || \
624 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
625 echo "... on a STK52XX.100 base board" ; \
627 @[ -z "$(findstring TQM5200_B,$@)" ] || \
628 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
630 @[ -z "$(findstring TQM5200S,$@)" ] || \
631 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
632 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
634 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
635 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
637 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
638 uc101_config: unconfig
639 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
640 motionpro_config: unconfig
641 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
644 #########################################################################
646 #########################################################################
652 @mkdir -p $(obj)include
653 $(if $(findstring AdderII,$@), \
654 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
655 @$(MKCONFIG) -a Adder ppc mpc8xx adder
662 FADS860T_config: unconfig
663 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
665 AMX860_config : unconfig
666 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
668 c2mon_config: unconfig
669 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
672 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
674 cogent_mpc8xx_config: unconfig
675 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
677 ELPT860_config: unconfig
678 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
680 EP88x_config: unconfig
681 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
683 ESTEEM192E_config: unconfig
684 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
686 ETX094_config : unconfig
687 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
689 FLAGADM_config: unconfig
690 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
692 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
695 GEN860T_config: unconfig
696 @mkdir -p $(obj)include
697 @ >$(obj)include/config.h
698 @[ -z "$(findstring _SC,$@)" ] || \
699 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
700 echo "With reduced H/W feature set (SC)..." ; \
702 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
704 GENIETV_config: unconfig
705 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
708 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
710 hermes_config : unconfig
711 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
713 HMI10_config : unconfig
714 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
716 IAD210_config: unconfig
717 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
719 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
721 ICU862_100MHz_config \
722 ICU862_config: unconfig
723 @mkdir -p $(obj)include
724 @ >$(obj)include/config.h
725 @[ -z "$(findstring _100MHz,$@)" ] || \
726 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
727 echo "... with 100MHz system clock" ; \
729 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
731 IP860_config : unconfig
732 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
736 IVML24_config: unconfig
737 @mkdir -p $(obj)include
738 @ >$(obj)include/config.h
739 @[ -z "$(findstring IVML24_config,$@)" ] || \
740 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
742 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
743 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
745 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
746 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
748 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
752 IVMS8_config: unconfig
753 @mkdir -p $(obj)include
754 @ >$(obj)include/config.h
755 @[ -z "$(findstring IVMS8_config,$@)" ] || \
756 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
758 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
759 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
761 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
762 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
764 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
766 KUP4K_config : unconfig
767 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
769 KUP4X_config : unconfig
770 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
772 LANTEC_config : unconfig
773 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
775 lwmon_config: unconfig
776 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
779 MBX860T_config: unconfig
780 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
782 MHPC_config: unconfig
783 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
785 MVS1_config : unconfig
786 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
788 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
791 NETVIA_config: unconfig
792 @mkdir -p $(obj)include
793 @ >$(obj)include/config.h
794 @[ -z "$(findstring NETVIA_config,$@)" ] || \
795 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
796 echo "... Version 1" ; \
798 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
799 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
800 echo "... Version 2" ; \
802 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
804 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
807 NETPHONE_config: unconfig
808 @mkdir -p $(obj)include
809 @ >$(obj)include/config.h
810 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
811 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
813 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
814 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
816 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
818 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
820 NETTA_ISDN_6412_SWAPHOOK_config \
821 NETTA_ISDN_SWAPHOOK_config \
822 NETTA_6412_SWAPHOOK_config \
823 NETTA_SWAPHOOK_config \
824 NETTA_ISDN_6412_config \
827 NETTA_config: unconfig
828 @mkdir -p $(obj)include
829 @ >$(obj)include/config.h
830 @[ -z "$(findstring ISDN_,$@)" ] || \
831 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
833 @[ -n "$(findstring ISDN_,$@)" ] || \
834 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
836 @[ -z "$(findstring 6412_,$@)" ] || \
837 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
839 @[ -n "$(findstring 6412_,$@)" ] || \
840 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
842 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
843 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
845 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
846 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
848 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
850 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
853 NETTA2_config: unconfig
854 @mkdir -p $(obj)include
855 @ >$(obj)include/config.h
856 @[ -z "$(findstring NETTA2_config,$@)" ] || \
857 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
859 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
860 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
862 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
866 CP850_config: unconfig
867 @mkdir -p $(obj)include
868 @ >$(obj)include/config.h
869 @[ -z "$(findstring CP850,$@)" ] || \
870 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
871 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
873 @[ -z "$(findstring Rev1,$@)" ] || \
874 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
876 @[ -z "$(findstring Rev2,$@)" ] || \
877 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
879 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
881 NX823_config: unconfig
882 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
884 pcu_e_config: unconfig
885 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
887 QS850_config: unconfig
888 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
890 QS823_config: unconfig
891 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
893 QS860T_config: unconfig
894 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
896 quantum_config: unconfig
897 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
899 R360MPI_config: unconfig
900 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
902 RBC823_config: unconfig
903 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
905 RPXClassic_config: unconfig
906 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
908 RPXlite_config: unconfig
909 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
911 RPXlite_DW_64_config \
912 RPXlite_DW_LCD_config \
913 RPXlite_DW_64_LCD_config \
914 RPXlite_DW_NVRAM_config \
915 RPXlite_DW_NVRAM_64_config \
916 RPXlite_DW_NVRAM_LCD_config \
917 RPXlite_DW_NVRAM_64_LCD_config \
918 RPXlite_DW_config: unconfig
919 @mkdir -p $(obj)include
920 @ >$(obj)include/config.h
921 @[ -z "$(findstring _64,$@)" ] || \
922 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
923 echo "... with 64MHz system clock ..."; \
925 @[ -z "$(findstring _LCD,$@)" ] || \
926 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
927 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
928 echo "... with LCD display ..."; \
930 @[ -z "$(findstring _NVRAM,$@)" ] || \
931 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
932 echo "... with ENV in NVRAM ..."; \
934 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
937 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
939 RRvision_config: unconfig
940 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
942 RRvision_LCD_config: unconfig
943 @mkdir -p $(obj)include
944 @echo "#define CONFIG_LCD" >$(obj)include/config.h
945 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
946 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
948 SM850_config : unconfig
949 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
952 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
954 SPD823TS_config: unconfig
955 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
957 stxxtc_config: unconfig
958 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
960 svm_sc8xx_config: unconfig
961 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
963 SXNI855T_config: unconfig
964 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
966 # EMK MPC8xx based modules
967 TOP860_config: unconfig
968 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
970 # Play some tricks for configuration selection
971 # Only 855 and 860 boards may come with FEC
972 # and only 823 boards may have LCD support
973 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
991 virtlab2_config: unconfig
992 @mkdir -p $(obj)include
993 @ >$(obj)include/config.h
994 @[ -z "$(findstring _LCD,$@)" ] || \
995 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
996 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
997 echo "... with LCD display" ; \
999 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1001 TTTech_config: unconfig
1002 @mkdir -p $(obj)include
1003 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1004 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1005 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1007 uc100_config : unconfig
1008 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1010 v37_config: unconfig
1011 @mkdir -p $(obj)include
1012 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1013 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1014 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1016 wtk_config: unconfig
1017 @mkdir -p $(obj)include
1018 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1019 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1020 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1022 #########################################################################
1024 #########################################################################
1025 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1027 acadia_config: unconfig
1028 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1030 acadia_nand_config: unconfig
1031 @mkdir -p $(obj)include
1032 @mkdir -p $(obj)nand_spl
1033 @mkdir -p $(obj)board/amcc/acadia
1034 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1035 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1036 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1037 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1039 ADCIOP_config: unconfig
1040 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1042 alpr_config: unconfig
1043 @./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
1045 AP1000_config:unconfig
1046 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1048 APC405_config: unconfig
1049 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1051 AR405_config: unconfig
1052 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1054 ASH405_config: unconfig
1055 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1057 bamboo_config: unconfig
1058 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1060 bamboo_nand_config: unconfig
1061 @mkdir -p $(obj)include
1062 @mkdir -p $(obj)nand_spl
1063 @mkdir -p $(obj)board/amcc/bamboo
1064 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1065 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1066 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1067 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1069 bubinga_config: unconfig
1070 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1072 CANBT_config: unconfig
1073 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1076 CATcenter_25_config \
1077 CATcenter_33_config: unconfig
1078 @mkdir -p $(obj)include
1079 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1080 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1081 @[ -z "$(findstring _25,$@)" ] || \
1082 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1083 echo "SysClk = 25MHz" ; \
1085 @[ -z "$(findstring _33,$@)" ] || \
1086 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1087 echo "SysClk = 33MHz" ; \
1089 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1091 CPCI2DP_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1097 CPCI405AB_config: unconfig
1098 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1099 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1101 CPCI440_config: unconfig
1102 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1104 CPCIISER4_config: unconfig
1105 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1107 CRAYL1_config: unconfig
1108 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1110 csb272_config: unconfig
1111 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1113 csb472_config: unconfig
1114 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1116 DASA_SIM_config: unconfig
1117 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1119 DP405_config: unconfig
1120 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1122 DU405_config: unconfig
1123 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1125 ebony_config: unconfig
1126 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1128 ERIC_config: unconfig
1129 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1131 EXBITGEN_config: unconfig
1132 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1134 G2000_config: unconfig
1135 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1137 hcu4_config: unconfig
1138 @./mkconfig $(@:_config=) ppc ppc4xx hcu4 netstal
1140 hcu5_config: unconfig
1141 @./mkconfig $(@:_config=) ppc ppc4xx hcu5 netstal
1143 HH405_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1146 HUB405_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1149 JSE_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1152 KAREF_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1155 katmai_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1158 luan_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1161 lwmon5_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1164 METROBOX_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1167 MIP405_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1170 MIP405T_config: unconfig
1171 @mkdir -p $(obj)include
1172 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1173 @echo "Enable subset config for MIP405T"
1174 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1176 ML2_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1179 ml300_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1182 ocotea_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1186 ORSG_config: unconfig
1187 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1189 p3p440_config: unconfig
1190 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1192 PCI405_config: unconfig
1193 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1195 pcs440ep_config: unconfig
1196 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1198 PIP405_config: unconfig
1199 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1201 PLU405_config: unconfig
1202 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1204 PMC405_config: unconfig
1205 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1207 PPChameleonEVB_config \
1208 PPChameleonEVB_BA_25_config \
1209 PPChameleonEVB_ME_25_config \
1210 PPChameleonEVB_HI_25_config \
1211 PPChameleonEVB_BA_33_config \
1212 PPChameleonEVB_ME_33_config \
1213 PPChameleonEVB_HI_33_config: unconfig
1214 @mkdir -p $(obj)include
1215 @ >$(obj)include/config.h
1216 @[ -z "$(findstring EVB_BA,$@)" ] || \
1217 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1218 echo "... BASIC model" ; \
1220 @[ -z "$(findstring EVB_ME,$@)" ] || \
1221 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1222 echo "... MEDIUM model" ; \
1224 @[ -z "$(findstring EVB_HI,$@)" ] || \
1225 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1226 echo "... HIGH-END model" ; \
1228 @[ -z "$(findstring _25,$@)" ] || \
1229 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1230 echo "SysClk = 25MHz" ; \
1232 @[ -z "$(findstring _33,$@)" ] || \
1233 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1234 echo "SysClk = 33MHz" ; \
1236 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1238 sbc405_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1242 rainier_config: unconfig
1243 @mkdir -p $(obj)include
1244 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1245 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1246 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1248 sequoia_nand_config \
1249 rainier_nand_config: unconfig
1250 @mkdir -p $(obj)include
1251 @mkdir -p $(obj)nand_spl
1252 @mkdir -p $(obj)board/amcc/sequoia
1253 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1254 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1255 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1256 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1257 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1258 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1261 @./mkconfig $(@:_config=) ppc ppc4xx sc3
1263 taishan_config: unconfig
1264 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1266 VOH405_config: unconfig
1267 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1269 VOM405_config: unconfig
1270 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1272 CMS700_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1276 W7OLMG_config: unconfig
1277 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1279 # Walnut & Sycamore images are identical (recognized via PVR)
1281 sycamore_config: unconfig
1282 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1284 WUH405_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1287 XPEDITE1K_config: unconfig
1288 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1291 yellowstone_config: unconfig
1292 @mkdir -p $(obj)include
1293 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1294 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1295 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1297 yucca_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1300 #########################################################################
1302 #########################################################################
1305 Yukon8220_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1308 sorcery_config: unconfig
1309 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1311 #########################################################################
1313 #########################################################################
1314 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1316 A3000_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1319 barco_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1322 BMW_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1326 CPC45_ROMBOOT_config: unconfig
1327 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1328 @cd $(obj)include ; \
1329 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1330 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1331 echo "... booting from 8-bit flash" ; \
1333 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1334 echo "... booting from 64-bit flash" ; \
1336 echo "export CONFIG_BOOT_ROM" >> config.mk;
1338 CU824_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1341 debris_config: unconfig
1342 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1344 eXalion_config: unconfig
1345 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1347 HIDDEN_DRAGON_config: unconfig
1348 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1350 kvme080_config: unconfig
1351 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1353 MOUSSE_config: unconfig
1354 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1356 MUSENKI_config: unconfig
1357 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1359 MVBLUE_config: unconfig
1360 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1362 OXC_config: unconfig
1363 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1365 PN62_config: unconfig
1366 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1368 Sandpoint8240_config: unconfig
1369 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1371 Sandpoint8245_config: unconfig
1372 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1374 sbc8240_config: unconfig
1375 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1377 SL8245_config: unconfig
1378 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1380 utx8245_config: unconfig
1381 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1383 #########################################################################
1385 #########################################################################
1387 atc_config: unconfig
1388 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1390 cogent_mpc8260_config: unconfig
1391 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1394 CPU86_ROMBOOT_config: unconfig
1395 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1396 @cd $(obj)include ; \
1397 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1398 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1399 echo "... booting from 8-bit flash" ; \
1401 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1402 echo "... booting from 64-bit flash" ; \
1404 echo "export CONFIG_BOOT_ROM" >> config.mk;
1407 CPU87_ROMBOOT_config: unconfig
1408 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1409 @cd $(obj)include ; \
1410 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1411 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1412 echo "... booting from 8-bit flash" ; \
1414 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1415 echo "... booting from 64-bit flash" ; \
1417 echo "export CONFIG_BOOT_ROM" >> config.mk;
1420 ep8248E_config : unconfig
1421 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1423 ep8260_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1426 ep82xxm_config: unconfig
1427 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1429 gw8260_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1432 hymod_config: unconfig
1433 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1435 IDS8247_config: unconfig
1436 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1438 IPHASE4539_config: unconfig
1439 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1442 ISPAN_REVB_config: unconfig
1443 @mkdir -p $(obj)include
1444 @if [ "$(findstring _REVB_,$@)" ] ; then \
1445 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1447 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1450 MPC8260ADS_lowboot_config \
1451 MPC8260ADS_33MHz_config \
1452 MPC8260ADS_33MHz_lowboot_config \
1453 MPC8260ADS_40MHz_config \
1454 MPC8260ADS_40MHz_lowboot_config \
1456 MPC8272ADS_lowboot_config \
1458 PQ2FADS_lowboot_config \
1460 PQ2FADS-VR_lowboot_config \
1462 PQ2FADS-ZU_lowboot_config \
1463 PQ2FADS-ZU_66MHz_config \
1464 PQ2FADS-ZU_66MHz_lowboot_config \
1466 @mkdir -p $(obj)include
1467 @mkdir -p $(obj)board/mpc8260ads
1468 $(if $(findstring PQ2FADS,$@), \
1469 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1470 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1471 $(if $(findstring MHz,$@), \
1472 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1473 $(if $(findstring VR,$@), \
1474 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1475 @[ -z "$(findstring lowboot_,$@)" ] || \
1476 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1477 echo "... with lowboot configuration" ; \
1479 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1481 MPC8266ADS_config: unconfig
1482 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1484 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1486 PM825_ROMBOOT_config \
1487 PM825_BIGFLASH_config \
1488 PM825_ROMBOOT_BIGFLASH_config \
1490 PM826_ROMBOOT_config \
1491 PM826_BIGFLASH_config \
1492 PM826_ROMBOOT_BIGFLASH_config: unconfig
1493 @mkdir -p $(obj)include
1494 @mkdir -p $(obj)board/pm826
1495 @if [ "$(findstring PM825_,$@)" ] ; then \
1496 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1498 >$(obj)include/config.h ; \
1500 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1501 echo "... booting from 8-bit flash" ; \
1502 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1503 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1504 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1505 echo "... with 32 MB Flash" ; \
1506 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1509 echo "... booting from 64-bit flash" ; \
1510 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1511 echo "... with 32 MB Flash" ; \
1512 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1513 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1515 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1518 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1522 PM828_ROMBOOT_config \
1523 PM828_ROMBOOT_PCI_config: unconfig
1524 @mkdir -p $(obj)include
1525 @mkdir -p $(obj)board/pm826
1526 @if [ "$(findstring _PCI_,$@)" ] ; then \
1527 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1528 echo "... with PCI enabled" ; \
1530 >$(obj)include/config.h ; \
1532 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1533 echo "... booting from 8-bit flash" ; \
1534 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1535 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1537 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1539 ppmc8260_config: unconfig
1540 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1542 Rattler8248_config \
1543 Rattler_config: unconfig
1544 @mkdir -p $(obj)include
1545 $(if $(findstring 8248,$@), \
1546 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1547 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1549 RPXsuper_config: unconfig
1550 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1552 rsdproto_config: unconfig
1553 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1555 sacsng_config: unconfig
1556 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1558 sbc8260_config: unconfig
1559 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1561 SCM_config: unconfig
1562 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1574 TQM8265_AA_config: unconfig
1575 @mkdir -p $(obj)include
1577 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1578 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1579 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1580 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1581 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1582 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1583 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1584 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1585 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1586 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1587 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1589 >$(obj)include/config.h ; \
1590 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1591 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1593 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1594 echo "... with $${CFREQ}MHz system clock" ; \
1595 if [ "$${CACHE}" == "yes" ] ; then \
1596 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1597 echo "... with L2 Cache support" ; \
1599 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1600 echo "... without L2 Cache support" ; \
1602 if [ "$${BMODE}" == "60x" ] ; then \
1603 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1604 echo "... with 60x Bus Mode" ; \
1606 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1607 echo "... without 60x Bus Mode" ; \
1609 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1611 TQM8272_config: unconfig
1612 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1614 VoVPN-GW_66MHz_config \
1615 VoVPN-GW_100MHz_config: unconfig
1616 @mkdir -p $(obj)include
1617 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1618 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1620 ZPC1900_config: unconfig
1621 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1623 #########################################################################
1625 #########################################################################
1627 cobra5272_config : unconfig
1628 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1630 EB+MCF-EV123_config : unconfig
1631 @mkdir -p $(obj)include
1632 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1633 @ >$(obj)include/config.h
1634 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1635 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1637 EB+MCF-EV123_internal_config : unconfig
1638 @mkdir -p $(obj)include
1639 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1640 @ >$(obj)include/config.h
1641 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1642 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1644 idmr_config : unconfig
1645 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1647 M5271EVB_config : unconfig
1648 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1650 M5272C3_config : unconfig
1651 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1653 M5282EVB_config : unconfig
1654 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1656 TASREG_config : unconfig
1657 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1659 r5200_config : unconfig
1660 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1662 #########################################################################
1664 #########################################################################
1666 MPC8313ERDB_33_config \
1667 MPC8313ERDB_66_config: unconfig
1668 @echo "" >include/config.h ; \
1669 if [ "$(findstring _33_,$@)" ] ; then \
1670 echo -n "...33M ..." ; \
1671 echo "#define CFG_33MHZ" >>include/config.h ; \
1673 if [ "$(findstring _66_,$@)" ] ; then \
1674 echo -n "...66M..." ; \
1675 echo "#define CFG_66MHZ" >>include/config.h ; \
1677 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1679 MPC832XEMDS_config \
1680 MPC832XEMDS_HOST_33_config \
1681 MPC832XEMDS_HOST_66_config \
1682 MPC832XEMDS_SLAVE_config: unconfig
1683 @echo "" >include/config.h ; \
1684 if [ "$(findstring _HOST_,$@)" ] ; then \
1685 echo -n "... PCI HOST " ; \
1686 echo "#define CONFIG_PCI" >>include/config.h ; \
1688 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1689 echo "...PCI SLAVE 66M" ; \
1690 echo "#define CONFIG_PCI" >>include/config.h ; \
1691 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1693 if [ "$(findstring _33_,$@)" ] ; then \
1694 echo -n "...33M ..." ; \
1695 echo "#define PCI_33M" >>include/config.h ; \
1697 if [ "$(findstring _66_,$@)" ] ; then \
1698 echo -n "...66M..." ; \
1699 echo "#define PCI_66M" >>include/config.h ; \
1701 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1703 MPC8349EMDS_config: unconfig
1704 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1707 MPC8349ITX_LOWBOOT_config \
1708 MPC8349ITXGP_config: unconfig
1709 @mkdir -p $(obj)include
1710 @mkdir -p $(obj)board/mpc8349itx
1711 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1712 @if [ "$(findstring GP,$@)" ] ; then \
1713 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1715 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1716 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1718 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1720 MPC8360EMDS_config \
1721 MPC8360EMDS_HOST_33_config \
1722 MPC8360EMDS_HOST_66_config \
1723 MPC8360EMDS_SLAVE_config: unconfig
1724 @echo "" >include/config.h ; \
1725 if [ "$(findstring _HOST_,$@)" ] ; then \
1726 echo -n "... PCI HOST " ; \
1727 echo "#define CONFIG_PCI" >>include/config.h ; \
1729 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1730 echo "...PCI SLAVE 66M" ; \
1731 echo "#define CONFIG_PCI" >>include/config.h ; \
1732 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1734 if [ "$(findstring _33_,$@)" ] ; then \
1735 echo -n "...33M ..." ; \
1736 echo "#define PCI_33M" >>include/config.h ; \
1738 if [ "$(findstring _66_,$@)" ] ; then \
1739 echo -n "...66M..." ; \
1740 echo "#define PCI_66M" >>include/config.h ; \
1742 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1744 sbc8349_config: unconfig
1745 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1747 TQM834x_config: unconfig
1748 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1751 #########################################################################
1753 #########################################################################
1755 MPC8540ADS_config: unconfig
1756 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1758 MPC8540EVAL_config \
1759 MPC8540EVAL_33_config \
1760 MPC8540EVAL_66_config \
1761 MPC8540EVAL_33_slave_config \
1762 MPC8540EVAL_66_slave_config: unconfig
1763 @mkdir -p $(obj)include
1764 @echo "" >$(obj)include/config.h ; \
1765 if [ "$(findstring _33_,$@)" ] ; then \
1766 echo -n "... 33 MHz PCI" ; \
1768 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1769 echo -n "... 66 MHz PCI" ; \
1771 if [ "$(findstring _slave_,$@)" ] ; then \
1772 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1777 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1779 MPC8560ADS_config: unconfig
1780 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1782 MPC8541CDS_config: unconfig
1783 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1785 MPC8544DS_config: unconfig
1786 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1788 MPC8548CDS_config: unconfig
1789 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1791 MPC8555CDS_config: unconfig
1792 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1794 MPC8568MDS_config: unconfig
1795 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1797 PM854_config: unconfig
1798 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1800 PM856_config: unconfig
1801 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1805 sbc8540_66_config: unconfig
1806 @mkdir -p $(obj)include
1807 @if [ "$(findstring _66_,$@)" ] ; then \
1808 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1809 echo "... 66 MHz PCI" ; \
1811 >$(obj)include/config.h ; \
1812 echo "... 33 MHz PCI" ; \
1814 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1818 sbc8560_66_config: unconfig
1819 @mkdir -p $(obj)include
1820 @if [ "$(findstring _66_,$@)" ] ; then \
1821 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1822 echo "... 66 MHz PCI" ; \
1824 >$(obj)include/config.h ; \
1825 echo "... 33 MHz PCI" ; \
1827 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1829 stxgp3_config: unconfig
1830 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1833 stxssa_4M_config: unconfig
1834 @mkdir -p $(obj)include
1835 @if [ "$(findstring _4M_,$@)" ] ; then \
1836 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1837 echo "... with 4 MiB flash memory" ; \
1839 >$(obj)include/config.h ; \
1841 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1846 TQM8560_config: unconfig
1847 @mkdir -p $(obj)include
1848 @CTYPE=$(subst TQM,,$(@:_config=)); \
1849 >$(obj)include/config.h ; \
1850 echo "... TQM"$${CTYPE}; \
1851 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1852 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1853 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1854 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1855 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1856 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1858 #########################################################################
1860 #########################################################################
1862 MPC8641HPCN_config: unconfig
1863 @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1866 #########################################################################
1868 #########################################################################
1870 AmigaOneG3SE_config: unconfig
1871 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1873 BAB7xx_config: unconfig
1874 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1876 CPCI750_config: unconfig
1877 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1879 DB64360_config: unconfig
1880 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1882 DB64460_config: unconfig
1883 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1885 ELPPC_config: unconfig
1886 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1889 EVB64260_750CX_config: unconfig
1890 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1892 mpc7448hpc2_config: unconfig
1893 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1895 P3G4_config: unconfig
1896 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1899 p3m7448_config: unconfig
1900 @mkdir -p $(obj)include
1901 @if [ "$(findstring 750_,$@)" ] ; then \
1902 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1904 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1906 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1909 PCIPPC6_config: unconfig
1910 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1912 ZUMA_config: unconfig
1913 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1915 ppmc7xx_config: unconfig
1916 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1918 #========================================================================
1920 #========================================================================
1921 #########################################################################
1922 ## StrongARM Systems
1923 #########################################################################
1925 assabet_config : unconfig
1926 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1928 dnp1110_config : unconfig
1929 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1931 gcplus_config : unconfig
1932 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1934 lart_config : unconfig
1935 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1937 shannon_config : unconfig
1938 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1940 #########################################################################
1942 #########################################################################
1944 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1946 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1948 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1950 at91rm9200dk_config : unconfig
1951 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1953 cmc_pu2_config : unconfig
1954 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1956 csb637_config : unconfig
1957 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1959 mp2usb_config : unconfig
1960 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1963 ########################################################################
1964 ## ARM Integrator boards - see doc/README-integrator for more info.
1965 integratorap_config \
1974 ap946es_config: unconfig
1975 @board/integratorap/split_by_variant.sh $@
1977 integratorcp_config \
1986 cp1026_config: unconfig
1987 @board/integratorcp/split_by_variant.sh $@
1989 kb9202_config : unconfig
1990 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1993 lpd7a404_config: unconfig
1994 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1996 mx1ads_config : unconfig
1997 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1999 mx1fs2_config : unconfig
2000 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2003 netstar_config: unconfig
2004 @mkdir -p $(obj)include
2005 @if [ "$(findstring _32_,$@)" ] ; then \
2006 echo "... 32MB SDRAM" ; \
2007 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2009 echo "... 64MB SDRAM" ; \
2010 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2012 @$(MKCONFIG) -a netstar arm arm925t netstar
2014 omap1510inn_config : unconfig
2015 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2017 omap5912osk_config : unconfig
2018 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2020 omap1610inn_config \
2021 omap1610inn_cs0boot_config \
2022 omap1610inn_cs3boot_config \
2023 omap1610inn_cs_autoboot_config \
2025 omap1610h2_cs0boot_config \
2026 omap1610h2_cs3boot_config \
2027 omap1610h2_cs_autoboot_config: unconfig
2028 @mkdir -p $(obj)include
2029 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2030 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
2031 echo "... configured for CS0 boot"; \
2032 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2033 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
2034 echo "... configured for CS_AUTO boot"; \
2036 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
2037 echo "... configured for CS3 boot"; \
2039 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2042 omap730p2_cs0boot_config \
2043 omap730p2_cs3boot_config : unconfig
2044 @mkdir -p $(obj)include
2045 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2046 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2047 echo "... configured for CS0 boot"; \
2049 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2050 echo "... configured for CS3 boot"; \
2052 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2054 sbc2410x_config: unconfig
2055 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2057 scb9328_config : unconfig
2058 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2060 smdk2400_config : unconfig
2061 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2063 smdk2410_config : unconfig
2064 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2066 SX1_config : unconfig
2067 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2069 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2071 trab_bigram_config \
2072 trab_bigflash_config \
2073 trab_old_config: unconfig
2074 @mkdir -p $(obj)include
2075 @mkdir -p $(obj)board/trab
2076 @ >$(obj)include/config.h
2077 @[ -z "$(findstring _bigram,$@)" ] || \
2078 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2079 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2080 echo "... with 8 MB Flash, 32 MB RAM" ; \
2082 @[ -z "$(findstring _bigflash,$@)" ] || \
2083 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2084 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2085 echo "... with 16 MB Flash, 16 MB RAM" ; \
2086 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2088 @[ -z "$(findstring _old,$@)" ] || \
2089 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2090 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2091 echo "... with 8 MB Flash, 16 MB RAM" ; \
2092 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2094 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2096 VCMA9_config : unconfig
2097 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2099 #========================================================================
2100 # ARM supplied Versatile development boards
2101 #========================================================================
2103 versatileab_config \
2104 versatilepb_config : unconfig
2105 @board/versatile/split_by_variant.sh $@
2107 voiceblue_smallflash_config \
2108 voiceblue_config: unconfig
2109 @mkdir -p $(obj)include
2110 @mkdir -p $(obj)board/voiceblue
2111 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2112 echo "... boot from lower flash bank" ; \
2113 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2114 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2116 echo "... boot from upper flash bank" ; \
2117 >$(obj)include/config.h ; \
2118 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2120 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2122 cm4008_config : unconfig
2123 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2125 cm41xx_config : unconfig
2126 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2128 gth2_config : unconfig
2129 @mkdir -p $(obj)include
2130 @ >$(obj)include/config.h
2131 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2132 @$(MKCONFIG) -a gth2 mips mips gth2
2134 #########################################################################
2136 #########################################################################
2138 B2_config : unconfig
2139 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2141 #########################################################################
2143 #########################################################################
2145 armadillo_config: unconfig
2146 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2148 ep7312_config : unconfig
2149 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2151 impa7_config : unconfig
2152 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2154 modnet50_config : unconfig
2155 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2157 evb4510_config : unconfig
2158 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2160 lpc2292sodimm_config: unconfig
2161 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2163 SMN42_config : unconfig
2164 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2166 #########################################################################
2168 #########################################################################
2170 adsvix_config : unconfig
2171 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2173 cerf250_config : unconfig
2174 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2176 cradle_config : unconfig
2177 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2179 csb226_config : unconfig
2180 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2183 @$(MKCONFIG) $(@:_config=) arm pxa delta
2185 innokom_config : unconfig
2186 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2188 ixdp425_config : unconfig
2189 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2191 ixdpg425_config : unconfig
2192 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2194 lubbock_config : unconfig
2195 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2197 pleb2_config : unconfig
2198 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2200 logodl_config : unconfig
2201 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2204 scpu_config: unconfig
2205 @if [ "$(findstring scpu_,$@)" ] ; then \
2206 echo "#define CONFIG_SCPU" >>include/config.h ; \
2207 echo "... on SCPU board variant" ; \
2209 >include/config.h ; \
2211 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2213 pxa255_idp_config: unconfig
2214 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2216 wepep250_config : unconfig
2217 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2219 xaeniax_config : unconfig
2220 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2222 xm250_config : unconfig
2223 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2225 xsengine_config : unconfig
2226 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2229 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2231 #########################################################################
2233 #########################################################################
2234 omap2420h4_config : unconfig
2235 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2237 #========================================================================
2239 #========================================================================
2240 #########################################################################
2242 #########################################################################
2243 sc520_cdp_config : unconfig
2244 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2246 sc520_spunk_config : unconfig
2247 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2249 sc520_spunk_rel_config : unconfig
2250 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2252 #========================================================================
2254 #========================================================================
2255 #########################################################################
2257 #########################################################################
2259 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2261 incaip_100MHz_config \
2262 incaip_133MHz_config \
2263 incaip_150MHz_config \
2264 incaip_config: unconfig
2265 @mkdir -p $(obj)include
2266 @ >$(obj)include/config.h
2267 @[ -z "$(findstring _100MHz,$@)" ] || \
2268 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2269 echo "... with 100MHz system clock" ; \
2271 @[ -z "$(findstring _133MHz,$@)" ] || \
2272 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2273 echo "... with 133MHz system clock" ; \
2275 @[ -z "$(findstring _150MHz,$@)" ] || \
2276 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2277 echo "... with 150MHz system clock" ; \
2279 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2281 tb0229_config: unconfig
2282 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2284 #########################################################################
2286 #########################################################################
2287 dbau1000_config : unconfig
2288 @mkdir -p $(obj)include
2289 @ >$(obj)include/config.h
2290 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2291 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2293 dbau1100_config : unconfig
2294 @mkdir -p $(obj)include
2295 @ >$(obj)include/config.h
2296 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2297 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2299 dbau1500_config : unconfig
2300 @mkdir -p $(obj)include
2301 @ >$(obj)include/config.h
2302 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2303 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2305 dbau1550_config : unconfig
2306 @mkdir -p $(obj)include
2307 @ >$(obj)include/config.h
2308 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2309 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2311 dbau1550_el_config : unconfig
2312 @mkdir -p $(obj)include
2313 @ >$(obj)include/config.h
2314 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2315 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2317 pb1000_config : unconfig
2318 @mkdir -p $(obj)include
2319 @ >$(obj)include/config.h
2320 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2321 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2323 #########################################################################
2325 #########################################################################
2327 purple_config : unconfig
2328 @$(MKCONFIG) $(@:_config=) mips mips purple
2330 #========================================================================
2332 #========================================================================
2333 #########################################################################
2335 #########################################################################
2337 DK1C20_safe_32_config \
2338 DK1C20_standard_32_config \
2339 DK1C20_config: unconfig
2340 @mkdir -p $(obj)include
2341 @ >$(obj)include/config.h
2342 @[ -z "$(findstring _safe_32,$@)" ] || \
2343 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2344 echo "... NIOS 'safe_32' configuration" ; \
2346 @[ -z "$(findstring _standard_32,$@)" ] || \
2347 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2348 echo "... NIOS 'standard_32' configuration" ; \
2350 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2351 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2352 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2354 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2356 DK1S10_safe_32_config \
2357 DK1S10_standard_32_config \
2358 DK1S10_mtx_ldk_20_config \
2359 DK1S10_config: unconfig
2360 @mkdir -p $(obj)include
2361 @ >$(obj)include/config.h
2362 @[ -z "$(findstring _safe_32,$@)" ] || \
2363 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2364 echo "... NIOS 'safe_32' configuration" ; \
2366 @[ -z "$(findstring _standard_32,$@)" ] || \
2367 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2368 echo "... NIOS 'standard_32' configuration" ; \
2370 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2371 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2372 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2374 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2375 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2376 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2378 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2380 ADNPESC1_DNPEVA2_base_32_config \
2381 ADNPESC1_base_32_config \
2382 ADNPESC1_config: unconfig
2383 @mkdir -p $(obj)include
2384 @ >$(obj)include/config.h
2385 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2386 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2387 echo "... DNP/EVA2 configuration" ; \
2389 @[ -z "$(findstring _base_32,$@)" ] || \
2390 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2391 echo "... NIOS 'base_32' configuration" ; \
2393 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2394 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2395 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2397 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2399 #########################################################################
2401 #########################################################################
2403 EP1C20_config : unconfig
2404 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2406 EP1S10_config : unconfig
2407 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2409 EP1S40_config : unconfig
2410 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2412 PK1C20_config : unconfig
2413 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2415 PCI5441_config : unconfig
2416 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2418 #========================================================================
2420 #========================================================================
2421 #########################################################################
2423 #########################################################################
2424 suzaku_config: unconfig
2425 @mkdir -p $(obj)include
2426 @ >$(obj)include/config.h
2427 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2428 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2430 ml401_config: unconfig
2432 @echo "#define CONFIG_ML401 1" >> include/config.h
2433 @./mkconfig -a $(@:_config=) microblaze microblaze ml401 xilinx
2435 xupv2p_config: unconfig
2437 @echo "#define CONFIG_XUPV2P 1" >> include/config.h
2438 @./mkconfig -a $(@:_config=) microblaze microblaze xupv2p xilinx
2440 #########################################################################
2442 #########################################################################
2443 bf533-ezkit_config: unconfig
2444 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2446 bf533-stamp_config: unconfig
2447 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2449 bf537-stamp_config: unconfig
2450 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2452 bf561-ezkit_config: unconfig
2453 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2455 #========================================================================
2457 #========================================================================
2458 #########################################################################
2460 #########################################################################
2462 atstk1002_config : unconfig
2463 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2465 #########################################################################
2466 #########################################################################
2467 #########################################################################
2470 find $(OBJTREE) -type f \
2471 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2472 -o -name '*.o' -o -name '*.a' \) -print \
2474 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2475 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2476 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2477 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2478 $(obj)examples/test_burst
2479 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2480 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2481 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2482 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2483 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2484 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2485 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2486 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2487 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2488 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2489 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2490 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2491 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2492 rm -f $(obj)include/bmp_logo.h
2493 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2496 find $(OBJTREE) -type f \( -name .depend \
2497 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2500 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2502 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2503 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2504 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2505 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2506 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2508 ifeq ($(OBJTREE),$(SRCTREE))
2510 distclean: clobber unconfig
2513 distclean: clobber unconfig
2518 F=`basename $(TOPDIR)` ; cd .. ; \
2519 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2521 #########################################################################