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/bios_emulator/libatibiosemu.a
209 LIBS += drivers/nand/libnand.a
210 LIBS += drivers/nand_legacy/libnand_legacy.a
211 ifeq ($(CPU),mpc83xx)
212 LIBS += drivers/qe/qe.a
214 LIBS += drivers/sk98lin/libsk98lin.a
215 LIBS += post/libpost.a post/drivers/libpostdrivers.a
216 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
217 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
218 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
219 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
220 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
221 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
222 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
223 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
224 LIBS += common/libcommon.a
225 LIBS += libfdt/libfdt.a
227 LIBS := $(addprefix $(obj),$(LIBS))
231 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
233 # The "tools" are needed early, so put this first
234 # Don't include stuff already done in $(LIBS)
240 ifeq ($(CONFIG_NAND_U_BOOT),y)
242 U_BOOT_NAND = $(obj)u-boot-nand.bin
245 __OBJS := $(subst $(obj),,$(OBJS))
246 __LIBS := $(subst $(obj),,$(LIBS))
248 #########################################################################
249 #########################################################################
251 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
255 $(obj)u-boot.hex: $(obj)u-boot
256 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
258 $(obj)u-boot.srec: $(obj)u-boot
259 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
261 $(obj)u-boot.bin: $(obj)u-boot
262 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
264 $(obj)u-boot.img: $(obj)u-boot.bin
265 ./tools/mkimage -A $(ARCH) -T firmware -C none \
266 -a $(TEXT_BASE) -e 0 \
267 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
268 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
271 $(obj)u-boot.sha1: $(obj)u-boot.bin
272 $(obj)tools/ubsha1 $(obj)u-boot.bin
274 $(obj)u-boot.dis: $(obj)u-boot
275 $(OBJDUMP) -d $< > $@
277 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
278 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
279 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
280 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
281 -Map u-boot.map -o u-boot
284 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
287 $(MAKE) -C $(dir $(subst $(obj),,$@))
293 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
295 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
296 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
299 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
300 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
301 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
302 $(TOPDIR)) >> $(VERSION_FILE); \
303 echo "\"" >> $(VERSION_FILE)
306 $(MAKE) -C tools/gdb all || exit 1
309 $(MAKE) -C tools/updater all || exit 1
312 $(MAKE) -C tools/env all || exit 1
315 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
318 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
319 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
320 fs/cramfs fs/fat fs/fdos fs/jffs2 \
321 net disk rtc dtt drivers drivers/sk98lin common \
322 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
325 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
326 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
327 fs/cramfs fs/fat fs/fdos fs/jffs2 \
328 net disk rtc dtt drivers drivers/sk98lin common \
329 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
331 $(obj)System.map: $(obj)u-boot
333 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
334 sort > $(obj)System.map
336 #########################################################################
338 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
339 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
340 $(SUBDIRS) version gdbtools updater env depend \
341 dep tags ctags etags $(obj)System.map:
342 @echo "System not configured - see README" >&2
348 git log --no-merges U-Boot-1_1_5.. | \
349 unexpand -a | sed -e 's/\s\s*$$//' > $@
351 #########################################################################
354 @rm -f $(obj)include/config.h $(obj)include/config.mk \
355 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
357 #========================================================================
359 #========================================================================
361 #########################################################################
363 #########################################################################
365 canmb_config: unconfig
366 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
368 cmi_mpc5xx_config: unconfig
369 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
371 PATI_config: unconfig
372 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
374 #########################################################################
376 #########################################################################
379 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
381 BC3450_config: unconfig
382 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
384 cpci5200_config: unconfig
385 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
387 hmi1001_config: unconfig
388 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
391 Lite5200_LOWBOOT_config \
392 Lite5200_LOWBOOT08_config \
393 icecube_5200_config \
394 icecube_5200_LOWBOOT_config \
395 icecube_5200_LOWBOOT08_config \
396 icecube_5200_DDR_config \
397 icecube_5200_DDR_LOWBOOT_config \
398 icecube_5200_DDR_LOWBOOT08_config \
399 icecube_5100_config: unconfig
400 @mkdir -p $(obj)include
401 @mkdir -p $(obj)board/icecube
402 @ >$(obj)include/config.h
403 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
404 { if [ "$(findstring DDR,$@)" ] ; \
405 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
406 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
408 echo "... with LOWBOOT configuration" ; \
410 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
411 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
412 echo "... with 8 MB flash only" ; \
413 echo "... with LOWBOOT configuration" ; \
415 @[ -z "$(findstring DDR,$@)" ] || \
416 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
417 echo "... DDR memory revision" ; \
419 @[ -z "$(findstring 5200,$@)" ] || \
420 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
421 echo "... with MPC5200 processor" ; \
423 @[ -z "$(findstring 5100,$@)" ] || \
424 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
425 echo "... with MGT5100 processor" ; \
427 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
429 jupiter_config: unconfig
430 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
432 v38b_config: unconfig
433 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
435 inka4x0_config: unconfig
436 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
439 lite5200b_PM_config \
440 lite5200b_LOWBOOT_config: unconfig
441 @mkdir -p $(obj)include
442 @mkdir -p $(obj)board/icecube
443 @ >$(obj)include/config.h
444 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
445 @ echo "... DDR memory revision"
446 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
447 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
448 @[ -z "$(findstring _PM_,$@)" ] || \
449 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
450 echo "... with power management (low-power mode) support" ; \
452 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
453 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
454 echo "... with LOWBOOT configuration" ; \
456 @ echo "... with MPC5200B processor"
457 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
460 mcc200_SDRAM_config \
461 mcc200_highboot_config \
462 mcc200_COM12_config \
463 mcc200_COM12_SDRAM_config \
464 mcc200_COM12_highboot_config \
465 mcc200_COM12_highboot_SDRAM_config \
466 mcc200_highboot_SDRAM_config \
469 prs200_highboot_config \
470 prs200_highboot_DDR_config: unconfig
471 @mkdir -p $(obj)include
472 @mkdir -p $(obj)board/mcc200
473 @ >$(obj)include/config.h
474 @[ -n "$(findstring highboot,$@)" ] || \
475 { echo "... with lowboot configuration" ; \
477 @[ -z "$(findstring highboot,$@)" ] || \
478 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
479 echo "... with highboot configuration" ; \
481 @[ -n "$(findstring _SDRAM,$@)" ] || \
482 { if [ -n "$(findstring mcc200,$@)" ]; \
484 echo "... with DDR" ; \
486 if [ -n "$(findstring _DDR,$@)" ];\
488 echo "... with DDR" ; \
490 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
491 echo "... with SDRAM" ; \
495 @[ -z "$(findstring _SDRAM,$@)" ] || \
496 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
497 echo "... with SDRAM" ; \
499 @[ -z "$(findstring COM12,$@)" ] || \
500 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
501 echo "... with console on COM12" ; \
503 @[ -z "$(findstring prs200,$@)" ] || \
504 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
506 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
508 mecp5200_config: unconfig
509 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
512 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
514 pf5200_config: unconfig
515 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
519 PM520_ROMBOOT_config \
520 PM520_ROMBOOT_DDR_config: unconfig
521 @mkdir -p $(obj)include
522 @ >$(obj)include/config.h
523 @[ -z "$(findstring DDR,$@)" ] || \
524 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
525 echo "... DDR memory revision" ; \
527 @[ -z "$(findstring ROMBOOT,$@)" ] || \
528 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
529 echo "... booting from 8-bit flash" ; \
531 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
533 smmaco4_config: unconfig
534 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
536 cm5200_config: unconfig
537 @./mkconfig -a cm5200 ppc mpc5xxx cm5200
539 spieval_config: unconfig
540 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
543 TB5200_config: unconfig
544 @mkdir -p $(obj)include
545 @[ -z "$(findstring _B,$@)" ] || \
546 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
547 echo "... with MPC5200B processor" ; \
549 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
553 TOP5200_config: unconfig
554 @mkdir -p $(obj)include
555 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
556 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
560 Total5200_lowboot_config \
561 Total5200_Rev2_config \
562 Total5200_Rev2_lowboot_config: unconfig
563 @mkdir -p $(obj)include
564 @mkdir -p $(obj)board/total5200
565 @ >$(obj)include/config.h
566 @[ -z "$(findstring 5100,$@)" ] || \
567 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
568 echo "... with MGT5100 processor" ; \
570 @[ -z "$(findstring 5200,$@)" ] || \
571 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
572 echo "... with MPC5200 processor" ; \
574 @[ -n "$(findstring Rev,$@)" ] || \
575 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
576 echo "... revision 1 board" ; \
578 @[ -z "$(findstring Rev2_,$@)" ] || \
579 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
580 echo "... revision 2 board" ; \
582 @[ -z "$(findstring lowboot_,$@)" ] || \
583 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
584 echo "... with lowboot configuration" ; \
586 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
589 cam5200_niosflash_config \
593 TQM5200S_HIGHBOOT_config \
595 TQM5200_B_HIGHBOOT_config \
597 TQM5200_STK100_config: unconfig
598 @mkdir -p $(obj)include
599 @mkdir -p $(obj)board/tqm5200
600 @ >$(obj)include/config.h
601 @[ -z "$(findstring cam5200,$@)" ] || \
602 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
603 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
604 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
605 echo "... TQM5200S on Cam5200" ; \
607 @[ -z "$(findstring niosflash,$@)" ] || \
608 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
609 echo "... with NIOS flash driver" ; \
611 @[ -z "$(findstring fo300,$@)" ] || \
612 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
613 echo "... TQM5200 on FO300" ; \
615 @[ -z "$(findstring MiniFAP,$@)" ] || \
616 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
617 echo "... TQM5200_AC on MiniFAP" ; \
619 @[ -z "$(findstring STK100,$@)" ] || \
620 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
621 echo "... on a STK52XX.100 base board" ; \
623 @[ -z "$(findstring TQM5200_B,$@)" ] || \
624 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
626 @[ -z "$(findstring TQM5200S,$@)" ] || \
627 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
628 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
630 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
631 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
633 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
634 uc101_config: unconfig
635 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
636 motionpro_config: unconfig
637 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
640 #########################################################################
642 #########################################################################
643 ads5121_config: unconfig
644 @$(MKCONFIG) ads5121 ppc mpc512x ads5121
647 #########################################################################
649 #########################################################################
655 @mkdir -p $(obj)include
656 $(if $(findstring AdderII,$@), \
657 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
658 @$(MKCONFIG) -a Adder ppc mpc8xx adder
665 FADS860T_config: unconfig
666 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
668 AMX860_config : unconfig
669 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
671 c2mon_config: unconfig
672 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
675 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
677 cogent_mpc8xx_config: unconfig
678 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
680 ELPT860_config: unconfig
681 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
683 EP88x_config: unconfig
684 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
686 ESTEEM192E_config: unconfig
687 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
689 ETX094_config : unconfig
690 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
692 FLAGADM_config: unconfig
693 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
695 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
698 GEN860T_config: unconfig
699 @mkdir -p $(obj)include
700 @ >$(obj)include/config.h
701 @[ -z "$(findstring _SC,$@)" ] || \
702 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
703 echo "With reduced H/W feature set (SC)..." ; \
705 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
707 GENIETV_config: unconfig
708 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
711 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
713 hermes_config : unconfig
714 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
716 HMI10_config : unconfig
717 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
719 IAD210_config: unconfig
720 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
722 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
724 ICU862_100MHz_config \
725 ICU862_config: unconfig
726 @mkdir -p $(obj)include
727 @ >$(obj)include/config.h
728 @[ -z "$(findstring _100MHz,$@)" ] || \
729 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
730 echo "... with 100MHz system clock" ; \
732 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
734 IP860_config : unconfig
735 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
739 IVML24_config: unconfig
740 @mkdir -p $(obj)include
741 @ >$(obj)include/config.h
742 @[ -z "$(findstring IVML24_config,$@)" ] || \
743 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
745 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
746 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
748 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
749 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
751 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
755 IVMS8_config: unconfig
756 @mkdir -p $(obj)include
757 @ >$(obj)include/config.h
758 @[ -z "$(findstring IVMS8_config,$@)" ] || \
759 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
761 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
762 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
764 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
765 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
767 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
769 KUP4K_config : unconfig
770 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
772 KUP4X_config : unconfig
773 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
775 LANTEC_config : unconfig
776 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
778 lwmon_config: unconfig
779 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
782 MBX860T_config: unconfig
783 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
785 MHPC_config: unconfig
786 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
788 MVS1_config : unconfig
789 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
791 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
794 NETVIA_config: unconfig
795 @mkdir -p $(obj)include
796 @ >$(obj)include/config.h
797 @[ -z "$(findstring NETVIA_config,$@)" ] || \
798 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
799 echo "... Version 1" ; \
801 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
802 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
803 echo "... Version 2" ; \
805 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
807 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
810 NETPHONE_config: unconfig
811 @mkdir -p $(obj)include
812 @ >$(obj)include/config.h
813 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
814 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
816 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
817 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
819 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
821 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
823 NETTA_ISDN_6412_SWAPHOOK_config \
824 NETTA_ISDN_SWAPHOOK_config \
825 NETTA_6412_SWAPHOOK_config \
826 NETTA_SWAPHOOK_config \
827 NETTA_ISDN_6412_config \
830 NETTA_config: unconfig
831 @mkdir -p $(obj)include
832 @ >$(obj)include/config.h
833 @[ -z "$(findstring ISDN_,$@)" ] || \
834 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
836 @[ -n "$(findstring ISDN_,$@)" ] || \
837 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
839 @[ -z "$(findstring 6412_,$@)" ] || \
840 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
842 @[ -n "$(findstring 6412_,$@)" ] || \
843 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
845 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
846 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
848 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
849 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
851 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
853 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
856 NETTA2_config: unconfig
857 @mkdir -p $(obj)include
858 @ >$(obj)include/config.h
859 @[ -z "$(findstring NETTA2_config,$@)" ] || \
860 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
862 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
863 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
865 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
869 CP850_config: unconfig
870 @mkdir -p $(obj)include
871 @ >$(obj)include/config.h
872 @[ -z "$(findstring CP850,$@)" ] || \
873 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
874 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
876 @[ -z "$(findstring Rev1,$@)" ] || \
877 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
879 @[ -z "$(findstring Rev2,$@)" ] || \
880 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
882 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
884 NX823_config: unconfig
885 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
887 pcu_e_config: unconfig
888 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
890 QS850_config: unconfig
891 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
893 QS823_config: unconfig
894 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
896 QS860T_config: unconfig
897 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
899 quantum_config: unconfig
900 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
902 R360MPI_config: unconfig
903 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
905 RBC823_config: unconfig
906 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
908 RPXClassic_config: unconfig
909 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
911 RPXlite_config: unconfig
912 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
914 RPXlite_DW_64_config \
915 RPXlite_DW_LCD_config \
916 RPXlite_DW_64_LCD_config \
917 RPXlite_DW_NVRAM_config \
918 RPXlite_DW_NVRAM_64_config \
919 RPXlite_DW_NVRAM_LCD_config \
920 RPXlite_DW_NVRAM_64_LCD_config \
921 RPXlite_DW_config: unconfig
922 @mkdir -p $(obj)include
923 @ >$(obj)include/config.h
924 @[ -z "$(findstring _64,$@)" ] || \
925 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
926 echo "... with 64MHz system clock ..."; \
928 @[ -z "$(findstring _LCD,$@)" ] || \
929 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
930 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
931 echo "... with LCD display ..."; \
933 @[ -z "$(findstring _NVRAM,$@)" ] || \
934 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
935 echo "... with ENV in NVRAM ..."; \
937 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
940 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
942 RRvision_config: unconfig
943 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
945 RRvision_LCD_config: unconfig
946 @mkdir -p $(obj)include
947 @echo "#define CONFIG_LCD" >$(obj)include/config.h
948 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
949 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
951 SM850_config : unconfig
952 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
955 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
957 SPD823TS_config: unconfig
958 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
960 stxxtc_config: unconfig
961 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
963 svm_sc8xx_config: unconfig
964 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
966 SXNI855T_config: unconfig
967 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
969 # EMK MPC8xx based modules
970 TOP860_config: unconfig
971 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
973 # Play some tricks for configuration selection
974 # Only 855 and 860 boards may come with FEC
975 # and only 823 boards may have LCD support
976 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
994 virtlab2_config: unconfig
995 @mkdir -p $(obj)include
996 @ >$(obj)include/config.h
997 @[ -z "$(findstring _LCD,$@)" ] || \
998 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
999 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1000 echo "... with LCD display" ; \
1002 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1004 TTTech_config: unconfig
1005 @mkdir -p $(obj)include
1006 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1007 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1008 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1010 uc100_config : unconfig
1011 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1013 v37_config: unconfig
1014 @mkdir -p $(obj)include
1015 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1016 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1017 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1019 wtk_config: unconfig
1020 @mkdir -p $(obj)include
1021 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1022 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1023 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1025 #########################################################################
1027 #########################################################################
1028 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1030 acadia_config: unconfig
1031 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1033 acadia_nand_config: unconfig
1034 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1035 @mkdir -p $(obj)nand_spl/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 $(obj)board/amcc/bamboo
1064 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1065 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1066 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1067 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1068 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1070 bubinga_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1073 CANBT_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1077 CATcenter_25_config \
1078 CATcenter_33_config: unconfig
1079 @mkdir -p $(obj)include
1080 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1081 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1082 @[ -z "$(findstring _25,$@)" ] || \
1083 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1084 echo "SysClk = 25MHz" ; \
1086 @[ -z "$(findstring _33,$@)" ] || \
1087 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1088 echo "SysClk = 33MHz" ; \
1090 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1092 CPCI2DP_config: unconfig
1093 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1098 CPCI405AB_config: unconfig
1099 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1100 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1102 CPCI440_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1105 CPCIISER4_config: unconfig
1106 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1108 CRAYL1_config: unconfig
1109 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1111 csb272_config: unconfig
1112 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1114 csb472_config: unconfig
1115 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1117 DASA_SIM_config: unconfig
1118 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1120 DP405_config: unconfig
1121 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1123 DU405_config: unconfig
1124 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1126 ebony_config: unconfig
1127 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1129 ERIC_config: unconfig
1130 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1132 EXBITGEN_config: unconfig
1133 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1135 G2000_config: unconfig
1136 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1138 HH405_config: unconfig
1139 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1141 HUB405_config: unconfig
1142 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1144 JSE_config: unconfig
1145 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1147 KAREF_config: unconfig
1148 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1150 katmai_config: unconfig
1151 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1153 luan_config: unconfig
1154 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1156 lwmon5_config: unconfig
1157 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1159 METROBOX_config: unconfig
1160 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1162 MIP405_config: unconfig
1163 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1165 MIP405T_config: unconfig
1166 @mkdir -p $(obj)include
1167 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1168 @echo "Enable subset config for MIP405T"
1169 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1171 ML2_config: unconfig
1172 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1174 ml300_config: unconfig
1175 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1177 ocotea_config: unconfig
1178 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1181 ORSG_config: unconfig
1182 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1184 p3p440_config: unconfig
1185 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1187 PCI405_config: unconfig
1188 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1190 pcs440ep_config: unconfig
1191 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1193 PIP405_config: unconfig
1194 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1196 PLU405_config: unconfig
1197 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1199 PMC405_config: unconfig
1200 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1202 PPChameleonEVB_config \
1203 PPChameleonEVB_BA_25_config \
1204 PPChameleonEVB_ME_25_config \
1205 PPChameleonEVB_HI_25_config \
1206 PPChameleonEVB_BA_33_config \
1207 PPChameleonEVB_ME_33_config \
1208 PPChameleonEVB_HI_33_config: unconfig
1209 @mkdir -p $(obj)include
1210 @ >$(obj)include/config.h
1211 @[ -z "$(findstring EVB_BA,$@)" ] || \
1212 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1213 echo "... BASIC model" ; \
1215 @[ -z "$(findstring EVB_ME,$@)" ] || \
1216 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1217 echo "... MEDIUM model" ; \
1219 @[ -z "$(findstring EVB_HI,$@)" ] || \
1220 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1221 echo "... HIGH-END model" ; \
1223 @[ -z "$(findstring _25,$@)" ] || \
1224 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1225 echo "SysClk = 25MHz" ; \
1227 @[ -z "$(findstring _33,$@)" ] || \
1228 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1229 echo "SysClk = 33MHz" ; \
1231 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1233 sbc405_config: unconfig
1234 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1237 rainier_config: unconfig
1238 @mkdir -p $(obj)include
1239 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1240 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1241 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1243 sequoia_nand_config \
1244 rainier_nand_config: unconfig
1245 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1246 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1247 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1248 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1249 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1250 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1251 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1252 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1257 taishan_config: unconfig
1258 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1260 VOH405_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1263 VOM405_config: unconfig
1264 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1266 CMS700_config: unconfig
1267 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1270 W7OLMG_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1273 # Walnut & Sycamore images are identical (recognized via PVR)
1275 sycamore_config: unconfig
1276 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1278 WUH405_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1281 XPEDITE1K_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1285 yellowstone_config: unconfig
1286 @mkdir -p $(obj)include
1287 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1288 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1289 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1291 yucca_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1294 #########################################################################
1296 #########################################################################
1299 Yukon8220_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1302 sorcery_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1305 #########################################################################
1307 #########################################################################
1308 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1310 A3000_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1313 barco_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1316 BMW_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1320 CPC45_ROMBOOT_config: unconfig
1321 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1322 @cd $(obj)include ; \
1323 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1324 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1325 echo "... booting from 8-bit flash" ; \
1327 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1328 echo "... booting from 64-bit flash" ; \
1330 echo "export CONFIG_BOOT_ROM" >> config.mk;
1332 CU824_config: unconfig
1333 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1335 debris_config: unconfig
1336 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1338 eXalion_config: unconfig
1339 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1341 HIDDEN_DRAGON_config: unconfig
1342 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1344 kvme080_config: unconfig
1345 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1347 MOUSSE_config: unconfig
1348 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1350 MUSENKI_config: unconfig
1351 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1353 MVBLUE_config: unconfig
1354 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1356 OXC_config: unconfig
1357 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1359 PN62_config: unconfig
1360 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1362 Sandpoint8240_config: unconfig
1363 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1365 Sandpoint8245_config: unconfig
1366 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1368 sbc8240_config: unconfig
1369 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1371 SL8245_config: unconfig
1372 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1374 utx8245_config: unconfig
1375 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1377 #########################################################################
1379 #########################################################################
1381 atc_config: unconfig
1382 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1384 cogent_mpc8260_config: unconfig
1385 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1388 CPU86_ROMBOOT_config: unconfig
1389 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1390 @cd $(obj)include ; \
1391 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1392 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1393 echo "... booting from 8-bit flash" ; \
1395 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1396 echo "... booting from 64-bit flash" ; \
1398 echo "export CONFIG_BOOT_ROM" >> config.mk;
1401 CPU87_ROMBOOT_config: unconfig
1402 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1403 @cd $(obj)include ; \
1404 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1405 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1406 echo "... booting from 8-bit flash" ; \
1408 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1409 echo "... booting from 64-bit flash" ; \
1411 echo "export CONFIG_BOOT_ROM" >> config.mk;
1414 ep8248E_config : unconfig
1415 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1417 ep8260_config: unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1420 ep82xxm_config: unconfig
1421 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1423 gw8260_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1426 hymod_config: unconfig
1427 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1429 IDS8247_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1432 IPHASE4539_config: unconfig
1433 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1436 ISPAN_REVB_config: unconfig
1437 @mkdir -p $(obj)include
1438 @if [ "$(findstring _REVB_,$@)" ] ; then \
1439 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1441 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1444 MPC8260ADS_lowboot_config \
1445 MPC8260ADS_33MHz_config \
1446 MPC8260ADS_33MHz_lowboot_config \
1447 MPC8260ADS_40MHz_config \
1448 MPC8260ADS_40MHz_lowboot_config \
1450 MPC8272ADS_lowboot_config \
1452 PQ2FADS_lowboot_config \
1454 PQ2FADS-VR_lowboot_config \
1456 PQ2FADS-ZU_lowboot_config \
1457 PQ2FADS-ZU_66MHz_config \
1458 PQ2FADS-ZU_66MHz_lowboot_config \
1460 @mkdir -p $(obj)include
1461 @mkdir -p $(obj)board/mpc8260ads
1462 $(if $(findstring PQ2FADS,$@), \
1463 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1464 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1465 $(if $(findstring MHz,$@), \
1466 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1467 $(if $(findstring VR,$@), \
1468 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1469 @[ -z "$(findstring lowboot_,$@)" ] || \
1470 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1471 echo "... with lowboot configuration" ; \
1473 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1475 MPC8266ADS_config: unconfig
1476 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1478 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1480 PM825_ROMBOOT_config \
1481 PM825_BIGFLASH_config \
1482 PM825_ROMBOOT_BIGFLASH_config \
1484 PM826_ROMBOOT_config \
1485 PM826_BIGFLASH_config \
1486 PM826_ROMBOOT_BIGFLASH_config: unconfig
1487 @mkdir -p $(obj)include
1488 @mkdir -p $(obj)board/pm826
1489 @if [ "$(findstring PM825_,$@)" ] ; then \
1490 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1492 >$(obj)include/config.h ; \
1494 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1495 echo "... booting from 8-bit flash" ; \
1496 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1497 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1498 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1499 echo "... with 32 MB Flash" ; \
1500 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1503 echo "... booting from 64-bit flash" ; \
1504 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1505 echo "... with 32 MB Flash" ; \
1506 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1507 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1509 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1512 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1516 PM828_ROMBOOT_config \
1517 PM828_ROMBOOT_PCI_config: unconfig
1518 @mkdir -p $(obj)include
1519 @mkdir -p $(obj)board/pm826
1520 @if [ "$(findstring _PCI_,$@)" ] ; then \
1521 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1522 echo "... with PCI enabled" ; \
1524 >$(obj)include/config.h ; \
1526 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1527 echo "... booting from 8-bit flash" ; \
1528 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1529 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1531 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1533 ppmc8260_config: unconfig
1534 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1536 Rattler8248_config \
1537 Rattler_config: unconfig
1538 @mkdir -p $(obj)include
1539 $(if $(findstring 8248,$@), \
1540 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1541 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1543 RPXsuper_config: unconfig
1544 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1546 rsdproto_config: unconfig
1547 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1549 sacsng_config: unconfig
1550 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1552 sbc8260_config: unconfig
1553 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1555 SCM_config: unconfig
1556 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1568 TQM8265_AA_config: unconfig
1569 @mkdir -p $(obj)include
1571 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1572 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1573 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1574 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1575 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1576 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1577 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1578 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1579 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1580 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1581 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1583 >$(obj)include/config.h ; \
1584 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1585 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1587 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1588 echo "... with $${CFREQ}MHz system clock" ; \
1589 if [ "$${CACHE}" == "yes" ] ; then \
1590 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1591 echo "... with L2 Cache support" ; \
1593 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1594 echo "... without L2 Cache support" ; \
1596 if [ "$${BMODE}" == "60x" ] ; then \
1597 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1598 echo "... with 60x Bus Mode" ; \
1600 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1601 echo "... without 60x Bus Mode" ; \
1603 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1605 TQM8272_config: unconfig
1606 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1608 VoVPN-GW_66MHz_config \
1609 VoVPN-GW_100MHz_config: unconfig
1610 @mkdir -p $(obj)include
1611 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1612 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1614 ZPC1900_config: unconfig
1615 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1617 #########################################################################
1619 #########################################################################
1621 cobra5272_config : unconfig
1622 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1624 EB+MCF-EV123_config : unconfig
1625 @mkdir -p $(obj)include
1626 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1627 @ >$(obj)include/config.h
1628 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1629 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1631 EB+MCF-EV123_internal_config : unconfig
1632 @mkdir -p $(obj)include
1633 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1634 @ >$(obj)include/config.h
1635 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1636 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1638 idmr_config : unconfig
1639 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1641 M5271EVB_config : unconfig
1642 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1644 M5272C3_config : unconfig
1645 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1647 M5282EVB_config : unconfig
1648 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1650 TASREG_config : unconfig
1651 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1653 r5200_config : unconfig
1654 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1656 #########################################################################
1658 #########################################################################
1660 MPC8313ERDB_33_config \
1661 MPC8313ERDB_66_config: unconfig
1662 @mkdir -p $(obj)include
1663 @echo "" >$(obj)include/config.h ; \
1664 if [ "$(findstring _33_,$@)" ] ; then \
1665 echo "...33M ..." ; \
1666 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1668 if [ "$(findstring _66_,$@)" ] ; then \
1669 echo "...66M..." ; \
1670 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1672 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1674 MPC832XEMDS_config \
1675 MPC832XEMDS_HOST_33_config \
1676 MPC832XEMDS_HOST_66_config \
1677 MPC832XEMDS_SLAVE_config: unconfig
1678 @mkdir -p $(obj)include
1679 @echo "" >$(obj)include/config.h ; \
1680 if [ "$(findstring _HOST_,$@)" ] ; then \
1681 echo "... PCI HOST " ; \
1682 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1684 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1685 echo "...PCI SLAVE 66M" ; \
1686 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1687 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1689 if [ "$(findstring _33_,$@)" ] ; then \
1690 echo "...33M ..." ; \
1691 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1693 if [ "$(findstring _66_,$@)" ] ; then \
1694 echo "...66M..." ; \
1695 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1697 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1699 MPC8349EMDS_config: unconfig
1700 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1703 MPC8349ITX_LOWBOOT_config \
1704 MPC8349ITXGP_config: unconfig
1705 @mkdir -p $(obj)include
1706 @mkdir -p $(obj)board/mpc8349itx
1707 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1708 @if [ "$(findstring GP,$@)" ] ; then \
1709 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1711 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1712 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1714 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1716 MPC8360EMDS_config \
1717 MPC8360EMDS_HOST_33_config \
1718 MPC8360EMDS_HOST_66_config \
1719 MPC8360EMDS_SLAVE_config: unconfig
1720 @mkdir -p $(obj)include
1721 @echo "" >$(obj)include/config.h ; \
1722 if [ "$(findstring _HOST_,$@)" ] ; then \
1723 echo "... PCI HOST " ; \
1724 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1726 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1727 echo "...PCI SLAVE 66M" ; \
1728 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1729 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1731 if [ "$(findstring _33_,$@)" ] ; then \
1732 echo "...33M ..." ; \
1733 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1735 if [ "$(findstring _66_,$@)" ] ; then \
1736 echo "...66M..." ; \
1737 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1739 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1741 sbc8349_config: unconfig
1742 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1744 TQM834x_config: unconfig
1745 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1748 #########################################################################
1750 #########################################################################
1752 MPC8540ADS_config: unconfig
1753 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1755 MPC8540EVAL_config \
1756 MPC8540EVAL_33_config \
1757 MPC8540EVAL_66_config \
1758 MPC8540EVAL_33_slave_config \
1759 MPC8540EVAL_66_slave_config: unconfig
1760 @mkdir -p $(obj)include
1761 @echo "" >$(obj)include/config.h ; \
1762 if [ "$(findstring _33_,$@)" ] ; then \
1763 echo "... 33 MHz PCI" ; \
1765 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1766 echo "... 66 MHz PCI" ; \
1768 if [ "$(findstring _slave_,$@)" ] ; then \
1769 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1774 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1776 MPC8560ADS_config: unconfig
1777 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1779 MPC8541CDS_config: unconfig
1780 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1782 MPC8544DS_config: unconfig
1783 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1785 MPC8548CDS_config: unconfig
1786 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1788 MPC8555CDS_config: unconfig
1789 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1791 MPC8568MDS_config: unconfig
1792 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1794 PM854_config: unconfig
1795 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1797 PM856_config: unconfig
1798 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1802 sbc8540_66_config: unconfig
1803 @mkdir -p $(obj)include
1804 @if [ "$(findstring _66_,$@)" ] ; then \
1805 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1806 echo "... 66 MHz PCI" ; \
1808 >$(obj)include/config.h ; \
1809 echo "... 33 MHz PCI" ; \
1811 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1815 sbc8560_66_config: unconfig
1816 @mkdir -p $(obj)include
1817 @if [ "$(findstring _66_,$@)" ] ; then \
1818 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1819 echo "... 66 MHz PCI" ; \
1821 >$(obj)include/config.h ; \
1822 echo "... 33 MHz PCI" ; \
1824 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1826 stxgp3_config: unconfig
1827 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1830 stxssa_4M_config: unconfig
1831 @mkdir -p $(obj)include
1832 @if [ "$(findstring _4M_,$@)" ] ; then \
1833 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1834 echo "... with 4 MiB flash memory" ; \
1836 >$(obj)include/config.h ; \
1838 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1843 TQM8560_config: unconfig
1844 @mkdir -p $(obj)include
1845 @CTYPE=$(subst TQM,,$(@:_config=)); \
1846 >$(obj)include/config.h ; \
1847 echo "... TQM"$${CTYPE}; \
1848 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1849 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1850 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1851 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1852 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1853 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1855 #########################################################################
1857 #########################################################################
1859 MPC8641HPCN_config: unconfig
1860 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn
1863 #########################################################################
1865 #########################################################################
1867 AmigaOneG3SE_config: unconfig
1868 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1870 BAB7xx_config: unconfig
1871 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1873 CPCI750_config: unconfig
1874 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1876 DB64360_config: unconfig
1877 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1879 DB64460_config: unconfig
1880 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1882 ELPPC_config: unconfig
1883 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1886 EVB64260_750CX_config: unconfig
1887 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1889 mpc7448hpc2_config: unconfig
1890 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1892 P3G4_config: unconfig
1893 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1896 p3m7448_config: unconfig
1897 @mkdir -p $(obj)include
1898 @if [ "$(findstring 750_,$@)" ] ; then \
1899 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1901 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1903 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1906 PCIPPC6_config: unconfig
1907 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1909 ZUMA_config: unconfig
1910 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1912 ppmc7xx_config: unconfig
1913 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1915 #========================================================================
1917 #========================================================================
1918 #########################################################################
1919 ## StrongARM Systems
1920 #########################################################################
1922 assabet_config : unconfig
1923 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1925 dnp1110_config : unconfig
1926 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1928 gcplus_config : unconfig
1929 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1931 lart_config : unconfig
1932 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1934 shannon_config : unconfig
1935 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1937 #########################################################################
1939 #########################################################################
1941 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1943 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1945 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1947 at91rm9200dk_config : unconfig
1948 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1950 cmc_pu2_config : unconfig
1951 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1953 csb637_config : unconfig
1954 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1956 mp2usb_config : unconfig
1957 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1960 ########################################################################
1961 ## ARM Integrator boards - see doc/README-integrator for more info.
1962 integratorap_config \
1971 ap946es_config: unconfig
1972 @board/integratorap/split_by_variant.sh $@
1974 integratorcp_config \
1983 cp1026_config: unconfig
1984 @board/integratorcp/split_by_variant.sh $@
1986 kb9202_config : unconfig
1987 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1990 lpd7a404_config: unconfig
1991 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1993 mx1ads_config : unconfig
1994 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1996 mx1fs2_config : unconfig
1997 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2000 netstar_config: unconfig
2001 @mkdir -p $(obj)include
2002 @if [ "$(findstring _32_,$@)" ] ; then \
2003 echo "... 32MB SDRAM" ; \
2004 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2006 echo "... 64MB SDRAM" ; \
2007 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2009 @$(MKCONFIG) -a netstar arm arm925t netstar
2011 omap1510inn_config : unconfig
2012 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2014 omap5912osk_config : unconfig
2015 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2017 omap1610inn_config \
2018 omap1610inn_cs0boot_config \
2019 omap1610inn_cs3boot_config \
2020 omap1610inn_cs_autoboot_config \
2022 omap1610h2_cs0boot_config \
2023 omap1610h2_cs3boot_config \
2024 omap1610h2_cs_autoboot_config: unconfig
2025 @mkdir -p $(obj)include
2026 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2027 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2028 echo "... configured for CS0 boot"; \
2029 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2030 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2031 echo "... configured for CS_AUTO boot"; \
2033 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2034 echo "... configured for CS3 boot"; \
2036 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2039 omap730p2_cs0boot_config \
2040 omap730p2_cs3boot_config : unconfig
2041 @mkdir -p $(obj)include
2042 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2043 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2044 echo "... configured for CS0 boot"; \
2046 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2047 echo "... configured for CS3 boot"; \
2049 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2051 sbc2410x_config: unconfig
2052 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2054 scb9328_config : unconfig
2055 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2057 smdk2400_config : unconfig
2058 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2060 smdk2410_config : unconfig
2061 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2063 SX1_config : unconfig
2064 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2066 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2068 trab_bigram_config \
2069 trab_bigflash_config \
2070 trab_old_config: unconfig
2071 @mkdir -p $(obj)include
2072 @mkdir -p $(obj)board/trab
2073 @ >$(obj)include/config.h
2074 @[ -z "$(findstring _bigram,$@)" ] || \
2075 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2076 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2077 echo "... with 8 MB Flash, 32 MB RAM" ; \
2079 @[ -z "$(findstring _bigflash,$@)" ] || \
2080 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2081 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2082 echo "... with 16 MB Flash, 16 MB RAM" ; \
2083 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2085 @[ -z "$(findstring _old,$@)" ] || \
2086 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2087 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2088 echo "... with 8 MB Flash, 16 MB RAM" ; \
2089 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2091 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2093 VCMA9_config : unconfig
2094 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2096 #========================================================================
2097 # ARM supplied Versatile development boards
2098 #========================================================================
2100 versatileab_config \
2101 versatilepb_config : unconfig
2102 @board/versatile/split_by_variant.sh $@
2104 voiceblue_smallflash_config \
2105 voiceblue_config: unconfig
2106 @mkdir -p $(obj)include
2107 @mkdir -p $(obj)board/voiceblue
2108 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2109 echo "... boot from lower flash bank" ; \
2110 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2111 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2113 echo "... boot from upper flash bank" ; \
2114 >$(obj)include/config.h ; \
2115 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2117 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2119 cm4008_config : unconfig
2120 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2122 cm41xx_config : unconfig
2123 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2125 gth2_config : unconfig
2126 @mkdir -p $(obj)include
2127 @ >$(obj)include/config.h
2128 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2129 @$(MKCONFIG) -a gth2 mips mips gth2
2131 #########################################################################
2133 #########################################################################
2135 B2_config : unconfig
2136 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2138 #########################################################################
2140 #########################################################################
2142 armadillo_config: unconfig
2143 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2145 ep7312_config : unconfig
2146 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2148 impa7_config : unconfig
2149 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2151 modnet50_config : unconfig
2152 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2154 evb4510_config : unconfig
2155 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2157 lpc2292sodimm_config: unconfig
2158 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2160 SMN42_config : unconfig
2161 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2163 #########################################################################
2165 #########################################################################
2167 adsvix_config : unconfig
2168 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2170 cerf250_config : unconfig
2171 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2173 cradle_config : unconfig
2174 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2176 csb226_config : unconfig
2177 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2180 @$(MKCONFIG) $(@:_config=) arm pxa delta
2182 innokom_config : unconfig
2183 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2185 ixdp425_config : unconfig
2186 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2188 ixdpg425_config : unconfig
2189 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2191 lubbock_config : unconfig
2192 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2194 pleb2_config : unconfig
2195 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2197 logodl_config : unconfig
2198 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2201 scpu_config: unconfig
2202 @mkdir -p $(obj)include
2203 @if [ "$(findstring scpu_,$@)" ] ; then \
2204 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2205 echo "... on SCPU board variant" ; \
2207 >$(obj)include/config.h ; \
2209 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2211 pxa255_idp_config: unconfig
2212 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2214 wepep250_config : unconfig
2215 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2217 xaeniax_config : unconfig
2218 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2220 xm250_config : unconfig
2221 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2223 xsengine_config : unconfig
2224 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2227 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2229 #########################################################################
2231 #########################################################################
2232 omap2420h4_config : unconfig
2233 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2235 #========================================================================
2237 #========================================================================
2238 #########################################################################
2240 #########################################################################
2241 sc520_cdp_config : unconfig
2242 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2244 sc520_spunk_config : unconfig
2245 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2247 sc520_spunk_rel_config : unconfig
2248 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2250 #========================================================================
2252 #========================================================================
2253 #########################################################################
2255 #########################################################################
2257 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2259 incaip_100MHz_config \
2260 incaip_133MHz_config \
2261 incaip_150MHz_config \
2262 incaip_config: unconfig
2263 @mkdir -p $(obj)include
2264 @ >$(obj)include/config.h
2265 @[ -z "$(findstring _100MHz,$@)" ] || \
2266 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2267 echo "... with 100MHz system clock" ; \
2269 @[ -z "$(findstring _133MHz,$@)" ] || \
2270 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2271 echo "... with 133MHz system clock" ; \
2273 @[ -z "$(findstring _150MHz,$@)" ] || \
2274 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2275 echo "... with 150MHz system clock" ; \
2277 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2279 tb0229_config: unconfig
2280 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2282 #########################################################################
2284 #########################################################################
2285 dbau1000_config : unconfig
2286 @mkdir -p $(obj)include
2287 @ >$(obj)include/config.h
2288 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2289 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2291 dbau1100_config : unconfig
2292 @mkdir -p $(obj)include
2293 @ >$(obj)include/config.h
2294 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2295 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2297 dbau1500_config : unconfig
2298 @mkdir -p $(obj)include
2299 @ >$(obj)include/config.h
2300 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2301 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2303 dbau1550_config : unconfig
2304 @mkdir -p $(obj)include
2305 @ >$(obj)include/config.h
2306 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2307 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2309 dbau1550_el_config : unconfig
2310 @mkdir -p $(obj)include
2311 @ >$(obj)include/config.h
2312 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2313 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2315 pb1000_config : unconfig
2316 @mkdir -p $(obj)include
2317 @ >$(obj)include/config.h
2318 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2319 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2321 #########################################################################
2323 #########################################################################
2325 purple_config : unconfig
2326 @$(MKCONFIG) $(@:_config=) mips mips purple
2328 #========================================================================
2330 #========================================================================
2331 #########################################################################
2333 #########################################################################
2335 DK1C20_safe_32_config \
2336 DK1C20_standard_32_config \
2337 DK1C20_config: unconfig
2338 @mkdir -p $(obj)include
2339 @ >$(obj)include/config.h
2340 @[ -z "$(findstring _safe_32,$@)" ] || \
2341 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2342 echo "... NIOS 'safe_32' configuration" ; \
2344 @[ -z "$(findstring _standard_32,$@)" ] || \
2345 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2346 echo "... NIOS 'standard_32' configuration" ; \
2348 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2349 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2350 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2352 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2354 DK1S10_safe_32_config \
2355 DK1S10_standard_32_config \
2356 DK1S10_mtx_ldk_20_config \
2357 DK1S10_config: unconfig
2358 @mkdir -p $(obj)include
2359 @ >$(obj)include/config.h
2360 @[ -z "$(findstring _safe_32,$@)" ] || \
2361 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2362 echo "... NIOS 'safe_32' configuration" ; \
2364 @[ -z "$(findstring _standard_32,$@)" ] || \
2365 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2366 echo "... NIOS 'standard_32' configuration" ; \
2368 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2369 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2370 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2372 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2373 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2374 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2376 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2378 ADNPESC1_DNPEVA2_base_32_config \
2379 ADNPESC1_base_32_config \
2380 ADNPESC1_config: unconfig
2381 @mkdir -p $(obj)include
2382 @ >$(obj)include/config.h
2383 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2384 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2385 echo "... DNP/EVA2 configuration" ; \
2387 @[ -z "$(findstring _base_32,$@)" ] || \
2388 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2389 echo "... NIOS 'base_32' configuration" ; \
2391 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2392 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2393 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2395 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2397 #########################################################################
2399 #########################################################################
2401 EP1C20_config : unconfig
2402 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2404 EP1S10_config : unconfig
2405 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2407 EP1S40_config : unconfig
2408 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2410 PK1C20_config : unconfig
2411 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2413 PCI5441_config : unconfig
2414 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2416 #========================================================================
2418 #========================================================================
2419 #########################################################################
2421 #########################################################################
2422 suzaku_config: unconfig
2423 @mkdir -p $(obj)include
2424 @ >$(obj)include/config.h
2425 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2426 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2428 ml401_config: unconfig
2429 @mkdir -p $(obj)include
2430 @ >$(obj)include/config.h
2431 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2432 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2434 xupv2p_config: unconfig
2435 @mkdir -p $(obj)include
2436 @ >$(obj)include/config.h
2437 @echo "#define CONFIG_XUPV2P 1" >> $(obj)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 #########################################################################