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 ./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 spieval_config: unconfig
536 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
539 TB5200_config: unconfig
540 @mkdir -p $(obj)include
541 @[ -z "$(findstring _B,$@)" ] || \
542 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
543 echo "... with MPC5200B processor" ; \
545 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
549 TOP5200_config: unconfig
550 @mkdir -p $(obj)include
551 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
552 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
556 Total5200_lowboot_config \
557 Total5200_Rev2_config \
558 Total5200_Rev2_lowboot_config: unconfig
559 @mkdir -p $(obj)include
560 @mkdir -p $(obj)board/total5200
561 @ >$(obj)include/config.h
562 @[ -z "$(findstring 5100,$@)" ] || \
563 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
564 echo "... with MGT5100 processor" ; \
566 @[ -z "$(findstring 5200,$@)" ] || \
567 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
568 echo "... with MPC5200 processor" ; \
570 @[ -n "$(findstring Rev,$@)" ] || \
571 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
572 echo "... revision 1 board" ; \
574 @[ -z "$(findstring Rev2_,$@)" ] || \
575 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
576 echo "... revision 2 board" ; \
578 @[ -z "$(findstring lowboot_,$@)" ] || \
579 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
580 echo "... with lowboot configuration" ; \
582 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
585 cam5200_niosflash_config \
589 TQM5200S_HIGHBOOT_config \
591 TQM5200_B_HIGHBOOT_config \
593 TQM5200_STK100_config: unconfig
594 @mkdir -p $(obj)include
595 @mkdir -p $(obj)board/tqm5200
596 @ >$(obj)include/config.h
597 @[ -z "$(findstring cam5200,$@)" ] || \
598 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
599 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
600 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
601 echo "... TQM5200S on Cam5200" ; \
603 @[ -z "$(findstring niosflash,$@)" ] || \
604 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
605 echo "... with NIOS flash driver" ; \
607 @[ -z "$(findstring fo300,$@)" ] || \
608 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
609 echo "... TQM5200 on FO300" ; \
611 @[ -z "$(findstring MiniFAP,$@)" ] || \
612 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
613 echo "... TQM5200_AC on MiniFAP" ; \
615 @[ -z "$(findstring STK100,$@)" ] || \
616 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
617 echo "... on a STK52XX.100 base board" ; \
619 @[ -z "$(findstring TQM5200_B,$@)" ] || \
620 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
622 @[ -z "$(findstring TQM5200S,$@)" ] || \
623 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
624 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
626 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
627 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
629 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
630 uc101_config: unconfig
631 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
632 motionpro_config: unconfig
633 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
636 #########################################################################
638 #########################################################################
644 @mkdir -p $(obj)include
645 $(if $(findstring AdderII,$@), \
646 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
647 @$(MKCONFIG) -a Adder ppc mpc8xx adder
654 FADS860T_config: unconfig
655 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
657 AMX860_config : unconfig
658 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
660 c2mon_config: unconfig
661 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
664 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
666 cogent_mpc8xx_config: unconfig
667 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
669 ELPT860_config: unconfig
670 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
672 EP88x_config: unconfig
673 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
675 ESTEEM192E_config: unconfig
676 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
678 ETX094_config : unconfig
679 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
681 FLAGADM_config: unconfig
682 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
684 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
687 GEN860T_config: unconfig
688 @mkdir -p $(obj)include
689 @ >$(obj)include/config.h
690 @[ -z "$(findstring _SC,$@)" ] || \
691 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
692 echo "With reduced H/W feature set (SC)..." ; \
694 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
696 GENIETV_config: unconfig
697 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
700 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
702 hermes_config : unconfig
703 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
705 HMI10_config : unconfig
706 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
708 IAD210_config: unconfig
709 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
711 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
713 ICU862_100MHz_config \
714 ICU862_config: unconfig
715 @mkdir -p $(obj)include
716 @ >$(obj)include/config.h
717 @[ -z "$(findstring _100MHz,$@)" ] || \
718 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
719 echo "... with 100MHz system clock" ; \
721 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
723 IP860_config : unconfig
724 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
728 IVML24_config: unconfig
729 @mkdir -p $(obj)include
730 @ >$(obj)include/config.h
731 @[ -z "$(findstring IVML24_config,$@)" ] || \
732 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
734 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
735 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
737 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
738 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
740 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
744 IVMS8_config: unconfig
745 @mkdir -p $(obj)include
746 @ >$(obj)include/config.h
747 @[ -z "$(findstring IVMS8_config,$@)" ] || \
748 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
750 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
751 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
753 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
754 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
756 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
758 KUP4K_config : unconfig
759 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
761 KUP4X_config : unconfig
762 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
764 LANTEC_config : unconfig
765 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
767 lwmon_config: unconfig
768 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
771 MBX860T_config: unconfig
772 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
774 MHPC_config: unconfig
775 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
777 MVS1_config : unconfig
778 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
780 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
783 NETVIA_config: unconfig
784 @mkdir -p $(obj)include
785 @ >$(obj)include/config.h
786 @[ -z "$(findstring NETVIA_config,$@)" ] || \
787 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
788 echo "... Version 1" ; \
790 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
791 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
792 echo "... Version 2" ; \
794 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
796 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
799 NETPHONE_config: unconfig
800 @mkdir -p $(obj)include
801 @ >$(obj)include/config.h
802 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
803 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
805 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
806 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
808 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
810 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
812 NETTA_ISDN_6412_SWAPHOOK_config \
813 NETTA_ISDN_SWAPHOOK_config \
814 NETTA_6412_SWAPHOOK_config \
815 NETTA_SWAPHOOK_config \
816 NETTA_ISDN_6412_config \
819 NETTA_config: unconfig
820 @mkdir -p $(obj)include
821 @ >$(obj)include/config.h
822 @[ -z "$(findstring ISDN_,$@)" ] || \
823 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
825 @[ -n "$(findstring ISDN_,$@)" ] || \
826 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
828 @[ -z "$(findstring 6412_,$@)" ] || \
829 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
831 @[ -n "$(findstring 6412_,$@)" ] || \
832 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
834 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
835 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
837 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
838 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
840 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
842 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
845 NETTA2_config: unconfig
846 @mkdir -p $(obj)include
847 @ >$(obj)include/config.h
848 @[ -z "$(findstring NETTA2_config,$@)" ] || \
849 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
851 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
852 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
854 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
858 CP850_config: unconfig
859 @mkdir -p $(obj)include
860 @ >$(obj)include/config.h
861 @[ -z "$(findstring CP850,$@)" ] || \
862 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
863 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
865 @[ -z "$(findstring Rev1,$@)" ] || \
866 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
868 @[ -z "$(findstring Rev2,$@)" ] || \
869 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
871 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
873 NX823_config: unconfig
874 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
876 pcu_e_config: unconfig
877 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
879 QS850_config: unconfig
880 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
882 QS823_config: unconfig
883 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
885 QS860T_config: unconfig
886 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
888 quantum_config: unconfig
889 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
891 R360MPI_config: unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
894 RBC823_config: unconfig
895 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
897 RPXClassic_config: unconfig
898 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
900 RPXlite_config: unconfig
901 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
903 RPXlite_DW_64_config \
904 RPXlite_DW_LCD_config \
905 RPXlite_DW_64_LCD_config \
906 RPXlite_DW_NVRAM_config \
907 RPXlite_DW_NVRAM_64_config \
908 RPXlite_DW_NVRAM_LCD_config \
909 RPXlite_DW_NVRAM_64_LCD_config \
910 RPXlite_DW_config: unconfig
911 @mkdir -p $(obj)include
912 @ >$(obj)include/config.h
913 @[ -z "$(findstring _64,$@)" ] || \
914 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
915 echo "... with 64MHz system clock ..."; \
917 @[ -z "$(findstring _LCD,$@)" ] || \
918 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
919 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
920 echo "... with LCD display ..."; \
922 @[ -z "$(findstring _NVRAM,$@)" ] || \
923 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
924 echo "... with ENV in NVRAM ..."; \
926 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
929 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
931 RRvision_config: unconfig
932 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
934 RRvision_LCD_config: unconfig
935 @mkdir -p $(obj)include
936 @echo "#define CONFIG_LCD" >$(obj)include/config.h
937 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
938 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
940 SM850_config : unconfig
941 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
944 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
946 SPD823TS_config: unconfig
947 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
949 stxxtc_config: unconfig
950 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
952 svm_sc8xx_config: unconfig
953 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
955 SXNI855T_config: unconfig
956 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
958 # EMK MPC8xx based modules
959 TOP860_config: unconfig
960 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
962 # Play some tricks for configuration selection
963 # Only 855 and 860 boards may come with FEC
964 # and only 823 boards may have LCD support
965 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
983 virtlab2_config: unconfig
984 @mkdir -p $(obj)include
985 @ >$(obj)include/config.h
986 @[ -z "$(findstring _LCD,$@)" ] || \
987 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
988 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
989 echo "... with LCD display" ; \
991 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
993 TTTech_config: unconfig
994 @mkdir -p $(obj)include
995 @echo "#define CONFIG_LCD" >$(obj)include/config.h
996 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
997 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
999 uc100_config : unconfig
1000 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1002 v37_config: unconfig
1003 @mkdir -p $(obj)include
1004 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1005 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1006 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1008 wtk_config: unconfig
1009 @mkdir -p $(obj)include
1010 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1011 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1012 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1014 #########################################################################
1016 #########################################################################
1017 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1019 acadia_config: unconfig
1020 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1022 acadia_nand_config: unconfig
1023 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1024 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1025 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1026 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1027 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1028 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1030 ADCIOP_config: unconfig
1031 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1033 alpr_config: unconfig
1034 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1036 AP1000_config:unconfig
1037 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1039 APC405_config: unconfig
1040 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1042 AR405_config: unconfig
1043 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1045 ASH405_config: unconfig
1046 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1048 bamboo_config: unconfig
1049 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1051 bamboo_nand_config: unconfig
1052 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1053 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1054 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1055 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1056 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1057 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1059 bubinga_config: unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1062 CANBT_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1066 CATcenter_25_config \
1067 CATcenter_33_config: unconfig
1068 @mkdir -p $(obj)include
1069 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1070 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1071 @[ -z "$(findstring _25,$@)" ] || \
1072 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1073 echo "SysClk = 25MHz" ; \
1075 @[ -z "$(findstring _33,$@)" ] || \
1076 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1077 echo "SysClk = 33MHz" ; \
1079 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1081 CPCI2DP_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1087 CPCI405AB_config: unconfig
1088 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1089 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1091 CPCI440_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1094 CPCIISER4_config: unconfig
1095 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1097 CRAYL1_config: unconfig
1098 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1100 csb272_config: unconfig
1101 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1103 csb472_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1106 DASA_SIM_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1109 DP405_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1112 DU405_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1115 ebony_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1118 ERIC_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1121 EXBITGEN_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1124 G2000_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1127 HH405_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1130 HUB405_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1133 JSE_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1136 KAREF_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1139 katmai_config: unconfig
1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1142 luan_config: unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1145 lwmon5_config: unconfig
1146 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1148 METROBOX_config: unconfig
1149 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1151 MIP405_config: unconfig
1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1154 MIP405T_config: unconfig
1155 @mkdir -p $(obj)include
1156 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1157 @echo "Enable subset config for MIP405T"
1158 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1160 ML2_config: unconfig
1161 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1163 ml300_config: unconfig
1164 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1166 ocotea_config: unconfig
1167 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1170 ORSG_config: unconfig
1171 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1173 p3p440_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1176 PCI405_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1179 pcs440ep_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1182 PIP405_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1185 PLU405_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1188 PMC405_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1191 PPChameleonEVB_config \
1192 PPChameleonEVB_BA_25_config \
1193 PPChameleonEVB_ME_25_config \
1194 PPChameleonEVB_HI_25_config \
1195 PPChameleonEVB_BA_33_config \
1196 PPChameleonEVB_ME_33_config \
1197 PPChameleonEVB_HI_33_config: unconfig
1198 @mkdir -p $(obj)include
1199 @ >$(obj)include/config.h
1200 @[ -z "$(findstring EVB_BA,$@)" ] || \
1201 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1202 echo "... BASIC model" ; \
1204 @[ -z "$(findstring EVB_ME,$@)" ] || \
1205 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1206 echo "... MEDIUM model" ; \
1208 @[ -z "$(findstring EVB_HI,$@)" ] || \
1209 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1210 echo "... HIGH-END model" ; \
1212 @[ -z "$(findstring _25,$@)" ] || \
1213 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1214 echo "SysClk = 25MHz" ; \
1216 @[ -z "$(findstring _33,$@)" ] || \
1217 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1218 echo "SysClk = 33MHz" ; \
1220 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1222 sbc405_config: unconfig
1223 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1226 rainier_config: unconfig
1227 @mkdir -p $(obj)include
1228 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1229 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1230 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1232 sequoia_nand_config \
1233 rainier_nand_config: unconfig
1234 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1235 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1236 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1237 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1238 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1239 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1240 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1241 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1244 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1246 taishan_config: unconfig
1247 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1249 VOH405_config: unconfig
1250 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1252 VOM405_config: unconfig
1253 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1255 CMS700_config: unconfig
1256 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1259 W7OLMG_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1262 # Walnut & Sycamore images are identical (recognized via PVR)
1264 sycamore_config: unconfig
1265 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1267 WUH405_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1270 XPEDITE1K_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1274 yellowstone_config: unconfig
1275 @mkdir -p $(obj)include
1276 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1277 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1278 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1280 yucca_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1283 #########################################################################
1285 #########################################################################
1288 Yukon8220_config: unconfig
1289 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1291 sorcery_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1294 #########################################################################
1296 #########################################################################
1297 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1299 A3000_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1302 barco_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1305 BMW_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1309 CPC45_ROMBOOT_config: unconfig
1310 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1311 @cd $(obj)include ; \
1312 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1313 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1314 echo "... booting from 8-bit flash" ; \
1316 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1317 echo "... booting from 64-bit flash" ; \
1319 echo "export CONFIG_BOOT_ROM" >> config.mk;
1321 CU824_config: unconfig
1322 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1324 debris_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1327 eXalion_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1330 HIDDEN_DRAGON_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1333 kvme080_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1336 MOUSSE_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1339 MUSENKI_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1342 MVBLUE_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1345 OXC_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1348 PN62_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1351 Sandpoint8240_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1354 Sandpoint8245_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1357 sbc8240_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1360 SL8245_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1363 utx8245_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1366 #########################################################################
1368 #########################################################################
1370 atc_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1373 cogent_mpc8260_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1377 CPU86_ROMBOOT_config: unconfig
1378 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1379 @cd $(obj)include ; \
1380 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1381 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1382 echo "... booting from 8-bit flash" ; \
1384 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1385 echo "... booting from 64-bit flash" ; \
1387 echo "export CONFIG_BOOT_ROM" >> config.mk;
1390 CPU87_ROMBOOT_config: unconfig
1391 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1392 @cd $(obj)include ; \
1393 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1394 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1395 echo "... booting from 8-bit flash" ; \
1397 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1398 echo "... booting from 64-bit flash" ; \
1400 echo "export CONFIG_BOOT_ROM" >> config.mk;
1403 ep8248E_config : unconfig
1404 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1406 ep8260_config: unconfig
1407 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1409 ep82xxm_config: unconfig
1410 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1412 gw8260_config: unconfig
1413 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1415 hymod_config: unconfig
1416 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1418 IDS8247_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1421 IPHASE4539_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1425 ISPAN_REVB_config: unconfig
1426 @mkdir -p $(obj)include
1427 @if [ "$(findstring _REVB_,$@)" ] ; then \
1428 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1430 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1433 MPC8260ADS_lowboot_config \
1434 MPC8260ADS_33MHz_config \
1435 MPC8260ADS_33MHz_lowboot_config \
1436 MPC8260ADS_40MHz_config \
1437 MPC8260ADS_40MHz_lowboot_config \
1439 MPC8272ADS_lowboot_config \
1441 PQ2FADS_lowboot_config \
1443 PQ2FADS-VR_lowboot_config \
1445 PQ2FADS-ZU_lowboot_config \
1446 PQ2FADS-ZU_66MHz_config \
1447 PQ2FADS-ZU_66MHz_lowboot_config \
1449 @mkdir -p $(obj)include
1450 @mkdir -p $(obj)board/mpc8260ads
1451 $(if $(findstring PQ2FADS,$@), \
1452 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1453 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1454 $(if $(findstring MHz,$@), \
1455 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1456 $(if $(findstring VR,$@), \
1457 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1458 @[ -z "$(findstring lowboot_,$@)" ] || \
1459 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1460 echo "... with lowboot configuration" ; \
1462 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1464 MPC8266ADS_config: unconfig
1465 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1467 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1469 PM825_ROMBOOT_config \
1470 PM825_BIGFLASH_config \
1471 PM825_ROMBOOT_BIGFLASH_config \
1473 PM826_ROMBOOT_config \
1474 PM826_BIGFLASH_config \
1475 PM826_ROMBOOT_BIGFLASH_config: unconfig
1476 @mkdir -p $(obj)include
1477 @mkdir -p $(obj)board/pm826
1478 @if [ "$(findstring PM825_,$@)" ] ; then \
1479 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1481 >$(obj)include/config.h ; \
1483 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1484 echo "... booting from 8-bit flash" ; \
1485 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1486 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1487 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1488 echo "... with 32 MB Flash" ; \
1489 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1492 echo "... booting from 64-bit flash" ; \
1493 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1494 echo "... with 32 MB Flash" ; \
1495 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1496 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1498 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1501 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1505 PM828_ROMBOOT_config \
1506 PM828_ROMBOOT_PCI_config: unconfig
1507 @mkdir -p $(obj)include
1508 @mkdir -p $(obj)board/pm826
1509 @if [ "$(findstring _PCI_,$@)" ] ; then \
1510 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1511 echo "... with PCI enabled" ; \
1513 >$(obj)include/config.h ; \
1515 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1516 echo "... booting from 8-bit flash" ; \
1517 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1518 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1520 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1522 ppmc8260_config: unconfig
1523 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1525 Rattler8248_config \
1526 Rattler_config: unconfig
1527 @mkdir -p $(obj)include
1528 $(if $(findstring 8248,$@), \
1529 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1530 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1532 RPXsuper_config: unconfig
1533 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1535 rsdproto_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1538 sacsng_config: unconfig
1539 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1541 sbc8260_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1544 SCM_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1557 TQM8265_AA_config: unconfig
1558 @mkdir -p $(obj)include
1560 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1561 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1562 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1563 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1564 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1565 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1566 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1567 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1568 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1569 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1570 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1572 >$(obj)include/config.h ; \
1573 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1574 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1576 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1577 echo "... with $${CFREQ}MHz system clock" ; \
1578 if [ "$${CACHE}" == "yes" ] ; then \
1579 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1580 echo "... with L2 Cache support" ; \
1582 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1583 echo "... without L2 Cache support" ; \
1585 if [ "$${BMODE}" == "60x" ] ; then \
1586 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1587 echo "... with 60x Bus Mode" ; \
1589 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1590 echo "... without 60x Bus Mode" ; \
1592 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1594 TQM8272_config: unconfig
1595 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1597 VoVPN-GW_66MHz_config \
1598 VoVPN-GW_100MHz_config: unconfig
1599 @mkdir -p $(obj)include
1600 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1601 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1603 ZPC1900_config: unconfig
1604 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1606 #########################################################################
1608 #########################################################################
1610 cobra5272_config : unconfig
1611 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1613 EB+MCF-EV123_config : unconfig
1614 @mkdir -p $(obj)include
1615 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1616 @ >$(obj)include/config.h
1617 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1618 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1620 EB+MCF-EV123_internal_config : unconfig
1621 @mkdir -p $(obj)include
1622 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1623 @ >$(obj)include/config.h
1624 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1625 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1627 idmr_config : unconfig
1628 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1630 M5271EVB_config : unconfig
1631 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1633 M5272C3_config : unconfig
1634 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1636 M5282EVB_config : unconfig
1637 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1639 TASREG_config : unconfig
1640 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1642 r5200_config : unconfig
1643 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1645 #########################################################################
1647 #########################################################################
1649 MPC8313ERDB_33_config \
1650 MPC8313ERDB_66_config: unconfig
1651 @mkdir -p $(obj)include
1652 @echo "" >$(obj)include/config.h ; \
1653 if [ "$(findstring _33_,$@)" ] ; then \
1654 echo "...33M ..." ; \
1655 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1657 if [ "$(findstring _66_,$@)" ] ; then \
1658 echo "...66M..." ; \
1659 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1661 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1663 MPC832XEMDS_config \
1664 MPC832XEMDS_HOST_33_config \
1665 MPC832XEMDS_HOST_66_config \
1666 MPC832XEMDS_SLAVE_config: unconfig
1667 @mkdir -p $(obj)include
1668 @echo "" >$(obj)include/config.h ; \
1669 if [ "$(findstring _HOST_,$@)" ] ; then \
1670 echo "... PCI HOST " ; \
1671 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1673 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1674 echo "...PCI SLAVE 66M" ; \
1675 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1676 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1678 if [ "$(findstring _33_,$@)" ] ; then \
1679 echo "...33M ..." ; \
1680 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1682 if [ "$(findstring _66_,$@)" ] ; then \
1683 echo "...66M..." ; \
1684 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1686 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1688 MPC8349EMDS_config: unconfig
1689 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1692 MPC8349ITX_LOWBOOT_config \
1693 MPC8349ITXGP_config: unconfig
1694 @mkdir -p $(obj)include
1695 @mkdir -p $(obj)board/mpc8349itx
1696 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1697 @if [ "$(findstring GP,$@)" ] ; then \
1698 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1700 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1701 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1703 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1705 MPC8360EMDS_config \
1706 MPC8360EMDS_HOST_33_config \
1707 MPC8360EMDS_HOST_66_config \
1708 MPC8360EMDS_SLAVE_config: unconfig
1709 @mkdir -p $(obj)include
1710 @echo "" >$(obj)include/config.h ; \
1711 if [ "$(findstring _HOST_,$@)" ] ; then \
1712 echo "... PCI HOST " ; \
1713 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1715 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1716 echo "...PCI SLAVE 66M" ; \
1717 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1718 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1720 if [ "$(findstring _33_,$@)" ] ; then \
1721 echo "...33M ..." ; \
1722 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1724 if [ "$(findstring _66_,$@)" ] ; then \
1725 echo "...66M..." ; \
1726 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1728 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1730 sbc8349_config: unconfig
1731 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1733 TQM834x_config: unconfig
1734 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1737 #########################################################################
1739 #########################################################################
1741 MPC8540ADS_config: unconfig
1742 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1744 MPC8540EVAL_config \
1745 MPC8540EVAL_33_config \
1746 MPC8540EVAL_66_config \
1747 MPC8540EVAL_33_slave_config \
1748 MPC8540EVAL_66_slave_config: unconfig
1749 @mkdir -p $(obj)include
1750 @echo "" >$(obj)include/config.h ; \
1751 if [ "$(findstring _33_,$@)" ] ; then \
1752 echo "... 33 MHz PCI" ; \
1754 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1755 echo "... 66 MHz PCI" ; \
1757 if [ "$(findstring _slave_,$@)" ] ; then \
1758 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1763 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1765 MPC8560ADS_config: unconfig
1766 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1768 MPC8541CDS_config: unconfig
1769 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1771 MPC8544DS_config: unconfig
1772 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1774 MPC8548CDS_config: unconfig
1775 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1777 MPC8555CDS_config: unconfig
1778 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1780 MPC8568MDS_config: unconfig
1781 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1783 PM854_config: unconfig
1784 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1786 PM856_config: unconfig
1787 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1791 sbc8540_66_config: unconfig
1792 @mkdir -p $(obj)include
1793 @if [ "$(findstring _66_,$@)" ] ; then \
1794 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1795 echo "... 66 MHz PCI" ; \
1797 >$(obj)include/config.h ; \
1798 echo "... 33 MHz PCI" ; \
1800 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1804 sbc8560_66_config: unconfig
1805 @mkdir -p $(obj)include
1806 @if [ "$(findstring _66_,$@)" ] ; then \
1807 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1808 echo "... 66 MHz PCI" ; \
1810 >$(obj)include/config.h ; \
1811 echo "... 33 MHz PCI" ; \
1813 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1815 stxgp3_config: unconfig
1816 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1819 stxssa_4M_config: unconfig
1820 @mkdir -p $(obj)include
1821 @if [ "$(findstring _4M_,$@)" ] ; then \
1822 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1823 echo "... with 4 MiB flash memory" ; \
1825 >$(obj)include/config.h ; \
1827 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1832 TQM8560_config: unconfig
1833 @mkdir -p $(obj)include
1834 @CTYPE=$(subst TQM,,$(@:_config=)); \
1835 >$(obj)include/config.h ; \
1836 echo "... TQM"$${CTYPE}; \
1837 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1838 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1839 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1840 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1841 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1842 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1844 #########################################################################
1846 #########################################################################
1848 MPC8641HPCN_config: unconfig
1849 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn
1852 #########################################################################
1854 #########################################################################
1856 AmigaOneG3SE_config: unconfig
1857 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1859 BAB7xx_config: unconfig
1860 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1862 CPCI750_config: unconfig
1863 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1865 DB64360_config: unconfig
1866 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1868 DB64460_config: unconfig
1869 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1871 ELPPC_config: unconfig
1872 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1875 EVB64260_750CX_config: unconfig
1876 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1878 mpc7448hpc2_config: unconfig
1879 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1881 P3G4_config: unconfig
1882 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1885 p3m7448_config: unconfig
1886 @mkdir -p $(obj)include
1887 @if [ "$(findstring 750_,$@)" ] ; then \
1888 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1890 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1892 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1895 PCIPPC6_config: unconfig
1896 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1898 ZUMA_config: unconfig
1899 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1901 ppmc7xx_config: unconfig
1902 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1904 #========================================================================
1906 #========================================================================
1907 #########################################################################
1908 ## StrongARM Systems
1909 #########################################################################
1911 assabet_config : unconfig
1912 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1914 dnp1110_config : unconfig
1915 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1917 gcplus_config : unconfig
1918 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1920 lart_config : unconfig
1921 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1923 shannon_config : unconfig
1924 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1926 #########################################################################
1928 #########################################################################
1930 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1932 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1934 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1936 at91rm9200dk_config : unconfig
1937 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1939 cmc_pu2_config : unconfig
1940 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1942 csb637_config : unconfig
1943 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1945 mp2usb_config : unconfig
1946 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1949 ########################################################################
1950 ## ARM Integrator boards - see doc/README-integrator for more info.
1951 integratorap_config \
1960 ap946es_config: unconfig
1961 @board/integratorap/split_by_variant.sh $@
1963 integratorcp_config \
1972 cp1026_config: unconfig
1973 @board/integratorcp/split_by_variant.sh $@
1975 kb9202_config : unconfig
1976 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1979 lpd7a404_config: unconfig
1980 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1982 mx1ads_config : unconfig
1983 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1985 mx1fs2_config : unconfig
1986 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1989 netstar_config: unconfig
1990 @mkdir -p $(obj)include
1991 @if [ "$(findstring _32_,$@)" ] ; then \
1992 echo "... 32MB SDRAM" ; \
1993 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1995 echo "... 64MB SDRAM" ; \
1996 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1998 @$(MKCONFIG) -a netstar arm arm925t netstar
2000 omap1510inn_config : unconfig
2001 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2003 omap5912osk_config : unconfig
2004 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2006 omap1610inn_config \
2007 omap1610inn_cs0boot_config \
2008 omap1610inn_cs3boot_config \
2009 omap1610inn_cs_autoboot_config \
2011 omap1610h2_cs0boot_config \
2012 omap1610h2_cs3boot_config \
2013 omap1610h2_cs_autoboot_config: unconfig
2014 @mkdir -p $(obj)include
2015 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2016 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2017 echo "... configured for CS0 boot"; \
2018 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2019 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2020 echo "... configured for CS_AUTO boot"; \
2022 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2023 echo "... configured for CS3 boot"; \
2025 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2028 omap730p2_cs0boot_config \
2029 omap730p2_cs3boot_config : unconfig
2030 @mkdir -p $(obj)include
2031 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2032 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2033 echo "... configured for CS0 boot"; \
2035 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2036 echo "... configured for CS3 boot"; \
2038 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2040 sbc2410x_config: unconfig
2041 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2043 scb9328_config : unconfig
2044 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2046 smdk2400_config : unconfig
2047 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2049 smdk2410_config : unconfig
2050 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2052 SX1_config : unconfig
2053 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2055 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2057 trab_bigram_config \
2058 trab_bigflash_config \
2059 trab_old_config: unconfig
2060 @mkdir -p $(obj)include
2061 @mkdir -p $(obj)board/trab
2062 @ >$(obj)include/config.h
2063 @[ -z "$(findstring _bigram,$@)" ] || \
2064 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2065 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2066 echo "... with 8 MB Flash, 32 MB RAM" ; \
2068 @[ -z "$(findstring _bigflash,$@)" ] || \
2069 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2070 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2071 echo "... with 16 MB Flash, 16 MB RAM" ; \
2072 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2074 @[ -z "$(findstring _old,$@)" ] || \
2075 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2076 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2077 echo "... with 8 MB Flash, 16 MB RAM" ; \
2078 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2080 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2082 VCMA9_config : unconfig
2083 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2085 #========================================================================
2086 # ARM supplied Versatile development boards
2087 #========================================================================
2089 versatileab_config \
2090 versatilepb_config : unconfig
2091 @board/versatile/split_by_variant.sh $@
2093 voiceblue_smallflash_config \
2094 voiceblue_config: unconfig
2095 @mkdir -p $(obj)include
2096 @mkdir -p $(obj)board/voiceblue
2097 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2098 echo "... boot from lower flash bank" ; \
2099 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2100 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2102 echo "... boot from upper flash bank" ; \
2103 >$(obj)include/config.h ; \
2104 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2106 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2108 cm4008_config : unconfig
2109 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2111 cm41xx_config : unconfig
2112 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2114 gth2_config : unconfig
2115 @mkdir -p $(obj)include
2116 @ >$(obj)include/config.h
2117 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2118 @$(MKCONFIG) -a gth2 mips mips gth2
2120 #########################################################################
2122 #########################################################################
2124 B2_config : unconfig
2125 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2127 #########################################################################
2129 #########################################################################
2131 armadillo_config: unconfig
2132 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2134 ep7312_config : unconfig
2135 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2137 impa7_config : unconfig
2138 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2140 modnet50_config : unconfig
2141 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2143 evb4510_config : unconfig
2144 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2146 lpc2292sodimm_config: unconfig
2147 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2149 SMN42_config : unconfig
2150 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2152 #########################################################################
2154 #########################################################################
2156 adsvix_config : unconfig
2157 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2159 cerf250_config : unconfig
2160 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2162 cradle_config : unconfig
2163 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2165 csb226_config : unconfig
2166 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2169 @$(MKCONFIG) $(@:_config=) arm pxa delta
2171 innokom_config : unconfig
2172 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2174 ixdp425_config : unconfig
2175 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2177 ixdpg425_config : unconfig
2178 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2180 lubbock_config : unconfig
2181 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2183 pleb2_config : unconfig
2184 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2186 logodl_config : unconfig
2187 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2190 scpu_config: unconfig
2191 @mkdir -p $(obj)include
2192 @if [ "$(findstring scpu_,$@)" ] ; then \
2193 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2194 echo "... on SCPU board variant" ; \
2196 >$(obj)include/config.h ; \
2198 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2200 pxa255_idp_config: unconfig
2201 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2203 wepep250_config : unconfig
2204 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2206 xaeniax_config : unconfig
2207 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2209 xm250_config : unconfig
2210 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2212 xsengine_config : unconfig
2213 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2216 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2218 #########################################################################
2220 #########################################################################
2221 omap2420h4_config : unconfig
2222 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2224 #========================================================================
2226 #========================================================================
2227 #########################################################################
2229 #########################################################################
2230 sc520_cdp_config : unconfig
2231 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2233 sc520_spunk_config : unconfig
2234 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2236 sc520_spunk_rel_config : unconfig
2237 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2239 #========================================================================
2241 #========================================================================
2242 #########################################################################
2244 #########################################################################
2246 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2248 incaip_100MHz_config \
2249 incaip_133MHz_config \
2250 incaip_150MHz_config \
2251 incaip_config: unconfig
2252 @mkdir -p $(obj)include
2253 @ >$(obj)include/config.h
2254 @[ -z "$(findstring _100MHz,$@)" ] || \
2255 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2256 echo "... with 100MHz system clock" ; \
2258 @[ -z "$(findstring _133MHz,$@)" ] || \
2259 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2260 echo "... with 133MHz system clock" ; \
2262 @[ -z "$(findstring _150MHz,$@)" ] || \
2263 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2264 echo "... with 150MHz system clock" ; \
2266 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2268 tb0229_config: unconfig
2269 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2271 #########################################################################
2273 #########################################################################
2274 dbau1000_config : unconfig
2275 @mkdir -p $(obj)include
2276 @ >$(obj)include/config.h
2277 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2278 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2280 dbau1100_config : unconfig
2281 @mkdir -p $(obj)include
2282 @ >$(obj)include/config.h
2283 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2284 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2286 dbau1500_config : unconfig
2287 @mkdir -p $(obj)include
2288 @ >$(obj)include/config.h
2289 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2290 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2292 dbau1550_config : unconfig
2293 @mkdir -p $(obj)include
2294 @ >$(obj)include/config.h
2295 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2296 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2298 dbau1550_el_config : unconfig
2299 @mkdir -p $(obj)include
2300 @ >$(obj)include/config.h
2301 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2302 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2304 pb1000_config : unconfig
2305 @mkdir -p $(obj)include
2306 @ >$(obj)include/config.h
2307 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2308 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2310 #########################################################################
2312 #########################################################################
2314 purple_config : unconfig
2315 @$(MKCONFIG) $(@:_config=) mips mips purple
2317 #========================================================================
2319 #========================================================================
2320 #########################################################################
2322 #########################################################################
2324 DK1C20_safe_32_config \
2325 DK1C20_standard_32_config \
2326 DK1C20_config: unconfig
2327 @mkdir -p $(obj)include
2328 @ >$(obj)include/config.h
2329 @[ -z "$(findstring _safe_32,$@)" ] || \
2330 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2331 echo "... NIOS 'safe_32' configuration" ; \
2333 @[ -z "$(findstring _standard_32,$@)" ] || \
2334 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2335 echo "... NIOS 'standard_32' configuration" ; \
2337 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2338 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2339 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2341 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2343 DK1S10_safe_32_config \
2344 DK1S10_standard_32_config \
2345 DK1S10_mtx_ldk_20_config \
2346 DK1S10_config: unconfig
2347 @mkdir -p $(obj)include
2348 @ >$(obj)include/config.h
2349 @[ -z "$(findstring _safe_32,$@)" ] || \
2350 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2351 echo "... NIOS 'safe_32' configuration" ; \
2353 @[ -z "$(findstring _standard_32,$@)" ] || \
2354 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2355 echo "... NIOS 'standard_32' configuration" ; \
2357 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2358 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2359 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2361 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2362 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2363 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2365 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2367 ADNPESC1_DNPEVA2_base_32_config \
2368 ADNPESC1_base_32_config \
2369 ADNPESC1_config: unconfig
2370 @mkdir -p $(obj)include
2371 @ >$(obj)include/config.h
2372 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2373 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2374 echo "... DNP/EVA2 configuration" ; \
2376 @[ -z "$(findstring _base_32,$@)" ] || \
2377 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2378 echo "... NIOS 'base_32' configuration" ; \
2380 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2381 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2382 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2384 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2386 #########################################################################
2388 #########################################################################
2390 EP1C20_config : unconfig
2391 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2393 EP1S10_config : unconfig
2394 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2396 EP1S40_config : unconfig
2397 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2399 PK1C20_config : unconfig
2400 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2402 PCI5441_config : unconfig
2403 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2405 #========================================================================
2407 #========================================================================
2408 #########################################################################
2410 #########################################################################
2411 suzaku_config: unconfig
2412 @mkdir -p $(obj)include
2413 @ >$(obj)include/config.h
2414 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2415 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2417 ml401_config: unconfig
2418 @mkdir -p $(obj)include
2419 @ >$(obj)include/config.h
2420 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2421 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2423 xupv2p_config: unconfig
2424 @mkdir -p $(obj)include
2425 @ >$(obj)include/config.h
2426 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2427 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2429 #########################################################################
2431 #########################################################################
2432 bf533-ezkit_config: unconfig
2433 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2435 bf533-stamp_config: unconfig
2436 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2438 bf537-stamp_config: unconfig
2439 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2441 bf561-ezkit_config: unconfig
2442 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2444 #========================================================================
2446 #========================================================================
2447 #########################################################################
2449 #########################################################################
2451 atstk1002_config : unconfig
2452 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2454 #########################################################################
2455 #########################################################################
2456 #########################################################################
2459 find $(OBJTREE) -type f \
2460 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2461 -o -name '*.o' -o -name '*.a' \) -print \
2463 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2464 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2465 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2466 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2467 $(obj)examples/test_burst
2468 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2469 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2470 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2471 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2472 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2473 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2474 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2475 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2476 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2477 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2478 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2479 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2480 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2481 rm -f $(obj)include/bmp_logo.h
2482 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2485 find $(OBJTREE) -type f \( -name .depend \
2486 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2489 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2491 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2492 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2493 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2494 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2495 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2497 ifeq ($(OBJTREE),$(SRCTREE))
2499 distclean: clobber unconfig
2502 distclean: clobber unconfig
2507 F=`basename $(TOPDIR)` ; cd .. ; \
2508 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2510 #########################################################################