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 | \
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/')
43 export HOSTARCH HOSTOS
45 # Deal with colliding definitions from tcsh etc.
48 #########################################################################
50 # U-boot build supports producing a object files to the separate external
51 # directory. Two use cases are supported:
53 # 1) Add O= to the make command line
54 # 'make O=/tmp/build all'
56 # 2) Set environement variable BUILD_DIR to point to the desired location
57 # 'export BUILD_DIR=/tmp/build'
60 # The second approach can also be used with a MAKEALL script
61 # 'export BUILD_DIR=/tmp/build'
64 # Command line 'O=' setting overrides BUILD_DIR environent variable.
66 # When none of the above methods is used the local build is performed and
67 # the object files are placed in the source directory.
71 ifeq ("$(origin O)", "command line")
77 saved-output := $(BUILD_DIR)
79 # Attempt to create a output directory.
80 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
82 # Verify if it was successful.
83 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
84 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
85 endif # ifneq ($(BUILD_DIR),)
87 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
91 export TOPDIR SRCTREE OBJTREE
93 MKCONFIG := $(SRCTREE)/mkconfig
96 ifneq ($(OBJTREE),$(SRCTREE))
101 # $(obj) and (src) are defined in config.mk but here in main Makefile
102 # we also need them before config.mk is included which is the case for
103 # some targets like unconfig, clean, clobber, distclean, etc.
104 ifneq ($(OBJTREE),$(SRCTREE))
113 #########################################################################
115 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
117 # load ARCH, BOARD, and CPU configuration
118 include $(OBJTREE)/include/config.mk
119 export ARCH CPU BOARD VENDOR SOC
122 ifeq ($(HOSTARCH),$(ARCH))
126 CROSS_COMPILE = powerpc-linux-
129 CROSS_COMPILE = arm-linux-
132 CROSS_COMPILE = i386-linux-
135 CROSS_COMPILE = mips_4KC-
138 CROSS_COMPILE = nios-elf-
141 CROSS_COMPILE = nios2-elf-
144 CROSS_COMPILE = m68k-elf-
146 ifeq ($(ARCH),microblaze)
149 ifeq ($(ARCH),blackfin)
150 CROSS_COMPILE = bfin-uclinux-
153 CROSS_COMPILE = avr32-linux-
160 # load other configuration
161 include $(TOPDIR)/config.mk
163 #########################################################################
164 # U-Boot objects....order is important (i.e. start must be first)
166 OBJS = cpu/$(CPU)/start.o
168 OBJS += cpu/$(CPU)/start16.o
169 OBJS += cpu/$(CPU)/reset.o
172 OBJS += cpu/$(CPU)/resetvec.o
174 ifeq ($(CPU),mpc85xx)
175 OBJS += cpu/$(CPU)/resetvec.o
178 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
179 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
182 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
183 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
186 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
187 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
190 OBJS := $(addprefix $(obj),$(OBJS))
192 LIBS = lib_generic/libgeneric.a
193 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
194 LIBS += cpu/$(CPU)/lib$(CPU).a
196 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
199 LIBS += cpu/ixp/npe/libnpe.a
201 LIBS += lib_$(ARCH)/lib$(ARCH).a
202 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
203 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
205 LIBS += disk/libdisk.a
208 LIBS += drivers/libdrivers.a
209 LIBS += drivers/bios_emulator/libatibiosemu.a
210 LIBS += drivers/nand/libnand.a
211 LIBS += drivers/nand_legacy/libnand_legacy.a
212 ifeq ($(CPU),mpc83xx)
213 LIBS += drivers/qe/qe.a
215 LIBS += drivers/sk98lin/libsk98lin.a
216 LIBS += post/libpost.a post/drivers/libpostdrivers.a
217 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
218 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
219 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
220 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
221 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
222 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
223 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
224 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
225 LIBS += common/libcommon.a
226 LIBS += libfdt/libfdt.a
228 LIBS := $(addprefix $(obj),$(LIBS))
232 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
234 # The "tools" are needed early, so put this first
235 # Don't include stuff already done in $(LIBS)
241 ifeq ($(CONFIG_NAND_U_BOOT),y)
243 U_BOOT_NAND = $(obj)u-boot-nand.bin
246 __OBJS := $(subst $(obj),,$(OBJS))
247 __LIBS := $(subst $(obj),,$(LIBS))
249 #########################################################################
250 #########################################################################
252 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
256 $(obj)u-boot.hex: $(obj)u-boot
257 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
259 $(obj)u-boot.srec: $(obj)u-boot
260 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
262 $(obj)u-boot.bin: $(obj)u-boot
263 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
265 $(obj)u-boot.img: $(obj)u-boot.bin
266 ./tools/mkimage -A $(ARCH) -T firmware -C none \
267 -a $(TEXT_BASE) -e 0 \
268 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
269 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
272 $(obj)u-boot.sha1: $(obj)u-boot.bin
273 $(obj)tools/ubsha1 $(obj)u-boot.bin
275 $(obj)u-boot.dis: $(obj)u-boot
276 $(OBJDUMP) -d $< > $@
278 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
279 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
280 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
281 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
282 -Map u-boot.map -o u-boot
285 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
288 $(MAKE) -C $(dir $(subst $(obj),,$@))
294 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
296 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
297 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
300 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
301 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
302 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
303 $(TOPDIR)) >> $(VERSION_FILE); \
304 echo "\"" >> $(VERSION_FILE)
307 $(MAKE) -C tools/gdb all || exit 1
310 $(MAKE) -C tools/updater all || exit 1
313 $(MAKE) -C tools/env all || exit 1
316 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
319 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
320 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
321 fs/cramfs fs/fat fs/fdos fs/jffs2 \
322 net disk rtc dtt drivers drivers/sk98lin common \
323 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
326 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
327 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
328 fs/cramfs fs/fat fs/fdos fs/jffs2 \
329 net disk rtc dtt drivers drivers/sk98lin common \
330 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
332 $(obj)System.map: $(obj)u-boot
334 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
335 sort > $(obj)System.map
337 #########################################################################
339 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
340 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
341 $(SUBDIRS) version gdbtools updater env depend \
342 dep tags ctags etags $(obj)System.map:
343 @echo "System not configured - see README" >&2
349 git log --no-merges U-Boot-1_1_5.. | \
350 unexpand -a | sed -e 's/\s\s*$$//' > $@
352 #########################################################################
355 @rm -f $(obj)include/config.h $(obj)include/config.mk \
356 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
358 #========================================================================
360 #========================================================================
362 #########################################################################
364 #########################################################################
366 canmb_config: unconfig
367 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
369 cmi_mpc5xx_config: unconfig
370 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
372 PATI_config: unconfig
373 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
375 #########################################################################
377 #########################################################################
380 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
382 BC3450_config: unconfig
383 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
385 cpci5200_config: unconfig
386 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
388 hmi1001_config: unconfig
389 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
392 Lite5200_LOWBOOT_config \
393 Lite5200_LOWBOOT08_config \
394 icecube_5200_config \
395 icecube_5200_LOWBOOT_config \
396 icecube_5200_LOWBOOT08_config \
397 icecube_5200_DDR_config \
398 icecube_5200_DDR_LOWBOOT_config \
399 icecube_5200_DDR_LOWBOOT08_config \
400 icecube_5100_config: unconfig
401 @mkdir -p $(obj)include
402 @mkdir -p $(obj)board/icecube
403 @ >$(obj)include/config.h
404 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
405 { if [ "$(findstring DDR,$@)" ] ; \
406 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
407 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
409 echo "... with LOWBOOT configuration" ; \
411 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
412 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
413 echo "... with 8 MB flash only" ; \
414 echo "... with LOWBOOT configuration" ; \
416 @[ -z "$(findstring DDR,$@)" ] || \
417 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
418 echo "... DDR memory revision" ; \
420 @[ -z "$(findstring 5200,$@)" ] || \
421 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
422 echo "... with MPC5200 processor" ; \
424 @[ -z "$(findstring 5100,$@)" ] || \
425 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
426 echo "... with MGT5100 processor" ; \
428 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
430 jupiter_config: unconfig
431 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
433 v38b_config: unconfig
434 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
436 inka4x0_config: unconfig
437 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
440 lite5200b_PM_config \
441 lite5200b_LOWBOOT_config: unconfig
442 @mkdir -p $(obj)include
443 @mkdir -p $(obj)board/icecube
444 @ >$(obj)include/config.h
445 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
446 @ echo "... DDR memory revision"
447 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
448 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
449 @[ -z "$(findstring _PM_,$@)" ] || \
450 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
451 echo "... with power management (low-power mode) support" ; \
453 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
454 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
455 echo "... with LOWBOOT configuration" ; \
457 @ echo "... with MPC5200B processor"
458 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
461 mcc200_SDRAM_config \
462 mcc200_highboot_config \
463 mcc200_COM12_config \
464 mcc200_COM12_SDRAM_config \
465 mcc200_COM12_highboot_config \
466 mcc200_COM12_highboot_SDRAM_config \
467 mcc200_highboot_SDRAM_config \
470 prs200_highboot_config \
471 prs200_highboot_DDR_config: unconfig
472 @mkdir -p $(obj)include
473 @mkdir -p $(obj)board/mcc200
474 @ >$(obj)include/config.h
475 @[ -n "$(findstring highboot,$@)" ] || \
476 { echo "... with lowboot configuration" ; \
478 @[ -z "$(findstring highboot,$@)" ] || \
479 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
480 echo "... with highboot configuration" ; \
482 @[ -n "$(findstring _SDRAM,$@)" ] || \
483 { if [ -n "$(findstring mcc200,$@)" ]; \
485 echo "... with DDR" ; \
487 if [ -n "$(findstring _DDR,$@)" ];\
489 echo "... with DDR" ; \
491 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
492 echo "... with SDRAM" ; \
496 @[ -z "$(findstring _SDRAM,$@)" ] || \
497 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
498 echo "... with SDRAM" ; \
500 @[ -z "$(findstring COM12,$@)" ] || \
501 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
502 echo "... with console on COM12" ; \
504 @[ -z "$(findstring prs200,$@)" ] || \
505 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
507 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
509 mecp5200_config: unconfig
510 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
513 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
515 pf5200_config: unconfig
516 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
520 PM520_ROMBOOT_config \
521 PM520_ROMBOOT_DDR_config: unconfig
522 @mkdir -p $(obj)include
523 @ >$(obj)include/config.h
524 @[ -z "$(findstring DDR,$@)" ] || \
525 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
526 echo "... DDR memory revision" ; \
528 @[ -z "$(findstring ROMBOOT,$@)" ] || \
529 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
530 echo "... booting from 8-bit flash" ; \
532 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
534 smmaco4_config: unconfig
535 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
537 cm5200_config: unconfig
538 @./mkconfig -a cm5200 ppc mpc5xxx cm5200
540 spieval_config: unconfig
541 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
544 TB5200_config: unconfig
545 @mkdir -p $(obj)include
546 @[ -z "$(findstring _B,$@)" ] || \
547 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
548 echo "... with MPC5200B processor" ; \
550 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
554 TOP5200_config: unconfig
555 @mkdir -p $(obj)include
556 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
557 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
561 Total5200_lowboot_config \
562 Total5200_Rev2_config \
563 Total5200_Rev2_lowboot_config: unconfig
564 @mkdir -p $(obj)include
565 @mkdir -p $(obj)board/total5200
566 @ >$(obj)include/config.h
567 @[ -z "$(findstring 5100,$@)" ] || \
568 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
569 echo "... with MGT5100 processor" ; \
571 @[ -z "$(findstring 5200,$@)" ] || \
572 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
573 echo "... with MPC5200 processor" ; \
575 @[ -n "$(findstring Rev,$@)" ] || \
576 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
577 echo "... revision 1 board" ; \
579 @[ -z "$(findstring Rev2_,$@)" ] || \
580 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
581 echo "... revision 2 board" ; \
583 @[ -z "$(findstring lowboot_,$@)" ] || \
584 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
585 echo "... with lowboot configuration" ; \
587 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
590 cam5200_niosflash_config \
594 TQM5200S_HIGHBOOT_config \
596 TQM5200_B_HIGHBOOT_config \
598 TQM5200_STK100_config: unconfig
599 @mkdir -p $(obj)include
600 @mkdir -p $(obj)board/tqm5200
601 @ >$(obj)include/config.h
602 @[ -z "$(findstring cam5200,$@)" ] || \
603 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
604 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
605 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
606 echo "... TQM5200S on Cam5200" ; \
608 @[ -z "$(findstring niosflash,$@)" ] || \
609 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
610 echo "... with NIOS flash driver" ; \
612 @[ -z "$(findstring fo300,$@)" ] || \
613 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
614 echo "... TQM5200 on FO300" ; \
616 @[ -z "$(findstring MiniFAP,$@)" ] || \
617 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
618 echo "... TQM5200_AC on MiniFAP" ; \
620 @[ -z "$(findstring STK100,$@)" ] || \
621 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
622 echo "... on a STK52XX.100 base board" ; \
624 @[ -z "$(findstring TQM5200_B,$@)" ] || \
625 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
627 @[ -z "$(findstring TQM5200S,$@)" ] || \
628 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
629 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
631 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
632 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
634 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
635 uc101_config: unconfig
636 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
637 motionpro_config: unconfig
638 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
641 #########################################################################
643 #########################################################################
644 ads5121_config: unconfig
645 @$(MKCONFIG) ads5121 ppc mpc512x ads5121
648 #########################################################################
650 #########################################################################
656 @mkdir -p $(obj)include
657 $(if $(findstring AdderII,$@), \
658 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
659 @$(MKCONFIG) -a Adder ppc mpc8xx adder
666 FADS860T_config: unconfig
667 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
669 AMX860_config : unconfig
670 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
672 c2mon_config: unconfig
673 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
676 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
678 cogent_mpc8xx_config: unconfig
679 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
681 ELPT860_config: unconfig
682 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
684 EP88x_config: unconfig
685 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
687 ESTEEM192E_config: unconfig
688 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
690 ETX094_config : unconfig
691 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
693 FLAGADM_config: unconfig
694 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
696 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
699 GEN860T_config: unconfig
700 @mkdir -p $(obj)include
701 @ >$(obj)include/config.h
702 @[ -z "$(findstring _SC,$@)" ] || \
703 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
704 echo "With reduced H/W feature set (SC)..." ; \
706 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
708 GENIETV_config: unconfig
709 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
712 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
714 hermes_config : unconfig
715 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
717 HMI10_config : unconfig
718 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
720 IAD210_config: unconfig
721 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
723 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
725 ICU862_100MHz_config \
726 ICU862_config: unconfig
727 @mkdir -p $(obj)include
728 @ >$(obj)include/config.h
729 @[ -z "$(findstring _100MHz,$@)" ] || \
730 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
731 echo "... with 100MHz system clock" ; \
733 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
735 IP860_config : unconfig
736 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
740 IVML24_config: unconfig
741 @mkdir -p $(obj)include
742 @ >$(obj)include/config.h
743 @[ -z "$(findstring IVML24_config,$@)" ] || \
744 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
746 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
747 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
749 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
750 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
752 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
756 IVMS8_config: unconfig
757 @mkdir -p $(obj)include
758 @ >$(obj)include/config.h
759 @[ -z "$(findstring IVMS8_config,$@)" ] || \
760 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
762 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
763 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
765 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
766 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
768 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
770 KUP4K_config : unconfig
771 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
773 KUP4X_config : unconfig
774 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
776 LANTEC_config : unconfig
777 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
779 lwmon_config: unconfig
780 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
783 MBX860T_config: unconfig
784 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
786 MHPC_config: unconfig
787 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
789 MVS1_config : unconfig
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
792 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
795 NETVIA_config: unconfig
796 @mkdir -p $(obj)include
797 @ >$(obj)include/config.h
798 @[ -z "$(findstring NETVIA_config,$@)" ] || \
799 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
800 echo "... Version 1" ; \
802 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
803 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
804 echo "... Version 2" ; \
806 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
808 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
811 NETPHONE_config: unconfig
812 @mkdir -p $(obj)include
813 @ >$(obj)include/config.h
814 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
815 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
817 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
818 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
820 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
822 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
824 NETTA_ISDN_6412_SWAPHOOK_config \
825 NETTA_ISDN_SWAPHOOK_config \
826 NETTA_6412_SWAPHOOK_config \
827 NETTA_SWAPHOOK_config \
828 NETTA_ISDN_6412_config \
831 NETTA_config: unconfig
832 @mkdir -p $(obj)include
833 @ >$(obj)include/config.h
834 @[ -z "$(findstring ISDN_,$@)" ] || \
835 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
837 @[ -n "$(findstring ISDN_,$@)" ] || \
838 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
840 @[ -z "$(findstring 6412_,$@)" ] || \
841 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
843 @[ -n "$(findstring 6412_,$@)" ] || \
844 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
846 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
847 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
849 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
850 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
852 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
854 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
857 NETTA2_config: unconfig
858 @mkdir -p $(obj)include
859 @ >$(obj)include/config.h
860 @[ -z "$(findstring NETTA2_config,$@)" ] || \
861 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
863 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
864 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
866 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
870 CP850_config: unconfig
871 @mkdir -p $(obj)include
872 @ >$(obj)include/config.h
873 @[ -z "$(findstring CP850,$@)" ] || \
874 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
875 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
877 @[ -z "$(findstring Rev1,$@)" ] || \
878 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
880 @[ -z "$(findstring Rev2,$@)" ] || \
881 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
883 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
885 NX823_config: unconfig
886 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
888 pcu_e_config: unconfig
889 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
891 QS850_config: unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
894 QS823_config: unconfig
895 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
897 QS860T_config: unconfig
898 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
900 quantum_config: unconfig
901 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
903 R360MPI_config: unconfig
904 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
906 RBC823_config: unconfig
907 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
909 RPXClassic_config: unconfig
910 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
912 RPXlite_config: unconfig
913 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
915 RPXlite_DW_64_config \
916 RPXlite_DW_LCD_config \
917 RPXlite_DW_64_LCD_config \
918 RPXlite_DW_NVRAM_config \
919 RPXlite_DW_NVRAM_64_config \
920 RPXlite_DW_NVRAM_LCD_config \
921 RPXlite_DW_NVRAM_64_LCD_config \
922 RPXlite_DW_config: unconfig
923 @mkdir -p $(obj)include
924 @ >$(obj)include/config.h
925 @[ -z "$(findstring _64,$@)" ] || \
926 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
927 echo "... with 64MHz system clock ..."; \
929 @[ -z "$(findstring _LCD,$@)" ] || \
930 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
931 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
932 echo "... with LCD display ..."; \
934 @[ -z "$(findstring _NVRAM,$@)" ] || \
935 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
936 echo "... with ENV in NVRAM ..."; \
938 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
941 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
943 RRvision_config: unconfig
944 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
946 RRvision_LCD_config: unconfig
947 @mkdir -p $(obj)include
948 @echo "#define CONFIG_LCD" >$(obj)include/config.h
949 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
950 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
952 SM850_config : unconfig
953 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
956 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
958 SPD823TS_config: unconfig
959 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
961 stxxtc_config: unconfig
962 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
964 svm_sc8xx_config: unconfig
965 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
967 SXNI855T_config: unconfig
968 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
970 # EMK MPC8xx based modules
971 TOP860_config: unconfig
972 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
974 # Play some tricks for configuration selection
975 # Only 855 and 860 boards may come with FEC
976 # and only 823 boards may have LCD support
977 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
995 virtlab2_config: unconfig
996 @mkdir -p $(obj)include
997 @ >$(obj)include/config.h
998 @[ -z "$(findstring _LCD,$@)" ] || \
999 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1000 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1001 echo "... with LCD display" ; \
1003 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1005 TTTech_config: unconfig
1006 @mkdir -p $(obj)include
1007 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1008 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1009 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1011 uc100_config : unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1014 v37_config: unconfig
1015 @mkdir -p $(obj)include
1016 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1017 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1018 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1020 wtk_config: unconfig
1021 @mkdir -p $(obj)include
1022 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1023 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1024 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1026 #########################################################################
1028 #########################################################################
1029 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1031 acadia_config: unconfig
1032 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1034 acadia_nand_config: unconfig
1035 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1036 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1037 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1038 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1039 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1040 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1042 ADCIOP_config: unconfig
1043 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1045 alpr_config: unconfig
1046 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1048 AP1000_config:unconfig
1049 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1051 APC405_config: unconfig
1052 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1054 AR405_config: unconfig
1055 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1057 ASH405_config: unconfig
1058 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1060 bamboo_config: unconfig
1061 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1063 bamboo_nand_config: unconfig
1064 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1065 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1066 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1067 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1068 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1069 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1071 bubinga_config: unconfig
1072 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1074 CANBT_config: unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1078 CATcenter_25_config \
1079 CATcenter_33_config: unconfig
1080 @mkdir -p $(obj)include
1081 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1082 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1083 @[ -z "$(findstring _25,$@)" ] || \
1084 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1085 echo "SysClk = 25MHz" ; \
1087 @[ -z "$(findstring _33,$@)" ] || \
1088 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1089 echo "SysClk = 33MHz" ; \
1091 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1093 CPCI2DP_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1099 CPCI405AB_config: unconfig
1100 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1101 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1103 CPCI440_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1106 CPCIISER4_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1109 CRAYL1_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1112 csb272_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1115 csb472_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1118 DASA_SIM_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1121 DP405_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1124 DU405_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1127 ebony_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1130 ERIC_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1133 EXBITGEN_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1136 G2000_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1139 HH405_config: unconfig
1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1142 HUB405_config: unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1145 JSE_config: unconfig
1146 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1148 KAREF_config: unconfig
1149 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1151 katmai_config: unconfig
1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1154 luan_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1157 lwmon5_config: unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1160 METROBOX_config: unconfig
1161 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1163 MIP405_config: unconfig
1164 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1166 MIP405T_config: unconfig
1167 @mkdir -p $(obj)include
1168 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1169 @echo "Enable subset config for MIP405T"
1170 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1172 ML2_config: unconfig
1173 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1175 ml300_config: unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1178 ocotea_config: unconfig
1179 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1182 ORSG_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1185 p3p440_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1188 PCI405_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1191 pcs440ep_config: unconfig
1192 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1194 PIP405_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1197 PLU405_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1200 PMC405_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1203 PPChameleonEVB_config \
1204 PPChameleonEVB_BA_25_config \
1205 PPChameleonEVB_ME_25_config \
1206 PPChameleonEVB_HI_25_config \
1207 PPChameleonEVB_BA_33_config \
1208 PPChameleonEVB_ME_33_config \
1209 PPChameleonEVB_HI_33_config: unconfig
1210 @mkdir -p $(obj)include
1211 @ >$(obj)include/config.h
1212 @[ -z "$(findstring EVB_BA,$@)" ] || \
1213 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1214 echo "... BASIC model" ; \
1216 @[ -z "$(findstring EVB_ME,$@)" ] || \
1217 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1218 echo "... MEDIUM model" ; \
1220 @[ -z "$(findstring EVB_HI,$@)" ] || \
1221 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1222 echo "... HIGH-END model" ; \
1224 @[ -z "$(findstring _25,$@)" ] || \
1225 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1226 echo "SysClk = 25MHz" ; \
1228 @[ -z "$(findstring _33,$@)" ] || \
1229 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1230 echo "SysClk = 33MHz" ; \
1232 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1234 sbc405_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1238 rainier_config: unconfig
1239 @mkdir -p $(obj)include
1240 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1241 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1242 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1244 sequoia_nand_config \
1245 rainier_nand_config: unconfig
1246 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1247 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1248 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1249 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1250 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1251 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1252 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1253 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1256 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1258 taishan_config: unconfig
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1261 VOH405_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1264 VOM405_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1267 CMS700_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1271 W7OLMG_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1274 # Walnut & Sycamore images are identical (recognized via PVR)
1276 sycamore_config: unconfig
1277 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1279 WUH405_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1282 XPEDITE1K_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1286 yellowstone_config: unconfig
1287 @mkdir -p $(obj)include
1288 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1289 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1290 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1292 yucca_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1295 #########################################################################
1297 #########################################################################
1300 Yukon8220_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1303 sorcery_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1306 #########################################################################
1308 #########################################################################
1309 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1311 A3000_config: unconfig
1312 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1314 barco_config: unconfig
1315 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1317 BMW_config: unconfig
1318 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1321 CPC45_ROMBOOT_config: unconfig
1322 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1323 @cd $(obj)include ; \
1324 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1325 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1326 echo "... booting from 8-bit flash" ; \
1328 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1329 echo "... booting from 64-bit flash" ; \
1331 echo "export CONFIG_BOOT_ROM" >> config.mk;
1333 CU824_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1336 debris_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1339 eXalion_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1342 HIDDEN_DRAGON_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1345 kvme080_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1348 MOUSSE_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1351 MUSENKI_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1354 MVBLUE_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1357 OXC_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1360 PN62_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1363 Sandpoint8240_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1366 Sandpoint8245_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1369 sbc8240_config: unconfig
1370 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1372 SL8245_config: unconfig
1373 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1375 utx8245_config: unconfig
1376 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1378 #########################################################################
1380 #########################################################################
1382 atc_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1385 cogent_mpc8260_config: unconfig
1386 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1389 CPU86_ROMBOOT_config: unconfig
1390 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1391 @cd $(obj)include ; \
1392 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1393 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1394 echo "... booting from 8-bit flash" ; \
1396 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1397 echo "... booting from 64-bit flash" ; \
1399 echo "export CONFIG_BOOT_ROM" >> config.mk;
1402 CPU87_ROMBOOT_config: unconfig
1403 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1404 @cd $(obj)include ; \
1405 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1406 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1407 echo "... booting from 8-bit flash" ; \
1409 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1410 echo "... booting from 64-bit flash" ; \
1412 echo "export CONFIG_BOOT_ROM" >> config.mk;
1415 ep8248E_config : unconfig
1416 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1418 ep8260_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1421 ep82xxm_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1424 gw8260_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1427 hymod_config: unconfig
1428 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1430 IDS8247_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1433 IPHASE4539_config: unconfig
1434 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1437 ISPAN_REVB_config: unconfig
1438 @mkdir -p $(obj)include
1439 @if [ "$(findstring _REVB_,$@)" ] ; then \
1440 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1442 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1445 MPC8260ADS_lowboot_config \
1446 MPC8260ADS_33MHz_config \
1447 MPC8260ADS_33MHz_lowboot_config \
1448 MPC8260ADS_40MHz_config \
1449 MPC8260ADS_40MHz_lowboot_config \
1451 MPC8272ADS_lowboot_config \
1453 PQ2FADS_lowboot_config \
1455 PQ2FADS-VR_lowboot_config \
1457 PQ2FADS-ZU_lowboot_config \
1458 PQ2FADS-ZU_66MHz_config \
1459 PQ2FADS-ZU_66MHz_lowboot_config \
1461 @mkdir -p $(obj)include
1462 @mkdir -p $(obj)board/mpc8260ads
1463 $(if $(findstring PQ2FADS,$@), \
1464 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1465 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1466 $(if $(findstring MHz,$@), \
1467 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1468 $(if $(findstring VR,$@), \
1469 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1470 @[ -z "$(findstring lowboot_,$@)" ] || \
1471 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1472 echo "... with lowboot configuration" ; \
1474 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1476 MPC8266ADS_config: unconfig
1477 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1479 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1481 PM825_ROMBOOT_config \
1482 PM825_BIGFLASH_config \
1483 PM825_ROMBOOT_BIGFLASH_config \
1485 PM826_ROMBOOT_config \
1486 PM826_BIGFLASH_config \
1487 PM826_ROMBOOT_BIGFLASH_config: unconfig
1488 @mkdir -p $(obj)include
1489 @mkdir -p $(obj)board/pm826
1490 @if [ "$(findstring PM825_,$@)" ] ; then \
1491 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1493 >$(obj)include/config.h ; \
1495 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1496 echo "... booting from 8-bit flash" ; \
1497 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1498 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1499 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1500 echo "... with 32 MB Flash" ; \
1501 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1504 echo "... booting from 64-bit flash" ; \
1505 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1506 echo "... with 32 MB Flash" ; \
1507 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1508 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1510 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1513 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1517 PM828_ROMBOOT_config \
1518 PM828_ROMBOOT_PCI_config: unconfig
1519 @mkdir -p $(obj)include
1520 @mkdir -p $(obj)board/pm826
1521 @if [ "$(findstring _PCI_,$@)" ] ; then \
1522 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1523 echo "... with PCI enabled" ; \
1525 >$(obj)include/config.h ; \
1527 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1528 echo "... booting from 8-bit flash" ; \
1529 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1530 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1532 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1534 ppmc8260_config: unconfig
1535 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1537 Rattler8248_config \
1538 Rattler_config: unconfig
1539 @mkdir -p $(obj)include
1540 $(if $(findstring 8248,$@), \
1541 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1542 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1544 RPXsuper_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1547 rsdproto_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1550 sacsng_config: unconfig
1551 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1553 sbc8260_config: unconfig
1554 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1556 SCM_config: unconfig
1557 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1569 TQM8265_AA_config: unconfig
1570 @mkdir -p $(obj)include
1572 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1573 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1574 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1575 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1576 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1577 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1578 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1579 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1580 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1581 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1582 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1584 >$(obj)include/config.h ; \
1585 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1586 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1588 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1589 echo "... with $${CFREQ}MHz system clock" ; \
1590 if [ "$${CACHE}" == "yes" ] ; then \
1591 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1592 echo "... with L2 Cache support" ; \
1594 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1595 echo "... without L2 Cache support" ; \
1597 if [ "$${BMODE}" == "60x" ] ; then \
1598 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1599 echo "... with 60x Bus Mode" ; \
1601 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1602 echo "... without 60x Bus Mode" ; \
1604 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1606 TQM8272_config: unconfig
1607 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1609 VoVPN-GW_66MHz_config \
1610 VoVPN-GW_100MHz_config: unconfig
1611 @mkdir -p $(obj)include
1612 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1613 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1615 ZPC1900_config: unconfig
1616 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1618 #########################################################################
1620 #########################################################################
1622 cobra5272_config : unconfig
1623 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1625 EB+MCF-EV123_config : unconfig
1626 @mkdir -p $(obj)include
1627 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1628 @ >$(obj)include/config.h
1629 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1630 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1632 EB+MCF-EV123_internal_config : unconfig
1633 @mkdir -p $(obj)include
1634 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1635 @ >$(obj)include/config.h
1636 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1637 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1639 idmr_config : unconfig
1640 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1642 M5271EVB_config : unconfig
1643 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1645 M5272C3_config : unconfig
1646 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1648 M5282EVB_config : unconfig
1649 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1651 TASREG_config : unconfig
1652 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1654 r5200_config : unconfig
1655 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1657 #########################################################################
1659 #########################################################################
1661 MPC8313ERDB_33_config \
1662 MPC8313ERDB_66_config: unconfig
1663 @mkdir -p $(obj)include
1664 @echo "" >$(obj)include/config.h ; \
1665 if [ "$(findstring _33_,$@)" ] ; then \
1666 echo "...33M ..." ; \
1667 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1669 if [ "$(findstring _66_,$@)" ] ; then \
1670 echo "...66M..." ; \
1671 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1673 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1675 MPC832XEMDS_config \
1676 MPC832XEMDS_HOST_33_config \
1677 MPC832XEMDS_HOST_66_config \
1678 MPC832XEMDS_SLAVE_config: unconfig
1679 @mkdir -p $(obj)include
1680 @echo "" >$(obj)include/config.h ; \
1681 if [ "$(findstring _HOST_,$@)" ] ; then \
1682 echo "... PCI HOST " ; \
1683 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1685 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1686 echo "...PCI SLAVE 66M" ; \
1687 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1688 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1690 if [ "$(findstring _33_,$@)" ] ; then \
1691 echo "...33M ..." ; \
1692 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1694 if [ "$(findstring _66_,$@)" ] ; then \
1695 echo "...66M..." ; \
1696 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1698 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1700 MPC8349EMDS_config: unconfig
1701 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1704 MPC8349ITX_LOWBOOT_config \
1705 MPC8349ITXGP_config: unconfig
1706 @mkdir -p $(obj)include
1707 @mkdir -p $(obj)board/mpc8349itx
1708 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1709 @if [ "$(findstring GP,$@)" ] ; then \
1710 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1712 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1713 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1715 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1717 MPC8360EMDS_config \
1718 MPC8360EMDS_HOST_33_config \
1719 MPC8360EMDS_HOST_66_config \
1720 MPC8360EMDS_SLAVE_config: unconfig
1721 @mkdir -p $(obj)include
1722 @echo "" >$(obj)include/config.h ; \
1723 if [ "$(findstring _HOST_,$@)" ] ; then \
1724 echo "... PCI HOST " ; \
1725 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1727 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1728 echo "...PCI SLAVE 66M" ; \
1729 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1730 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1732 if [ "$(findstring _33_,$@)" ] ; then \
1733 echo "...33M ..." ; \
1734 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1736 if [ "$(findstring _66_,$@)" ] ; then \
1737 echo "...66M..." ; \
1738 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1740 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1742 sbc8349_config: unconfig
1743 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1745 TQM834x_config: unconfig
1746 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1749 #########################################################################
1751 #########################################################################
1753 MPC8540ADS_config: unconfig
1754 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1756 MPC8540EVAL_config \
1757 MPC8540EVAL_33_config \
1758 MPC8540EVAL_66_config \
1759 MPC8540EVAL_33_slave_config \
1760 MPC8540EVAL_66_slave_config: unconfig
1761 @mkdir -p $(obj)include
1762 @echo "" >$(obj)include/config.h ; \
1763 if [ "$(findstring _33_,$@)" ] ; then \
1764 echo "... 33 MHz PCI" ; \
1766 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1767 echo "... 66 MHz PCI" ; \
1769 if [ "$(findstring _slave_,$@)" ] ; then \
1770 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1775 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1777 MPC8560ADS_config: unconfig
1778 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1780 MPC8541CDS_config: unconfig
1781 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1783 MPC8544DS_config: unconfig
1784 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1786 MPC8548CDS_config: unconfig
1787 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1789 MPC8555CDS_config: unconfig
1790 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1792 MPC8568MDS_config: unconfig
1793 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1795 PM854_config: unconfig
1796 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1798 PM856_config: unconfig
1799 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1803 sbc8540_66_config: unconfig
1804 @mkdir -p $(obj)include
1805 @if [ "$(findstring _66_,$@)" ] ; then \
1806 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1807 echo "... 66 MHz PCI" ; \
1809 >$(obj)include/config.h ; \
1810 echo "... 33 MHz PCI" ; \
1812 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1816 sbc8560_66_config: unconfig
1817 @mkdir -p $(obj)include
1818 @if [ "$(findstring _66_,$@)" ] ; then \
1819 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1820 echo "... 66 MHz PCI" ; \
1822 >$(obj)include/config.h ; \
1823 echo "... 33 MHz PCI" ; \
1825 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1827 stxgp3_config: unconfig
1828 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1831 stxssa_4M_config: unconfig
1832 @mkdir -p $(obj)include
1833 @if [ "$(findstring _4M_,$@)" ] ; then \
1834 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1835 echo "... with 4 MiB flash memory" ; \
1837 >$(obj)include/config.h ; \
1839 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1844 TQM8560_config: unconfig
1845 @mkdir -p $(obj)include
1846 @CTYPE=$(subst TQM,,$(@:_config=)); \
1847 >$(obj)include/config.h ; \
1848 echo "... TQM"$${CTYPE}; \
1849 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1850 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1851 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1852 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1853 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1854 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1856 #########################################################################
1858 #########################################################################
1860 MPC8641HPCN_config: unconfig
1861 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn
1864 #########################################################################
1866 #########################################################################
1868 AmigaOneG3SE_config: unconfig
1869 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1871 BAB7xx_config: unconfig
1872 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1874 CPCI750_config: unconfig
1875 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1877 DB64360_config: unconfig
1878 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1880 DB64460_config: unconfig
1881 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1883 ELPPC_config: unconfig
1884 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1887 EVB64260_750CX_config: unconfig
1888 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1890 mpc7448hpc2_config: unconfig
1891 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1893 P3G4_config: unconfig
1894 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1897 p3m7448_config: unconfig
1898 @mkdir -p $(obj)include
1899 @if [ "$(findstring 750_,$@)" ] ; then \
1900 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1902 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1904 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1907 PCIPPC6_config: unconfig
1908 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1910 ZUMA_config: unconfig
1911 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1913 ppmc7xx_config: unconfig
1914 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1916 #========================================================================
1918 #========================================================================
1919 #########################################################################
1920 ## StrongARM Systems
1921 #########################################################################
1923 assabet_config : unconfig
1924 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1926 dnp1110_config : unconfig
1927 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1929 gcplus_config : unconfig
1930 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1932 lart_config : unconfig
1933 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1935 shannon_config : unconfig
1936 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1938 #########################################################################
1940 #########################################################################
1942 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1944 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1946 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1948 at91rm9200dk_config : unconfig
1949 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1951 cmc_pu2_config : unconfig
1952 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1954 csb637_config : unconfig
1955 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1957 mp2usb_config : unconfig
1958 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1961 ########################################################################
1962 ## ARM Integrator boards - see doc/README-integrator for more info.
1963 integratorap_config \
1972 ap946es_config: unconfig
1973 @board/integratorap/split_by_variant.sh $@
1975 integratorcp_config \
1984 cp1026_config: unconfig
1985 @board/integratorcp/split_by_variant.sh $@
1987 kb9202_config : unconfig
1988 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1991 lpd7a404_config: unconfig
1992 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1994 mx1ads_config : unconfig
1995 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1997 mx1fs2_config : unconfig
1998 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2001 netstar_config: unconfig
2002 @mkdir -p $(obj)include
2003 @if [ "$(findstring _32_,$@)" ] ; then \
2004 echo "... 32MB SDRAM" ; \
2005 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2007 echo "... 64MB SDRAM" ; \
2008 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2010 @$(MKCONFIG) -a netstar arm arm925t netstar
2012 omap1510inn_config : unconfig
2013 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2015 omap5912osk_config : unconfig
2016 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2018 omap1610inn_config \
2019 omap1610inn_cs0boot_config \
2020 omap1610inn_cs3boot_config \
2021 omap1610inn_cs_autoboot_config \
2023 omap1610h2_cs0boot_config \
2024 omap1610h2_cs3boot_config \
2025 omap1610h2_cs_autoboot_config: unconfig
2026 @mkdir -p $(obj)include
2027 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2028 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2029 echo "... configured for CS0 boot"; \
2030 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2031 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2032 echo "... configured for CS_AUTO boot"; \
2034 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2035 echo "... configured for CS3 boot"; \
2037 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2040 omap730p2_cs0boot_config \
2041 omap730p2_cs3boot_config : unconfig
2042 @mkdir -p $(obj)include
2043 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2044 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2045 echo "... configured for CS0 boot"; \
2047 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2048 echo "... configured for CS3 boot"; \
2050 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2052 sbc2410x_config: unconfig
2053 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2055 scb9328_config : unconfig
2056 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2058 smdk2400_config : unconfig
2059 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2061 smdk2410_config : unconfig
2062 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2064 SX1_config : unconfig
2065 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2067 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2069 trab_bigram_config \
2070 trab_bigflash_config \
2071 trab_old_config: unconfig
2072 @mkdir -p $(obj)include
2073 @mkdir -p $(obj)board/trab
2074 @ >$(obj)include/config.h
2075 @[ -z "$(findstring _bigram,$@)" ] || \
2076 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2077 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2078 echo "... with 8 MB Flash, 32 MB RAM" ; \
2080 @[ -z "$(findstring _bigflash,$@)" ] || \
2081 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2082 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2083 echo "... with 16 MB Flash, 16 MB RAM" ; \
2084 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2086 @[ -z "$(findstring _old,$@)" ] || \
2087 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2088 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2089 echo "... with 8 MB Flash, 16 MB RAM" ; \
2090 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2092 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2094 VCMA9_config : unconfig
2095 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2097 #========================================================================
2098 # ARM supplied Versatile development boards
2099 #========================================================================
2101 versatileab_config \
2102 versatilepb_config : unconfig
2103 @board/versatile/split_by_variant.sh $@
2105 voiceblue_smallflash_config \
2106 voiceblue_config: unconfig
2107 @mkdir -p $(obj)include
2108 @mkdir -p $(obj)board/voiceblue
2109 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2110 echo "... boot from lower flash bank" ; \
2111 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2112 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2114 echo "... boot from upper flash bank" ; \
2115 >$(obj)include/config.h ; \
2116 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2118 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2120 cm4008_config : unconfig
2121 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2123 cm41xx_config : unconfig
2124 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2126 gth2_config : unconfig
2127 @mkdir -p $(obj)include
2128 @ >$(obj)include/config.h
2129 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2130 @$(MKCONFIG) -a gth2 mips mips gth2
2132 #########################################################################
2134 #########################################################################
2136 B2_config : unconfig
2137 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2139 #########################################################################
2141 #########################################################################
2143 armadillo_config: unconfig
2144 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2146 ep7312_config : unconfig
2147 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2149 impa7_config : unconfig
2150 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2152 modnet50_config : unconfig
2153 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2155 evb4510_config : unconfig
2156 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2158 lpc2292sodimm_config: unconfig
2159 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2161 SMN42_config : unconfig
2162 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2164 #########################################################################
2166 #########################################################################
2168 adsvix_config : unconfig
2169 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2171 cerf250_config : unconfig
2172 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2174 cradle_config : unconfig
2175 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2177 csb226_config : unconfig
2178 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2181 @$(MKCONFIG) $(@:_config=) arm pxa delta
2183 innokom_config : unconfig
2184 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2186 ixdp425_config : unconfig
2187 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2189 ixdpg425_config : unconfig
2190 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2192 lubbock_config : unconfig
2193 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2195 pleb2_config : unconfig
2196 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2198 logodl_config : unconfig
2199 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2202 scpu_config: unconfig
2203 @mkdir -p $(obj)include
2204 @if [ "$(findstring scpu_,$@)" ] ; then \
2205 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2206 echo "... on SCPU board variant" ; \
2208 >$(obj)include/config.h ; \
2210 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2212 pxa255_idp_config: unconfig
2213 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2215 wepep250_config : unconfig
2216 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2218 xaeniax_config : unconfig
2219 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2221 xm250_config : unconfig
2222 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2224 xsengine_config : unconfig
2225 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2228 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2230 #########################################################################
2232 #########################################################################
2233 omap2420h4_config : unconfig
2234 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2236 #========================================================================
2238 #========================================================================
2239 #########################################################################
2241 #########################################################################
2242 sc520_cdp_config : unconfig
2243 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2245 sc520_spunk_config : unconfig
2246 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2248 sc520_spunk_rel_config : unconfig
2249 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2251 #========================================================================
2253 #========================================================================
2254 #########################################################################
2256 #########################################################################
2258 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2260 incaip_100MHz_config \
2261 incaip_133MHz_config \
2262 incaip_150MHz_config \
2263 incaip_config: unconfig
2264 @mkdir -p $(obj)include
2265 @ >$(obj)include/config.h
2266 @[ -z "$(findstring _100MHz,$@)" ] || \
2267 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2268 echo "... with 100MHz system clock" ; \
2270 @[ -z "$(findstring _133MHz,$@)" ] || \
2271 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2272 echo "... with 133MHz system clock" ; \
2274 @[ -z "$(findstring _150MHz,$@)" ] || \
2275 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2276 echo "... with 150MHz system clock" ; \
2278 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2280 tb0229_config: unconfig
2281 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2283 #########################################################################
2285 #########################################################################
2286 dbau1000_config : unconfig
2287 @mkdir -p $(obj)include
2288 @ >$(obj)include/config.h
2289 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2290 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2292 dbau1100_config : unconfig
2293 @mkdir -p $(obj)include
2294 @ >$(obj)include/config.h
2295 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2296 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2298 dbau1500_config : unconfig
2299 @mkdir -p $(obj)include
2300 @ >$(obj)include/config.h
2301 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2302 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2304 dbau1550_config : unconfig
2305 @mkdir -p $(obj)include
2306 @ >$(obj)include/config.h
2307 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2308 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2310 dbau1550_el_config : unconfig
2311 @mkdir -p $(obj)include
2312 @ >$(obj)include/config.h
2313 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2314 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2316 pb1000_config : unconfig
2317 @mkdir -p $(obj)include
2318 @ >$(obj)include/config.h
2319 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2320 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2322 #########################################################################
2324 #########################################################################
2326 purple_config : unconfig
2327 @$(MKCONFIG) $(@:_config=) mips mips purple
2329 #========================================================================
2331 #========================================================================
2332 #########################################################################
2334 #########################################################################
2336 DK1C20_safe_32_config \
2337 DK1C20_standard_32_config \
2338 DK1C20_config: unconfig
2339 @mkdir -p $(obj)include
2340 @ >$(obj)include/config.h
2341 @[ -z "$(findstring _safe_32,$@)" ] || \
2342 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2343 echo "... NIOS 'safe_32' configuration" ; \
2345 @[ -z "$(findstring _standard_32,$@)" ] || \
2346 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2347 echo "... NIOS 'standard_32' configuration" ; \
2349 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2350 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2351 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2353 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2355 DK1S10_safe_32_config \
2356 DK1S10_standard_32_config \
2357 DK1S10_mtx_ldk_20_config \
2358 DK1S10_config: unconfig
2359 @mkdir -p $(obj)include
2360 @ >$(obj)include/config.h
2361 @[ -z "$(findstring _safe_32,$@)" ] || \
2362 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2363 echo "... NIOS 'safe_32' configuration" ; \
2365 @[ -z "$(findstring _standard_32,$@)" ] || \
2366 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2367 echo "... NIOS 'standard_32' configuration" ; \
2369 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2370 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2371 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2373 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2374 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2375 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2377 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2379 ADNPESC1_DNPEVA2_base_32_config \
2380 ADNPESC1_base_32_config \
2381 ADNPESC1_config: unconfig
2382 @mkdir -p $(obj)include
2383 @ >$(obj)include/config.h
2384 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2385 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2386 echo "... DNP/EVA2 configuration" ; \
2388 @[ -z "$(findstring _base_32,$@)" ] || \
2389 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2390 echo "... NIOS 'base_32' configuration" ; \
2392 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2393 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2394 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2396 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2398 #########################################################################
2400 #########################################################################
2402 EP1C20_config : unconfig
2403 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2405 EP1S10_config : unconfig
2406 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2408 EP1S40_config : unconfig
2409 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2411 PK1C20_config : unconfig
2412 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2414 PCI5441_config : unconfig
2415 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2417 #========================================================================
2419 #========================================================================
2420 #########################################################################
2422 #########################################################################
2423 suzaku_config: unconfig
2424 @mkdir -p $(obj)include
2425 @ >$(obj)include/config.h
2426 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2427 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2429 ml401_config: unconfig
2430 @mkdir -p $(obj)include
2431 @ >$(obj)include/config.h
2432 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2433 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2435 xupv2p_config: unconfig
2436 @mkdir -p $(obj)include
2437 @ >$(obj)include/config.h
2438 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2439 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2441 #########################################################################
2443 #########################################################################
2444 bf533-ezkit_config: unconfig
2445 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2447 bf533-stamp_config: unconfig
2448 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2450 bf537-stamp_config: unconfig
2451 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2453 bf561-ezkit_config: unconfig
2454 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2456 #========================================================================
2458 #========================================================================
2459 #########################################################################
2461 #########################################################################
2463 atstk1002_config : unconfig
2464 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2466 #########################################################################
2467 #########################################################################
2468 #########################################################################
2471 find $(OBJTREE) -type f \
2472 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2473 -o -name '*.o' -o -name '*.a' \) -print \
2475 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2476 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2477 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2478 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2479 $(obj)examples/test_burst
2480 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2481 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2482 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2483 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2484 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2485 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2486 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2487 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2488 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2489 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2490 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2491 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2492 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2493 rm -f $(obj)include/bmp_logo.h
2494 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2497 find $(OBJTREE) -type f \( -name .depend \
2498 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2501 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2503 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2504 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2505 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2506 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2507 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2509 ifeq ($(OBJTREE),$(SRCTREE))
2511 distclean: clobber unconfig
2514 distclean: clobber unconfig
2519 F=`basename $(TOPDIR)` ; cd .. ; \
2520 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2522 #########################################################################