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),mpc83xx)
178 OBJS += cpu/$(CPU)/resetvec.o
180 ifeq ($(CPU),mpc85xx)
181 OBJS += cpu/$(CPU)/resetvec.o
183 ifeq ($(CPU),mpc86xx)
184 OBJS += cpu/$(CPU)/resetvec.o
187 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
188 OBJS += cpu/$(CPU)/cplbhdlr.o cpu/$(CPU)/cplbmgr.o cpu/$(CPU)/flush.o
191 OBJS := $(addprefix $(obj),$(OBJS))
193 LIBS = lib_generic/libgeneric.a
194 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
195 LIBS += cpu/$(CPU)/lib$(CPU).a
197 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
199 LIBS += lib_$(ARCH)/lib$(ARCH).a
200 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
201 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
203 LIBS += disk/libdisk.a
206 LIBS += drivers/libdrivers.a
207 LIBS += drivers/nand/libnand.a
208 LIBS += drivers/nand_legacy/libnand_legacy.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.. | unexpand -a > $@
335 #########################################################################
338 @rm -f $(obj)include/config.h $(obj)include/config.mk \
339 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
341 #========================================================================
343 #========================================================================
345 #########################################################################
347 #########################################################################
349 canmb_config: unconfig
350 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
352 cmi_mpc5xx_config: unconfig
353 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
355 PATI_config: unconfig
356 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
358 #########################################################################
360 #########################################################################
363 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
365 BC3450_config: unconfig
366 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
368 cpci5200_config: unconfig
369 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
371 hmi1001_config: unconfig
372 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
375 Lite5200_LOWBOOT_config \
376 Lite5200_LOWBOOT08_config \
377 icecube_5200_config \
378 icecube_5200_LOWBOOT_config \
379 icecube_5200_LOWBOOT08_config \
380 icecube_5200_DDR_config \
381 icecube_5200_DDR_LOWBOOT_config \
382 icecube_5200_DDR_LOWBOOT08_config \
383 icecube_5100_config: unconfig
384 @mkdir -p $(obj)include
385 @mkdir -p $(obj)board/icecube
386 @ >$(obj)include/config.h
387 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
388 { if [ "$(findstring DDR,$@)" ] ; \
389 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
390 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
392 echo "... with LOWBOOT configuration" ; \
394 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
395 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
396 echo "... with 8 MB flash only" ; \
397 echo "... with LOWBOOT configuration" ; \
399 @[ -z "$(findstring DDR,$@)" ] || \
400 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
401 echo "... DDR memory revision" ; \
403 @[ -z "$(findstring 5200,$@)" ] || \
404 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
405 echo "... with MPC5200 processor" ; \
407 @[ -z "$(findstring 5100,$@)" ] || \
408 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
409 echo "... with MGT5100 processor" ; \
411 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
413 v38b_config: unconfig
414 @./mkconfig -a V38B ppc mpc5xxx v38b
416 inka4x0_config: unconfig
417 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
420 lite5200b_LOWBOOT_config: unconfig
421 @mkdir -p $(obj)include
422 @mkdir -p $(obj)board/icecube
423 @ >$(obj)include/config.h
424 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
425 @ echo "... DDR memory revision"
426 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
427 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
428 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
429 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
430 echo "... with LOWBOOT configuration" ; \
432 @ echo "... with MPC5200B processor"
433 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
436 mcc200_SDRAM_config \
437 mcc200_highboot_config \
438 mcc200_COM12_config \
439 mcc200_COM12_SDRAM_config \
440 mcc200_COM12_highboot_config \
441 mcc200_COM12_highboot_SDRAM_config \
442 mcc200_highboot_SDRAM_config \
445 prs200_highboot_config \
446 prs200_highboot_DDR_config: unconfig
447 @mkdir -p $(obj)include
448 @mkdir -p $(obj)board/mcc200
449 @ >$(obj)include/config.h
450 @[ -n "$(findstring highboot,$@)" ] || \
451 { echo "... with lowboot configuration" ; \
453 @[ -z "$(findstring highboot,$@)" ] || \
454 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
455 echo "... with highboot configuration" ; \
457 @[ -n "$(findstring _SDRAM,$@)" ] || \
458 { if [ -n "$(findstring mcc200,$@)" ]; \
460 echo "... with DDR" ; \
462 if [ -n "$(findstring _DDR,$@)" ];\
464 echo "... with DDR" ; \
466 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
467 echo "... with SDRAM" ; \
471 @[ -z "$(findstring _SDRAM,$@)" ] || \
472 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
473 echo "... with SDRAM" ; \
475 @[ -z "$(findstring COM12,$@)" ] || \
476 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
477 echo "... with console on COM12" ; \
479 @[ -z "$(findstring prs200,$@)" ] || \
480 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
482 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
485 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
487 pf5200_config: unconfig
488 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
492 PM520_ROMBOOT_config \
493 PM520_ROMBOOT_DDR_config: unconfig
494 @mkdir -p $(obj)include
495 @ >$(obj)include/config.h
496 @[ -z "$(findstring DDR,$@)" ] || \
497 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
498 echo "... DDR memory revision" ; \
500 @[ -z "$(findstring ROMBOOT,$@)" ] || \
501 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
502 echo "... booting from 8-bit flash" ; \
504 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
506 smmaco4_config: unconfig
507 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
509 spieval_config: unconfig
510 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
513 TB5200_config: unconfig
514 @mkdir -p $(obj)include
515 @[ -z "$(findstring _B,$@)" ] || \
516 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
517 echo "... with MPC5200B processor" ; \
519 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
523 TOP5200_config: unconfig
524 @mkdir -p $(obj)include
525 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
526 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
530 Total5200_lowboot_config \
531 Total5200_Rev2_config \
532 Total5200_Rev2_lowboot_config: unconfig
533 @mkdir -p $(obj)include
534 @mkdir -p $(obj)board/total5200
535 @ >$(obj)include/config.h
536 @[ -z "$(findstring 5100,$@)" ] || \
537 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
538 echo "... with MGT5100 processor" ; \
540 @[ -z "$(findstring 5200,$@)" ] || \
541 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
542 echo "... with MPC5200 processor" ; \
544 @[ -n "$(findstring Rev,$@)" ] || \
545 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
546 echo "... revision 1 board" ; \
548 @[ -z "$(findstring Rev2_,$@)" ] || \
549 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
550 echo "... revision 2 board" ; \
552 @[ -z "$(findstring lowboot_,$@)" ] || \
553 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
554 echo "... with lowboot configuration" ; \
556 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
562 TQM5200S_HIGHBOOT_config \
564 TQM5200_B_HIGHBOOT_config \
566 TQM5200_STK100_config: unconfig
567 @mkdir -p $(obj)include
568 @mkdir -p $(obj)board/tqm5200
569 @ >$(obj)include/config.h
570 @[ -z "$(findstring cam5200,$@)" ] || \
571 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
572 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
573 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
574 echo "... TQM5200S on Cam5200" ; \
576 @[ -z "$(findstring fo300,$@)" ] || \
577 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
578 echo "... TQM5200 on FO300" ; \
580 @[ -z "$(findstring MiniFAP,$@)" ] || \
581 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
582 echo "... TQM5200_AC on MiniFAP" ; \
584 @[ -z "$(findstring STK100,$@)" ] || \
585 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
586 echo "... on a STK52XX.100 base board" ; \
588 @[ -z "$(findstring TQM5200_B,$@)" ] || \
589 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
591 @[ -z "$(findstring TQM5200S,$@)" ] || \
592 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
593 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
595 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
596 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
598 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
600 #########################################################################
602 #########################################################################
608 @mkdir -p $(obj)include
609 $(if $(findstring AdderII,$@), \
610 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
611 @$(MKCONFIG) -a Adder ppc mpc8xx adder
618 FADS860T_config: unconfig
619 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
621 AMX860_config : unconfig
622 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
624 c2mon_config: unconfig
625 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
628 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
630 cogent_mpc8xx_config: unconfig
631 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
633 ELPT860_config: unconfig
634 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
636 EP88x_config: unconfig
637 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
639 ESTEEM192E_config: unconfig
640 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
642 ETX094_config : unconfig
643 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
645 FLAGADM_config: unconfig
646 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
648 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
651 GEN860T_config: unconfig
652 @mkdir -p $(obj)include
653 @ >$(obj)include/config.h
654 @[ -z "$(findstring _SC,$@)" ] || \
655 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
656 echo "With reduced H/W feature set (SC)..." ; \
658 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
660 GENIETV_config: unconfig
661 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
664 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
666 hermes_config : unconfig
667 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
669 HMI10_config : unconfig
670 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
672 IAD210_config: unconfig
673 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
675 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
677 ICU862_100MHz_config \
678 ICU862_config: unconfig
679 @mkdir -p $(obj)include
680 @ >$(obj)include/config.h
681 @[ -z "$(findstring _100MHz,$@)" ] || \
682 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
683 echo "... with 100MHz system clock" ; \
685 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
687 IP860_config : unconfig
688 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
692 IVML24_config: unconfig
693 @mkdir -p $(obj)include
694 @ >$(obj)include/config.h
695 @[ -z "$(findstring IVML24_config,$@)" ] || \
696 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
698 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
699 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
701 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
702 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
704 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
708 IVMS8_config: unconfig
709 @mkdir -p $(obj)include
710 @ >$(obj)include/config.h
711 @[ -z "$(findstring IVMS8_config,$@)" ] || \
712 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
714 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
715 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
717 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
718 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
720 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
722 KUP4K_config : unconfig
723 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
725 KUP4X_config : unconfig
726 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
728 LANTEC_config : unconfig
729 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
731 lwmon_config: unconfig
732 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
735 MBX860T_config: unconfig
736 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
738 MHPC_config: unconfig
739 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
741 MVS1_config : unconfig
742 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
744 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
747 NETVIA_config: unconfig
748 @mkdir -p $(obj)include
749 @ >$(obj)include/config.h
750 @[ -z "$(findstring NETVIA_config,$@)" ] || \
751 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
752 echo "... Version 1" ; \
754 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
755 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
756 echo "... Version 2" ; \
758 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
760 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
763 NETPHONE_config: unconfig
764 @mkdir -p $(obj)include
765 @ >$(obj)include/config.h
766 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
767 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
769 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
770 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
772 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
774 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
776 NETTA_ISDN_6412_SWAPHOOK_config \
777 NETTA_ISDN_SWAPHOOK_config \
778 NETTA_6412_SWAPHOOK_config \
779 NETTA_SWAPHOOK_config \
780 NETTA_ISDN_6412_config \
783 NETTA_config: unconfig
784 @mkdir -p $(obj)include
785 @ >$(obj)include/config.h
786 @[ -z "$(findstring ISDN_,$@)" ] || \
787 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
789 @[ -n "$(findstring ISDN_,$@)" ] || \
790 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
792 @[ -z "$(findstring 6412_,$@)" ] || \
793 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
795 @[ -n "$(findstring 6412_,$@)" ] || \
796 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
798 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
799 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
801 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
802 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
804 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
806 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
809 NETTA2_config: unconfig
810 @mkdir -p $(obj)include
811 @ >$(obj)include/config.h
812 @[ -z "$(findstring NETTA2_config,$@)" ] || \
813 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
815 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
816 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
818 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
822 CP850_config: unconfig
823 @mkdir -p $(obj)include
824 @ >$(obj)include/config.h
825 @[ -z "$(findstring CP850,$@)" ] || \
826 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
827 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
829 @[ -z "$(findstring Rev1,$@)" ] || \
830 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
832 @[ -z "$(findstring Rev2,$@)" ] || \
833 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
835 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
837 NX823_config: unconfig
838 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
840 pcu_e_config: unconfig
841 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
843 QS850_config: unconfig
844 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
846 QS823_config: unconfig
847 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
849 QS860T_config: unconfig
850 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
852 quantum_config: unconfig
853 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
855 R360MPI_config: unconfig
856 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
858 RBC823_config: unconfig
859 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
861 RPXClassic_config: unconfig
862 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
864 RPXlite_config: unconfig
865 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
867 RPXlite_DW_64_config \
868 RPXlite_DW_LCD_config \
869 RPXlite_DW_64_LCD_config \
870 RPXlite_DW_NVRAM_config \
871 RPXlite_DW_NVRAM_64_config \
872 RPXlite_DW_NVRAM_LCD_config \
873 RPXlite_DW_NVRAM_64_LCD_config \
874 RPXlite_DW_config: unconfig
875 @mkdir -p $(obj)include
876 @ >$(obj)include/config.h
877 @[ -z "$(findstring _64,$@)" ] || \
878 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
879 echo "... with 64MHz system clock ..."; \
881 @[ -z "$(findstring _LCD,$@)" ] || \
882 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
883 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
884 echo "... with LCD display ..."; \
886 @[ -z "$(findstring _NVRAM,$@)" ] || \
887 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
888 echo "... with ENV in NVRAM ..."; \
890 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
893 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
895 RRvision_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
898 RRvision_LCD_config: unconfig
899 @mkdir -p $(obj)include
900 @echo "#define CONFIG_LCD" >$(obj)include/config.h
901 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
902 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
904 SM850_config : unconfig
905 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
908 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
910 SPD823TS_config: unconfig
911 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
913 stxxtc_config: unconfig
914 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
916 svm_sc8xx_config: unconfig
917 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
919 SXNI855T_config: unconfig
920 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
922 # EMK MPC8xx based modules
923 TOP860_config: unconfig
924 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
926 # Play some tricks for configuration selection
927 # Only 855 and 860 boards may come with FEC
928 # and only 823 boards may have LCD support
929 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
947 virtlab2_config: unconfig
948 @mkdir -p $(obj)include
949 @ >$(obj)include/config.h
950 @[ -z "$(findstring _LCD,$@)" ] || \
951 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
952 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
953 echo "... with LCD display" ; \
955 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
957 TTTech_config: unconfig
958 @mkdir -p $(obj)include
959 @echo "#define CONFIG_LCD" >$(obj)include/config.h
960 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
961 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
963 uc100_config : unconfig
964 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
967 @mkdir -p $(obj)include
968 @echo "#define CONFIG_LCD" >$(obj)include/config.h
969 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
970 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
973 @mkdir -p $(obj)include
974 @echo "#define CONFIG_LCD" >$(obj)include/config.h
975 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
976 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
978 #########################################################################
980 #########################################################################
981 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
983 ADCIOP_config: unconfig
984 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
986 AP1000_config:unconfig
987 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
989 APC405_config: unconfig
990 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
992 AR405_config: unconfig
993 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
995 ASH405_config: unconfig
996 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
998 bamboo_config: unconfig
999 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1001 bubinga_config: unconfig
1002 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1004 CANBT_config: unconfig
1005 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1008 CATcenter_25_config \
1009 CATcenter_33_config: unconfig
1010 @mkdir -p $(obj)include
1011 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1012 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1013 @[ -z "$(findstring _25,$@)" ] || \
1014 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1015 echo "SysClk = 25MHz" ; \
1017 @[ -z "$(findstring _33,$@)" ] || \
1018 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1019 echo "SysClk = 33MHz" ; \
1021 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1023 CPCI2DP_config: unconfig
1024 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1029 CPCI405AB_config: unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1031 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1033 CPCI440_config: unconfig
1034 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1036 CPCIISER4_config: unconfig
1037 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1039 CRAYL1_config: unconfig
1040 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1042 csb272_config: unconfig
1043 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1045 csb472_config: unconfig
1046 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1048 DASA_SIM_config: unconfig
1049 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1051 DP405_config: unconfig
1052 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1054 DU405_config: unconfig
1055 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1057 ebony_config: unconfig
1058 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1060 ERIC_config: unconfig
1061 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1063 EXBITGEN_config: unconfig
1064 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1066 G2000_config: unconfig
1067 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1069 HH405_config: unconfig
1070 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1072 HUB405_config: unconfig
1073 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1075 JSE_config: unconfig
1076 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1078 KAREF_config: unconfig
1079 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1081 luan_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1084 METROBOX_config: unconfig
1085 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1087 MIP405_config: unconfig
1088 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1090 MIP405T_config: unconfig
1091 @mkdir -p $(obj)include
1092 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1093 @echo "Enable subset config for MIP405T"
1094 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1096 ML2_config: unconfig
1097 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1099 ml300_config: unconfig
1100 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1102 ocotea_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1106 ORSG_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1109 p3p440_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1112 PCI405_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1115 pcs440ep_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1118 PIP405_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1121 PLU405_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1124 PMC405_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1127 PPChameleonEVB_config \
1128 PPChameleonEVB_BA_25_config \
1129 PPChameleonEVB_ME_25_config \
1130 PPChameleonEVB_HI_25_config \
1131 PPChameleonEVB_BA_33_config \
1132 PPChameleonEVB_ME_33_config \
1133 PPChameleonEVB_HI_33_config: unconfig
1134 @mkdir -p $(obj)include
1135 @ >$(obj)include/config.h
1136 @[ -z "$(findstring EVB_BA,$@)" ] || \
1137 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1138 echo "... BASIC model" ; \
1140 @[ -z "$(findstring EVB_ME,$@)" ] || \
1141 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1142 echo "... MEDIUM model" ; \
1144 @[ -z "$(findstring EVB_HI,$@)" ] || \
1145 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1146 echo "... HIGH-END model" ; \
1148 @[ -z "$(findstring _25,$@)" ] || \
1149 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1150 echo "SysClk = 25MHz" ; \
1152 @[ -z "$(findstring _33,$@)" ] || \
1153 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1154 echo "SysClk = 33MHz" ; \
1156 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1158 rainier_config: unconfig
1159 @mkdir -p $(obj)include
1160 @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1161 @echo "Configuring for rainier board as subset of sequoia..."
1162 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1164 rainier_nand_config: unconfig
1165 @mkdir -p $(obj)include
1166 @mkdir -p $(obj)nand_spl
1167 @mkdir -p $(obj)board/amcc/sequoia
1168 @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1169 @echo "Configuring for rainier board as subset of sequoia..."
1170 @echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h
1171 @echo "Compile NAND boot image for sequoia"
1172 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1173 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1174 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1176 sbc405_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1179 sequoia_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sequoia amcc
1182 sequoia_nand_config: unconfig
1183 @mkdir -p $(obj)include
1184 @mkdir -p $(obj)nand_spl
1185 @mkdir -p $(obj)board/amcc/sequoia
1186 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1187 @echo "Compile NAND boot image for sequoia"
1188 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1189 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1190 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1192 sycamore_config: unconfig
1193 @echo "Configuring for sycamore board as subset of walnut..."
1194 @$(MKCONFIG) -a walnut ppc ppc4xx walnut amcc
1196 VOH405_config: unconfig
1197 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1199 VOM405_config: unconfig
1200 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1202 CMS700_config: unconfig
1203 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1206 W7OLMG_config: unconfig
1207 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1209 walnut_config: unconfig
1210 @$(MKCONFIG) $(@:_config=) ppc ppc4xx walnut amcc
1212 WUH405_config: unconfig
1213 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1215 XPEDITE1K_config: unconfig
1216 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1218 yosemite_config: unconfig
1219 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yosemite amcc
1221 yellowstone_config: unconfig
1222 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yellowstone amcc
1224 yucca_config: unconfig
1225 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1227 #########################################################################
1229 #########################################################################
1232 Yukon8220_config: unconfig
1233 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1235 sorcery_config: unconfig
1236 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1238 #########################################################################
1240 #########################################################################
1241 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1243 A3000_config: unconfig
1244 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1246 barco_config: unconfig
1247 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1249 BMW_config: unconfig
1250 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1253 CPC45_ROMBOOT_config: unconfig
1254 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1255 @cd $(obj)include ; \
1256 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1257 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1258 echo "... booting from 8-bit flash" ; \
1260 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1261 echo "... booting from 64-bit flash" ; \
1263 echo "export CONFIG_BOOT_ROM" >> config.mk;
1265 CU824_config: unconfig
1266 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1268 debris_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1271 eXalion_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1274 HIDDEN_DRAGON_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1277 kvme080_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1280 MOUSSE_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1283 MUSENKI_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1286 MVBLUE_config: unconfig
1287 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1289 OXC_config: unconfig
1290 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1292 PN62_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1295 Sandpoint8240_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1298 Sandpoint8245_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1301 sbc8240_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1304 SL8245_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1307 utx8245_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1310 #########################################################################
1312 #########################################################################
1314 atc_config: unconfig
1315 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1317 cogent_mpc8260_config: unconfig
1318 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1321 CPU86_ROMBOOT_config: unconfig
1322 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1323 @cd $(obj)include ; \
1324 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1325 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1326 echo "... booting from 8-bit flash" ; \
1328 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1329 echo "... booting from 64-bit flash" ; \
1331 echo "export CONFIG_BOOT_ROM" >> config.mk;
1334 CPU87_ROMBOOT_config: unconfig
1335 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1336 @cd $(obj)include ; \
1337 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1338 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1339 echo "... booting from 8-bit flash" ; \
1341 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1342 echo "... booting from 64-bit flash" ; \
1344 echo "export CONFIG_BOOT_ROM" >> config.mk;
1347 ep8248E_config : unconfig
1348 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1350 ep8260_config: unconfig
1351 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1353 ep82xxm_config: unconfig
1354 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1356 gw8260_config: unconfig
1357 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1359 hymod_config: unconfig
1360 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1362 IDS8247_config: unconfig
1363 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1365 IPHASE4539_config: unconfig
1366 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1369 ISPAN_REVB_config: unconfig
1370 @mkdir -p $(obj)include
1371 @if [ "$(findstring _REVB_,$@)" ] ; then \
1372 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1374 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1377 MPC8260ADS_lowboot_config \
1378 MPC8260ADS_33MHz_config \
1379 MPC8260ADS_33MHz_lowboot_config \
1380 MPC8260ADS_40MHz_config \
1381 MPC8260ADS_40MHz_lowboot_config \
1383 MPC8272ADS_lowboot_config \
1385 PQ2FADS_lowboot_config \
1387 PQ2FADS-VR_lowboot_config \
1389 PQ2FADS-ZU_lowboot_config \
1390 PQ2FADS-ZU_66MHz_config \
1391 PQ2FADS-ZU_66MHz_lowboot_config \
1393 @mkdir -p $(obj)include
1394 @mkdir -p $(obj)board/mpc8260ads
1395 $(if $(findstring PQ2FADS,$@), \
1396 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1397 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1398 $(if $(findstring MHz,$@), \
1399 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1400 $(if $(findstring VR,$@), \
1401 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1402 @[ -z "$(findstring lowboot_,$@)" ] || \
1403 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1404 echo "... with lowboot configuration" ; \
1406 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1408 MPC8266ADS_config: unconfig
1409 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1411 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1413 PM825_ROMBOOT_config \
1414 PM825_BIGFLASH_config \
1415 PM825_ROMBOOT_BIGFLASH_config \
1417 PM826_ROMBOOT_config \
1418 PM826_BIGFLASH_config \
1419 PM826_ROMBOOT_BIGFLASH_config: unconfig
1420 @mkdir -p $(obj)include
1421 @mkdir -p $(obj)board/pm826
1422 @if [ "$(findstring PM825_,$@)" ] ; then \
1423 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1425 >$(obj)include/config.h ; \
1427 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1428 echo "... booting from 8-bit flash" ; \
1429 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1430 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1431 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1432 echo "... with 32 MB Flash" ; \
1433 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1436 echo "... booting from 64-bit flash" ; \
1437 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1438 echo "... with 32 MB Flash" ; \
1439 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1440 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1442 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1445 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1449 PM828_ROMBOOT_config \
1450 PM828_ROMBOOT_PCI_config: unconfig
1451 @mkdir -p $(obj)include
1452 @mkdir -p $(obj)board/pm826
1453 @if [ "$(findstring _PCI_,$@)" ] ; then \
1454 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1455 echo "... with PCI enabled" ; \
1457 >$(obj)include/config.h ; \
1459 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1460 echo "... booting from 8-bit flash" ; \
1461 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1462 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1464 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1466 ppmc8260_config: unconfig
1467 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1469 Rattler8248_config \
1470 Rattler_config: unconfig
1471 @mkdir -p $(obj)include
1472 $(if $(findstring 8248,$@), \
1473 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1474 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1476 RPXsuper_config: unconfig
1477 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1479 rsdproto_config: unconfig
1480 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1482 sacsng_config: unconfig
1483 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1485 sbc8260_config: unconfig
1486 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1488 SCM_config: unconfig
1489 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1501 TQM8265_AA_config: unconfig
1502 @mkdir -p $(obj)include
1504 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1505 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1506 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1507 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1508 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1509 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1510 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1511 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1512 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1513 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1514 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1516 >$(obj)include/config.h ; \
1517 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1518 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1520 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1521 echo "... with $${CFREQ}MHz system clock" ; \
1522 if [ "$${CACHE}" == "yes" ] ; then \
1523 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1524 echo "... with L2 Cache support" ; \
1526 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1527 echo "... without L2 Cache support" ; \
1529 if [ "$${BMODE}" == "60x" ] ; then \
1530 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1531 echo "... with 60x Bus Mode" ; \
1533 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1534 echo "... without 60x Bus Mode" ; \
1536 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1538 VoVPN-GW_66MHz_config \
1539 VoVPN-GW_100MHz_config: unconfig
1540 @mkdir -p $(obj)include
1541 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1542 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1544 ZPC1900_config: unconfig
1545 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1547 #########################################################################
1549 #########################################################################
1551 cobra5272_config : unconfig
1552 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1554 EB+MCF-EV123_config : unconfig
1555 @mkdir -p $(obj)include
1556 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1557 @ >$(obj)include/config.h
1558 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1559 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1561 EB+MCF-EV123_internal_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 = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1566 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1568 M5271EVB_config : unconfig
1569 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1571 M5272C3_config : unconfig
1572 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1574 M5282EVB_config : unconfig
1575 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1577 TASREG_config : unconfig
1578 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1580 r5200_config : unconfig
1581 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1583 #########################################################################
1585 #########################################################################
1587 MPC8349ADS_config: unconfig
1588 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349ads
1590 TQM834x_config: unconfig
1591 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1593 MPC8349EMDS_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1596 #########################################################################
1598 #########################################################################
1600 MPC8540ADS_config: unconfig
1601 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1603 MPC8540EVAL_config \
1604 MPC8540EVAL_33_config \
1605 MPC8540EVAL_66_config \
1606 MPC8540EVAL_33_slave_config \
1607 MPC8540EVAL_66_slave_config: unconfig
1608 @mkdir -p $(obj)include
1609 @echo "" >$(obj)include/config.h ; \
1610 if [ "$(findstring _33_,$@)" ] ; then \
1611 echo -n "... 33 MHz PCI" ; \
1613 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1614 echo -n "... 66 MHz PCI" ; \
1616 if [ "$(findstring _slave_,$@)" ] ; then \
1617 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1622 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1624 MPC8560ADS_config: unconfig
1625 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1627 MPC8541CDS_config: unconfig
1628 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1630 MPC8548CDS_config: unconfig
1631 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1633 MPC8555CDS_config: unconfig
1634 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1636 PM854_config: unconfig
1637 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1639 PM856_config: unconfig
1640 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1644 sbc8540_66_config: unconfig
1645 @mkdir -p $(obj)include
1646 @if [ "$(findstring _66_,$@)" ] ; then \
1647 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1648 echo "... 66 MHz PCI" ; \
1650 >$(obj)include/config.h ; \
1651 echo "... 33 MHz PCI" ; \
1653 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1657 sbc8560_66_config: unconfig
1658 @mkdir -p $(obj)include
1659 @if [ "$(findstring _66_,$@)" ] ; then \
1660 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1661 echo "... 66 MHz PCI" ; \
1663 >$(obj)include/config.h ; \
1664 echo "... 33 MHz PCI" ; \
1666 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1668 stxgp3_config: unconfig
1669 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1674 TQM8560_config: unconfig
1675 @mkdir -p $(obj)include
1676 @CTYPE=$(subst TQM,,$(@:_config=)); \
1677 >$(obj)include/config.h ; \
1678 echo "... TQM"$${CTYPE}; \
1679 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1680 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1681 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1682 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1683 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1684 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1686 #########################################################################
1688 #########################################################################
1690 MPC8641HPCN_config: unconfig
1691 @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1694 #########################################################################
1696 #########################################################################
1698 AmigaOneG3SE_config: unconfig
1699 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1701 BAB7xx_config: unconfig
1702 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1704 CPCI750_config: unconfig
1705 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1707 DB64360_config: unconfig
1708 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1710 DB64460_config: unconfig
1711 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1713 ELPPC_config: unconfig
1714 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1717 EVB64260_750CX_config: unconfig
1718 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1720 P3G4_config: unconfig
1721 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1724 PCIPPC6_config: unconfig
1725 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1727 ZUMA_config: unconfig
1728 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1730 ppmc7xx_config: unconfig
1731 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1733 #========================================================================
1735 #========================================================================
1736 #########################################################################
1737 ## StrongARM Systems
1738 #########################################################################
1740 assabet_config : unconfig
1741 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1743 dnp1110_config : unconfig
1744 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1746 gcplus_config : unconfig
1747 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1749 lart_config : unconfig
1750 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1752 shannon_config : unconfig
1753 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1755 #########################################################################
1757 #########################################################################
1759 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1761 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1763 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1765 at91rm9200dk_config : unconfig
1766 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1768 cmc_pu2_config : unconfig
1769 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1771 csb637_config : unconfig
1772 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1774 mp2usb_config : unconfig
1775 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1778 ########################################################################
1779 ## ARM Integrator boards - see doc/README-integrator for more info.
1780 integratorap_config \
1789 ap946es_config: unconfig
1790 @board/integratorap/split_by_variant.sh $@
1792 integratorcp_config \
1801 cp1026_config: unconfig
1802 @board/integratorcp/split_by_variant.sh $@
1804 kb9202_config : unconfig
1805 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1808 lpd7a404_config: unconfig
1809 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1811 mx1ads_config : unconfig
1812 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1814 mx1fs2_config : unconfig
1815 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1818 netstar_config: unconfig
1819 @mkdir -p $(obj)include
1820 @if [ "$(findstring _32_,$@)" ] ; then \
1821 echo "... 32MB SDRAM" ; \
1822 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1824 echo "... 64MB SDRAM" ; \
1825 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1827 @$(MKCONFIG) -a netstar arm arm925t netstar
1829 omap1510inn_config : unconfig
1830 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
1832 omap5912osk_config : unconfig
1833 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1835 omap1610inn_config \
1836 omap1610inn_cs0boot_config \
1837 omap1610inn_cs3boot_config \
1838 omap1610inn_cs_autoboot_config \
1840 omap1610h2_cs0boot_config \
1841 omap1610h2_cs3boot_config \
1842 omap1610h2_cs_autoboot_config: unconfig
1843 @mkdir -p $(obj)include
1844 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1845 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1846 echo "... configured for CS0 boot"; \
1847 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1848 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
1849 echo "... configured for CS_AUTO boot"; \
1851 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1852 echo "... configured for CS3 boot"; \
1854 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
1857 omap730p2_cs0boot_config \
1858 omap730p2_cs3boot_config : unconfig
1859 @mkdir -p $(obj)include
1860 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1861 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
1862 echo "... configured for CS0 boot"; \
1864 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
1865 echo "... configured for CS3 boot"; \
1867 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1869 sbc2410x_config: unconfig
1870 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
1872 scb9328_config : unconfig
1873 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
1875 smdk2400_config : unconfig
1876 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
1878 smdk2410_config : unconfig
1879 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
1881 SX1_config : unconfig
1882 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
1884 # TRAB default configuration: 8 MB Flash, 32 MB RAM
1886 trab_bigram_config \
1887 trab_bigflash_config \
1888 trab_old_config: unconfig
1889 @mkdir -p $(obj)include
1890 @mkdir -p $(obj)board/trab
1891 @ >$(obj)include/config.h
1892 @[ -z "$(findstring _bigram,$@)" ] || \
1893 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1894 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
1895 echo "... with 8 MB Flash, 32 MB RAM" ; \
1897 @[ -z "$(findstring _bigflash,$@)" ] || \
1898 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
1899 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
1900 echo "... with 16 MB Flash, 16 MB RAM" ; \
1901 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
1903 @[ -z "$(findstring _old,$@)" ] || \
1904 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1905 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
1906 echo "... with 8 MB Flash, 16 MB RAM" ; \
1907 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
1909 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
1911 VCMA9_config : unconfig
1912 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
1914 #========================================================================
1915 # ARM supplied Versatile development boards
1916 #========================================================================
1918 versatileab_config \
1919 versatilepb_config : unconfig
1920 @board/versatile/split_by_variant.sh $@
1922 voiceblue_smallflash_config \
1923 voiceblue_config: unconfig
1924 @mkdir -p $(obj)include
1925 @mkdir -p $(obj)board/voiceblue
1926 @if [ "$(findstring _smallflash_,$@)" ] ; then \
1927 echo "... boot from lower flash bank" ; \
1928 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
1929 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
1931 echo "... boot from upper flash bank" ; \
1932 >$(obj)include/config.h ; \
1933 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
1935 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
1937 cm4008_config : unconfig
1938 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
1940 cm41xx_config : unconfig
1941 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
1943 gth2_config : unconfig
1944 @mkdir -p $(obj)include
1945 @ >$(obj)include/config.h
1946 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
1947 @$(MKCONFIG) -a gth2 mips mips gth2
1949 #########################################################################
1951 #########################################################################
1953 B2_config : unconfig
1954 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
1956 #########################################################################
1958 #########################################################################
1960 armadillo_config: unconfig
1961 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
1963 ep7312_config : unconfig
1964 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
1966 impa7_config : unconfig
1967 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
1969 modnet50_config : unconfig
1970 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
1972 evb4510_config : unconfig
1973 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
1975 #########################################################################
1977 #########################################################################
1979 adsvix_config : unconfig
1980 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
1982 cerf250_config : unconfig
1983 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
1985 cradle_config : unconfig
1986 @$(MKCONFIG) $(@:_config=) arm pxa cradle
1988 csb226_config : unconfig
1989 @$(MKCONFIG) $(@:_config=) arm pxa csb226
1992 @$(MKCONFIG) $(@:_config=) arm pxa delta
1994 innokom_config : unconfig
1995 @$(MKCONFIG) $(@:_config=) arm pxa innokom
1997 ixdp425_config : unconfig
1998 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2000 ixdpg425_config : unconfig
2001 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2003 lubbock_config : unconfig
2004 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2006 pleb2_config : unconfig
2007 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2009 logodl_config : unconfig
2010 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2012 pdnb3_config : unconfig
2013 @$(MKCONFIG) $(@:_config=) arm ixp pdnb3 prodrive
2015 pxa255_idp_config: unconfig
2016 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2018 wepep250_config : unconfig
2019 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2021 xaeniax_config : unconfig
2022 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2024 xm250_config : unconfig
2025 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2027 xsengine_config : unconfig
2028 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2031 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2033 #########################################################################
2035 #########################################################################
2036 omap2420h4_config : unconfig
2037 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2039 #========================================================================
2041 #========================================================================
2042 #########################################################################
2044 #########################################################################
2045 sc520_cdp_config : unconfig
2046 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2048 sc520_spunk_config : unconfig
2049 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2051 sc520_spunk_rel_config : unconfig
2052 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2054 #========================================================================
2056 #========================================================================
2057 #########################################################################
2059 #########################################################################
2061 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2063 incaip_100MHz_config \
2064 incaip_133MHz_config \
2065 incaip_150MHz_config \
2066 incaip_config: unconfig
2067 @mkdir -p $(obj)include
2068 @ >$(obj)include/config.h
2069 @[ -z "$(findstring _100MHz,$@)" ] || \
2070 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2071 echo "... with 100MHz system clock" ; \
2073 @[ -z "$(findstring _133MHz,$@)" ] || \
2074 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2075 echo "... with 133MHz system clock" ; \
2077 @[ -z "$(findstring _150MHz,$@)" ] || \
2078 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2079 echo "... with 150MHz system clock" ; \
2081 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2083 tb0229_config: unconfig
2084 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2086 #########################################################################
2088 #########################################################################
2089 dbau1000_config : unconfig
2090 @mkdir -p $(obj)include
2091 @ >$(obj)include/config.h
2092 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2093 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2095 dbau1100_config : unconfig
2096 @mkdir -p $(obj)include
2097 @ >$(obj)include/config.h
2098 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2099 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2101 dbau1500_config : unconfig
2102 @mkdir -p $(obj)include
2103 @ >$(obj)include/config.h
2104 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2105 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2107 dbau1550_config : unconfig
2108 @mkdir -p $(obj)include
2109 @ >$(obj)include/config.h
2110 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2111 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2113 dbau1550_el_config : unconfig
2114 @mkdir -p $(obj)include
2115 @ >$(obj)include/config.h
2116 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2117 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2119 pb1000_config : unconfig
2120 @mkdir -p $(obj)include
2121 @ >$(obj)include/config.h
2122 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2123 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2125 #########################################################################
2127 #########################################################################
2129 purple_config : unconfig
2130 @$(MKCONFIG) $(@:_config=) mips mips purple
2132 #========================================================================
2134 #========================================================================
2135 #########################################################################
2137 #########################################################################
2139 DK1C20_safe_32_config \
2140 DK1C20_standard_32_config \
2141 DK1C20_config: unconfig
2142 @mkdir -p $(obj)include
2143 @ >$(obj)include/config.h
2144 @[ -z "$(findstring _safe_32,$@)" ] || \
2145 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2146 echo "... NIOS 'safe_32' configuration" ; \
2148 @[ -z "$(findstring _standard_32,$@)" ] || \
2149 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2150 echo "... NIOS 'standard_32' configuration" ; \
2152 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2153 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2154 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2156 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2158 DK1S10_safe_32_config \
2159 DK1S10_standard_32_config \
2160 DK1S10_mtx_ldk_20_config \
2161 DK1S10_config: unconfig
2162 @mkdir -p $(obj)include
2163 @ >$(obj)include/config.h
2164 @[ -z "$(findstring _safe_32,$@)" ] || \
2165 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2166 echo "... NIOS 'safe_32' configuration" ; \
2168 @[ -z "$(findstring _standard_32,$@)" ] || \
2169 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2170 echo "... NIOS 'standard_32' configuration" ; \
2172 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2173 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2174 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2176 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2177 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2178 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2180 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2182 ADNPESC1_DNPEVA2_base_32_config \
2183 ADNPESC1_base_32_config \
2184 ADNPESC1_config: unconfig
2185 @mkdir -p $(obj)include
2186 @ >$(obj)include/config.h
2187 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2188 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2189 echo "... DNP/EVA2 configuration" ; \
2191 @[ -z "$(findstring _base_32,$@)" ] || \
2192 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2193 echo "... NIOS 'base_32' configuration" ; \
2195 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2196 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2197 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2199 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2201 #########################################################################
2203 #########################################################################
2205 EP1C20_config : unconfig
2206 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2208 EP1S10_config : unconfig
2209 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2211 EP1S40_config : unconfig
2212 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2214 PK1C20_config : unconfig
2215 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2217 PCI5441_config : unconfig
2218 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2220 #========================================================================
2222 #========================================================================
2223 #########################################################################
2225 #########################################################################
2226 suzaku_config: unconfig
2227 @mkdir -p $(obj)include
2228 @ >$(obj)include/config.h
2229 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2230 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2232 #########################################################################
2234 #########################################################################
2235 ezkit533_config : unconfig
2236 @$(MKCONFIG) $(@:_config=) blackfin bf533 ezkit533
2238 stamp_config : unconfig
2239 @$(MKCONFIG) $(@:_config=) blackfin bf533 stamp
2241 dspstamp_config : unconfig
2242 @$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
2244 #========================================================================
2246 #========================================================================
2247 #########################################################################
2249 #########################################################################
2251 atstk1002_config : unconfig
2252 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2254 #########################################################################
2255 #########################################################################
2256 #########################################################################
2259 find $(OBJTREE) -type f \
2260 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2261 -o -name '*.o' -o -name '*.a' \) -print \
2263 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2264 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2265 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2266 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2267 $(obj)examples/test_burst
2268 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2269 $(obj)tools/gen_eth_addr
2270 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2271 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2272 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2273 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2274 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2275 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2276 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2277 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2278 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2279 rm -f $(obj)include/bmp_logo.h
2280 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2283 find $(OBJTREE) -type f \( -name .depend \
2284 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2287 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2289 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2290 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2291 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2292 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2293 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2295 ifeq ($(OBJTREE),$(SRCTREE))
2297 distclean: clobber unconfig
2300 distclean: clobber unconfig
2305 F=`basename $(TOPDIR)` ; cd .. ; \
2306 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2308 #########################################################################