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 = ppc_8xx-
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
661 AdderUSB_config: unconfig
662 @./mkconfig -a AdderUSB ppc mpc8xx adder
669 FADS860T_config: unconfig
670 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
672 AMX860_config : unconfig
673 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
675 c2mon_config: unconfig
676 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
679 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
681 cogent_mpc8xx_config: unconfig
682 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
684 ELPT860_config: unconfig
685 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
687 EP88x_config: unconfig
688 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
690 ESTEEM192E_config: unconfig
691 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
693 ETX094_config : unconfig
694 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
696 FLAGADM_config: unconfig
697 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
699 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
702 GEN860T_config: unconfig
703 @mkdir -p $(obj)include
704 @ >$(obj)include/config.h
705 @[ -z "$(findstring _SC,$@)" ] || \
706 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
707 echo "With reduced H/W feature set (SC)..." ; \
709 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
711 GENIETV_config: unconfig
712 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
715 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
717 hermes_config : unconfig
718 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
720 HMI10_config : unconfig
721 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
723 IAD210_config: unconfig
724 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
726 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
728 ICU862_100MHz_config \
729 ICU862_config: unconfig
730 @mkdir -p $(obj)include
731 @ >$(obj)include/config.h
732 @[ -z "$(findstring _100MHz,$@)" ] || \
733 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
734 echo "... with 100MHz system clock" ; \
736 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
738 IP860_config : unconfig
739 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
743 IVML24_config: unconfig
744 @mkdir -p $(obj)include
745 @ >$(obj)include/config.h
746 @[ -z "$(findstring IVML24_config,$@)" ] || \
747 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
749 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
750 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
752 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
753 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
755 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
759 IVMS8_config: unconfig
760 @mkdir -p $(obj)include
761 @ >$(obj)include/config.h
762 @[ -z "$(findstring IVMS8_config,$@)" ] || \
763 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
765 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
766 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
768 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
769 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
771 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
773 KUP4K_config : unconfig
774 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
776 KUP4X_config : unconfig
777 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
779 LANTEC_config : unconfig
780 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
782 lwmon_config: unconfig
783 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
786 MBX860T_config: unconfig
787 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
789 MHPC_config: unconfig
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
792 MVS1_config : unconfig
793 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
795 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
798 NETVIA_config: unconfig
799 @mkdir -p $(obj)include
800 @ >$(obj)include/config.h
801 @[ -z "$(findstring NETVIA_config,$@)" ] || \
802 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
803 echo "... Version 1" ; \
805 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
806 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
807 echo "... Version 2" ; \
809 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
811 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
814 NETPHONE_config: unconfig
815 @mkdir -p $(obj)include
816 @ >$(obj)include/config.h
817 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
818 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
820 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
821 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
823 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
825 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
827 NETTA_ISDN_6412_SWAPHOOK_config \
828 NETTA_ISDN_SWAPHOOK_config \
829 NETTA_6412_SWAPHOOK_config \
830 NETTA_SWAPHOOK_config \
831 NETTA_ISDN_6412_config \
834 NETTA_config: unconfig
835 @mkdir -p $(obj)include
836 @ >$(obj)include/config.h
837 @[ -z "$(findstring ISDN_,$@)" ] || \
838 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
840 @[ -n "$(findstring ISDN_,$@)" ] || \
841 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
843 @[ -z "$(findstring 6412_,$@)" ] || \
844 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
846 @[ -n "$(findstring 6412_,$@)" ] || \
847 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
849 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
850 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
852 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
853 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
855 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
857 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
860 NETTA2_config: unconfig
861 @mkdir -p $(obj)include
862 @ >$(obj)include/config.h
863 @[ -z "$(findstring NETTA2_config,$@)" ] || \
864 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
866 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
867 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
869 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
873 CP850_config: unconfig
874 @mkdir -p $(obj)include
875 @ >$(obj)include/config.h
876 @[ -z "$(findstring CP850,$@)" ] || \
877 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
878 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
880 @[ -z "$(findstring Rev1,$@)" ] || \
881 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
883 @[ -z "$(findstring Rev2,$@)" ] || \
884 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
886 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
888 NX823_config: unconfig
889 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
891 pcu_e_config: unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
894 QS850_config: unconfig
895 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
897 QS823_config: unconfig
898 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
900 QS860T_config: unconfig
901 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
903 quantum_config: unconfig
904 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
906 R360MPI_config: unconfig
907 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
909 RBC823_config: unconfig
910 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
912 RPXClassic_config: unconfig
913 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
915 RPXlite_config: unconfig
916 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
918 RPXlite_DW_64_config \
919 RPXlite_DW_LCD_config \
920 RPXlite_DW_64_LCD_config \
921 RPXlite_DW_NVRAM_config \
922 RPXlite_DW_NVRAM_64_config \
923 RPXlite_DW_NVRAM_LCD_config \
924 RPXlite_DW_NVRAM_64_LCD_config \
925 RPXlite_DW_config: unconfig
926 @mkdir -p $(obj)include
927 @ >$(obj)include/config.h
928 @[ -z "$(findstring _64,$@)" ] || \
929 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
930 echo "... with 64MHz system clock ..."; \
932 @[ -z "$(findstring _LCD,$@)" ] || \
933 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
934 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
935 echo "... with LCD display ..."; \
937 @[ -z "$(findstring _NVRAM,$@)" ] || \
938 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
939 echo "... with ENV in NVRAM ..."; \
941 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
944 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
946 RRvision_config: unconfig
947 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
949 RRvision_LCD_config: unconfig
950 @mkdir -p $(obj)include
951 @echo "#define CONFIG_LCD" >$(obj)include/config.h
952 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
953 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
955 SM850_config : unconfig
956 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
959 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
961 SPD823TS_config: unconfig
962 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
964 stxxtc_config: unconfig
965 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
967 svm_sc8xx_config: unconfig
968 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
970 SXNI855T_config: unconfig
971 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
973 # EMK MPC8xx based modules
974 TOP860_config: unconfig
975 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
977 # Play some tricks for configuration selection
978 # Only 855 and 860 boards may come with FEC
979 # and only 823 boards may have LCD support
980 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
998 virtlab2_config: unconfig
999 @mkdir -p $(obj)include
1000 @ >$(obj)include/config.h
1001 @[ -z "$(findstring _LCD,$@)" ] || \
1002 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1003 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1004 echo "... with LCD display" ; \
1006 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1008 TTTech_config: unconfig
1009 @mkdir -p $(obj)include
1010 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1011 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1012 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1014 uc100_config : unconfig
1015 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1017 v37_config: unconfig
1018 @mkdir -p $(obj)include
1019 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1020 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1021 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1023 wtk_config: unconfig
1024 @mkdir -p $(obj)include
1025 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1026 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1027 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1029 #########################################################################
1031 #########################################################################
1032 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1034 acadia_config: unconfig
1035 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1037 acadia_nand_config: unconfig
1038 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1039 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1040 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1041 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1042 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1043 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1045 ADCIOP_config: unconfig
1046 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1048 alpr_config: unconfig
1049 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1051 AP1000_config:unconfig
1052 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1054 APC405_config: unconfig
1055 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1057 AR405_config: unconfig
1058 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1060 ASH405_config: unconfig
1061 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1063 bamboo_config: unconfig
1064 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1066 bamboo_nand_config: unconfig
1067 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1068 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1069 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1070 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1071 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1072 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1074 bubinga_config: unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1077 CANBT_config: unconfig
1078 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1081 CATcenter_25_config \
1082 CATcenter_33_config: unconfig
1083 @mkdir -p $(obj)include
1084 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1085 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1086 @[ -z "$(findstring _25,$@)" ] || \
1087 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1088 echo "SysClk = 25MHz" ; \
1090 @[ -z "$(findstring _33,$@)" ] || \
1091 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1092 echo "SysClk = 33MHz" ; \
1094 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1096 CPCI2DP_config: unconfig
1097 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1102 CPCI405AB_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1104 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1106 CPCI440_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1109 CPCIISER4_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1112 CRAYL1_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1115 csb272_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1118 csb472_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1121 DASA_SIM_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1124 DP405_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1127 DU405_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1130 ebony_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1133 ERIC_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1136 EXBITGEN_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1139 G2000_config: unconfig
1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1142 HH405_config: unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1145 HUB405_config: unconfig
1146 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1148 JSE_config: unconfig
1149 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1151 KAREF_config: unconfig
1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1154 katmai_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1157 luan_config: unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1160 lwmon5_config: unconfig
1161 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1163 METROBOX_config: unconfig
1164 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1166 MIP405_config: unconfig
1167 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1169 MIP405T_config: unconfig
1170 @mkdir -p $(obj)include
1171 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1172 @echo "Enable subset config for MIP405T"
1173 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1175 ML2_config: unconfig
1176 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1178 ml300_config: unconfig
1179 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1181 ocotea_config: unconfig
1182 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1185 ORSG_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1188 p3p440_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1191 PCI405_config: unconfig
1192 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1194 pcs440ep_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1197 PIP405_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1200 PLU405_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1203 PMC405_config: unconfig
1204 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1206 PPChameleonEVB_config \
1207 PPChameleonEVB_BA_25_config \
1208 PPChameleonEVB_ME_25_config \
1209 PPChameleonEVB_HI_25_config \
1210 PPChameleonEVB_BA_33_config \
1211 PPChameleonEVB_ME_33_config \
1212 PPChameleonEVB_HI_33_config: unconfig
1213 @mkdir -p $(obj)include
1214 @ >$(obj)include/config.h
1215 @[ -z "$(findstring EVB_BA,$@)" ] || \
1216 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1217 echo "... BASIC model" ; \
1219 @[ -z "$(findstring EVB_ME,$@)" ] || \
1220 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1221 echo "... MEDIUM model" ; \
1223 @[ -z "$(findstring EVB_HI,$@)" ] || \
1224 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1225 echo "... HIGH-END model" ; \
1227 @[ -z "$(findstring _25,$@)" ] || \
1228 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1229 echo "SysClk = 25MHz" ; \
1231 @[ -z "$(findstring _33,$@)" ] || \
1232 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1233 echo "SysClk = 33MHz" ; \
1235 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1237 sbc405_config: unconfig
1238 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1241 rainier_config: unconfig
1242 @mkdir -p $(obj)include
1243 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1244 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1245 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1247 sequoia_nand_config \
1248 rainier_nand_config: unconfig
1249 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1250 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1251 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1252 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1253 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1254 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1255 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1256 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1259 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1261 taishan_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1264 VOH405_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1267 VOM405_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1270 CMS700_config: unconfig
1271 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1274 W7OLMG_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1277 # Walnut & Sycamore images are identical (recognized via PVR)
1279 sycamore_config: unconfig
1280 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1282 WUH405_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1285 XPEDITE1K_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1289 yellowstone_config: unconfig
1290 @mkdir -p $(obj)include
1291 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1292 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1293 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1295 yucca_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1298 #########################################################################
1300 #########################################################################
1303 Yukon8220_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1306 sorcery_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1309 #########################################################################
1311 #########################################################################
1312 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1314 A3000_config: unconfig
1315 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1317 barco_config: unconfig
1318 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1320 BMW_config: unconfig
1321 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1324 CPC45_ROMBOOT_config: unconfig
1325 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1326 @cd $(obj)include ; \
1327 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1328 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1329 echo "... booting from 8-bit flash" ; \
1331 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1332 echo "... booting from 64-bit flash" ; \
1334 echo "export CONFIG_BOOT_ROM" >> config.mk;
1336 CU824_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1339 debris_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1342 eXalion_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1345 HIDDEN_DRAGON_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1348 kvme080_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1351 MOUSSE_config: unconfig
1352 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1354 MUSENKI_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1357 MVBLUE_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1360 OXC_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1363 PN62_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1366 Sandpoint8240_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1369 Sandpoint8245_config: unconfig
1370 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1372 sbc8240_config: unconfig
1373 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1375 SL8245_config: unconfig
1376 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1378 utx8245_config: unconfig
1379 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1381 #########################################################################
1383 #########################################################################
1385 atc_config: unconfig
1386 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1388 cogent_mpc8260_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1392 CPU86_ROMBOOT_config: unconfig
1393 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1394 @cd $(obj)include ; \
1395 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1396 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1397 echo "... booting from 8-bit flash" ; \
1399 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1400 echo "... booting from 64-bit flash" ; \
1402 echo "export CONFIG_BOOT_ROM" >> config.mk;
1405 CPU87_ROMBOOT_config: unconfig
1406 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1407 @cd $(obj)include ; \
1408 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1409 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1410 echo "... booting from 8-bit flash" ; \
1412 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1413 echo "... booting from 64-bit flash" ; \
1415 echo "export CONFIG_BOOT_ROM" >> config.mk;
1418 ep8248E_config : unconfig
1419 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1421 ep8260_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1424 ep82xxm_config: unconfig
1425 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1427 gw8260_config: unconfig
1428 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1430 hymod_config: unconfig
1431 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1433 IDS8247_config: unconfig
1434 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1436 IPHASE4539_config: unconfig
1437 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1440 ISPAN_REVB_config: unconfig
1441 @mkdir -p $(obj)include
1442 @if [ "$(findstring _REVB_,$@)" ] ; then \
1443 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1445 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1448 MPC8260ADS_lowboot_config \
1449 MPC8260ADS_33MHz_config \
1450 MPC8260ADS_33MHz_lowboot_config \
1451 MPC8260ADS_40MHz_config \
1452 MPC8260ADS_40MHz_lowboot_config \
1454 MPC8272ADS_lowboot_config \
1456 PQ2FADS_lowboot_config \
1458 PQ2FADS-VR_lowboot_config \
1460 PQ2FADS-ZU_lowboot_config \
1461 PQ2FADS-ZU_66MHz_config \
1462 PQ2FADS-ZU_66MHz_lowboot_config \
1464 @mkdir -p $(obj)include
1465 @mkdir -p $(obj)board/mpc8260ads
1466 $(if $(findstring PQ2FADS,$@), \
1467 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1468 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1469 $(if $(findstring MHz,$@), \
1470 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1471 $(if $(findstring VR,$@), \
1472 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1473 @[ -z "$(findstring lowboot_,$@)" ] || \
1474 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1475 echo "... with lowboot configuration" ; \
1477 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1479 MPC8266ADS_config: unconfig
1480 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1482 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1484 PM825_ROMBOOT_config \
1485 PM825_BIGFLASH_config \
1486 PM825_ROMBOOT_BIGFLASH_config \
1488 PM826_ROMBOOT_config \
1489 PM826_BIGFLASH_config \
1490 PM826_ROMBOOT_BIGFLASH_config: unconfig
1491 @mkdir -p $(obj)include
1492 @mkdir -p $(obj)board/pm826
1493 @if [ "$(findstring PM825_,$@)" ] ; then \
1494 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1496 >$(obj)include/config.h ; \
1498 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1499 echo "... booting from 8-bit flash" ; \
1500 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1501 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1502 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1503 echo "... with 32 MB Flash" ; \
1504 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1507 echo "... booting from 64-bit flash" ; \
1508 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1509 echo "... with 32 MB Flash" ; \
1510 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1511 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1513 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1516 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1520 PM828_ROMBOOT_config \
1521 PM828_ROMBOOT_PCI_config: unconfig
1522 @mkdir -p $(obj)include
1523 @mkdir -p $(obj)board/pm826
1524 @if [ "$(findstring _PCI_,$@)" ] ; then \
1525 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1526 echo "... with PCI enabled" ; \
1528 >$(obj)include/config.h ; \
1530 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1531 echo "... booting from 8-bit flash" ; \
1532 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1533 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1535 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1537 ppmc8260_config: unconfig
1538 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1540 Rattler8248_config \
1541 Rattler_config: unconfig
1542 @mkdir -p $(obj)include
1543 $(if $(findstring 8248,$@), \
1544 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1545 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1547 RPXsuper_config: unconfig
1548 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1550 rsdproto_config: unconfig
1551 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1553 sacsng_config: unconfig
1554 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1556 sbc8260_config: unconfig
1557 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1559 SCM_config: unconfig
1560 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1572 TQM8265_AA_config: unconfig
1573 @mkdir -p $(obj)include
1575 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1576 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1577 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1578 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1579 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1580 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1581 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1582 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1583 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1584 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1585 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1587 >$(obj)include/config.h ; \
1588 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1589 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1591 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1592 echo "... with $${CFREQ}MHz system clock" ; \
1593 if [ "$${CACHE}" == "yes" ] ; then \
1594 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1595 echo "... with L2 Cache support" ; \
1597 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1598 echo "... without L2 Cache support" ; \
1600 if [ "$${BMODE}" == "60x" ] ; then \
1601 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1602 echo "... with 60x Bus Mode" ; \
1604 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1605 echo "... without 60x Bus Mode" ; \
1607 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1609 TQM8272_config: unconfig
1610 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1612 VoVPN-GW_66MHz_config \
1613 VoVPN-GW_100MHz_config: unconfig
1614 @mkdir -p $(obj)include
1615 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1616 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1618 ZPC1900_config: unconfig
1619 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1621 #########################################################################
1623 #########################################################################
1625 cobra5272_config : unconfig
1626 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1628 EB+MCF-EV123_config : unconfig
1629 @mkdir -p $(obj)include
1630 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1631 @ >$(obj)include/config.h
1632 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1633 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1635 EB+MCF-EV123_internal_config : unconfig
1636 @mkdir -p $(obj)include
1637 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1638 @ >$(obj)include/config.h
1639 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1640 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1642 idmr_config : unconfig
1643 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1645 M5271EVB_config : unconfig
1646 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1648 M5272C3_config : unconfig
1649 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1651 M5282EVB_config : unconfig
1652 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1654 TASREG_config : unconfig
1655 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1657 r5200_config : unconfig
1658 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1660 #########################################################################
1662 #########################################################################
1664 MPC8313ERDB_33_config \
1665 MPC8313ERDB_66_config: unconfig
1666 @mkdir -p $(obj)include
1667 @echo "" >$(obj)include/config.h ; \
1668 if [ "$(findstring _33_,$@)" ] ; then \
1669 echo -n "...33M ..." ; \
1670 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1672 if [ "$(findstring _66_,$@)" ] ; then \
1673 echo -n "...66M..." ; \
1674 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1676 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1678 MPC8323ERDB_config: unconfig
1679 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1681 MPC832XEMDS_config \
1682 MPC832XEMDS_HOST_33_config \
1683 MPC832XEMDS_HOST_66_config \
1684 MPC832XEMDS_SLAVE_config: unconfig
1685 @mkdir -p $(obj)include
1686 @echo "" >$(obj)include/config.h ; \
1687 if [ "$(findstring _HOST_,$@)" ] ; then \
1688 echo -n "... PCI HOST " ; \
1689 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1691 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1692 echo "...PCI SLAVE 66M" ; \
1693 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1694 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1696 if [ "$(findstring _33_,$@)" ] ; then \
1697 echo -n "...33M ..." ; \
1698 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1700 if [ "$(findstring _66_,$@)" ] ; then \
1701 echo -n "...66M..." ; \
1702 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1704 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1706 MPC8349EMDS_config: unconfig
1707 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1710 MPC8349ITX_LOWBOOT_config \
1711 MPC8349ITXGP_config: unconfig
1712 @mkdir -p $(obj)include
1713 @mkdir -p $(obj)board/mpc8349itx
1714 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1715 @if [ "$(findstring GP,$@)" ] ; then \
1716 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1718 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1719 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1721 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1723 MPC8360EMDS_config \
1724 MPC8360EMDS_HOST_33_config \
1725 MPC8360EMDS_HOST_66_config \
1726 MPC8360EMDS_SLAVE_config: unconfig
1727 @mkdir -p $(obj)include
1728 @echo "" >$(obj)include/config.h ; \
1729 if [ "$(findstring _HOST_,$@)" ] ; then \
1730 echo -n "... PCI HOST " ; \
1731 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1733 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1734 echo "...PCI SLAVE 66M" ; \
1735 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1736 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1738 if [ "$(findstring _33_,$@)" ] ; then \
1739 echo -n "...33M ..." ; \
1740 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1742 if [ "$(findstring _66_,$@)" ] ; then \
1743 echo -n "...66M..." ; \
1744 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1746 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1748 sbc8349_config: unconfig
1749 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1751 TQM834x_config: unconfig
1752 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1755 #########################################################################
1757 #########################################################################
1759 MPC8540ADS_config: unconfig
1760 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1762 MPC8540EVAL_config \
1763 MPC8540EVAL_33_config \
1764 MPC8540EVAL_66_config \
1765 MPC8540EVAL_33_slave_config \
1766 MPC8540EVAL_66_slave_config: unconfig
1767 @mkdir -p $(obj)include
1768 @echo "" >$(obj)include/config.h ; \
1769 if [ "$(findstring _33_,$@)" ] ; then \
1770 echo "... 33 MHz PCI" ; \
1772 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1773 echo "... 66 MHz PCI" ; \
1775 if [ "$(findstring _slave_,$@)" ] ; then \
1776 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1781 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1783 MPC8560ADS_config: unconfig
1784 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1786 MPC8541CDS_config: unconfig
1787 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1789 MPC8544DS_config: unconfig
1790 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1792 MPC8548CDS_config: unconfig
1793 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1795 MPC8555CDS_config: unconfig
1796 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1798 MPC8568MDS_config: unconfig
1799 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1801 PM854_config: unconfig
1802 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1804 PM856_config: unconfig
1805 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1809 sbc8540_66_config: unconfig
1810 @mkdir -p $(obj)include
1811 @if [ "$(findstring _66_,$@)" ] ; then \
1812 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1813 echo "... 66 MHz PCI" ; \
1815 >$(obj)include/config.h ; \
1816 echo "... 33 MHz PCI" ; \
1818 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1822 sbc8560_66_config: unconfig
1823 @mkdir -p $(obj)include
1824 @if [ "$(findstring _66_,$@)" ] ; then \
1825 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1826 echo "... 66 MHz PCI" ; \
1828 >$(obj)include/config.h ; \
1829 echo "... 33 MHz PCI" ; \
1831 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1833 stxgp3_config: unconfig
1834 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1837 stxssa_4M_config: unconfig
1838 @mkdir -p $(obj)include
1839 @if [ "$(findstring _4M_,$@)" ] ; then \
1840 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1841 echo "... with 4 MiB flash memory" ; \
1843 >$(obj)include/config.h ; \
1845 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1850 TQM8560_config: unconfig
1851 @mkdir -p $(obj)include
1852 @CTYPE=$(subst TQM,,$(@:_config=)); \
1853 >$(obj)include/config.h ; \
1854 echo "... TQM"$${CTYPE}; \
1855 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1856 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1857 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1858 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1859 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1860 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1862 #########################################################################
1864 #########################################################################
1866 MPC8641HPCN_config: unconfig
1867 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn
1870 #########################################################################
1872 #########################################################################
1874 AmigaOneG3SE_config: unconfig
1875 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1877 BAB7xx_config: unconfig
1878 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1880 CPCI750_config: unconfig
1881 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1883 DB64360_config: unconfig
1884 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1886 DB64460_config: unconfig
1887 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1889 ELPPC_config: unconfig
1890 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1893 EVB64260_750CX_config: unconfig
1894 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1896 mpc7448hpc2_config: unconfig
1897 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1899 P3G4_config: unconfig
1900 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1903 p3m7448_config: unconfig
1904 @mkdir -p $(obj)include
1905 @if [ "$(findstring 750_,$@)" ] ; then \
1906 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1908 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1910 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1913 PCIPPC6_config: unconfig
1914 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1916 ZUMA_config: unconfig
1917 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1919 ppmc7xx_config: unconfig
1920 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1922 #========================================================================
1924 #========================================================================
1925 #########################################################################
1926 ## StrongARM Systems
1927 #########################################################################
1929 assabet_config : unconfig
1930 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1932 dnp1110_config : unconfig
1933 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1935 gcplus_config : unconfig
1936 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1938 lart_config : unconfig
1939 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1941 shannon_config : unconfig
1942 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1944 #########################################################################
1946 #########################################################################
1948 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1950 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1952 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1954 at91rm9200dk_config : unconfig
1955 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1957 cmc_pu2_config : unconfig
1958 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1960 csb637_config : unconfig
1961 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1963 mp2usb_config : unconfig
1964 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1967 ########################################################################
1968 ## ARM Integrator boards - see doc/README-integrator for more info.
1969 integratorap_config \
1978 ap946es_config: unconfig
1979 @board/integratorap/split_by_variant.sh $@
1981 integratorcp_config \
1990 cp1026_config: unconfig
1991 @board/integratorcp/split_by_variant.sh $@
1993 kb9202_config : unconfig
1994 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1997 lpd7a404_config: unconfig
1998 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2000 mx1ads_config : unconfig
2001 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2003 mx1fs2_config : unconfig
2004 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2007 netstar_config: unconfig
2008 @mkdir -p $(obj)include
2009 @if [ "$(findstring _32_,$@)" ] ; then \
2010 echo "... 32MB SDRAM" ; \
2011 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2013 echo "... 64MB SDRAM" ; \
2014 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2016 @$(MKCONFIG) -a netstar arm arm925t netstar
2018 omap1510inn_config : unconfig
2019 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2021 omap5912osk_config : unconfig
2022 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2024 davinci_dvevm_config : unconfig
2025 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2027 davinci_schmoogie_config : unconfig
2028 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2030 davinci_sonata_config : unconfig
2031 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2033 omap1610inn_config \
2034 omap1610inn_cs0boot_config \
2035 omap1610inn_cs3boot_config \
2036 omap1610inn_cs_autoboot_config \
2038 omap1610h2_cs0boot_config \
2039 omap1610h2_cs3boot_config \
2040 omap1610h2_cs_autoboot_config: unconfig
2041 @mkdir -p $(obj)include
2042 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2043 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2044 echo "... configured for CS0 boot"; \
2045 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2046 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2047 echo "... configured for CS_AUTO boot"; \
2049 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2050 echo "... configured for CS3 boot"; \
2052 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2055 omap730p2_cs0boot_config \
2056 omap730p2_cs3boot_config : unconfig
2057 @mkdir -p $(obj)include
2058 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2059 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2060 echo "... configured for CS0 boot"; \
2062 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2063 echo "... configured for CS3 boot"; \
2065 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2067 sbc2410x_config: unconfig
2068 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2070 scb9328_config : unconfig
2071 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2073 smdk2400_config : unconfig
2074 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2076 smdk2410_config : unconfig
2077 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2079 SX1_config : unconfig
2080 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2082 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2084 trab_bigram_config \
2085 trab_bigflash_config \
2086 trab_old_config: unconfig
2087 @mkdir -p $(obj)include
2088 @mkdir -p $(obj)board/trab
2089 @ >$(obj)include/config.h
2090 @[ -z "$(findstring _bigram,$@)" ] || \
2091 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2092 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2093 echo "... with 8 MB Flash, 32 MB RAM" ; \
2095 @[ -z "$(findstring _bigflash,$@)" ] || \
2096 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2097 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2098 echo "... with 16 MB Flash, 16 MB RAM" ; \
2099 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2101 @[ -z "$(findstring _old,$@)" ] || \
2102 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2103 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2104 echo "... with 8 MB Flash, 16 MB RAM" ; \
2105 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2107 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2109 VCMA9_config : unconfig
2110 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2112 #========================================================================
2113 # ARM supplied Versatile development boards
2114 #========================================================================
2116 versatileab_config \
2117 versatilepb_config : unconfig
2118 @board/versatile/split_by_variant.sh $@
2120 voiceblue_smallflash_config \
2121 voiceblue_config: unconfig
2122 @mkdir -p $(obj)include
2123 @mkdir -p $(obj)board/voiceblue
2124 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2125 echo "... boot from lower flash bank" ; \
2126 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2127 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2129 echo "... boot from upper flash bank" ; \
2130 >$(obj)include/config.h ; \
2131 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2133 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2135 cm4008_config : unconfig
2136 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2138 cm41xx_config : unconfig
2139 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2141 gth2_config : unconfig
2142 @mkdir -p $(obj)include
2143 @ >$(obj)include/config.h
2144 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2145 @$(MKCONFIG) -a gth2 mips mips gth2
2147 #########################################################################
2149 #########################################################################
2151 B2_config : unconfig
2152 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2154 #########################################################################
2156 #########################################################################
2158 armadillo_config: unconfig
2159 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2161 ep7312_config : unconfig
2162 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2164 impa7_config : unconfig
2165 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2167 modnet50_config : unconfig
2168 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2170 evb4510_config : unconfig
2171 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2173 lpc2292sodimm_config: unconfig
2174 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2176 SMN42_config : unconfig
2177 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2179 #########################################################################
2181 #########################################################################
2183 adsvix_config : unconfig
2184 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2186 cerf250_config : unconfig
2187 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2189 cradle_config : unconfig
2190 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2192 csb226_config : unconfig
2193 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2196 @$(MKCONFIG) $(@:_config=) arm pxa delta
2198 innokom_config : unconfig
2199 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2201 ixdp425_config : unconfig
2202 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2204 ixdpg425_config : unconfig
2205 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2207 lubbock_config : unconfig
2208 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2210 pleb2_config : unconfig
2211 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2213 logodl_config : unconfig
2214 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2217 scpu_config: unconfig
2218 @mkdir -p $(obj)include
2219 @if [ "$(findstring scpu_,$@)" ] ; then \
2220 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2221 echo "... on SCPU board variant" ; \
2223 >$(obj)include/config.h ; \
2225 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2227 pxa255_idp_config: unconfig
2228 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2230 wepep250_config : unconfig
2231 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2233 xaeniax_config : unconfig
2234 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2236 xm250_config : unconfig
2237 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2239 xsengine_config : unconfig
2240 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2243 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2245 #########################################################################
2247 #########################################################################
2248 omap2420h4_config : unconfig
2249 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2251 #========================================================================
2253 #========================================================================
2254 #########################################################################
2256 #########################################################################
2257 sc520_cdp_config : unconfig
2258 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2260 sc520_spunk_config : unconfig
2261 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2263 sc520_spunk_rel_config : unconfig
2264 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2266 #========================================================================
2268 #========================================================================
2269 #########################################################################
2271 #########################################################################
2273 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2275 incaip_100MHz_config \
2276 incaip_133MHz_config \
2277 incaip_150MHz_config \
2278 incaip_config: unconfig
2279 @mkdir -p $(obj)include
2280 @ >$(obj)include/config.h
2281 @[ -z "$(findstring _100MHz,$@)" ] || \
2282 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2283 echo "... with 100MHz system clock" ; \
2285 @[ -z "$(findstring _133MHz,$@)" ] || \
2286 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2287 echo "... with 133MHz system clock" ; \
2289 @[ -z "$(findstring _150MHz,$@)" ] || \
2290 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2291 echo "... with 150MHz system clock" ; \
2293 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2295 tb0229_config: unconfig
2296 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2298 #########################################################################
2300 #########################################################################
2301 dbau1000_config : unconfig
2302 @mkdir -p $(obj)include
2303 @ >$(obj)include/config.h
2304 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2305 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2307 dbau1100_config : unconfig
2308 @mkdir -p $(obj)include
2309 @ >$(obj)include/config.h
2310 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2311 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2313 dbau1500_config : unconfig
2314 @mkdir -p $(obj)include
2315 @ >$(obj)include/config.h
2316 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2317 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2319 dbau1550_config : unconfig
2320 @mkdir -p $(obj)include
2321 @ >$(obj)include/config.h
2322 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2323 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2325 dbau1550_el_config : unconfig
2326 @mkdir -p $(obj)include
2327 @ >$(obj)include/config.h
2328 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2329 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2331 pb1000_config : unconfig
2332 @mkdir -p $(obj)include
2333 @ >$(obj)include/config.h
2334 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2335 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2337 #########################################################################
2339 #########################################################################
2341 purple_config : unconfig
2342 @$(MKCONFIG) $(@:_config=) mips mips purple
2344 #========================================================================
2346 #========================================================================
2347 #########################################################################
2349 #########################################################################
2351 DK1C20_safe_32_config \
2352 DK1C20_standard_32_config \
2353 DK1C20_config: unconfig
2354 @mkdir -p $(obj)include
2355 @ >$(obj)include/config.h
2356 @[ -z "$(findstring _safe_32,$@)" ] || \
2357 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2358 echo "... NIOS 'safe_32' configuration" ; \
2360 @[ -z "$(findstring _standard_32,$@)" ] || \
2361 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2362 echo "... NIOS 'standard_32' configuration" ; \
2364 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2365 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2366 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2368 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2370 DK1S10_safe_32_config \
2371 DK1S10_standard_32_config \
2372 DK1S10_mtx_ldk_20_config \
2373 DK1S10_config: unconfig
2374 @mkdir -p $(obj)include
2375 @ >$(obj)include/config.h
2376 @[ -z "$(findstring _safe_32,$@)" ] || \
2377 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2378 echo "... NIOS 'safe_32' configuration" ; \
2380 @[ -z "$(findstring _standard_32,$@)" ] || \
2381 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2382 echo "... NIOS 'standard_32' configuration" ; \
2384 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2385 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2386 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2388 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2389 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2390 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2392 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2394 ADNPESC1_DNPEVA2_base_32_config \
2395 ADNPESC1_base_32_config \
2396 ADNPESC1_config: unconfig
2397 @mkdir -p $(obj)include
2398 @ >$(obj)include/config.h
2399 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2400 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2401 echo "... DNP/EVA2 configuration" ; \
2403 @[ -z "$(findstring _base_32,$@)" ] || \
2404 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2405 echo "... NIOS 'base_32' configuration" ; \
2407 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2408 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2409 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2411 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2413 #########################################################################
2415 #########################################################################
2417 EP1C20_config : unconfig
2418 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2420 EP1S10_config : unconfig
2421 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2423 EP1S40_config : unconfig
2424 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2426 PK1C20_config : unconfig
2427 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2429 PCI5441_config : unconfig
2430 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2432 #========================================================================
2434 #========================================================================
2435 #########################################################################
2437 #########################################################################
2438 suzaku_config: unconfig
2439 @mkdir -p $(obj)include
2440 @ >$(obj)include/config.h
2441 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2442 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2444 ml401_config: unconfig
2445 @mkdir -p $(obj)include
2446 @ >$(obj)include/config.h
2447 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2448 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2450 xupv2p_config: unconfig
2451 @mkdir -p $(obj)include
2452 @ >$(obj)include/config.h
2453 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2454 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2456 #########################################################################
2458 #########################################################################
2459 bf533-ezkit_config: unconfig
2460 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2462 bf533-stamp_config: unconfig
2463 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2465 bf537-stamp_config: unconfig
2466 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2468 bf561-ezkit_config: unconfig
2469 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2471 #========================================================================
2473 #========================================================================
2474 #########################################################################
2476 #########################################################################
2478 atstk1002_config : unconfig
2479 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2481 #########################################################################
2482 #########################################################################
2483 #########################################################################
2486 find $(OBJTREE) -type f \
2487 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2488 -o -name '*.o' -o -name '*.a' \) -print \
2490 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2491 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2492 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2493 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2494 $(obj)examples/test_burst
2495 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2496 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2497 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2498 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2499 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2500 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2501 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2502 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2503 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2504 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2505 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2506 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2507 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2508 rm -f $(obj)include/bmp_logo.h
2509 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2512 find $(OBJTREE) -type f \( -name .depend \
2513 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2516 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2518 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2519 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2520 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2521 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2522 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2524 ifeq ($(OBJTREE),$(SRCTREE))
2526 distclean: clobber unconfig
2529 distclean: clobber unconfig
2534 F=`basename $(TOPDIR)` ; cd .. ; \
2535 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2537 #########################################################################