2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
39 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
40 sed -e 's/\(cygwin\).*/cygwin/')
42 export HOSTARCH HOSTOS
44 # Deal with colliding definitions from tcsh etc.
47 #########################################################################
49 # U-boot build supports producing a object files to the separate external
50 # directory. Two use cases are supported:
52 # 1) Add O= to the make command line
53 # 'make O=/tmp/build all'
55 # 2) Set environement variable BUILD_DIR to point to the desired location
56 # 'export BUILD_DIR=/tmp/build'
59 # The second approach can also be used with a MAKEALL script
60 # 'export BUILD_DIR=/tmp/build'
63 # Command line 'O=' setting overrides BUILD_DIR environent variable.
65 # When none of the above methods is used the local build is performed and
66 # the object files are placed in the source directory.
70 ifeq ("$(origin O)", "command line")
76 saved-output := $(BUILD_DIR)
78 # Attempt to create a output directory.
79 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
81 # Verify if it was successful.
82 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
83 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
84 endif # ifneq ($(BUILD_DIR),)
86 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
90 export TOPDIR SRCTREE OBJTREE
92 MKCONFIG := $(SRCTREE)/mkconfig
95 ifneq ($(OBJTREE),$(SRCTREE))
100 # $(obj) and (src) are defined in config.mk but here in main Makefile
101 # we also need them before config.mk is included which is the case for
102 # some targets like unconfig, clean, clobber, distclean, etc.
103 ifneq ($(OBJTREE),$(SRCTREE))
112 #########################################################################
114 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
116 # load ARCH, BOARD, and CPU configuration
117 include $(OBJTREE)/include/config.mk
118 export ARCH CPU BOARD VENDOR SOC
121 ifeq ($(HOSTARCH),$(ARCH))
125 CROSS_COMPILE = powerpc-linux-
128 CROSS_COMPILE = arm-linux-
131 CROSS_COMPILE = i386-linux-
134 CROSS_COMPILE = mips_4KC-
137 CROSS_COMPILE = nios-elf-
140 CROSS_COMPILE = nios2-elf-
143 CROSS_COMPILE = m68k-elf-
145 ifeq ($(ARCH),microblaze)
148 ifeq ($(ARCH),blackfin)
149 CROSS_COMPILE = bfin-uclinux-
152 CROSS_COMPILE = avr32-linux-
159 # load other configuration
160 include $(TOPDIR)/config.mk
162 #########################################################################
163 # U-Boot objects....order is important (i.e. start must be first)
165 OBJS = cpu/$(CPU)/start.o
167 OBJS += cpu/$(CPU)/start16.o
168 OBJS += cpu/$(CPU)/reset.o
171 OBJS += cpu/$(CPU)/resetvec.o
173 ifeq ($(CPU),mpc85xx)
174 OBJS += cpu/$(CPU)/resetvec.o
177 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
178 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
181 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
182 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
185 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
186 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
189 OBJS := $(addprefix $(obj),$(OBJS))
191 LIBS = lib_generic/libgeneric.a
192 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
193 LIBS += cpu/$(CPU)/lib$(CPU).a
195 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
198 LIBS += cpu/ixp/npe/libnpe.a
200 LIBS += lib_$(ARCH)/lib$(ARCH).a
201 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
202 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
204 LIBS += disk/libdisk.a
207 LIBS += drivers/libdrivers.a
208 LIBS += drivers/nand/libnand.a
209 LIBS += drivers/nand_legacy/libnand_legacy.a
210 ifeq ($(CPU),mpc83xx)
211 LIBS += drivers/qe/qe.a
213 LIBS += drivers/sk98lin/libsk98lin.a
214 LIBS += post/libpost.a post/drivers/libpostdrivers.a
215 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
216 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
217 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
218 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
219 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
220 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
221 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
222 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
223 LIBS += common/libcommon.a
224 LIBS += libfdt/libfdt.a
226 LIBS := $(addprefix $(obj),$(LIBS))
230 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
232 # The "tools" are needed early, so put this first
233 # Don't include stuff already done in $(LIBS)
239 ifeq ($(CONFIG_NAND_U_BOOT),y)
241 U_BOOT_NAND = $(obj)u-boot-nand.bin
244 __OBJS := $(subst $(obj),,$(OBJS))
245 __LIBS := $(subst $(obj),,$(LIBS))
247 #########################################################################
248 #########################################################################
250 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
254 $(obj)u-boot.hex: $(obj)u-boot
255 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
257 $(obj)u-boot.srec: $(obj)u-boot
258 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
260 $(obj)u-boot.bin: $(obj)u-boot
261 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
263 $(obj)u-boot.img: $(obj)u-boot.bin
264 ./tools/mkimage -A $(ARCH) -T firmware -C none \
265 -a $(TEXT_BASE) -e 0 \
266 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
267 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
270 $(obj)u-boot.sha1: $(obj)u-boot.bin
271 $(obj)./tools/ubsha1 $(obj)u-boot.bin
273 $(obj)u-boot.dis: $(obj)u-boot
274 $(OBJDUMP) -d $< > $@
276 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
277 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
278 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
279 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
280 -Map u-boot.map -o u-boot
283 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
286 $(MAKE) -C $(dir $(subst $(obj),,$@))
292 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
294 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
295 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
298 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
299 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
300 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
301 $(TOPDIR)) >> $(VERSION_FILE); \
302 echo "\"" >> $(VERSION_FILE)
305 $(MAKE) -C tools/gdb all || exit 1
308 $(MAKE) -C tools/updater all || exit 1
311 $(MAKE) -C tools/env all || exit 1
314 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
317 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
318 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
319 fs/cramfs fs/fat fs/fdos fs/jffs2 \
320 net disk rtc dtt drivers drivers/sk98lin common \
321 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
324 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
325 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
326 fs/cramfs fs/fat fs/fdos fs/jffs2 \
327 net disk rtc dtt drivers drivers/sk98lin common \
328 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
330 $(obj)System.map: $(obj)u-boot
332 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
333 sort > $(obj)System.map
335 #########################################################################
337 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
338 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
339 $(SUBDIRS) version gdbtools updater env depend \
340 dep tags ctags etags $(obj)System.map:
341 @echo "System not configured - see README" >&2
347 git log --no-merges U-Boot-1_1_5.. | \
348 unexpand -a | sed -e 's/\s\s*$$//' > $@
350 #########################################################################
353 @rm -f $(obj)include/config.h $(obj)include/config.mk \
354 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
356 #========================================================================
358 #========================================================================
360 #########################################################################
362 #########################################################################
364 canmb_config: unconfig
365 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
367 cmi_mpc5xx_config: unconfig
368 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
370 PATI_config: unconfig
371 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
373 #########################################################################
375 #########################################################################
378 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
380 BC3450_config: unconfig
381 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
383 cpci5200_config: unconfig
384 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
386 hmi1001_config: unconfig
387 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
390 Lite5200_LOWBOOT_config \
391 Lite5200_LOWBOOT08_config \
392 icecube_5200_config \
393 icecube_5200_LOWBOOT_config \
394 icecube_5200_LOWBOOT08_config \
395 icecube_5200_DDR_config \
396 icecube_5200_DDR_LOWBOOT_config \
397 icecube_5200_DDR_LOWBOOT08_config \
398 icecube_5100_config: unconfig
399 @mkdir -p $(obj)include
400 @mkdir -p $(obj)board/icecube
401 @ >$(obj)include/config.h
402 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
403 { if [ "$(findstring DDR,$@)" ] ; \
404 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
405 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
407 echo "... with LOWBOOT configuration" ; \
409 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
410 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
411 echo "... with 8 MB flash only" ; \
412 echo "... with LOWBOOT configuration" ; \
414 @[ -z "$(findstring DDR,$@)" ] || \
415 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
416 echo "... DDR memory revision" ; \
418 @[ -z "$(findstring 5200,$@)" ] || \
419 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
420 echo "... with MPC5200 processor" ; \
422 @[ -z "$(findstring 5100,$@)" ] || \
423 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
424 echo "... with MGT5100 processor" ; \
426 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
428 jupiter_config: unconfig
429 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
431 v38b_config: unconfig
432 @./mkconfig -a v38b ppc mpc5xxx v38b
434 inka4x0_config: unconfig
435 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
438 lite5200b_PM_config \
439 lite5200b_LOWBOOT_config: unconfig
440 @mkdir -p $(obj)include
441 @mkdir -p $(obj)board/icecube
442 @ >$(obj)include/config.h
443 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
444 @ echo "... DDR memory revision"
445 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
446 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
447 @[ -z "$(findstring _PM_,$@)" ] || \
448 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
449 echo "... with power management (low-power mode) support" ; \
451 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
452 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
453 echo "... with LOWBOOT configuration" ; \
455 @ echo "... with MPC5200B processor"
456 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
459 mcc200_SDRAM_config \
460 mcc200_highboot_config \
461 mcc200_COM12_config \
462 mcc200_COM12_SDRAM_config \
463 mcc200_COM12_highboot_config \
464 mcc200_COM12_highboot_SDRAM_config \
465 mcc200_highboot_SDRAM_config \
468 prs200_highboot_config \
469 prs200_highboot_DDR_config: unconfig
470 @mkdir -p $(obj)include
471 @mkdir -p $(obj)board/mcc200
472 @ >$(obj)include/config.h
473 @[ -n "$(findstring highboot,$@)" ] || \
474 { echo "... with lowboot configuration" ; \
476 @[ -z "$(findstring highboot,$@)" ] || \
477 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
478 echo "... with highboot configuration" ; \
480 @[ -n "$(findstring _SDRAM,$@)" ] || \
481 { if [ -n "$(findstring mcc200,$@)" ]; \
483 echo "... with DDR" ; \
485 if [ -n "$(findstring _DDR,$@)" ];\
487 echo "... with DDR" ; \
489 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
490 echo "... with SDRAM" ; \
494 @[ -z "$(findstring _SDRAM,$@)" ] || \
495 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
496 echo "... with SDRAM" ; \
498 @[ -z "$(findstring COM12,$@)" ] || \
499 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
500 echo "... with console on COM12" ; \
502 @[ -z "$(findstring prs200,$@)" ] || \
503 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
505 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
507 mecp5200_config: unconfig
508 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
511 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
513 pf5200_config: unconfig
514 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
518 PM520_ROMBOOT_config \
519 PM520_ROMBOOT_DDR_config: unconfig
520 @mkdir -p $(obj)include
521 @ >$(obj)include/config.h
522 @[ -z "$(findstring DDR,$@)" ] || \
523 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
524 echo "... DDR memory revision" ; \
526 @[ -z "$(findstring ROMBOOT,$@)" ] || \
527 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
528 echo "... booting from 8-bit flash" ; \
530 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
532 smmaco4_config: unconfig
533 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
535 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
1024 @mkdir -p $(obj)nand_spl
1025 @mkdir -p $(obj)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
1054 @mkdir -p $(obj)nand_spl
1055 @mkdir -p $(obj)board/amcc/bamboo
1056 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1057 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1058 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1059 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1061 bubinga_config: unconfig
1062 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1064 CANBT_config: unconfig
1065 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1068 CATcenter_25_config \
1069 CATcenter_33_config: unconfig
1070 @mkdir -p $(obj)include
1071 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1072 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1073 @[ -z "$(findstring _25,$@)" ] || \
1074 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1075 echo "SysClk = 25MHz" ; \
1077 @[ -z "$(findstring _33,$@)" ] || \
1078 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1079 echo "SysClk = 33MHz" ; \
1081 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1083 CPCI2DP_config: unconfig
1084 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1089 CPCI405AB_config: unconfig
1090 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1091 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1093 CPCI440_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1096 CPCIISER4_config: unconfig
1097 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1099 CRAYL1_config: unconfig
1100 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1102 csb272_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1105 csb472_config: unconfig
1106 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1108 DASA_SIM_config: unconfig
1109 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1111 DP405_config: unconfig
1112 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1114 DU405_config: unconfig
1115 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1117 ebony_config: unconfig
1118 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1120 ERIC_config: unconfig
1121 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1123 EXBITGEN_config: unconfig
1124 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1126 G2000_config: unconfig
1127 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1129 HH405_config: unconfig
1130 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1132 HUB405_config: unconfig
1133 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1135 JSE_config: unconfig
1136 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1138 KAREF_config: unconfig
1139 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1141 katmai_config: unconfig
1142 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1144 luan_config: unconfig
1145 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1147 lwmon5_config: unconfig
1148 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1150 METROBOX_config: unconfig
1151 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1153 MIP405_config: unconfig
1154 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1156 MIP405T_config: unconfig
1157 @mkdir -p $(obj)include
1158 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1159 @echo "Enable subset config for MIP405T"
1160 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1162 ML2_config: unconfig
1163 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1165 ml300_config: unconfig
1166 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1168 ocotea_config: unconfig
1169 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1172 ORSG_config: unconfig
1173 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1175 p3p440_config: unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1178 PCI405_config: unconfig
1179 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1181 pcs440ep_config: unconfig
1182 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1184 PIP405_config: unconfig
1185 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1187 PLU405_config: unconfig
1188 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1190 PMC405_config: unconfig
1191 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1193 PPChameleonEVB_config \
1194 PPChameleonEVB_BA_25_config \
1195 PPChameleonEVB_ME_25_config \
1196 PPChameleonEVB_HI_25_config \
1197 PPChameleonEVB_BA_33_config \
1198 PPChameleonEVB_ME_33_config \
1199 PPChameleonEVB_HI_33_config: unconfig
1200 @mkdir -p $(obj)include
1201 @ >$(obj)include/config.h
1202 @[ -z "$(findstring EVB_BA,$@)" ] || \
1203 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1204 echo "... BASIC model" ; \
1206 @[ -z "$(findstring EVB_ME,$@)" ] || \
1207 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1208 echo "... MEDIUM model" ; \
1210 @[ -z "$(findstring EVB_HI,$@)" ] || \
1211 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1212 echo "... HIGH-END model" ; \
1214 @[ -z "$(findstring _25,$@)" ] || \
1215 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1216 echo "SysClk = 25MHz" ; \
1218 @[ -z "$(findstring _33,$@)" ] || \
1219 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1220 echo "SysClk = 33MHz" ; \
1222 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1224 sbc405_config: unconfig
1225 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1228 rainier_config: unconfig
1229 @mkdir -p $(obj)include
1230 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1231 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1232 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1234 sequoia_nand_config \
1235 rainier_nand_config: unconfig
1236 @mkdir -p $(obj)include
1237 @mkdir -p $(obj)nand_spl
1238 @mkdir -p $(obj)board/amcc/sequoia
1239 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1240 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1241 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1242 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1243 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1244 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1247 @./mkconfig $(@:_config=) ppc ppc4xx sc3
1249 taishan_config: unconfig
1250 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1252 VOH405_config: unconfig
1253 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1255 VOM405_config: unconfig
1256 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1258 CMS700_config: unconfig
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1262 W7OLMG_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1265 # Walnut & Sycamore images are identical (recognized via PVR)
1267 sycamore_config: unconfig
1268 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1270 WUH405_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1273 XPEDITE1K_config: unconfig
1274 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1277 yellowstone_config: unconfig
1278 @mkdir -p $(obj)include
1279 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1280 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1281 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1283 yucca_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1286 #########################################################################
1288 #########################################################################
1291 Yukon8220_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1294 sorcery_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1297 #########################################################################
1299 #########################################################################
1300 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1302 A3000_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1305 barco_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1308 BMW_config: unconfig
1309 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1312 CPC45_ROMBOOT_config: unconfig
1313 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1314 @cd $(obj)include ; \
1315 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1316 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1317 echo "... booting from 8-bit flash" ; \
1319 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1320 echo "... booting from 64-bit flash" ; \
1322 echo "export CONFIG_BOOT_ROM" >> config.mk;
1324 CU824_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1327 debris_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1330 eXalion_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1333 HIDDEN_DRAGON_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1336 kvme080_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1339 MOUSSE_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1342 MUSENKI_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1345 MVBLUE_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1348 OXC_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1351 PN62_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1354 Sandpoint8240_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1357 Sandpoint8245_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1360 sbc8240_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1363 SL8245_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1366 utx8245_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1369 #########################################################################
1371 #########################################################################
1373 atc_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1376 cogent_mpc8260_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1380 CPU86_ROMBOOT_config: unconfig
1381 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1382 @cd $(obj)include ; \
1383 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1384 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1385 echo "... booting from 8-bit flash" ; \
1387 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1388 echo "... booting from 64-bit flash" ; \
1390 echo "export CONFIG_BOOT_ROM" >> config.mk;
1393 CPU87_ROMBOOT_config: unconfig
1394 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1395 @cd $(obj)include ; \
1396 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1397 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1398 echo "... booting from 8-bit flash" ; \
1400 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1401 echo "... booting from 64-bit flash" ; \
1403 echo "export CONFIG_BOOT_ROM" >> config.mk;
1406 ep8248E_config : unconfig
1407 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1409 ep8260_config: unconfig
1410 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1412 ep82xxm_config: unconfig
1413 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1415 gw8260_config: unconfig
1416 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1418 hymod_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1421 IDS8247_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1424 IPHASE4539_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1428 ISPAN_REVB_config: unconfig
1429 @mkdir -p $(obj)include
1430 @if [ "$(findstring _REVB_,$@)" ] ; then \
1431 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1433 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1436 MPC8260ADS_lowboot_config \
1437 MPC8260ADS_33MHz_config \
1438 MPC8260ADS_33MHz_lowboot_config \
1439 MPC8260ADS_40MHz_config \
1440 MPC8260ADS_40MHz_lowboot_config \
1442 MPC8272ADS_lowboot_config \
1444 PQ2FADS_lowboot_config \
1446 PQ2FADS-VR_lowboot_config \
1448 PQ2FADS-ZU_lowboot_config \
1449 PQ2FADS-ZU_66MHz_config \
1450 PQ2FADS-ZU_66MHz_lowboot_config \
1452 @mkdir -p $(obj)include
1453 @mkdir -p $(obj)board/mpc8260ads
1454 $(if $(findstring PQ2FADS,$@), \
1455 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1456 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1457 $(if $(findstring MHz,$@), \
1458 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1459 $(if $(findstring VR,$@), \
1460 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1461 @[ -z "$(findstring lowboot_,$@)" ] || \
1462 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1463 echo "... with lowboot configuration" ; \
1465 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1467 MPC8266ADS_config: unconfig
1468 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1470 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1472 PM825_ROMBOOT_config \
1473 PM825_BIGFLASH_config \
1474 PM825_ROMBOOT_BIGFLASH_config \
1476 PM826_ROMBOOT_config \
1477 PM826_BIGFLASH_config \
1478 PM826_ROMBOOT_BIGFLASH_config: unconfig
1479 @mkdir -p $(obj)include
1480 @mkdir -p $(obj)board/pm826
1481 @if [ "$(findstring PM825_,$@)" ] ; then \
1482 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1484 >$(obj)include/config.h ; \
1486 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1487 echo "... booting from 8-bit flash" ; \
1488 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1489 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1490 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1491 echo "... with 32 MB Flash" ; \
1492 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1495 echo "... booting from 64-bit flash" ; \
1496 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1497 echo "... with 32 MB Flash" ; \
1498 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1499 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1501 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1504 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1508 PM828_ROMBOOT_config \
1509 PM828_ROMBOOT_PCI_config: unconfig
1510 @mkdir -p $(obj)include
1511 @mkdir -p $(obj)board/pm826
1512 @if [ "$(findstring _PCI_,$@)" ] ; then \
1513 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1514 echo "... with PCI enabled" ; \
1516 >$(obj)include/config.h ; \
1518 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1519 echo "... booting from 8-bit flash" ; \
1520 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1521 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1523 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1525 ppmc8260_config: unconfig
1526 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1528 Rattler8248_config \
1529 Rattler_config: unconfig
1530 @mkdir -p $(obj)include
1531 $(if $(findstring 8248,$@), \
1532 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1533 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1535 RPXsuper_config: unconfig
1536 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1538 rsdproto_config: unconfig
1539 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1541 sacsng_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1544 sbc8260_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1547 SCM_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1560 TQM8265_AA_config: unconfig
1561 @mkdir -p $(obj)include
1563 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1564 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1565 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1566 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1567 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1568 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1569 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1570 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1571 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1572 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1573 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1575 >$(obj)include/config.h ; \
1576 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1577 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1579 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1580 echo "... with $${CFREQ}MHz system clock" ; \
1581 if [ "$${CACHE}" == "yes" ] ; then \
1582 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1583 echo "... with L2 Cache support" ; \
1585 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1586 echo "... without L2 Cache support" ; \
1588 if [ "$${BMODE}" == "60x" ] ; then \
1589 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1590 echo "... with 60x Bus Mode" ; \
1592 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1593 echo "... without 60x Bus Mode" ; \
1595 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1597 TQM8272_config: unconfig
1598 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1600 VoVPN-GW_66MHz_config \
1601 VoVPN-GW_100MHz_config: unconfig
1602 @mkdir -p $(obj)include
1603 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1604 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1606 ZPC1900_config: unconfig
1607 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1609 #########################################################################
1611 #########################################################################
1613 cobra5272_config : unconfig
1614 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1616 EB+MCF-EV123_config : unconfig
1617 @mkdir -p $(obj)include
1618 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1619 @ >$(obj)include/config.h
1620 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1621 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1623 EB+MCF-EV123_internal_config : unconfig
1624 @mkdir -p $(obj)include
1625 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1626 @ >$(obj)include/config.h
1627 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1628 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1630 idmr_config : unconfig
1631 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1633 M5271EVB_config : unconfig
1634 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1636 M5272C3_config : unconfig
1637 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1639 M5282EVB_config : unconfig
1640 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1642 TASREG_config : unconfig
1643 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1645 r5200_config : unconfig
1646 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1648 #########################################################################
1650 #########################################################################
1652 MPC8313ERDB_33_config \
1653 MPC8313ERDB_66_config: unconfig
1654 @echo "" >include/config.h ; \
1655 if [ "$(findstring _33_,$@)" ] ; then \
1656 echo -n "...33M ..." ; \
1657 echo "#define CFG_33MHZ" >>include/config.h ; \
1659 if [ "$(findstring _66_,$@)" ] ; then \
1660 echo -n "...66M..." ; \
1661 echo "#define CFG_66MHZ" >>include/config.h ; \
1663 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1665 MPC832XEMDS_config \
1666 MPC832XEMDS_HOST_33_config \
1667 MPC832XEMDS_HOST_66_config \
1668 MPC832XEMDS_SLAVE_config: unconfig
1669 @echo "" >include/config.h ; \
1670 if [ "$(findstring _HOST_,$@)" ] ; then \
1671 echo -n "... PCI HOST " ; \
1672 echo "#define CONFIG_PCI" >>include/config.h ; \
1674 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1675 echo "...PCI SLAVE 66M" ; \
1676 echo "#define CONFIG_PCI" >>include/config.h ; \
1677 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1679 if [ "$(findstring _33_,$@)" ] ; then \
1680 echo -n "...33M ..." ; \
1681 echo "#define PCI_33M" >>include/config.h ; \
1683 if [ "$(findstring _66_,$@)" ] ; then \
1684 echo -n "...66M..." ; \
1685 echo "#define PCI_66M" >>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 @echo "" >include/config.h ; \
1711 if [ "$(findstring _HOST_,$@)" ] ; then \
1712 echo -n "... PCI HOST " ; \
1713 echo "#define CONFIG_PCI" >>include/config.h ; \
1715 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1716 echo "...PCI SLAVE 66M" ; \
1717 echo "#define CONFIG_PCI" >>include/config.h ; \
1718 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1720 if [ "$(findstring _33_,$@)" ] ; then \
1721 echo -n "...33M ..." ; \
1722 echo "#define PCI_33M" >>include/config.h ; \
1724 if [ "$(findstring _66_,$@)" ] ; then \
1725 echo -n "...66M..." ; \
1726 echo "#define PCI_66M" >>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 -n "... 33 MHz PCI" ; \
1754 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1755 echo -n "... 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 @if [ "$(findstring scpu_,$@)" ] ; then \
2192 echo "#define CONFIG_SCPU" >>include/config.h ; \
2193 echo "... on SCPU board variant" ; \
2195 >include/config.h ; \
2197 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2199 pxa255_idp_config: unconfig
2200 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2202 wepep250_config : unconfig
2203 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2205 xaeniax_config : unconfig
2206 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2208 xm250_config : unconfig
2209 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2211 xsengine_config : unconfig
2212 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2215 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2217 #########################################################################
2219 #########################################################################
2220 omap2420h4_config : unconfig
2221 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2223 #========================================================================
2225 #========================================================================
2226 #########################################################################
2228 #########################################################################
2229 sc520_cdp_config : unconfig
2230 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2232 sc520_spunk_config : unconfig
2233 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2235 sc520_spunk_rel_config : unconfig
2236 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2238 #========================================================================
2240 #========================================================================
2241 #########################################################################
2243 #########################################################################
2245 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2247 incaip_100MHz_config \
2248 incaip_133MHz_config \
2249 incaip_150MHz_config \
2250 incaip_config: unconfig
2251 @mkdir -p $(obj)include
2252 @ >$(obj)include/config.h
2253 @[ -z "$(findstring _100MHz,$@)" ] || \
2254 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2255 echo "... with 100MHz system clock" ; \
2257 @[ -z "$(findstring _133MHz,$@)" ] || \
2258 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2259 echo "... with 133MHz system clock" ; \
2261 @[ -z "$(findstring _150MHz,$@)" ] || \
2262 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2263 echo "... with 150MHz system clock" ; \
2265 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2267 tb0229_config: unconfig
2268 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2270 #########################################################################
2272 #########################################################################
2273 dbau1000_config : unconfig
2274 @mkdir -p $(obj)include
2275 @ >$(obj)include/config.h
2276 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2277 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2279 dbau1100_config : unconfig
2280 @mkdir -p $(obj)include
2281 @ >$(obj)include/config.h
2282 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2283 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2285 dbau1500_config : unconfig
2286 @mkdir -p $(obj)include
2287 @ >$(obj)include/config.h
2288 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2289 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2291 dbau1550_config : unconfig
2292 @mkdir -p $(obj)include
2293 @ >$(obj)include/config.h
2294 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2295 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2297 dbau1550_el_config : unconfig
2298 @mkdir -p $(obj)include
2299 @ >$(obj)include/config.h
2300 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2301 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2303 pb1000_config : unconfig
2304 @mkdir -p $(obj)include
2305 @ >$(obj)include/config.h
2306 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2307 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2309 #########################################################################
2311 #########################################################################
2313 purple_config : unconfig
2314 @$(MKCONFIG) $(@:_config=) mips mips purple
2316 #========================================================================
2318 #========================================================================
2319 #########################################################################
2321 #########################################################################
2323 DK1C20_safe_32_config \
2324 DK1C20_standard_32_config \
2325 DK1C20_config: unconfig
2326 @mkdir -p $(obj)include
2327 @ >$(obj)include/config.h
2328 @[ -z "$(findstring _safe_32,$@)" ] || \
2329 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2330 echo "... NIOS 'safe_32' configuration" ; \
2332 @[ -z "$(findstring _standard_32,$@)" ] || \
2333 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2334 echo "... NIOS 'standard_32' configuration" ; \
2336 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2337 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2338 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2340 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2342 DK1S10_safe_32_config \
2343 DK1S10_standard_32_config \
2344 DK1S10_mtx_ldk_20_config \
2345 DK1S10_config: unconfig
2346 @mkdir -p $(obj)include
2347 @ >$(obj)include/config.h
2348 @[ -z "$(findstring _safe_32,$@)" ] || \
2349 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2350 echo "... NIOS 'safe_32' configuration" ; \
2352 @[ -z "$(findstring _standard_32,$@)" ] || \
2353 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2354 echo "... NIOS 'standard_32' configuration" ; \
2356 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2357 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2358 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2360 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2361 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2362 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2364 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2366 ADNPESC1_DNPEVA2_base_32_config \
2367 ADNPESC1_base_32_config \
2368 ADNPESC1_config: unconfig
2369 @mkdir -p $(obj)include
2370 @ >$(obj)include/config.h
2371 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2372 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2373 echo "... DNP/EVA2 configuration" ; \
2375 @[ -z "$(findstring _base_32,$@)" ] || \
2376 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2377 echo "... NIOS 'base_32' configuration" ; \
2379 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2380 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2381 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2383 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2385 #########################################################################
2387 #########################################################################
2389 EP1C20_config : unconfig
2390 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2392 EP1S10_config : unconfig
2393 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2395 EP1S40_config : unconfig
2396 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2398 PK1C20_config : unconfig
2399 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2401 PCI5441_config : unconfig
2402 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2404 #========================================================================
2406 #========================================================================
2407 #########################################################################
2409 #########################################################################
2410 suzaku_config: unconfig
2411 @mkdir -p $(obj)include
2412 @ >$(obj)include/config.h
2413 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2414 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2416 ml401_config: unconfig
2418 @echo "#define CONFIG_ML401 1" >> include/config.h
2419 @./mkconfig -a $(@:_config=) microblaze microblaze ml401 xilinx
2421 xupv2p_config: unconfig
2423 @echo "#define CONFIG_XUPV2P 1" >> include/config.h
2424 @./mkconfig -a $(@:_config=) microblaze microblaze xupv2p xilinx
2426 #########################################################################
2428 #########################################################################
2429 bf533-ezkit_config: unconfig
2430 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2432 bf533-stamp_config: unconfig
2433 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2435 bf537-stamp_config: unconfig
2436 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2438 bf561-ezkit_config: unconfig
2439 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2441 #========================================================================
2443 #========================================================================
2444 #########################################################################
2446 #########################################################################
2448 atstk1002_config : unconfig
2449 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2451 #########################################################################
2452 #########################################################################
2453 #########################################################################
2456 find $(OBJTREE) -type f \
2457 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2458 -o -name '*.o' -o -name '*.a' \) -print \
2460 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2461 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2462 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2463 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2464 $(obj)examples/test_burst
2465 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2466 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2467 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2468 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2469 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2470 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2471 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2472 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2473 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2474 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2475 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2476 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2477 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2478 rm -f $(obj)include/bmp_logo.h
2479 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2482 find $(OBJTREE) -type f \( -name .depend \
2483 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2486 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2488 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2489 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2490 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2491 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2492 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2494 ifeq ($(OBJTREE),$(SRCTREE))
2496 distclean: clobber unconfig
2499 distclean: clobber unconfig
2504 F=`basename $(TOPDIR)` ; cd .. ; \
2505 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2507 #########################################################################