2 # (C) Copyright 2000-2006
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 ./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 spieval_config: unconfig
537 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
540 TB5200_config: unconfig
541 @mkdir -p $(obj)include
542 @[ -z "$(findstring _B,$@)" ] || \
543 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
544 echo "... with MPC5200B processor" ; \
546 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
550 TOP5200_config: unconfig
551 @mkdir -p $(obj)include
552 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
553 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
557 Total5200_lowboot_config \
558 Total5200_Rev2_config \
559 Total5200_Rev2_lowboot_config: unconfig
560 @mkdir -p $(obj)include
561 @mkdir -p $(obj)board/total5200
562 @ >$(obj)include/config.h
563 @[ -z "$(findstring 5100,$@)" ] || \
564 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
565 echo "... with MGT5100 processor" ; \
567 @[ -z "$(findstring 5200,$@)" ] || \
568 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
569 echo "... with MPC5200 processor" ; \
571 @[ -n "$(findstring Rev,$@)" ] || \
572 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
573 echo "... revision 1 board" ; \
575 @[ -z "$(findstring Rev2_,$@)" ] || \
576 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
577 echo "... revision 2 board" ; \
579 @[ -z "$(findstring lowboot_,$@)" ] || \
580 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
581 echo "... with lowboot configuration" ; \
583 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
586 cam5200_niosflash_config \
590 TQM5200S_HIGHBOOT_config \
592 TQM5200_B_HIGHBOOT_config \
594 TQM5200_STK100_config: unconfig
595 @mkdir -p $(obj)include
596 @mkdir -p $(obj)board/tqm5200
597 @ >$(obj)include/config.h
598 @[ -z "$(findstring cam5200,$@)" ] || \
599 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
600 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
601 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
602 echo "... TQM5200S on Cam5200" ; \
604 @[ -z "$(findstring niosflash,$@)" ] || \
605 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
606 echo "... with NIOS flash driver" ; \
608 @[ -z "$(findstring fo300,$@)" ] || \
609 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
610 echo "... TQM5200 on FO300" ; \
612 @[ -z "$(findstring MiniFAP,$@)" ] || \
613 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
614 echo "... TQM5200_AC on MiniFAP" ; \
616 @[ -z "$(findstring STK100,$@)" ] || \
617 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
618 echo "... on a STK52XX.100 base board" ; \
620 @[ -z "$(findstring TQM5200_B,$@)" ] || \
621 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
623 @[ -z "$(findstring TQM5200S,$@)" ] || \
624 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
625 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
627 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
628 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
630 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
631 uc101_config: unconfig
632 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
633 motionpro_config: unconfig
634 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
637 #########################################################################
639 #########################################################################
645 @mkdir -p $(obj)include
646 $(if $(findstring AdderII,$@), \
647 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
648 @$(MKCONFIG) -a Adder ppc mpc8xx adder
655 FADS860T_config: unconfig
656 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
658 AMX860_config : unconfig
659 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
661 c2mon_config: unconfig
662 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
665 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
667 cogent_mpc8xx_config: unconfig
668 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
670 ELPT860_config: unconfig
671 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
673 EP88x_config: unconfig
674 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
676 ESTEEM192E_config: unconfig
677 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
679 ETX094_config : unconfig
680 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
682 FLAGADM_config: unconfig
683 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
685 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
688 GEN860T_config: unconfig
689 @mkdir -p $(obj)include
690 @ >$(obj)include/config.h
691 @[ -z "$(findstring _SC,$@)" ] || \
692 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
693 echo "With reduced H/W feature set (SC)..." ; \
695 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
697 GENIETV_config: unconfig
698 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
701 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
703 hermes_config : unconfig
704 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
706 HMI10_config : unconfig
707 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
709 IAD210_config: unconfig
710 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
712 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
714 ICU862_100MHz_config \
715 ICU862_config: unconfig
716 @mkdir -p $(obj)include
717 @ >$(obj)include/config.h
718 @[ -z "$(findstring _100MHz,$@)" ] || \
719 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
720 echo "... with 100MHz system clock" ; \
722 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
724 IP860_config : unconfig
725 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
729 IVML24_config: unconfig
730 @mkdir -p $(obj)include
731 @ >$(obj)include/config.h
732 @[ -z "$(findstring IVML24_config,$@)" ] || \
733 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
735 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
736 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
738 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
739 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
741 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
745 IVMS8_config: unconfig
746 @mkdir -p $(obj)include
747 @ >$(obj)include/config.h
748 @[ -z "$(findstring IVMS8_config,$@)" ] || \
749 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
751 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
752 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
754 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
755 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
757 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
759 KUP4K_config : unconfig
760 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
762 KUP4X_config : unconfig
763 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
765 LANTEC_config : unconfig
766 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
768 lwmon_config: unconfig
769 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
772 MBX860T_config: unconfig
773 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
775 MHPC_config: unconfig
776 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
778 MVS1_config : unconfig
779 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
781 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
784 NETVIA_config: unconfig
785 @mkdir -p $(obj)include
786 @ >$(obj)include/config.h
787 @[ -z "$(findstring NETVIA_config,$@)" ] || \
788 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
789 echo "... Version 1" ; \
791 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
792 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
793 echo "... Version 2" ; \
795 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
797 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
800 NETPHONE_config: unconfig
801 @mkdir -p $(obj)include
802 @ >$(obj)include/config.h
803 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
804 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
806 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
807 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
809 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
811 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
813 NETTA_ISDN_6412_SWAPHOOK_config \
814 NETTA_ISDN_SWAPHOOK_config \
815 NETTA_6412_SWAPHOOK_config \
816 NETTA_SWAPHOOK_config \
817 NETTA_ISDN_6412_config \
820 NETTA_config: unconfig
821 @mkdir -p $(obj)include
822 @ >$(obj)include/config.h
823 @[ -z "$(findstring ISDN_,$@)" ] || \
824 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
826 @[ -n "$(findstring ISDN_,$@)" ] || \
827 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
829 @[ -z "$(findstring 6412_,$@)" ] || \
830 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
832 @[ -n "$(findstring 6412_,$@)" ] || \
833 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
835 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
836 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
838 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
839 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
841 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
843 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
846 NETTA2_config: unconfig
847 @mkdir -p $(obj)include
848 @ >$(obj)include/config.h
849 @[ -z "$(findstring NETTA2_config,$@)" ] || \
850 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
852 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
853 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
855 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
859 CP850_config: unconfig
860 @mkdir -p $(obj)include
861 @ >$(obj)include/config.h
862 @[ -z "$(findstring CP850,$@)" ] || \
863 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
864 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
866 @[ -z "$(findstring Rev1,$@)" ] || \
867 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
869 @[ -z "$(findstring Rev2,$@)" ] || \
870 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
872 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
874 NX823_config: unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
877 pcu_e_config: unconfig
878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
880 QS850_config: unconfig
881 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
883 QS823_config: unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
886 QS860T_config: unconfig
887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
889 quantum_config: unconfig
890 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
892 R360MPI_config: unconfig
893 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
895 RBC823_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
898 RPXClassic_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
901 RPXlite_config: unconfig
902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
904 RPXlite_DW_64_config \
905 RPXlite_DW_LCD_config \
906 RPXlite_DW_64_LCD_config \
907 RPXlite_DW_NVRAM_config \
908 RPXlite_DW_NVRAM_64_config \
909 RPXlite_DW_NVRAM_LCD_config \
910 RPXlite_DW_NVRAM_64_LCD_config \
911 RPXlite_DW_config: unconfig
912 @mkdir -p $(obj)include
913 @ >$(obj)include/config.h
914 @[ -z "$(findstring _64,$@)" ] || \
915 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
916 echo "... with 64MHz system clock ..."; \
918 @[ -z "$(findstring _LCD,$@)" ] || \
919 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
920 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
921 echo "... with LCD display ..."; \
923 @[ -z "$(findstring _NVRAM,$@)" ] || \
924 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
925 echo "... with ENV in NVRAM ..."; \
927 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
930 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
932 RRvision_config: unconfig
933 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
935 RRvision_LCD_config: unconfig
936 @mkdir -p $(obj)include
937 @echo "#define CONFIG_LCD" >$(obj)include/config.h
938 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
939 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
941 SM850_config : unconfig
942 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
945 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
947 SPD823TS_config: unconfig
948 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
950 stxxtc_config: unconfig
951 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
953 svm_sc8xx_config: unconfig
954 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
956 SXNI855T_config: unconfig
957 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
959 # EMK MPC8xx based modules
960 TOP860_config: unconfig
961 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
963 # Play some tricks for configuration selection
964 # Only 855 and 860 boards may come with FEC
965 # and only 823 boards may have LCD support
966 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
984 virtlab2_config: unconfig
985 @mkdir -p $(obj)include
986 @ >$(obj)include/config.h
987 @[ -z "$(findstring _LCD,$@)" ] || \
988 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
989 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
990 echo "... with LCD display" ; \
992 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
994 TTTech_config: unconfig
995 @mkdir -p $(obj)include
996 @echo "#define CONFIG_LCD" >$(obj)include/config.h
997 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
998 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1000 uc100_config : unconfig
1001 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1003 v37_config: unconfig
1004 @mkdir -p $(obj)include
1005 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1006 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1007 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1009 wtk_config: unconfig
1010 @mkdir -p $(obj)include
1011 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1012 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1013 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1015 #########################################################################
1017 #########################################################################
1018 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1020 acadia_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1023 acadia_nand_config: unconfig
1024 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1025 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1026 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1027 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1028 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1029 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1031 ADCIOP_config: unconfig
1032 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1034 alpr_config: unconfig
1035 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1037 AP1000_config:unconfig
1038 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1040 APC405_config: unconfig
1041 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1043 AR405_config: unconfig
1044 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1046 ASH405_config: unconfig
1047 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1049 bamboo_config: unconfig
1050 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1052 bamboo_nand_config: unconfig
1053 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1054 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1055 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1056 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1057 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1058 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1060 bubinga_config: unconfig
1061 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1063 CANBT_config: unconfig
1064 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1067 CATcenter_25_config \
1068 CATcenter_33_config: unconfig
1069 @mkdir -p $(obj)include
1070 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1071 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1072 @[ -z "$(findstring _25,$@)" ] || \
1073 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1074 echo "SysClk = 25MHz" ; \
1076 @[ -z "$(findstring _33,$@)" ] || \
1077 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1078 echo "SysClk = 33MHz" ; \
1080 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1082 CPCI2DP_config: unconfig
1083 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1088 CPCI405AB_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1090 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1092 CPCI440_config: unconfig
1093 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1095 CPCIISER4_config: unconfig
1096 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1098 CRAYL1_config: unconfig
1099 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1101 csb272_config: unconfig
1102 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1104 csb472_config: unconfig
1105 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1107 DASA_SIM_config: unconfig
1108 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1110 DP405_config: unconfig
1111 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1113 DU405_config: unconfig
1114 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1116 ebony_config: unconfig
1117 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1119 ERIC_config: unconfig
1120 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1122 EXBITGEN_config: unconfig
1123 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1125 G2000_config: unconfig
1126 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1128 HH405_config: unconfig
1129 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1131 HUB405_config: unconfig
1132 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1134 JSE_config: unconfig
1135 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1137 KAREF_config: unconfig
1138 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1140 katmai_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1143 luan_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1146 lwmon5_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1149 METROBOX_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1152 MIP405_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1155 MIP405T_config: unconfig
1156 @mkdir -p $(obj)include
1157 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1158 @echo "Enable subset config for MIP405T"
1159 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1161 ML2_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1164 ml300_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1167 ocotea_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1171 ORSG_config: unconfig
1172 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1174 p3p440_config: unconfig
1175 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1177 PCI405_config: unconfig
1178 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1180 pcs440ep_config: unconfig
1181 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1183 PIP405_config: unconfig
1184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1186 PLU405_config: unconfig
1187 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1189 PMC405_config: unconfig
1190 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1192 PPChameleonEVB_config \
1193 PPChameleonEVB_BA_25_config \
1194 PPChameleonEVB_ME_25_config \
1195 PPChameleonEVB_HI_25_config \
1196 PPChameleonEVB_BA_33_config \
1197 PPChameleonEVB_ME_33_config \
1198 PPChameleonEVB_HI_33_config: unconfig
1199 @mkdir -p $(obj)include
1200 @ >$(obj)include/config.h
1201 @[ -z "$(findstring EVB_BA,$@)" ] || \
1202 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1203 echo "... BASIC model" ; \
1205 @[ -z "$(findstring EVB_ME,$@)" ] || \
1206 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1207 echo "... MEDIUM model" ; \
1209 @[ -z "$(findstring EVB_HI,$@)" ] || \
1210 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1211 echo "... HIGH-END model" ; \
1213 @[ -z "$(findstring _25,$@)" ] || \
1214 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1215 echo "SysClk = 25MHz" ; \
1217 @[ -z "$(findstring _33,$@)" ] || \
1218 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1219 echo "SysClk = 33MHz" ; \
1221 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1223 sbc405_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1227 rainier_config: unconfig
1228 @mkdir -p $(obj)include
1229 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1230 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1231 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1233 sequoia_nand_config \
1234 rainier_nand_config: unconfig
1235 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1236 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1237 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1238 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1239 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1240 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1241 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1242 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1247 taishan_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1250 VOH405_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1253 VOM405_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1256 CMS700_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1260 W7OLMG_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1263 # Walnut & Sycamore images are identical (recognized via PVR)
1265 sycamore_config: unconfig
1266 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1268 WUH405_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1271 XPEDITE1K_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1275 yellowstone_config: unconfig
1276 @mkdir -p $(obj)include
1277 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1278 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1279 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1281 yucca_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1284 #########################################################################
1286 #########################################################################
1289 Yukon8220_config: unconfig
1290 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1292 sorcery_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1295 #########################################################################
1297 #########################################################################
1298 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1300 A3000_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1303 barco_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1306 BMW_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1310 CPC45_ROMBOOT_config: unconfig
1311 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1312 @cd $(obj)include ; \
1313 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1314 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1315 echo "... booting from 8-bit flash" ; \
1317 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1318 echo "... booting from 64-bit flash" ; \
1320 echo "export CONFIG_BOOT_ROM" >> config.mk;
1322 CU824_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1325 debris_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1328 eXalion_config: unconfig
1329 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1331 HIDDEN_DRAGON_config: unconfig
1332 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1334 kvme080_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1337 MOUSSE_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1340 MUSENKI_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1343 MVBLUE_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1346 OXC_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1349 PN62_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1352 Sandpoint8240_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1355 Sandpoint8245_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1358 sbc8240_config: unconfig
1359 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1361 SL8245_config: unconfig
1362 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1364 utx8245_config: unconfig
1365 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1367 #########################################################################
1369 #########################################################################
1371 atc_config: unconfig
1372 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1374 cogent_mpc8260_config: unconfig
1375 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1378 CPU86_ROMBOOT_config: unconfig
1379 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1380 @cd $(obj)include ; \
1381 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1382 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1383 echo "... booting from 8-bit flash" ; \
1385 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1386 echo "... booting from 64-bit flash" ; \
1388 echo "export CONFIG_BOOT_ROM" >> config.mk;
1391 CPU87_ROMBOOT_config: unconfig
1392 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1393 @cd $(obj)include ; \
1394 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1395 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1396 echo "... booting from 8-bit flash" ; \
1398 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1399 echo "... booting from 64-bit flash" ; \
1401 echo "export CONFIG_BOOT_ROM" >> config.mk;
1404 ep8248E_config : unconfig
1405 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1407 ep8260_config: unconfig
1408 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1410 ep82xxm_config: unconfig
1411 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1413 gw8260_config: unconfig
1414 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1416 hymod_config: unconfig
1417 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1419 IDS8247_config: unconfig
1420 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1422 IPHASE4539_config: unconfig
1423 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1426 ISPAN_REVB_config: unconfig
1427 @mkdir -p $(obj)include
1428 @if [ "$(findstring _REVB_,$@)" ] ; then \
1429 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1431 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1434 MPC8260ADS_lowboot_config \
1435 MPC8260ADS_33MHz_config \
1436 MPC8260ADS_33MHz_lowboot_config \
1437 MPC8260ADS_40MHz_config \
1438 MPC8260ADS_40MHz_lowboot_config \
1440 MPC8272ADS_lowboot_config \
1442 PQ2FADS_lowboot_config \
1444 PQ2FADS-VR_lowboot_config \
1446 PQ2FADS-ZU_lowboot_config \
1447 PQ2FADS-ZU_66MHz_config \
1448 PQ2FADS-ZU_66MHz_lowboot_config \
1450 @mkdir -p $(obj)include
1451 @mkdir -p $(obj)board/mpc8260ads
1452 $(if $(findstring PQ2FADS,$@), \
1453 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1454 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1455 $(if $(findstring MHz,$@), \
1456 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1457 $(if $(findstring VR,$@), \
1458 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1459 @[ -z "$(findstring lowboot_,$@)" ] || \
1460 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1461 echo "... with lowboot configuration" ; \
1463 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1465 MPC8266ADS_config: unconfig
1466 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1468 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1470 PM825_ROMBOOT_config \
1471 PM825_BIGFLASH_config \
1472 PM825_ROMBOOT_BIGFLASH_config \
1474 PM826_ROMBOOT_config \
1475 PM826_BIGFLASH_config \
1476 PM826_ROMBOOT_BIGFLASH_config: unconfig
1477 @mkdir -p $(obj)include
1478 @mkdir -p $(obj)board/pm826
1479 @if [ "$(findstring PM825_,$@)" ] ; then \
1480 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1482 >$(obj)include/config.h ; \
1484 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1485 echo "... booting from 8-bit flash" ; \
1486 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1487 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1488 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1489 echo "... with 32 MB Flash" ; \
1490 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1493 echo "... booting from 64-bit flash" ; \
1494 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1495 echo "... with 32 MB Flash" ; \
1496 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1497 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1499 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1502 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1506 PM828_ROMBOOT_config \
1507 PM828_ROMBOOT_PCI_config: unconfig
1508 @mkdir -p $(obj)include
1509 @mkdir -p $(obj)board/pm826
1510 @if [ "$(findstring _PCI_,$@)" ] ; then \
1511 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1512 echo "... with PCI enabled" ; \
1514 >$(obj)include/config.h ; \
1516 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1517 echo "... booting from 8-bit flash" ; \
1518 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1519 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1521 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1523 ppmc8260_config: unconfig
1524 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1526 Rattler8248_config \
1527 Rattler_config: unconfig
1528 @mkdir -p $(obj)include
1529 $(if $(findstring 8248,$@), \
1530 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1531 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1533 RPXsuper_config: unconfig
1534 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1536 rsdproto_config: unconfig
1537 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1539 sacsng_config: unconfig
1540 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1542 sbc8260_config: unconfig
1543 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1545 SCM_config: unconfig
1546 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1558 TQM8265_AA_config: unconfig
1559 @mkdir -p $(obj)include
1561 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1562 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1563 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1564 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1565 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1566 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1567 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1568 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1569 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1570 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1571 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1573 >$(obj)include/config.h ; \
1574 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1575 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1577 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1578 echo "... with $${CFREQ}MHz system clock" ; \
1579 if [ "$${CACHE}" == "yes" ] ; then \
1580 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1581 echo "... with L2 Cache support" ; \
1583 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1584 echo "... without L2 Cache support" ; \
1586 if [ "$${BMODE}" == "60x" ] ; then \
1587 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1588 echo "... with 60x Bus Mode" ; \
1590 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1591 echo "... without 60x Bus Mode" ; \
1593 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1595 TQM8272_config: unconfig
1596 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1598 VoVPN-GW_66MHz_config \
1599 VoVPN-GW_100MHz_config: unconfig
1600 @mkdir -p $(obj)include
1601 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1602 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1604 ZPC1900_config: unconfig
1605 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1607 #########################################################################
1609 #########################################################################
1611 cobra5272_config : unconfig
1612 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1614 EB+MCF-EV123_config : unconfig
1615 @mkdir -p $(obj)include
1616 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1617 @ >$(obj)include/config.h
1618 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1619 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1621 EB+MCF-EV123_internal_config : unconfig
1622 @mkdir -p $(obj)include
1623 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1624 @ >$(obj)include/config.h
1625 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1626 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1628 idmr_config : unconfig
1629 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1631 M5271EVB_config : unconfig
1632 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1634 M5272C3_config : unconfig
1635 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1637 M5282EVB_config : unconfig
1638 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1640 TASREG_config : unconfig
1641 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1643 r5200_config : unconfig
1644 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1646 #########################################################################
1648 #########################################################################
1650 MPC8313ERDB_33_config \
1651 MPC8313ERDB_66_config: unconfig
1652 @mkdir -p $(obj)include
1653 @echo "" >$(obj)include/config.h ; \
1654 if [ "$(findstring _33_,$@)" ] ; then \
1655 echo "...33M ..." ; \
1656 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1658 if [ "$(findstring _66_,$@)" ] ; then \
1659 echo "...66M..." ; \
1660 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1662 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1664 MPC832XEMDS_config \
1665 MPC832XEMDS_HOST_33_config \
1666 MPC832XEMDS_HOST_66_config \
1667 MPC832XEMDS_SLAVE_config: unconfig
1668 @mkdir -p $(obj)include
1669 @echo "" >$(obj)include/config.h ; \
1670 if [ "$(findstring _HOST_,$@)" ] ; then \
1671 echo "... PCI HOST " ; \
1672 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1674 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1675 echo "...PCI SLAVE 66M" ; \
1676 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1677 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1679 if [ "$(findstring _33_,$@)" ] ; then \
1680 echo "...33M ..." ; \
1681 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1683 if [ "$(findstring _66_,$@)" ] ; then \
1684 echo "...66M..." ; \
1685 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1687 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1689 MPC8349EMDS_config: unconfig
1690 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1693 MPC8349ITX_LOWBOOT_config \
1694 MPC8349ITXGP_config: unconfig
1695 @mkdir -p $(obj)include
1696 @mkdir -p $(obj)board/mpc8349itx
1697 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1698 @if [ "$(findstring GP,$@)" ] ; then \
1699 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1701 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1702 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1704 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1706 MPC8360EMDS_config \
1707 MPC8360EMDS_HOST_33_config \
1708 MPC8360EMDS_HOST_66_config \
1709 MPC8360EMDS_SLAVE_config: unconfig
1710 @mkdir -p $(obj)include
1711 @echo "" >$(obj)include/config.h ; \
1712 if [ "$(findstring _HOST_,$@)" ] ; then \
1713 echo "... PCI HOST " ; \
1714 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1716 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1717 echo "...PCI SLAVE 66M" ; \
1718 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1719 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1721 if [ "$(findstring _33_,$@)" ] ; then \
1722 echo "...33M ..." ; \
1723 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1725 if [ "$(findstring _66_,$@)" ] ; then \
1726 echo "...66M..." ; \
1727 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1729 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1731 sbc8349_config: unconfig
1732 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1734 TQM834x_config: unconfig
1735 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1738 #########################################################################
1740 #########################################################################
1742 MPC8540ADS_config: unconfig
1743 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1745 MPC8540EVAL_config \
1746 MPC8540EVAL_33_config \
1747 MPC8540EVAL_66_config \
1748 MPC8540EVAL_33_slave_config \
1749 MPC8540EVAL_66_slave_config: unconfig
1750 @mkdir -p $(obj)include
1751 @echo "" >$(obj)include/config.h ; \
1752 if [ "$(findstring _33_,$@)" ] ; then \
1753 echo "... 33 MHz PCI" ; \
1755 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1756 echo "... 66 MHz PCI" ; \
1758 if [ "$(findstring _slave_,$@)" ] ; then \
1759 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1764 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1766 MPC8560ADS_config: unconfig
1767 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1769 MPC8541CDS_config: unconfig
1770 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1772 MPC8544DS_config: unconfig
1773 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1775 MPC8548CDS_config: unconfig
1776 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1778 MPC8555CDS_config: unconfig
1779 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1781 MPC8568MDS_config: unconfig
1782 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1784 PM854_config: unconfig
1785 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1787 PM856_config: unconfig
1788 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1792 sbc8540_66_config: unconfig
1793 @mkdir -p $(obj)include
1794 @if [ "$(findstring _66_,$@)" ] ; then \
1795 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1796 echo "... 66 MHz PCI" ; \
1798 >$(obj)include/config.h ; \
1799 echo "... 33 MHz PCI" ; \
1801 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1805 sbc8560_66_config: unconfig
1806 @mkdir -p $(obj)include
1807 @if [ "$(findstring _66_,$@)" ] ; then \
1808 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1809 echo "... 66 MHz PCI" ; \
1811 >$(obj)include/config.h ; \
1812 echo "... 33 MHz PCI" ; \
1814 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1816 stxgp3_config: unconfig
1817 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1820 stxssa_4M_config: unconfig
1821 @mkdir -p $(obj)include
1822 @if [ "$(findstring _4M_,$@)" ] ; then \
1823 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1824 echo "... with 4 MiB flash memory" ; \
1826 >$(obj)include/config.h ; \
1828 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1833 TQM8560_config: unconfig
1834 @mkdir -p $(obj)include
1835 @CTYPE=$(subst TQM,,$(@:_config=)); \
1836 >$(obj)include/config.h ; \
1837 echo "... TQM"$${CTYPE}; \
1838 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1839 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1840 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1841 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1842 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1843 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1845 #########################################################################
1847 #########################################################################
1849 MPC8641HPCN_config: unconfig
1850 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn
1853 #########################################################################
1855 #########################################################################
1857 AmigaOneG3SE_config: unconfig
1858 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1860 BAB7xx_config: unconfig
1861 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1863 CPCI750_config: unconfig
1864 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1866 DB64360_config: unconfig
1867 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1869 DB64460_config: unconfig
1870 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1872 ELPPC_config: unconfig
1873 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1876 EVB64260_750CX_config: unconfig
1877 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1879 mpc7448hpc2_config: unconfig
1880 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1882 P3G4_config: unconfig
1883 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1886 p3m7448_config: unconfig
1887 @mkdir -p $(obj)include
1888 @if [ "$(findstring 750_,$@)" ] ; then \
1889 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1891 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1893 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1896 PCIPPC6_config: unconfig
1897 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1899 ZUMA_config: unconfig
1900 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1902 ppmc7xx_config: unconfig
1903 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1905 #========================================================================
1907 #========================================================================
1908 #########################################################################
1909 ## StrongARM Systems
1910 #########################################################################
1912 assabet_config : unconfig
1913 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1915 dnp1110_config : unconfig
1916 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1918 gcplus_config : unconfig
1919 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1921 lart_config : unconfig
1922 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1924 shannon_config : unconfig
1925 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1927 #########################################################################
1929 #########################################################################
1931 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1933 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1935 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1937 at91rm9200dk_config : unconfig
1938 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1940 cmc_pu2_config : unconfig
1941 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1943 csb637_config : unconfig
1944 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1946 mp2usb_config : unconfig
1947 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1950 ########################################################################
1951 ## ARM Integrator boards - see doc/README-integrator for more info.
1952 integratorap_config \
1961 ap946es_config: unconfig
1962 @board/integratorap/split_by_variant.sh $@
1964 integratorcp_config \
1973 cp1026_config: unconfig
1974 @board/integratorcp/split_by_variant.sh $@
1976 kb9202_config : unconfig
1977 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1980 lpd7a404_config: unconfig
1981 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1983 mx1ads_config : unconfig
1984 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1986 mx1fs2_config : unconfig
1987 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1990 netstar_config: unconfig
1991 @mkdir -p $(obj)include
1992 @if [ "$(findstring _32_,$@)" ] ; then \
1993 echo "... 32MB SDRAM" ; \
1994 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1996 echo "... 64MB SDRAM" ; \
1997 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1999 @$(MKCONFIG) -a netstar arm arm925t netstar
2001 omap1510inn_config : unconfig
2002 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2004 omap5912osk_config : unconfig
2005 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2007 omap1610inn_config \
2008 omap1610inn_cs0boot_config \
2009 omap1610inn_cs3boot_config \
2010 omap1610inn_cs_autoboot_config \
2012 omap1610h2_cs0boot_config \
2013 omap1610h2_cs3boot_config \
2014 omap1610h2_cs_autoboot_config: unconfig
2015 @mkdir -p $(obj)include
2016 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2017 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2018 echo "... configured for CS0 boot"; \
2019 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2020 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2021 echo "... configured for CS_AUTO boot"; \
2023 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2024 echo "... configured for CS3 boot"; \
2026 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2029 omap730p2_cs0boot_config \
2030 omap730p2_cs3boot_config : unconfig
2031 @mkdir -p $(obj)include
2032 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2033 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2034 echo "... configured for CS0 boot"; \
2036 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2037 echo "... configured for CS3 boot"; \
2039 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2041 sbc2410x_config: unconfig
2042 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2044 scb9328_config : unconfig
2045 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2047 smdk2400_config : unconfig
2048 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2050 smdk2410_config : unconfig
2051 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2053 SX1_config : unconfig
2054 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2056 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2058 trab_bigram_config \
2059 trab_bigflash_config \
2060 trab_old_config: unconfig
2061 @mkdir -p $(obj)include
2062 @mkdir -p $(obj)board/trab
2063 @ >$(obj)include/config.h
2064 @[ -z "$(findstring _bigram,$@)" ] || \
2065 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2066 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2067 echo "... with 8 MB Flash, 32 MB RAM" ; \
2069 @[ -z "$(findstring _bigflash,$@)" ] || \
2070 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2071 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2072 echo "... with 16 MB Flash, 16 MB RAM" ; \
2073 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2075 @[ -z "$(findstring _old,$@)" ] || \
2076 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2077 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2078 echo "... with 8 MB Flash, 16 MB RAM" ; \
2079 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2081 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2083 VCMA9_config : unconfig
2084 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2086 #========================================================================
2087 # ARM supplied Versatile development boards
2088 #========================================================================
2090 versatileab_config \
2091 versatilepb_config : unconfig
2092 @board/versatile/split_by_variant.sh $@
2094 voiceblue_smallflash_config \
2095 voiceblue_config: unconfig
2096 @mkdir -p $(obj)include
2097 @mkdir -p $(obj)board/voiceblue
2098 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2099 echo "... boot from lower flash bank" ; \
2100 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2101 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2103 echo "... boot from upper flash bank" ; \
2104 >$(obj)include/config.h ; \
2105 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2107 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2109 cm4008_config : unconfig
2110 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2112 cm41xx_config : unconfig
2113 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2115 gth2_config : unconfig
2116 @mkdir -p $(obj)include
2117 @ >$(obj)include/config.h
2118 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2119 @$(MKCONFIG) -a gth2 mips mips gth2
2121 #########################################################################
2123 #########################################################################
2125 B2_config : unconfig
2126 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2128 #########################################################################
2130 #########################################################################
2132 armadillo_config: unconfig
2133 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2135 ep7312_config : unconfig
2136 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2138 impa7_config : unconfig
2139 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2141 modnet50_config : unconfig
2142 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2144 evb4510_config : unconfig
2145 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2147 lpc2292sodimm_config: unconfig
2148 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2150 SMN42_config : unconfig
2151 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2153 #########################################################################
2155 #########################################################################
2157 adsvix_config : unconfig
2158 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2160 cerf250_config : unconfig
2161 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2163 cradle_config : unconfig
2164 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2166 csb226_config : unconfig
2167 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2170 @$(MKCONFIG) $(@:_config=) arm pxa delta
2172 innokom_config : unconfig
2173 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2175 ixdp425_config : unconfig
2176 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2178 ixdpg425_config : unconfig
2179 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2181 lubbock_config : unconfig
2182 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2184 pleb2_config : unconfig
2185 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2187 logodl_config : unconfig
2188 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2191 scpu_config: unconfig
2192 @mkdir -p $(obj)include
2193 @if [ "$(findstring scpu_,$@)" ] ; then \
2194 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2195 echo "... on SCPU board variant" ; \
2197 >$(obj)include/config.h ; \
2199 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2201 pxa255_idp_config: unconfig
2202 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2204 wepep250_config : unconfig
2205 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2207 xaeniax_config : unconfig
2208 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2210 xm250_config : unconfig
2211 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2213 xsengine_config : unconfig
2214 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2217 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2219 #########################################################################
2221 #########################################################################
2222 omap2420h4_config : unconfig
2223 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2225 #========================================================================
2227 #========================================================================
2228 #########################################################################
2230 #########################################################################
2231 sc520_cdp_config : unconfig
2232 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2234 sc520_spunk_config : unconfig
2235 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2237 sc520_spunk_rel_config : unconfig
2238 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2240 #========================================================================
2242 #========================================================================
2243 #########################################################################
2245 #########################################################################
2247 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2249 incaip_100MHz_config \
2250 incaip_133MHz_config \
2251 incaip_150MHz_config \
2252 incaip_config: unconfig
2253 @mkdir -p $(obj)include
2254 @ >$(obj)include/config.h
2255 @[ -z "$(findstring _100MHz,$@)" ] || \
2256 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2257 echo "... with 100MHz system clock" ; \
2259 @[ -z "$(findstring _133MHz,$@)" ] || \
2260 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2261 echo "... with 133MHz system clock" ; \
2263 @[ -z "$(findstring _150MHz,$@)" ] || \
2264 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2265 echo "... with 150MHz system clock" ; \
2267 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2269 tb0229_config: unconfig
2270 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2272 #########################################################################
2274 #########################################################################
2275 dbau1000_config : unconfig
2276 @mkdir -p $(obj)include
2277 @ >$(obj)include/config.h
2278 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2279 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2281 dbau1100_config : unconfig
2282 @mkdir -p $(obj)include
2283 @ >$(obj)include/config.h
2284 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2285 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2287 dbau1500_config : unconfig
2288 @mkdir -p $(obj)include
2289 @ >$(obj)include/config.h
2290 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2291 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2293 dbau1550_config : unconfig
2294 @mkdir -p $(obj)include
2295 @ >$(obj)include/config.h
2296 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2297 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2299 dbau1550_el_config : unconfig
2300 @mkdir -p $(obj)include
2301 @ >$(obj)include/config.h
2302 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2303 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2305 pb1000_config : unconfig
2306 @mkdir -p $(obj)include
2307 @ >$(obj)include/config.h
2308 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2309 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2311 #########################################################################
2313 #########################################################################
2315 purple_config : unconfig
2316 @$(MKCONFIG) $(@:_config=) mips mips purple
2318 #========================================================================
2320 #========================================================================
2321 #########################################################################
2323 #########################################################################
2325 DK1C20_safe_32_config \
2326 DK1C20_standard_32_config \
2327 DK1C20_config: unconfig
2328 @mkdir -p $(obj)include
2329 @ >$(obj)include/config.h
2330 @[ -z "$(findstring _safe_32,$@)" ] || \
2331 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2332 echo "... NIOS 'safe_32' configuration" ; \
2334 @[ -z "$(findstring _standard_32,$@)" ] || \
2335 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2336 echo "... NIOS 'standard_32' configuration" ; \
2338 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2339 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2340 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2342 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2344 DK1S10_safe_32_config \
2345 DK1S10_standard_32_config \
2346 DK1S10_mtx_ldk_20_config \
2347 DK1S10_config: unconfig
2348 @mkdir -p $(obj)include
2349 @ >$(obj)include/config.h
2350 @[ -z "$(findstring _safe_32,$@)" ] || \
2351 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2352 echo "... NIOS 'safe_32' configuration" ; \
2354 @[ -z "$(findstring _standard_32,$@)" ] || \
2355 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2356 echo "... NIOS 'standard_32' configuration" ; \
2358 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2359 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2360 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2362 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2363 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2364 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2366 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2368 ADNPESC1_DNPEVA2_base_32_config \
2369 ADNPESC1_base_32_config \
2370 ADNPESC1_config: unconfig
2371 @mkdir -p $(obj)include
2372 @ >$(obj)include/config.h
2373 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2374 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2375 echo "... DNP/EVA2 configuration" ; \
2377 @[ -z "$(findstring _base_32,$@)" ] || \
2378 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2379 echo "... NIOS 'base_32' configuration" ; \
2381 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2382 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2383 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2385 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2387 #########################################################################
2389 #########################################################################
2391 EP1C20_config : unconfig
2392 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2394 EP1S10_config : unconfig
2395 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2397 EP1S40_config : unconfig
2398 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2400 PK1C20_config : unconfig
2401 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2403 PCI5441_config : unconfig
2404 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2406 #========================================================================
2408 #========================================================================
2409 #########################################################################
2411 #########################################################################
2412 suzaku_config: unconfig
2413 @mkdir -p $(obj)include
2414 @ >$(obj)include/config.h
2415 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2416 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2418 ml401_config: unconfig
2419 @mkdir -p $(obj)include
2420 @ >$(obj)include/config.h
2421 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2422 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2424 xupv2p_config: unconfig
2425 @mkdir -p $(obj)include
2426 @ >$(obj)include/config.h
2427 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2428 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2430 #########################################################################
2432 #########################################################################
2433 bf533-ezkit_config: unconfig
2434 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2436 bf533-stamp_config: unconfig
2437 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2439 bf537-stamp_config: unconfig
2440 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2442 bf561-ezkit_config: unconfig
2443 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2445 #========================================================================
2447 #========================================================================
2448 #########################################################################
2450 #########################################################################
2452 atstk1002_config : unconfig
2453 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2455 #########################################################################
2456 #########################################################################
2457 #########################################################################
2460 find $(OBJTREE) -type f \
2461 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2462 -o -name '*.o' -o -name '*.a' \) -print \
2464 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2465 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2466 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2467 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2468 $(obj)examples/test_burst
2469 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2470 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2471 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2472 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2473 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2474 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2475 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2476 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2477 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2478 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2479 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2480 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2481 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2482 rm -f $(obj)include/bmp_logo.h
2483 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2486 find $(OBJTREE) -type f \( -name .depend \
2487 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2490 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2492 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2493 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2494 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2495 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2496 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2498 ifeq ($(OBJTREE),$(SRCTREE))
2500 distclean: clobber unconfig
2503 distclean: clobber unconfig
2508 F=`basename $(TOPDIR)` ; cd .. ; \
2509 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2511 #########################################################################