2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
39 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
40 sed -e 's/\(cygwin\).*/cygwin/')
42 export HOSTARCH HOSTOS
44 # Deal with colliding definitions from tcsh etc.
47 #########################################################################
49 # U-boot build supports producing a object files to the separate external
50 # directory. Two use cases are supported:
52 # 1) Add O= to the make command line
53 # 'make O=/tmp/build all'
55 # 2) Set environement variable BUILD_DIR to point to the desired location
56 # 'export BUILD_DIR=/tmp/build'
59 # The second approach can also be used with a MAKEALL script
60 # 'export BUILD_DIR=/tmp/build'
63 # Command line 'O=' setting overrides BUILD_DIR environent variable.
65 # When none of the above methods is used the local build is performed and
66 # the object files are placed in the source directory.
70 ifeq ("$(origin O)", "command line")
76 saved-output := $(BUILD_DIR)
78 # Attempt to create a output directory.
79 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
81 # Verify if it was successful.
82 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
83 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
84 endif # ifneq ($(BUILD_DIR),)
86 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
90 export TOPDIR SRCTREE OBJTREE
92 MKCONFIG := $(SRCTREE)/mkconfig
95 ifneq ($(OBJTREE),$(SRCTREE))
100 # $(obj) and (src) are defined in config.mk but here in main Makefile
101 # we also need them before config.mk is included which is the case for
102 # some targets like unconfig, clean, clobber, distclean, etc.
103 ifneq ($(OBJTREE),$(SRCTREE))
112 #########################################################################
114 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
116 # load ARCH, BOARD, and CPU configuration
117 include $(OBJTREE)/include/config.mk
118 export ARCH CPU BOARD VENDOR SOC
121 ifeq ($(HOSTARCH),ppc)
125 CROSS_COMPILE = powerpc-linux-
128 CROSS_COMPILE = arm-linux-
131 ifeq ($(HOSTARCH),i386)
134 CROSS_COMPILE = i386-linux-
138 CROSS_COMPILE = mips_4KC-
141 CROSS_COMPILE = nios-elf-
144 CROSS_COMPILE = nios2-elf-
147 CROSS_COMPILE = m68k-elf-
149 ifeq ($(ARCH),microblaze)
152 ifeq ($(ARCH),blackfin)
153 CROSS_COMPILE = bfin-elf-
156 CROSS_COMPILE = avr32-
163 # load other configuration
164 include $(TOPDIR)/config.mk
166 #########################################################################
167 # U-Boot objects....order is important (i.e. start must be first)
169 OBJS = cpu/$(CPU)/start.o
171 OBJS += cpu/$(CPU)/start16.o
172 OBJS += cpu/$(CPU)/reset.o
175 OBJS += cpu/$(CPU)/resetvec.o
177 ifeq ($(CPU),mpc85xx)
178 OBJS += cpu/$(CPU)/resetvec.o
180 ifeq ($(CPU),mpc86xx)
181 OBJS += cpu/$(CPU)/resetvec.o
184 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
185 OBJS += cpu/$(CPU)/cplbhdlr.o cpu/$(CPU)/cplbmgr.o cpu/$(CPU)/flush.o
188 OBJS := $(addprefix $(obj),$(OBJS))
190 LIBS = lib_generic/libgeneric.a
191 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
192 LIBS += cpu/$(CPU)/lib$(CPU).a
194 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
196 LIBS += lib_$(ARCH)/lib$(ARCH).a
197 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
198 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
200 LIBS += disk/libdisk.a
203 LIBS += drivers/libdrivers.a
204 LIBS += drivers/nand/libnand.a
205 LIBS += drivers/nand_legacy/libnand_legacy.a
206 ifeq ($(CPU),mpc83xx)
207 LIBS += drivers/qe/qe.a
209 LIBS += drivers/sk98lin/libsk98lin.a
210 LIBS += post/libpost.a post/cpu/libcpu.a
211 LIBS += common/libcommon.a
214 LIBS := $(addprefix $(obj),$(LIBS))
218 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
220 # The "tools" are needed early, so put this first
221 # Don't include stuff already done in $(LIBS)
228 ifeq ($(CONFIG_NAND_U_BOOT),y)
230 U_BOOT_NAND = $(obj)u-boot-nand.bin
233 __OBJS := $(subst $(obj),,$(OBJS))
234 __LIBS := $(subst $(obj),,$(LIBS))
236 #########################################################################
237 #########################################################################
239 ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
243 $(obj)u-boot.hex: $(obj)u-boot
244 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
246 $(obj)u-boot.srec: $(obj)u-boot
247 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
249 $(obj)u-boot.bin: $(obj)u-boot
250 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
252 $(obj)u-boot.img: $(obj)u-boot.bin
253 ./tools/mkimage -A $(ARCH) -T firmware -C none \
254 -a $(TEXT_BASE) -e 0 \
255 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
256 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
259 $(obj)u-boot.dis: $(obj)u-boot
260 $(OBJDUMP) -d $< > $@
262 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
263 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
264 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
265 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
266 -Map u-boot.map -o u-boot
269 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
272 $(MAKE) -C $(dir $(subst $(obj),,$@))
278 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
280 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
281 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
284 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
285 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
286 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
287 $(TOPDIR)) >> $(VERSION_FILE); \
288 echo "\"" >> $(VERSION_FILE)
291 $(MAKE) -C tools/gdb all || exit 1
294 $(MAKE) -C tools/updater all || exit 1
297 $(MAKE) -C tools/env all || exit 1
300 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
303 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
304 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
305 fs/cramfs fs/fat fs/fdos fs/jffs2 \
306 net disk rtc dtt drivers drivers/sk98lin common \
307 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
310 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
311 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
312 fs/cramfs fs/fat fs/fdos fs/jffs2 \
313 net disk rtc dtt drivers drivers/sk98lin common \
314 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
316 $(obj)System.map: $(obj)u-boot
318 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
319 sort > $(obj)System.map
321 #########################################################################
323 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
324 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
325 $(SUBDIRS) version gdbtools updater env depend \
326 dep tags ctags etags $(obj)System.map:
327 @echo "System not configured - see README" >&2
333 git log --no-merges U-Boot-1_1_5.. | \
334 unexpand -a | sed -e 's/\s\s*$$//' > $@
336 #########################################################################
339 @rm -f $(obj)include/config.h $(obj)include/config.mk \
340 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
342 #========================================================================
344 #========================================================================
346 #########################################################################
348 #########################################################################
350 canmb_config: unconfig
351 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
353 cmi_mpc5xx_config: unconfig
354 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
356 PATI_config: unconfig
357 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
359 #########################################################################
361 #########################################################################
364 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
366 BC3450_config: unconfig
367 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
369 cpci5200_config: unconfig
370 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
372 hmi1001_config: unconfig
373 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
376 Lite5200_LOWBOOT_config \
377 Lite5200_LOWBOOT08_config \
378 icecube_5200_config \
379 icecube_5200_LOWBOOT_config \
380 icecube_5200_LOWBOOT08_config \
381 icecube_5200_DDR_config \
382 icecube_5200_DDR_LOWBOOT_config \
383 icecube_5200_DDR_LOWBOOT08_config \
384 icecube_5100_config: unconfig
385 @mkdir -p $(obj)include
386 @mkdir -p $(obj)board/icecube
387 @ >$(obj)include/config.h
388 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
389 { if [ "$(findstring DDR,$@)" ] ; \
390 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
391 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
393 echo "... with LOWBOOT configuration" ; \
395 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
396 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
397 echo "... with 8 MB flash only" ; \
398 echo "... with LOWBOOT configuration" ; \
400 @[ -z "$(findstring DDR,$@)" ] || \
401 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
402 echo "... DDR memory revision" ; \
404 @[ -z "$(findstring 5200,$@)" ] || \
405 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
406 echo "... with MPC5200 processor" ; \
408 @[ -z "$(findstring 5100,$@)" ] || \
409 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
410 echo "... with MGT5100 processor" ; \
412 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
414 v38b_config: unconfig
415 @./mkconfig -a v38b ppc mpc5xxx v38b
417 inka4x0_config: unconfig
418 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
421 lite5200b_LOWBOOT_config: unconfig
422 @mkdir -p $(obj)include
423 @mkdir -p $(obj)board/icecube
424 @ >$(obj)include/config.h
425 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
426 @ echo "... DDR memory revision"
427 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
428 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
429 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
430 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
431 echo "... with LOWBOOT configuration" ; \
433 @ echo "... with MPC5200B processor"
434 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
437 mcc200_SDRAM_config \
438 mcc200_highboot_config \
439 mcc200_COM12_config \
440 mcc200_COM12_SDRAM_config \
441 mcc200_COM12_highboot_config \
442 mcc200_COM12_highboot_SDRAM_config \
443 mcc200_highboot_SDRAM_config \
446 prs200_highboot_config \
447 prs200_highboot_DDR_config: unconfig
448 @mkdir -p $(obj)include
449 @mkdir -p $(obj)board/mcc200
450 @ >$(obj)include/config.h
451 @[ -n "$(findstring highboot,$@)" ] || \
452 { echo "... with lowboot configuration" ; \
454 @[ -z "$(findstring highboot,$@)" ] || \
455 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
456 echo "... with highboot configuration" ; \
458 @[ -n "$(findstring _SDRAM,$@)" ] || \
459 { if [ -n "$(findstring mcc200,$@)" ]; \
461 echo "... with DDR" ; \
463 if [ -n "$(findstring _DDR,$@)" ];\
465 echo "... with DDR" ; \
467 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
468 echo "... with SDRAM" ; \
472 @[ -z "$(findstring _SDRAM,$@)" ] || \
473 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
474 echo "... with SDRAM" ; \
476 @[ -z "$(findstring COM12,$@)" ] || \
477 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
478 echo "... with console on COM12" ; \
480 @[ -z "$(findstring prs200,$@)" ] || \
481 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
483 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
486 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
488 pf5200_config: unconfig
489 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
493 PM520_ROMBOOT_config \
494 PM520_ROMBOOT_DDR_config: unconfig
495 @mkdir -p $(obj)include
496 @ >$(obj)include/config.h
497 @[ -z "$(findstring DDR,$@)" ] || \
498 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
499 echo "... DDR memory revision" ; \
501 @[ -z "$(findstring ROMBOOT,$@)" ] || \
502 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
503 echo "... booting from 8-bit flash" ; \
505 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
507 smmaco4_config: unconfig
508 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
510 spieval_config: unconfig
511 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
514 TB5200_config: unconfig
515 @mkdir -p $(obj)include
516 @[ -z "$(findstring _B,$@)" ] || \
517 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
518 echo "... with MPC5200B processor" ; \
520 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
524 TOP5200_config: unconfig
525 @mkdir -p $(obj)include
526 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
527 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
531 Total5200_lowboot_config \
532 Total5200_Rev2_config \
533 Total5200_Rev2_lowboot_config: unconfig
534 @mkdir -p $(obj)include
535 @mkdir -p $(obj)board/total5200
536 @ >$(obj)include/config.h
537 @[ -z "$(findstring 5100,$@)" ] || \
538 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
539 echo "... with MGT5100 processor" ; \
541 @[ -z "$(findstring 5200,$@)" ] || \
542 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
543 echo "... with MPC5200 processor" ; \
545 @[ -n "$(findstring Rev,$@)" ] || \
546 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
547 echo "... revision 1 board" ; \
549 @[ -z "$(findstring Rev2_,$@)" ] || \
550 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
551 echo "... revision 2 board" ; \
553 @[ -z "$(findstring lowboot_,$@)" ] || \
554 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
555 echo "... with lowboot configuration" ; \
557 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
563 TQM5200S_HIGHBOOT_config \
565 TQM5200_B_HIGHBOOT_config \
567 TQM5200_STK100_config: unconfig
568 @mkdir -p $(obj)include
569 @mkdir -p $(obj)board/tqm5200
570 @ >$(obj)include/config.h
571 @[ -z "$(findstring cam5200,$@)" ] || \
572 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
573 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
574 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
575 echo "... TQM5200S on Cam5200" ; \
577 @[ -z "$(findstring fo300,$@)" ] || \
578 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
579 echo "... TQM5200 on FO300" ; \
581 @[ -z "$(findstring MiniFAP,$@)" ] || \
582 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
583 echo "... TQM5200_AC on MiniFAP" ; \
585 @[ -z "$(findstring STK100,$@)" ] || \
586 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
587 echo "... on a STK52XX.100 base board" ; \
589 @[ -z "$(findstring TQM5200_B,$@)" ] || \
590 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
592 @[ -z "$(findstring TQM5200S,$@)" ] || \
593 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
594 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
596 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
597 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
599 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
601 #########################################################################
603 #########################################################################
609 @mkdir -p $(obj)include
610 $(if $(findstring AdderII,$@), \
611 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
612 @$(MKCONFIG) -a Adder ppc mpc8xx adder
619 FADS860T_config: unconfig
620 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
622 AMX860_config : unconfig
623 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
625 c2mon_config: unconfig
626 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
629 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
631 cogent_mpc8xx_config: unconfig
632 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
634 ELPT860_config: unconfig
635 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
637 EP88x_config: unconfig
638 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
640 ESTEEM192E_config: unconfig
641 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
643 ETX094_config : unconfig
644 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
646 FLAGADM_config: unconfig
647 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
649 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
652 GEN860T_config: unconfig
653 @mkdir -p $(obj)include
654 @ >$(obj)include/config.h
655 @[ -z "$(findstring _SC,$@)" ] || \
656 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
657 echo "With reduced H/W feature set (SC)..." ; \
659 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
661 GENIETV_config: unconfig
662 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
665 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
667 hermes_config : unconfig
668 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
670 HMI10_config : unconfig
671 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
673 IAD210_config: unconfig
674 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
676 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
678 ICU862_100MHz_config \
679 ICU862_config: unconfig
680 @mkdir -p $(obj)include
681 @ >$(obj)include/config.h
682 @[ -z "$(findstring _100MHz,$@)" ] || \
683 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
684 echo "... with 100MHz system clock" ; \
686 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
688 IP860_config : unconfig
689 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
693 IVML24_config: unconfig
694 @mkdir -p $(obj)include
695 @ >$(obj)include/config.h
696 @[ -z "$(findstring IVML24_config,$@)" ] || \
697 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
699 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
700 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
702 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
703 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
705 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
709 IVMS8_config: unconfig
710 @mkdir -p $(obj)include
711 @ >$(obj)include/config.h
712 @[ -z "$(findstring IVMS8_config,$@)" ] || \
713 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
715 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
716 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
718 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
719 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
721 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
723 KUP4K_config : unconfig
724 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
726 KUP4X_config : unconfig
727 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
729 LANTEC_config : unconfig
730 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
732 lwmon_config: unconfig
733 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
736 MBX860T_config: unconfig
737 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
739 MHPC_config: unconfig
740 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
742 MVS1_config : unconfig
743 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
745 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
748 NETVIA_config: unconfig
749 @mkdir -p $(obj)include
750 @ >$(obj)include/config.h
751 @[ -z "$(findstring NETVIA_config,$@)" ] || \
752 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
753 echo "... Version 1" ; \
755 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
756 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
757 echo "... Version 2" ; \
759 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
761 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
764 NETPHONE_config: unconfig
765 @mkdir -p $(obj)include
766 @ >$(obj)include/config.h
767 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
768 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
770 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
771 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
773 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
775 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
777 NETTA_ISDN_6412_SWAPHOOK_config \
778 NETTA_ISDN_SWAPHOOK_config \
779 NETTA_6412_SWAPHOOK_config \
780 NETTA_SWAPHOOK_config \
781 NETTA_ISDN_6412_config \
784 NETTA_config: unconfig
785 @mkdir -p $(obj)include
786 @ >$(obj)include/config.h
787 @[ -z "$(findstring ISDN_,$@)" ] || \
788 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
790 @[ -n "$(findstring ISDN_,$@)" ] || \
791 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
793 @[ -z "$(findstring 6412_,$@)" ] || \
794 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
796 @[ -n "$(findstring 6412_,$@)" ] || \
797 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
799 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
800 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
802 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
803 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
805 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
807 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
810 NETTA2_config: unconfig
811 @mkdir -p $(obj)include
812 @ >$(obj)include/config.h
813 @[ -z "$(findstring NETTA2_config,$@)" ] || \
814 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
816 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
817 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
819 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
823 CP850_config: unconfig
824 @mkdir -p $(obj)include
825 @ >$(obj)include/config.h
826 @[ -z "$(findstring CP850,$@)" ] || \
827 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
828 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
830 @[ -z "$(findstring Rev1,$@)" ] || \
831 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
833 @[ -z "$(findstring Rev2,$@)" ] || \
834 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
836 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
838 NX823_config: unconfig
839 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
841 pcu_e_config: unconfig
842 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
844 QS850_config: unconfig
845 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
847 QS823_config: unconfig
848 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
850 QS860T_config: unconfig
851 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
853 quantum_config: unconfig
854 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
856 R360MPI_config: unconfig
857 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
859 RBC823_config: unconfig
860 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
862 RPXClassic_config: unconfig
863 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
865 RPXlite_config: unconfig
866 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
868 RPXlite_DW_64_config \
869 RPXlite_DW_LCD_config \
870 RPXlite_DW_64_LCD_config \
871 RPXlite_DW_NVRAM_config \
872 RPXlite_DW_NVRAM_64_config \
873 RPXlite_DW_NVRAM_LCD_config \
874 RPXlite_DW_NVRAM_64_LCD_config \
875 RPXlite_DW_config: unconfig
876 @mkdir -p $(obj)include
877 @ >$(obj)include/config.h
878 @[ -z "$(findstring _64,$@)" ] || \
879 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
880 echo "... with 64MHz system clock ..."; \
882 @[ -z "$(findstring _LCD,$@)" ] || \
883 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
884 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
885 echo "... with LCD display ..."; \
887 @[ -z "$(findstring _NVRAM,$@)" ] || \
888 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
889 echo "... with ENV in NVRAM ..."; \
891 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
894 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
896 RRvision_config: unconfig
897 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
899 RRvision_LCD_config: unconfig
900 @mkdir -p $(obj)include
901 @echo "#define CONFIG_LCD" >$(obj)include/config.h
902 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
903 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
905 SM850_config : unconfig
906 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
909 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
911 SPD823TS_config: unconfig
912 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
914 stxxtc_config: unconfig
915 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
917 svm_sc8xx_config: unconfig
918 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
920 SXNI855T_config: unconfig
921 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
923 # EMK MPC8xx based modules
924 TOP860_config: unconfig
925 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
927 # Play some tricks for configuration selection
928 # Only 855 and 860 boards may come with FEC
929 # and only 823 boards may have LCD support
930 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
948 virtlab2_config: unconfig
949 @mkdir -p $(obj)include
950 @ >$(obj)include/config.h
951 @[ -z "$(findstring _LCD,$@)" ] || \
952 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
953 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
954 echo "... with LCD display" ; \
956 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
958 TTTech_config: unconfig
959 @mkdir -p $(obj)include
960 @echo "#define CONFIG_LCD" >$(obj)include/config.h
961 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
962 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
964 uc100_config : unconfig
965 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
968 @mkdir -p $(obj)include
969 @echo "#define CONFIG_LCD" >$(obj)include/config.h
970 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
971 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
974 @mkdir -p $(obj)include
975 @echo "#define CONFIG_LCD" >$(obj)include/config.h
976 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
977 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
979 #########################################################################
981 #########################################################################
982 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
984 ADCIOP_config: unconfig
985 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
987 alpr_config: unconfig
988 @./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
990 AP1000_config:unconfig
991 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
993 APC405_config: unconfig
994 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
996 AR405_config: unconfig
997 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
999 ASH405_config: unconfig
1000 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1002 bamboo_config: unconfig
1003 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1005 bubinga_config: unconfig
1006 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1008 CANBT_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1012 CATcenter_25_config \
1013 CATcenter_33_config: unconfig
1014 @mkdir -p $(obj)include
1015 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1016 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1017 @[ -z "$(findstring _25,$@)" ] || \
1018 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1019 echo "SysClk = 25MHz" ; \
1021 @[ -z "$(findstring _33,$@)" ] || \
1022 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1023 echo "SysClk = 33MHz" ; \
1025 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1027 CPCI2DP_config: unconfig
1028 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1033 CPCI405AB_config: unconfig
1034 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1035 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1037 CPCI440_config: unconfig
1038 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1040 CPCIISER4_config: unconfig
1041 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1043 CRAYL1_config: unconfig
1044 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1046 csb272_config: unconfig
1047 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1049 csb472_config: unconfig
1050 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1052 DASA_SIM_config: unconfig
1053 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1055 DP405_config: unconfig
1056 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1058 DU405_config: unconfig
1059 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1061 ebony_config: unconfig
1062 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1064 ERIC_config: unconfig
1065 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1067 EXBITGEN_config: unconfig
1068 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1070 G2000_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1073 HH405_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1076 HUB405_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1079 JSE_config: unconfig
1080 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1082 KAREF_config: unconfig
1083 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1085 luan_config: unconfig
1086 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1088 METROBOX_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1091 MIP405_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1094 MIP405T_config: unconfig
1095 @mkdir -p $(obj)include
1096 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1097 @echo "Enable subset config for MIP405T"
1098 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1100 ML2_config: unconfig
1101 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1103 ml300_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1106 ocotea_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1110 ORSG_config: unconfig
1111 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1113 p3p440_config: unconfig
1114 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1116 PCI405_config: unconfig
1117 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1119 pcs440ep_config: unconfig
1120 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1122 PIP405_config: unconfig
1123 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1125 PLU405_config: unconfig
1126 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1128 PMC405_config: unconfig
1129 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1131 PPChameleonEVB_config \
1132 PPChameleonEVB_BA_25_config \
1133 PPChameleonEVB_ME_25_config \
1134 PPChameleonEVB_HI_25_config \
1135 PPChameleonEVB_BA_33_config \
1136 PPChameleonEVB_ME_33_config \
1137 PPChameleonEVB_HI_33_config: unconfig
1138 @mkdir -p $(obj)include
1139 @ >$(obj)include/config.h
1140 @[ -z "$(findstring EVB_BA,$@)" ] || \
1141 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1142 echo "... BASIC model" ; \
1144 @[ -z "$(findstring EVB_ME,$@)" ] || \
1145 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1146 echo "... MEDIUM model" ; \
1148 @[ -z "$(findstring EVB_HI,$@)" ] || \
1149 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1150 echo "... HIGH-END model" ; \
1152 @[ -z "$(findstring _25,$@)" ] || \
1153 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1154 echo "SysClk = 25MHz" ; \
1156 @[ -z "$(findstring _33,$@)" ] || \
1157 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1158 echo "SysClk = 33MHz" ; \
1160 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1162 rainier_config: unconfig
1163 @mkdir -p $(obj)include
1164 @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1165 @echo "Configuring for rainier board as subset of sequoia..."
1166 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1168 rainier_nand_config: unconfig
1169 @mkdir -p $(obj)include
1170 @mkdir -p $(obj)nand_spl
1171 @mkdir -p $(obj)board/amcc/sequoia
1172 @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1173 @echo "Configuring for rainier board as subset of sequoia..."
1174 @echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h
1175 @echo "Compile NAND boot image for sequoia"
1176 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1177 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1178 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1180 sbc405_config: unconfig
1181 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1183 sequoia_config: unconfig
1184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sequoia amcc
1186 sequoia_nand_config: unconfig
1187 @mkdir -p $(obj)include
1188 @mkdir -p $(obj)nand_spl
1189 @mkdir -p $(obj)board/amcc/sequoia
1190 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1191 @echo "Compile NAND boot image for sequoia"
1192 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1193 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1194 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1196 sycamore_config: unconfig
1197 @echo "Configuring for sycamore board as subset of walnut..."
1198 @$(MKCONFIG) -a walnut ppc ppc4xx walnut amcc
1200 VOH405_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1203 VOM405_config: unconfig
1204 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1206 CMS700_config: unconfig
1207 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1210 W7OLMG_config: unconfig
1211 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1213 walnut_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx walnut amcc
1216 WUH405_config: unconfig
1217 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1219 XPEDITE1K_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1222 yosemite_config: unconfig
1223 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yosemite amcc
1225 yellowstone_config: unconfig
1226 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yellowstone amcc
1228 yucca_config: unconfig
1229 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1231 #########################################################################
1233 #########################################################################
1236 Yukon8220_config: unconfig
1237 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1239 sorcery_config: unconfig
1240 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1242 #########################################################################
1244 #########################################################################
1245 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1247 A3000_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1250 barco_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1253 BMW_config: unconfig
1254 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1257 CPC45_ROMBOOT_config: unconfig
1258 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1259 @cd $(obj)include ; \
1260 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1261 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1262 echo "... booting from 8-bit flash" ; \
1264 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1265 echo "... booting from 64-bit flash" ; \
1267 echo "export CONFIG_BOOT_ROM" >> config.mk;
1269 CU824_config: unconfig
1270 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1272 debris_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1275 eXalion_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1278 HIDDEN_DRAGON_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1281 kvme080_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1284 MOUSSE_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1287 MUSENKI_config: unconfig
1288 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1290 MVBLUE_config: unconfig
1291 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1293 OXC_config: unconfig
1294 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1296 PN62_config: unconfig
1297 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1299 Sandpoint8240_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1302 Sandpoint8245_config: unconfig
1303 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1305 sbc8240_config: unconfig
1306 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1308 SL8245_config: unconfig
1309 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1311 utx8245_config: unconfig
1312 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1314 #########################################################################
1316 #########################################################################
1318 atc_config: unconfig
1319 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1321 cogent_mpc8260_config: unconfig
1322 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1325 CPU86_ROMBOOT_config: unconfig
1326 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1327 @cd $(obj)include ; \
1328 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1329 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1330 echo "... booting from 8-bit flash" ; \
1332 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1333 echo "... booting from 64-bit flash" ; \
1335 echo "export CONFIG_BOOT_ROM" >> config.mk;
1338 CPU87_ROMBOOT_config: unconfig
1339 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1340 @cd $(obj)include ; \
1341 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1342 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1343 echo "... booting from 8-bit flash" ; \
1345 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1346 echo "... booting from 64-bit flash" ; \
1348 echo "export CONFIG_BOOT_ROM" >> config.mk;
1351 ep8248E_config : unconfig
1352 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1354 ep8260_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1357 ep82xxm_config: unconfig
1358 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1360 gw8260_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1363 hymod_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1366 IDS8247_config: unconfig
1367 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1369 IPHASE4539_config: unconfig
1370 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1373 ISPAN_REVB_config: unconfig
1374 @mkdir -p $(obj)include
1375 @if [ "$(findstring _REVB_,$@)" ] ; then \
1376 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1378 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1381 MPC8260ADS_lowboot_config \
1382 MPC8260ADS_33MHz_config \
1383 MPC8260ADS_33MHz_lowboot_config \
1384 MPC8260ADS_40MHz_config \
1385 MPC8260ADS_40MHz_lowboot_config \
1387 MPC8272ADS_lowboot_config \
1389 PQ2FADS_lowboot_config \
1391 PQ2FADS-VR_lowboot_config \
1393 PQ2FADS-ZU_lowboot_config \
1394 PQ2FADS-ZU_66MHz_config \
1395 PQ2FADS-ZU_66MHz_lowboot_config \
1397 @mkdir -p $(obj)include
1398 @mkdir -p $(obj)board/mpc8260ads
1399 $(if $(findstring PQ2FADS,$@), \
1400 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1401 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1402 $(if $(findstring MHz,$@), \
1403 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1404 $(if $(findstring VR,$@), \
1405 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1406 @[ -z "$(findstring lowboot_,$@)" ] || \
1407 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1408 echo "... with lowboot configuration" ; \
1410 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1412 MPC8266ADS_config: unconfig
1413 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1415 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1417 PM825_ROMBOOT_config \
1418 PM825_BIGFLASH_config \
1419 PM825_ROMBOOT_BIGFLASH_config \
1421 PM826_ROMBOOT_config \
1422 PM826_BIGFLASH_config \
1423 PM826_ROMBOOT_BIGFLASH_config: unconfig
1424 @mkdir -p $(obj)include
1425 @mkdir -p $(obj)board/pm826
1426 @if [ "$(findstring PM825_,$@)" ] ; then \
1427 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1429 >$(obj)include/config.h ; \
1431 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1432 echo "... booting from 8-bit flash" ; \
1433 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1434 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1435 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1436 echo "... with 32 MB Flash" ; \
1437 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1440 echo "... booting from 64-bit flash" ; \
1441 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1442 echo "... with 32 MB Flash" ; \
1443 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1444 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1446 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1449 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1453 PM828_ROMBOOT_config \
1454 PM828_ROMBOOT_PCI_config: unconfig
1455 @mkdir -p $(obj)include
1456 @mkdir -p $(obj)board/pm826
1457 @if [ "$(findstring _PCI_,$@)" ] ; then \
1458 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1459 echo "... with PCI enabled" ; \
1461 >$(obj)include/config.h ; \
1463 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1464 echo "... booting from 8-bit flash" ; \
1465 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1466 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1468 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1470 ppmc8260_config: unconfig
1471 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1473 Rattler8248_config \
1474 Rattler_config: unconfig
1475 @mkdir -p $(obj)include
1476 $(if $(findstring 8248,$@), \
1477 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1478 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1480 RPXsuper_config: unconfig
1481 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1483 rsdproto_config: unconfig
1484 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1486 sacsng_config: unconfig
1487 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1489 sbc8260_config: unconfig
1490 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1492 SCM_config: unconfig
1493 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1505 TQM8265_AA_config: unconfig
1506 @mkdir -p $(obj)include
1508 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1509 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1510 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1511 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1512 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1513 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1514 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1515 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1516 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1517 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1518 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1520 >$(obj)include/config.h ; \
1521 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1522 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1524 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1525 echo "... with $${CFREQ}MHz system clock" ; \
1526 if [ "$${CACHE}" == "yes" ] ; then \
1527 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1528 echo "... with L2 Cache support" ; \
1530 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1531 echo "... without L2 Cache support" ; \
1533 if [ "$${BMODE}" == "60x" ] ; then \
1534 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1535 echo "... with 60x Bus Mode" ; \
1537 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1538 echo "... without 60x Bus Mode" ; \
1540 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1542 TQM8272_config: unconfig
1543 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1545 VoVPN-GW_66MHz_config \
1546 VoVPN-GW_100MHz_config: unconfig
1547 @mkdir -p $(obj)include
1548 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1549 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1551 ZPC1900_config: unconfig
1552 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1554 #########################################################################
1556 #########################################################################
1558 cobra5272_config : unconfig
1559 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1561 EB+MCF-EV123_config : unconfig
1562 @mkdir -p $(obj)include
1563 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1564 @ >$(obj)include/config.h
1565 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1566 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1568 EB+MCF-EV123_internal_config : unconfig
1569 @mkdir -p $(obj)include
1570 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1571 @ >$(obj)include/config.h
1572 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1573 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1575 idmr_config : unconfig
1576 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1578 M5271EVB_config : unconfig
1579 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1581 M5272C3_config : unconfig
1582 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1584 M5282EVB_config : unconfig
1585 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1587 TASREG_config : unconfig
1588 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1590 r5200_config : unconfig
1591 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1593 #########################################################################
1595 #########################################################################
1597 TQM834x_config: unconfig
1598 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1600 MPC8349EMDS_config: unconfig
1601 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1603 MPC8360EMDS_config \
1604 MPC8360EMDS_HOST_33_config \
1605 MPC8360EMDS_HOST_66_config \
1606 MPC8360EMDS_SLAVE_config: unconfig
1607 @echo "" >include/config.h ; \
1608 if [ "$(findstring _HOST_,$@)" ] ; then \
1609 echo -n "... PCI HOST " ; \
1610 echo "#define CONFIG_PCI" >>include/config.h ; \
1612 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1613 echo "...PCI SLAVE 66M" ; \
1614 echo "#define CONFIG_PCI" >>include/config.h ; \
1615 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1617 if [ "$(findstring _33_,$@)" ] ; then \
1618 echo -n "...33M ..." ; \
1619 echo "#define PCI_33M" >>include/config.h ; \
1621 if [ "$(findstring _66_,$@)" ] ; then \
1622 echo -n "...66M..." ; \
1623 echo "#define PCI_66M" >>include/config.h ; \
1625 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1627 MPC8349ITX_config: unconfig
1628 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349itx
1630 #########################################################################
1632 #########################################################################
1634 MPC8540ADS_config: unconfig
1635 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1637 MPC8540EVAL_config \
1638 MPC8540EVAL_33_config \
1639 MPC8540EVAL_66_config \
1640 MPC8540EVAL_33_slave_config \
1641 MPC8540EVAL_66_slave_config: unconfig
1642 @mkdir -p $(obj)include
1643 @echo "" >$(obj)include/config.h ; \
1644 if [ "$(findstring _33_,$@)" ] ; then \
1645 echo -n "... 33 MHz PCI" ; \
1647 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1648 echo -n "... 66 MHz PCI" ; \
1650 if [ "$(findstring _slave_,$@)" ] ; then \
1651 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1656 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1658 MPC8560ADS_config: unconfig
1659 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1661 MPC8541CDS_config: unconfig
1662 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1664 MPC8548CDS_config: unconfig
1665 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1667 MPC8555CDS_config: unconfig
1668 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1670 PM854_config: unconfig
1671 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1673 PM856_config: unconfig
1674 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1678 sbc8540_66_config: unconfig
1679 @mkdir -p $(obj)include
1680 @if [ "$(findstring _66_,$@)" ] ; then \
1681 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1682 echo "... 66 MHz PCI" ; \
1684 >$(obj)include/config.h ; \
1685 echo "... 33 MHz PCI" ; \
1687 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1691 sbc8560_66_config: unconfig
1692 @mkdir -p $(obj)include
1693 @if [ "$(findstring _66_,$@)" ] ; then \
1694 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1695 echo "... 66 MHz PCI" ; \
1697 >$(obj)include/config.h ; \
1698 echo "... 33 MHz PCI" ; \
1700 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1702 stxgp3_config: unconfig
1703 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1708 TQM8560_config: unconfig
1709 @mkdir -p $(obj)include
1710 @CTYPE=$(subst TQM,,$(@:_config=)); \
1711 >$(obj)include/config.h ; \
1712 echo "... TQM"$${CTYPE}; \
1713 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1714 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1715 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1716 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1717 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1718 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1720 #########################################################################
1722 #########################################################################
1724 MPC8641HPCN_config: unconfig
1725 @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1728 #########################################################################
1730 #########################################################################
1732 AmigaOneG3SE_config: unconfig
1733 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1735 BAB7xx_config: unconfig
1736 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1738 CPCI750_config: unconfig
1739 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1741 DB64360_config: unconfig
1742 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1744 DB64460_config: unconfig
1745 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1747 ELPPC_config: unconfig
1748 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1751 EVB64260_750CX_config: unconfig
1752 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1754 P3G4_config: unconfig
1755 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1758 p3m7448_config: unconfig
1759 @mkdir -p $(obj)include
1760 @if [ "$(findstring 750_,$@)" ] ; then \
1761 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1763 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1765 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1768 PCIPPC6_config: unconfig
1769 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1771 ZUMA_config: unconfig
1772 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1774 ppmc7xx_config: unconfig
1775 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1777 #========================================================================
1779 #========================================================================
1780 #########################################################################
1781 ## StrongARM Systems
1782 #########################################################################
1784 assabet_config : unconfig
1785 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1787 dnp1110_config : unconfig
1788 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1790 gcplus_config : unconfig
1791 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1793 lart_config : unconfig
1794 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1796 shannon_config : unconfig
1797 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1799 #########################################################################
1801 #########################################################################
1803 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1805 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1807 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1809 at91rm9200dk_config : unconfig
1810 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1812 cmc_pu2_config : unconfig
1813 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1815 csb637_config : unconfig
1816 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1818 mp2usb_config : unconfig
1819 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1822 ########################################################################
1823 ## ARM Integrator boards - see doc/README-integrator for more info.
1824 integratorap_config \
1833 ap946es_config: unconfig
1834 @board/integratorap/split_by_variant.sh $@
1836 integratorcp_config \
1845 cp1026_config: unconfig
1846 @board/integratorcp/split_by_variant.sh $@
1848 kb9202_config : unconfig
1849 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1852 lpd7a404_config: unconfig
1853 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1855 mx1ads_config : unconfig
1856 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1858 mx1fs2_config : unconfig
1859 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1862 netstar_config: unconfig
1863 @mkdir -p $(obj)include
1864 @if [ "$(findstring _32_,$@)" ] ; then \
1865 echo "... 32MB SDRAM" ; \
1866 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1868 echo "... 64MB SDRAM" ; \
1869 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1871 @$(MKCONFIG) -a netstar arm arm925t netstar
1873 omap1510inn_config : unconfig
1874 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
1876 omap5912osk_config : unconfig
1877 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1879 omap1610inn_config \
1880 omap1610inn_cs0boot_config \
1881 omap1610inn_cs3boot_config \
1882 omap1610inn_cs_autoboot_config \
1884 omap1610h2_cs0boot_config \
1885 omap1610h2_cs3boot_config \
1886 omap1610h2_cs_autoboot_config: unconfig
1887 @mkdir -p $(obj)include
1888 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1889 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1890 echo "... configured for CS0 boot"; \
1891 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1892 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
1893 echo "... configured for CS_AUTO boot"; \
1895 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1896 echo "... configured for CS3 boot"; \
1898 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
1901 omap730p2_cs0boot_config \
1902 omap730p2_cs3boot_config : unconfig
1903 @mkdir -p $(obj)include
1904 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1905 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
1906 echo "... configured for CS0 boot"; \
1908 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
1909 echo "... configured for CS3 boot"; \
1911 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1913 sbc2410x_config: unconfig
1914 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
1916 scb9328_config : unconfig
1917 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
1919 smdk2400_config : unconfig
1920 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
1922 smdk2410_config : unconfig
1923 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
1925 SX1_config : unconfig
1926 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
1928 # TRAB default configuration: 8 MB Flash, 32 MB RAM
1930 trab_bigram_config \
1931 trab_bigflash_config \
1932 trab_old_config: unconfig
1933 @mkdir -p $(obj)include
1934 @mkdir -p $(obj)board/trab
1935 @ >$(obj)include/config.h
1936 @[ -z "$(findstring _bigram,$@)" ] || \
1937 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1938 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
1939 echo "... with 8 MB Flash, 32 MB RAM" ; \
1941 @[ -z "$(findstring _bigflash,$@)" ] || \
1942 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
1943 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
1944 echo "... with 16 MB Flash, 16 MB RAM" ; \
1945 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
1947 @[ -z "$(findstring _old,$@)" ] || \
1948 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1949 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
1950 echo "... with 8 MB Flash, 16 MB RAM" ; \
1951 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
1953 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
1955 VCMA9_config : unconfig
1956 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
1958 #========================================================================
1959 # ARM supplied Versatile development boards
1960 #========================================================================
1962 versatileab_config \
1963 versatilepb_config : unconfig
1964 @board/versatile/split_by_variant.sh $@
1966 voiceblue_smallflash_config \
1967 voiceblue_config: unconfig
1968 @mkdir -p $(obj)include
1969 @mkdir -p $(obj)board/voiceblue
1970 @if [ "$(findstring _smallflash_,$@)" ] ; then \
1971 echo "... boot from lower flash bank" ; \
1972 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
1973 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
1975 echo "... boot from upper flash bank" ; \
1976 >$(obj)include/config.h ; \
1977 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
1979 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
1981 cm4008_config : unconfig
1982 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
1984 cm41xx_config : unconfig
1985 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
1987 gth2_config : unconfig
1988 @mkdir -p $(obj)include
1989 @ >$(obj)include/config.h
1990 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
1991 @$(MKCONFIG) -a gth2 mips mips gth2
1993 #########################################################################
1995 #########################################################################
1997 B2_config : unconfig
1998 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2000 #########################################################################
2002 #########################################################################
2004 armadillo_config: unconfig
2005 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2007 ep7312_config : unconfig
2008 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2010 impa7_config : unconfig
2011 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2013 modnet50_config : unconfig
2014 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2016 evb4510_config : unconfig
2017 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2019 #########################################################################
2021 #########################################################################
2023 adsvix_config : unconfig
2024 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2026 cerf250_config : unconfig
2027 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2029 cradle_config : unconfig
2030 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2032 csb226_config : unconfig
2033 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2036 @$(MKCONFIG) $(@:_config=) arm pxa delta
2038 innokom_config : unconfig
2039 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2041 ixdp425_config : unconfig
2042 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2044 ixdpg425_config : unconfig
2045 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2047 lubbock_config : unconfig
2048 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2050 pleb2_config : unconfig
2051 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2053 logodl_config : unconfig
2054 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2056 pdnb3_config : unconfig
2057 @$(MKCONFIG) $(@:_config=) arm ixp pdnb3 prodrive
2059 pxa255_idp_config: unconfig
2060 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2062 wepep250_config : unconfig
2063 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2065 xaeniax_config : unconfig
2066 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2068 xm250_config : unconfig
2069 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2071 xsengine_config : unconfig
2072 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2075 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2077 #########################################################################
2079 #########################################################################
2080 omap2420h4_config : unconfig
2081 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2083 #========================================================================
2085 #========================================================================
2086 #########################################################################
2088 #########################################################################
2089 sc520_cdp_config : unconfig
2090 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2092 sc520_spunk_config : unconfig
2093 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2095 sc520_spunk_rel_config : unconfig
2096 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2098 #========================================================================
2100 #========================================================================
2101 #########################################################################
2103 #########################################################################
2105 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2107 incaip_100MHz_config \
2108 incaip_133MHz_config \
2109 incaip_150MHz_config \
2110 incaip_config: unconfig
2111 @mkdir -p $(obj)include
2112 @ >$(obj)include/config.h
2113 @[ -z "$(findstring _100MHz,$@)" ] || \
2114 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2115 echo "... with 100MHz system clock" ; \
2117 @[ -z "$(findstring _133MHz,$@)" ] || \
2118 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2119 echo "... with 133MHz system clock" ; \
2121 @[ -z "$(findstring _150MHz,$@)" ] || \
2122 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2123 echo "... with 150MHz system clock" ; \
2125 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2127 tb0229_config: unconfig
2128 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2130 #########################################################################
2132 #########################################################################
2133 dbau1000_config : unconfig
2134 @mkdir -p $(obj)include
2135 @ >$(obj)include/config.h
2136 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2137 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2139 dbau1100_config : unconfig
2140 @mkdir -p $(obj)include
2141 @ >$(obj)include/config.h
2142 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2143 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2145 dbau1500_config : unconfig
2146 @mkdir -p $(obj)include
2147 @ >$(obj)include/config.h
2148 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2149 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2151 dbau1550_config : unconfig
2152 @mkdir -p $(obj)include
2153 @ >$(obj)include/config.h
2154 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2155 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2157 dbau1550_el_config : unconfig
2158 @mkdir -p $(obj)include
2159 @ >$(obj)include/config.h
2160 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2161 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2163 pb1000_config : unconfig
2164 @mkdir -p $(obj)include
2165 @ >$(obj)include/config.h
2166 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2167 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2169 #########################################################################
2171 #########################################################################
2173 purple_config : unconfig
2174 @$(MKCONFIG) $(@:_config=) mips mips purple
2176 #========================================================================
2178 #========================================================================
2179 #########################################################################
2181 #########################################################################
2183 DK1C20_safe_32_config \
2184 DK1C20_standard_32_config \
2185 DK1C20_config: unconfig
2186 @mkdir -p $(obj)include
2187 @ >$(obj)include/config.h
2188 @[ -z "$(findstring _safe_32,$@)" ] || \
2189 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2190 echo "... NIOS 'safe_32' configuration" ; \
2192 @[ -z "$(findstring _standard_32,$@)" ] || \
2193 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2194 echo "... NIOS 'standard_32' configuration" ; \
2196 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2197 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2198 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2200 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2202 DK1S10_safe_32_config \
2203 DK1S10_standard_32_config \
2204 DK1S10_mtx_ldk_20_config \
2205 DK1S10_config: unconfig
2206 @mkdir -p $(obj)include
2207 @ >$(obj)include/config.h
2208 @[ -z "$(findstring _safe_32,$@)" ] || \
2209 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2210 echo "... NIOS 'safe_32' configuration" ; \
2212 @[ -z "$(findstring _standard_32,$@)" ] || \
2213 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2214 echo "... NIOS 'standard_32' configuration" ; \
2216 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2217 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2218 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2220 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2221 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2222 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2224 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2226 ADNPESC1_DNPEVA2_base_32_config \
2227 ADNPESC1_base_32_config \
2228 ADNPESC1_config: unconfig
2229 @mkdir -p $(obj)include
2230 @ >$(obj)include/config.h
2231 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2232 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2233 echo "... DNP/EVA2 configuration" ; \
2235 @[ -z "$(findstring _base_32,$@)" ] || \
2236 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2237 echo "... NIOS 'base_32' configuration" ; \
2239 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2240 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2241 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2243 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2245 #########################################################################
2247 #########################################################################
2249 EP1C20_config : unconfig
2250 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2252 EP1S10_config : unconfig
2253 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2255 EP1S40_config : unconfig
2256 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2258 PK1C20_config : unconfig
2259 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2261 PCI5441_config : unconfig
2262 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2264 #========================================================================
2266 #========================================================================
2267 #########################################################################
2269 #########################################################################
2270 suzaku_config: unconfig
2271 @mkdir -p $(obj)include
2272 @ >$(obj)include/config.h
2273 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2274 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2276 #########################################################################
2278 #########################################################################
2279 ezkit533_config : unconfig
2280 @$(MKCONFIG) $(@:_config=) blackfin bf533 ezkit533
2282 stamp_config : unconfig
2283 @$(MKCONFIG) $(@:_config=) blackfin bf533 stamp
2285 dspstamp_config : unconfig
2286 @$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
2288 #========================================================================
2290 #========================================================================
2291 #########################################################################
2293 #########################################################################
2295 atstk1002_config : unconfig
2296 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2298 #########################################################################
2299 #########################################################################
2300 #########################################################################
2303 find $(OBJTREE) -type f \
2304 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2305 -o -name '*.o' -o -name '*.a' \) -print \
2307 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2308 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2309 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2310 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2311 $(obj)examples/test_burst
2312 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2313 $(obj)tools/gen_eth_addr
2314 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2315 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2316 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2317 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2318 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2319 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2320 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2321 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2322 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2323 rm -f $(obj)include/bmp_logo.h
2324 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2327 find $(OBJTREE) -type f \( -name .depend \
2328 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2331 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2333 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2334 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2335 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2336 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2337 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2339 ifeq ($(OBJTREE),$(SRCTREE))
2341 distclean: clobber unconfig
2344 distclean: clobber unconfig
2349 F=`basename $(TOPDIR)` ; cd .. ; \
2350 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2352 #########################################################################