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-
160 # load other configuration
161 include $(TOPDIR)/config.mk
163 #########################################################################
164 # U-Boot objects....order is important (i.e. start must be first)
166 OBJS = cpu/$(CPU)/start.o
168 OBJS += cpu/$(CPU)/start16.o
169 OBJS += cpu/$(CPU)/reset.o
172 OBJS += cpu/$(CPU)/resetvec.o
174 ifeq ($(CPU),mpc83xx)
175 OBJS += cpu/$(CPU)/resetvec.o
177 ifeq ($(CPU),mpc85xx)
178 OBJS += cpu/$(CPU)/resetvec.o
181 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
182 OBJS += cpu/$(CPU)/cplbhdlr.o cpu/$(CPU)/cplbmgr.o cpu/$(CPU)/flush.o
185 OBJS := $(addprefix $(obj),$(OBJS))
187 LIBS = lib_generic/libgeneric.a
188 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
189 LIBS += cpu/$(CPU)/lib$(CPU).a
191 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
193 LIBS += lib_$(ARCH)/lib$(ARCH).a
194 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
195 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
197 LIBS += disk/libdisk.a
200 LIBS += drivers/libdrivers.a
201 LIBS += drivers/nand/libnand.a
202 LIBS += drivers/nand_legacy/libnand_legacy.a
203 LIBS += drivers/sk98lin/libsk98lin.a
204 LIBS += post/libpost.a post/cpu/libcpu.a
205 LIBS += common/libcommon.a
208 LIBS := $(addprefix $(obj),$(LIBS))
212 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
214 # The "tools" are needed early, so put this first
215 # Don't include stuff already done in $(LIBS)
222 __OBJS := $(subst $(obj),,$(OBJS))
223 __LIBS := $(subst $(obj),,$(LIBS))
225 #########################################################################
226 #########################################################################
228 ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map
232 $(obj)u-boot.hex: $(obj)u-boot
233 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
235 $(obj)u-boot.srec: $(obj)u-boot
236 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
238 $(obj)u-boot.bin: $(obj)u-boot
239 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
241 $(obj)u-boot.img: $(obj)u-boot.bin
242 ./tools/mkimage -A $(ARCH) -T firmware -C none \
243 -a $(TEXT_BASE) -e 0 \
244 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
245 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
248 $(obj)u-boot.dis: $(obj)u-boot
249 $(OBJDUMP) -d $< > $@
251 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
252 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
253 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
254 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
255 -Map u-boot.map -o u-boot
258 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
261 $(MAKE) -C $(dir $(subst $(obj),,$@))
267 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
268 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
269 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
270 $(TOPDIR)) >> $(VERSION_FILE); \
271 echo "\"" >> $(VERSION_FILE)
274 $(MAKE) -C tools/gdb all || exit 1
277 $(MAKE) -C tools/updater all || exit 1
280 $(MAKE) -C tools/env all || exit 1
283 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
286 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
287 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
288 fs/cramfs fs/fat fs/fdos fs/jffs2 \
289 net disk rtc dtt drivers drivers/sk98lin common \
290 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
293 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
294 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
295 fs/cramfs fs/fat fs/fdos fs/jffs2 \
296 net disk rtc dtt drivers drivers/sk98lin common \
297 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
299 $(obj)System.map: $(obj)u-boot
301 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
302 sort > $(obj)System.map
304 #########################################################################
306 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
307 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
308 $(SUBDIRS) version gdbtools updater env depend \
309 dep tags ctags etags $(obj)System.map:
310 @echo "System not configured - see README" >&2
314 #########################################################################
317 @rm -f $(obj)include/config.h $(obj)include/config.mk $(obj)board/*/config.tmp
319 #========================================================================
321 #========================================================================
323 #########################################################################
325 #########################################################################
327 canmb_config: unconfig
328 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
330 cmi_mpc5xx_config: unconfig
331 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
333 PATI_config: unconfig
334 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
336 #########################################################################
338 #########################################################################
341 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
343 BC3450_config: unconfig
344 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
346 cpci5200_config: unconfig
347 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
349 hmi1001_config: unconfig
350 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
353 Lite5200_LOWBOOT_config \
354 Lite5200_LOWBOOT08_config \
355 icecube_5200_config \
356 icecube_5200_LOWBOOT_config \
357 icecube_5200_LOWBOOT08_config \
358 icecube_5200_DDR_config \
359 icecube_5200_DDR_LOWBOOT_config \
360 icecube_5200_DDR_LOWBOOT08_config \
361 icecube_5100_config: unconfig
362 @mkdir -p $(obj)include
363 @mkdir -p $(obj)board/icecube
364 @ >$(obj)include/config.h
365 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
366 { if [ "$(findstring DDR,$@)" ] ; \
367 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
368 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
370 echo "... with LOWBOOT configuration" ; \
372 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
373 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
374 echo "... with 8 MB flash only" ; \
375 echo "... with LOWBOOT configuration" ; \
377 @[ -z "$(findstring DDR,$@)" ] || \
378 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
379 echo "... DDR memory revision" ; \
381 @[ -z "$(findstring 5200,$@)" ] || \
382 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
383 echo "... with MPC5200 processor" ; \
385 @[ -z "$(findstring 5100,$@)" ] || \
386 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
387 echo "... with MGT5100 processor" ; \
389 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
391 inka4x0_config: unconfig
392 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
395 lite5200b_LOWBOOT_config: unconfig
396 @mkdir -p $(obj)include
397 @mkdir -p $(obj)board/icecube
398 @ >$(obj)include/config.h
399 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
400 @ echo "... DDR memory revision"
401 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
402 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
403 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
404 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
405 echo "... with LOWBOOT configuration" ; \
407 @ echo "... with MPC5200B processor"
408 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
411 mcc200_SDRAM_config \
412 mcc200_highboot_config \
413 mcc200_COM12_config \
414 mcc200_COM12_SDRAM_config \
415 mcc200_COM12_highboot_config \
416 mcc200_COM12_highboot_SDRAM_config \
417 mcc200_highboot_SDRAM_config \
420 prs200_highboot_config \
421 prs200_highboot_DDR_config: unconfig
422 @mkdir -p $(obj)include
423 @mkdir -p $(obj)board/mcc200
424 @ >$(obj)include/config.h
425 @[ -n "$(findstring highboot,$@)" ] || \
426 { echo "... with lowboot configuration" ; \
428 @[ -z "$(findstring highboot,$@)" ] || \
429 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
430 echo "... with highboot configuration" ; \
432 @[ -n "$(findstring _SDRAM,$@)" ] || \
433 { if [ -n "$(findstring mcc200,$@)" ]; \
435 echo "... with DDR" ; \
437 if [ -n "$(findstring _DDR,$@)" ];\
439 echo "... with DDR" ; \
441 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
442 echo "... with SDRAM" ; \
446 @[ -z "$(findstring _SDRAM,$@)" ] || \
447 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
448 echo "... with SDRAM" ; \
450 @[ -z "$(findstring COM12,$@)" ] || \
451 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
452 echo "... with console on COM12" ; \
454 @[ -z "$(findstring prs200,$@)" ] || \
455 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
457 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
460 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
462 pf5200_config: unconfig
463 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
467 PM520_ROMBOOT_config \
468 PM520_ROMBOOT_DDR_config: unconfig
469 @mkdir -p $(obj)include
470 @ >$(obj)include/config.h
471 @[ -z "$(findstring DDR,$@)" ] || \
472 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
473 echo "... DDR memory revision" ; \
475 @[ -z "$(findstring ROMBOOT,$@)" ] || \
476 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
477 echo "... booting from 8-bit flash" ; \
479 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
481 smmaco4_config: unconfig
482 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
484 spieval_config: unconfig
485 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
488 TB5200_config: unconfig
489 @mkdir -p $(obj)include
490 @[ -z "$(findstring _B,$@)" ] || \
491 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
492 echo "... with MPC5200B processor" ; \
494 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
498 TOP5200_config: unconfig
499 @mkdir -p $(obj)include
500 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
501 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
505 Total5200_lowboot_config \
506 Total5200_Rev2_config \
507 Total5200_Rev2_lowboot_config: unconfig
508 @mkdir -p $(obj)include
509 @mkdir -p $(obj)board/total5200
510 @ >$(obj)include/config.h
511 @[ -z "$(findstring 5100,$@)" ] || \
512 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
513 echo "... with MGT5100 processor" ; \
515 @[ -z "$(findstring 5200,$@)" ] || \
516 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
517 echo "... with MPC5200 processor" ; \
519 @[ -n "$(findstring Rev,$@)" ] || \
520 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
521 echo "... revision 1 board" ; \
523 @[ -z "$(findstring Rev2_,$@)" ] || \
524 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
525 echo "... revision 2 board" ; \
527 @[ -z "$(findstring lowboot_,$@)" ] || \
528 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
529 echo "... with lowboot configuration" ; \
531 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
537 TQM5200S_HIGHBOOT_config \
539 TQM5200_B_HIGHBOOT_config \
541 TQM5200_STK100_config: unconfig
542 @mkdir -p $(obj)include
543 @mkdir -p $(obj)board/tqm5200
544 @ >$(obj)include/config.h
545 @[ -z "$(findstring cam5200,$@)" ] || \
546 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
547 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
548 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
549 echo "... TQM5200S on Cam5200" ; \
551 @[ -z "$(findstring fo300,$@)" ] || \
552 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
553 echo "... TQM5200 on FO300" ; \
555 @[ -z "$(findstring MiniFAP,$@)" ] || \
556 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
557 echo "... TQM5200_AC on MiniFAP" ; \
559 @[ -z "$(findstring STK100,$@)" ] || \
560 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
561 echo "... on a STK52XX.100 base board" ; \
563 @[ -z "$(findstring TQM5200_B,$@)" ] || \
564 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
566 @[ -z "$(findstring TQM5200S,$@)" ] || \
567 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
568 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
570 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
571 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
573 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
575 #########################################################################
577 #########################################################################
583 @mkdir -p $(obj)include
584 $(if $(findstring AdderII,$@), \
585 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
586 @$(MKCONFIG) -a Adder ppc mpc8xx adder
593 FADS860T_config: unconfig
594 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
596 AMX860_config : unconfig
597 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
599 c2mon_config: unconfig
600 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
603 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
605 cogent_mpc8xx_config: unconfig
606 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
608 ELPT860_config: unconfig
609 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
611 EP88x_config: unconfig
612 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
614 ESTEEM192E_config: unconfig
615 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
617 ETX094_config : unconfig
618 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
620 FLAGADM_config: unconfig
621 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
623 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
626 GEN860T_config: unconfig
627 @mkdir -p $(obj)include
628 @ >$(obj)include/config.h
629 @[ -z "$(findstring _SC,$@)" ] || \
630 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
631 echo "With reduced H/W feature set (SC)..." ; \
633 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
635 GENIETV_config: unconfig
636 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
639 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
641 hermes_config : unconfig
642 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
644 HMI10_config : unconfig
645 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
647 IAD210_config: unconfig
648 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
650 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
652 ICU862_100MHz_config \
653 ICU862_config: unconfig
654 @mkdir -p $(obj)include
655 @ >$(obj)include/config.h
656 @[ -z "$(findstring _100MHz,$@)" ] || \
657 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
658 echo "... with 100MHz system clock" ; \
660 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
662 IP860_config : unconfig
663 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
667 IVML24_config: unconfig
668 @mkdir -p $(obj)include
669 @ >$(obj)include/config.h
670 @[ -z "$(findstring IVML24_config,$@)" ] || \
671 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
673 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
674 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
676 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
677 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
679 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
683 IVMS8_config: unconfig
684 @mkdir -p $(obj)include
685 @ >$(obj)include/config.h
686 @[ -z "$(findstring IVMS8_config,$@)" ] || \
687 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
689 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
690 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
692 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
693 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
695 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
697 KUP4K_config : unconfig
698 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
700 KUP4X_config : unconfig
701 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
703 LANTEC_config : unconfig
704 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
706 lwmon_config: unconfig
707 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
710 MBX860T_config: unconfig
711 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
713 MHPC_config: unconfig
714 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
716 MVS1_config : unconfig
717 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
719 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
722 NETVIA_config: unconfig
723 @mkdir -p $(obj)include
724 @ >$(obj)include/config.h
725 @[ -z "$(findstring NETVIA_config,$@)" ] || \
726 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
727 echo "... Version 1" ; \
729 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
730 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
731 echo "... Version 2" ; \
733 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
735 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
738 NETPHONE_config: unconfig
739 @mkdir -p $(obj)include
740 @ >$(obj)include/config.h
741 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
742 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
744 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
745 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
747 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
749 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
751 NETTA_ISDN_6412_SWAPHOOK_config \
752 NETTA_ISDN_SWAPHOOK_config \
753 NETTA_6412_SWAPHOOK_config \
754 NETTA_SWAPHOOK_config \
755 NETTA_ISDN_6412_config \
758 NETTA_config: unconfig
759 @mkdir -p $(obj)include
760 @ >$(obj)include/config.h
761 @[ -z "$(findstring ISDN_,$@)" ] || \
762 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
764 @[ -n "$(findstring ISDN_,$@)" ] || \
765 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
767 @[ -z "$(findstring 6412_,$@)" ] || \
768 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
770 @[ -n "$(findstring 6412_,$@)" ] || \
771 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
773 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
774 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
776 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
777 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
779 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
781 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
784 NETTA2_config: unconfig
785 @mkdir -p $(obj)include
786 @ >$(obj)include/config.h
787 @[ -z "$(findstring NETTA2_config,$@)" ] || \
788 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
790 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
791 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
793 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
797 CP850_config: unconfig
798 @mkdir -p $(obj)include
799 @ >$(obj)include/config.h
800 @[ -z "$(findstring CP850,$@)" ] || \
801 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
802 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
804 @[ -z "$(findstring Rev1,$@)" ] || \
805 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
807 @[ -z "$(findstring Rev2,$@)" ] || \
808 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
810 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
812 NX823_config: unconfig
813 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
815 pcu_e_config: unconfig
816 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
818 QS850_config: unconfig
819 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
821 QS823_config: unconfig
822 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
824 QS860T_config: unconfig
825 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
827 quantum_config: unconfig
828 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
830 R360MPI_config: unconfig
831 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
833 RBC823_config: unconfig
834 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
836 RPXClassic_config: unconfig
837 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
839 RPXlite_config: unconfig
840 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
842 RPXlite_DW_64_config \
843 RPXlite_DW_LCD_config \
844 RPXlite_DW_64_LCD_config \
845 RPXlite_DW_NVRAM_config \
846 RPXlite_DW_NVRAM_64_config \
847 RPXlite_DW_NVRAM_LCD_config \
848 RPXlite_DW_NVRAM_64_LCD_config \
849 RPXlite_DW_config: unconfig
850 @mkdir -p $(obj)include
851 @ >$(obj)include/config.h
852 @[ -z "$(findstring _64,$@)" ] || \
853 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
854 echo "... with 64MHz system clock ..."; \
856 @[ -z "$(findstring _LCD,$@)" ] || \
857 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
858 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
859 echo "... with LCD display ..."; \
861 @[ -z "$(findstring _NVRAM,$@)" ] || \
862 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
863 echo "... with ENV in NVRAM ..."; \
865 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
868 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
870 RRvision_config: unconfig
871 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
873 RRvision_LCD_config: unconfig
874 @mkdir -p $(obj)include
875 @echo "#define CONFIG_LCD" >$(obj)include/config.h
876 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
877 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
879 SM850_config : unconfig
880 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
883 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
885 SPD823TS_config: unconfig
886 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
888 stxxtc_config: unconfig
889 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
891 svm_sc8xx_config: unconfig
892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
894 SXNI855T_config: unconfig
895 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
897 # EMK MPC8xx based modules
898 TOP860_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
901 # Play some tricks for configuration selection
902 # Only 855 and 860 boards may come with FEC
903 # and only 823 boards may have LCD support
904 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
922 virtlab2_config: unconfig
923 @mkdir -p $(obj)include
924 @ >$(obj)include/config.h
925 @[ -z "$(findstring _LCD,$@)" ] || \
926 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
927 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
928 echo "... with LCD display" ; \
930 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
932 TTTech_config: unconfig
933 @mkdir -p $(obj)include
934 @echo "#define CONFIG_LCD" >$(obj)include/config.h
935 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
936 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
938 uc100_config : unconfig
939 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
942 @mkdir -p $(obj)include
943 @echo "#define CONFIG_LCD" >$(obj)include/config.h
944 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
945 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
948 @mkdir -p $(obj)include
949 @echo "#define CONFIG_LCD" >$(obj)include/config.h
950 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
951 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
953 #########################################################################
955 #########################################################################
956 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
958 ADCIOP_config: unconfig
959 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
961 AP1000_config:unconfig
962 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
964 APC405_config: unconfig
965 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
967 AR405_config: unconfig
968 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
970 ASH405_config: unconfig
971 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
973 bamboo_config: unconfig
974 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
976 bubinga_config: unconfig
977 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
979 CANBT_config: unconfig
980 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
983 CATcenter_25_config \
984 CATcenter_33_config: unconfig
985 @mkdir -p $(obj)include
986 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
987 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
988 @[ -z "$(findstring _25,$@)" ] || \
989 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
990 echo "SysClk = 25MHz" ; \
992 @[ -z "$(findstring _33,$@)" ] || \
993 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
994 echo "SysClk = 33MHz" ; \
996 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
998 CPCI2DP_config: unconfig
999 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1004 CPCI405AB_config: unconfig
1005 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1006 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1008 CPCI440_config: unconfig
1009 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1011 CPCIISER4_config: unconfig
1012 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1014 CRAYL1_config: unconfig
1015 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1017 csb272_config: unconfig
1018 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1020 csb472_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1023 DASA_SIM_config: unconfig
1024 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1026 DP405_config: unconfig
1027 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1029 DU405_config: unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1032 ebony_config: unconfig
1033 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1035 ERIC_config: unconfig
1036 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1038 EXBITGEN_config: unconfig
1039 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1041 G2000_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1044 HH405_config: unconfig
1045 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1047 HUB405_config: unconfig
1048 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1050 JSE_config: unconfig
1051 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1053 KAREF_config: unconfig
1054 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1056 luan_config: unconfig
1057 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1059 METROBOX_config: unconfig
1060 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1062 MIP405_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1065 MIP405T_config: unconfig
1066 @mkdir -p $(obj)include
1067 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1068 @echo "Enable subset config for MIP405T"
1069 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1071 ML2_config: unconfig
1072 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1074 ml300_config: unconfig
1075 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1077 ocotea_config: unconfig
1078 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1081 ORSG_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1084 p3p440_config: unconfig
1085 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1087 PCI405_config: unconfig
1088 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1090 pcs440ep_config: unconfig
1091 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1093 PIP405_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1096 PLU405_config: unconfig
1097 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1099 PMC405_config: unconfig
1100 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1102 PPChameleonEVB_config \
1103 PPChameleonEVB_BA_25_config \
1104 PPChameleonEVB_ME_25_config \
1105 PPChameleonEVB_HI_25_config \
1106 PPChameleonEVB_BA_33_config \
1107 PPChameleonEVB_ME_33_config \
1108 PPChameleonEVB_HI_33_config: unconfig
1109 @mkdir -p $(obj)include
1110 @ >$(obj)include/config.h
1111 @[ -z "$(findstring EVB_BA,$@)" ] || \
1112 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1113 echo "... BASIC model" ; \
1115 @[ -z "$(findstring EVB_ME,$@)" ] || \
1116 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1117 echo "... MEDIUM model" ; \
1119 @[ -z "$(findstring EVB_HI,$@)" ] || \
1120 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1121 echo "... HIGH-END model" ; \
1123 @[ -z "$(findstring _25,$@)" ] || \
1124 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1125 echo "SysClk = 25MHz" ; \
1127 @[ -z "$(findstring _33,$@)" ] || \
1128 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1129 echo "SysClk = 33MHz" ; \
1131 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1133 sbc405_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1136 sycamore_config: unconfig
1137 @echo "Configuring for sycamore board as subset of walnut..."
1138 @$(MKCONFIG) -a walnut ppc ppc4xx walnut amcc
1140 VOH405_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1143 VOM405_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1146 CMS700_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1150 W7OLMG_config: unconfig
1151 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1153 walnut_config: unconfig
1154 @$(MKCONFIG) $(@:_config=) ppc ppc4xx walnut amcc
1156 WUH405_config: unconfig
1157 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1159 XPEDITE1K_config: unconfig
1160 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1162 yosemite_config: unconfig
1163 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yosemite amcc
1165 yellowstone_config: unconfig
1166 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yellowstone amcc
1168 yucca_config: unconfig
1169 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1171 #########################################################################
1173 #########################################################################
1176 Yukon8220_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1179 sorcery_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1182 #########################################################################
1184 #########################################################################
1185 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1187 A3000_config: unconfig
1188 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1190 barco_config: unconfig
1191 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1193 BMW_config: unconfig
1194 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1197 CPC45_ROMBOOT_config: unconfig
1198 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1199 @cd $(obj)include ; \
1200 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1201 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1202 echo "... booting from 8-bit flash" ; \
1204 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1205 echo "... booting from 64-bit flash" ; \
1207 echo "export CONFIG_BOOT_ROM" >> config.mk;
1209 CU824_config: unconfig
1210 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1212 debris_config: unconfig
1213 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1215 eXalion_config: unconfig
1216 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1218 HIDDEN_DRAGON_config: unconfig
1219 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1221 kvme080_config: unconfig
1222 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1224 MOUSSE_config: unconfig
1225 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1227 MUSENKI_config: unconfig
1228 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1230 MVBLUE_config: unconfig
1231 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1233 OXC_config: unconfig
1234 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1236 PN62_config: unconfig
1237 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1239 Sandpoint8240_config: unconfig
1240 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1242 Sandpoint8245_config: unconfig
1243 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1245 sbc8240_config: unconfig
1246 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1248 SL8245_config: unconfig
1249 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1251 utx8245_config: unconfig
1252 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1254 #########################################################################
1256 #########################################################################
1258 atc_config: unconfig
1259 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1261 cogent_mpc8260_config: unconfig
1262 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1265 CPU86_ROMBOOT_config: unconfig
1266 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1267 @cd $(obj)include ; \
1268 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1269 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1270 echo "... booting from 8-bit flash" ; \
1272 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1273 echo "... booting from 64-bit flash" ; \
1275 echo "export CONFIG_BOOT_ROM" >> config.mk;
1278 CPU87_ROMBOOT_config: unconfig
1279 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1280 @cd $(obj)include ; \
1281 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1282 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1283 echo "... booting from 8-bit flash" ; \
1285 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1286 echo "... booting from 64-bit flash" ; \
1288 echo "export CONFIG_BOOT_ROM" >> config.mk;
1291 ep8248E_config : unconfig
1292 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1294 ep8260_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1297 gw8260_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1300 hymod_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1303 IDS8247_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1306 IPHASE4539_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1310 ISPAN_REVB_config: unconfig
1311 @mkdir -p $(obj)include
1312 @if [ "$(findstring _REVB_,$@)" ] ; then \
1313 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1315 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1318 MPC8260ADS_lowboot_config \
1319 MPC8260ADS_33MHz_config \
1320 MPC8260ADS_33MHz_lowboot_config \
1321 MPC8260ADS_40MHz_config \
1322 MPC8260ADS_40MHz_lowboot_config \
1324 MPC8272ADS_lowboot_config \
1326 PQ2FADS_lowboot_config \
1328 PQ2FADS-VR_lowboot_config \
1330 PQ2FADS-ZU_lowboot_config \
1331 PQ2FADS-ZU_66MHz_config \
1332 PQ2FADS-ZU_66MHz_lowboot_config \
1334 @mkdir -p $(obj)include
1335 @mkdir -p $(obj)board/mpc8260ads
1336 $(if $(findstring PQ2FADS,$@), \
1337 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1338 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1339 $(if $(findstring MHz,$@), \
1340 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1341 $(if $(findstring VR,$@), \
1342 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1343 @[ -z "$(findstring lowboot_,$@)" ] || \
1344 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1345 echo "... with lowboot configuration" ; \
1347 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1349 MPC8266ADS_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1352 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1354 PM825_ROMBOOT_config \
1355 PM825_BIGFLASH_config \
1356 PM825_ROMBOOT_BIGFLASH_config \
1358 PM826_ROMBOOT_config \
1359 PM826_BIGFLASH_config \
1360 PM826_ROMBOOT_BIGFLASH_config: unconfig
1361 @mkdir -p $(obj)include
1362 @mkdir -p $(obj)board/pm826
1363 @if [ "$(findstring PM825_,$@)" ] ; then \
1364 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1366 >$(obj)include/config.h ; \
1368 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1369 echo "... booting from 8-bit flash" ; \
1370 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1371 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1372 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1373 echo "... with 32 MB Flash" ; \
1374 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1377 echo "... booting from 64-bit flash" ; \
1378 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1379 echo "... with 32 MB Flash" ; \
1380 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1381 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1383 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1386 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1390 PM828_ROMBOOT_config \
1391 PM828_ROMBOOT_PCI_config: unconfig
1392 @mkdir -p $(obj)include
1393 @mkdir -p $(obj)board/pm826
1394 @if [ "$(findstring _PCI_,$@)" ] ; then \
1395 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1396 echo "... with PCI enabled" ; \
1398 >$(obj)include/config.h ; \
1400 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1401 echo "... booting from 8-bit flash" ; \
1402 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1403 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1405 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1407 ppmc8260_config: unconfig
1408 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1410 Rattler8248_config \
1411 Rattler_config: unconfig
1412 @mkdir -p $(obj)include
1413 $(if $(findstring 8248,$@), \
1414 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1415 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1417 RPXsuper_config: unconfig
1418 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1420 rsdproto_config: unconfig
1421 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1423 sacsng_config: unconfig
1424 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1426 sbc8260_config: unconfig
1427 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1429 SCM_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1442 TQM8265_AA_config: unconfig
1443 @mkdir -p $(obj)include
1445 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1446 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1447 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1448 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1449 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1450 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1451 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1452 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1453 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1454 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1455 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1457 >$(obj)include/config.h ; \
1458 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1459 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1461 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1462 echo "... with $${CFREQ}MHz system clock" ; \
1463 if [ "$${CACHE}" == "yes" ] ; then \
1464 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1465 echo "... with L2 Cache support" ; \
1467 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1468 echo "... without L2 Cache support" ; \
1470 if [ "$${BMODE}" == "60x" ] ; then \
1471 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1472 echo "... with 60x Bus Mode" ; \
1474 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1475 echo "... without 60x Bus Mode" ; \
1477 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1479 VoVPN-GW_66MHz_config \
1480 VoVPN-GW_100MHz_config: unconfig
1481 @mkdir -p $(obj)include
1482 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1483 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1485 ZPC1900_config: unconfig
1486 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1488 #########################################################################
1490 #########################################################################
1492 cobra5272_config : unconfig
1493 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1495 EB+MCF-EV123_config : unconfig
1496 @mkdir -p $(obj)include
1497 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1498 @ >$(obj)include/config.h
1499 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1500 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1502 EB+MCF-EV123_internal_config : unconfig
1503 @mkdir -p $(obj)include
1504 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1505 @ >$(obj)include/config.h
1506 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1507 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1509 M5271EVB_config : unconfig
1510 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1512 M5272C3_config : unconfig
1513 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1515 M5282EVB_config : unconfig
1516 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1518 TASREG_config : unconfig
1519 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1521 r5200_config : unconfig
1522 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1524 #########################################################################
1526 #########################################################################
1528 MPC8349ADS_config: unconfig
1529 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349ads
1531 TQM834x_config: unconfig
1532 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1534 MPC8349EMDS_config: unconfig
1535 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1537 #########################################################################
1539 #########################################################################
1541 MPC8540ADS_config: unconfig
1542 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1544 MPC8540EVAL_config \
1545 MPC8540EVAL_33_config \
1546 MPC8540EVAL_66_config \
1547 MPC8540EVAL_33_slave_config \
1548 MPC8540EVAL_66_slave_config: unconfig
1549 @mkdir -p $(obj)include
1550 @echo "" >$(obj)include/config.h ; \
1551 if [ "$(findstring _33_,$@)" ] ; then \
1552 echo -n "... 33 MHz PCI" ; \
1554 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1555 echo -n "... 66 MHz PCI" ; \
1557 if [ "$(findstring _slave_,$@)" ] ; then \
1558 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1563 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1565 MPC8560ADS_config: unconfig
1566 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1568 MPC8541CDS_config: unconfig
1569 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1571 MPC8548CDS_config: unconfig
1572 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1574 MPC8555CDS_config: unconfig
1575 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1577 PM854_config: unconfig
1578 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1580 PM856_config: unconfig
1581 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1585 sbc8540_66_config: unconfig
1586 @mkdir -p $(obj)include
1587 @if [ "$(findstring _66_,$@)" ] ; then \
1588 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1589 echo "... 66 MHz PCI" ; \
1591 >$(obj)include/config.h ; \
1592 echo "... 33 MHz PCI" ; \
1594 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1598 sbc8560_66_config: unconfig
1599 @mkdir -p $(obj)include
1600 @if [ "$(findstring _66_,$@)" ] ; then \
1601 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1602 echo "... 66 MHz PCI" ; \
1604 >$(obj)include/config.h ; \
1605 echo "... 33 MHz PCI" ; \
1607 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1609 stxgp3_config: unconfig
1610 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1615 TQM8560_config: unconfig
1616 @mkdir -p $(obj)include
1617 @CTYPE=$(subst TQM,,$(@:_config=)); \
1618 >$(obj)include/config.h ; \
1619 echo "... TQM"$${CTYPE}; \
1620 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1621 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1622 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1623 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1624 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1625 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1627 #########################################################################
1629 #########################################################################
1631 AmigaOneG3SE_config: unconfig
1632 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1634 BAB7xx_config: unconfig
1635 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1637 CPCI750_config: unconfig
1638 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1640 DB64360_config: unconfig
1641 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1643 DB64460_config: unconfig
1644 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1646 ELPPC_config: unconfig
1647 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1650 EVB64260_750CX_config: unconfig
1651 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1653 P3G4_config: unconfig
1654 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1657 PCIPPC6_config: unconfig
1658 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1660 ZUMA_config: unconfig
1661 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1663 ppmc7xx_config: unconfig
1664 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1666 #========================================================================
1668 #========================================================================
1669 #########################################################################
1670 ## StrongARM Systems
1671 #########################################################################
1673 assabet_config : unconfig
1674 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1676 dnp1110_config : unconfig
1677 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1679 gcplus_config : unconfig
1680 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1682 lart_config : unconfig
1683 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1685 shannon_config : unconfig
1686 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1688 #########################################################################
1690 #########################################################################
1692 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1694 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1696 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1698 at91rm9200dk_config : unconfig
1699 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1701 cmc_pu2_config : unconfig
1702 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1704 csb637_config : unconfig
1705 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1707 mp2usb_config : unconfig
1708 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1711 ########################################################################
1712 ## ARM Integrator boards - see doc/README-integrator for more info.
1713 integratorap_config \
1722 ap946es_config: unconfig
1723 @board/integratorap/split_by_variant.sh $@
1725 integratorcp_config \
1734 cp1026_config: unconfig
1735 @board/integratorcp/split_by_variant.sh $@
1737 kb9202_config : unconfig
1738 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1741 lpd7a404_config: unconfig
1742 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1744 mx1ads_config : unconfig
1745 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1747 mx1fs2_config : unconfig
1748 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1751 netstar_config: unconfig
1752 @mkdir -p $(obj)include
1753 @if [ "$(findstring _32_,$@)" ] ; then \
1754 echo "... 32MB SDRAM" ; \
1755 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1757 echo "... 64MB SDRAM" ; \
1758 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1760 @$(MKCONFIG) -a netstar arm arm925t netstar
1762 omap1510inn_config : unconfig
1763 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
1765 omap5912osk_config : unconfig
1766 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1768 omap1610inn_config \
1769 omap1610inn_cs0boot_config \
1770 omap1610inn_cs3boot_config \
1771 omap1610inn_cs_autoboot_config \
1773 omap1610h2_cs0boot_config \
1774 omap1610h2_cs3boot_config \
1775 omap1610h2_cs_autoboot_config: unconfig
1776 @mkdir -p $(obj)include
1777 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1778 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1779 echo "... configured for CS0 boot"; \
1780 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1781 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
1782 echo "... configured for CS_AUTO boot"; \
1784 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1785 echo "... configured for CS3 boot"; \
1787 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
1790 omap730p2_cs0boot_config \
1791 omap730p2_cs3boot_config : unconfig
1792 @mkdir -p $(obj)include
1793 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1794 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
1795 echo "... configured for CS0 boot"; \
1797 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
1798 echo "... configured for CS3 boot"; \
1800 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1802 sbc2410x_config: unconfig
1803 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
1805 scb9328_config : unconfig
1806 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
1808 smdk2400_config : unconfig
1809 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
1811 smdk2410_config : unconfig
1812 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
1814 SX1_config : unconfig
1815 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
1817 # TRAB default configuration: 8 MB Flash, 32 MB RAM
1819 trab_bigram_config \
1820 trab_bigflash_config \
1821 trab_old_config: unconfig
1822 @mkdir -p $(obj)include
1823 @mkdir -p $(obj)board/trab
1824 @ >$(obj)include/config.h
1825 @[ -z "$(findstring _bigram,$@)" ] || \
1826 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1827 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
1828 echo "... with 8 MB Flash, 32 MB RAM" ; \
1830 @[ -z "$(findstring _bigflash,$@)" ] || \
1831 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
1832 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
1833 echo "... with 16 MB Flash, 16 MB RAM" ; \
1834 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
1836 @[ -z "$(findstring _old,$@)" ] || \
1837 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1838 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
1839 echo "... with 8 MB Flash, 16 MB RAM" ; \
1840 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
1842 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
1844 VCMA9_config : unconfig
1845 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
1847 #========================================================================
1848 # ARM supplied Versatile development boards
1849 #========================================================================
1851 versatileab_config \
1852 versatilepb_config : unconfig
1853 @board/versatile/split_by_variant.sh $@
1855 voiceblue_smallflash_config \
1856 voiceblue_config: unconfig
1857 @mkdir -p $(obj)include
1858 @mkdir -p $(obj)board/voiceblue
1859 @if [ "$(findstring _smallflash_,$@)" ] ; then \
1860 echo "... boot from lower flash bank" ; \
1861 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
1862 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
1864 echo "... boot from upper flash bank" ; \
1865 >$(obj)include/config.h ; \
1866 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
1868 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
1870 cm4008_config : unconfig
1871 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
1873 cm41xx_config : unconfig
1874 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
1876 gth2_config : unconfig
1877 @mkdir -p $(obj)include
1878 @ >$(obj)include/config.h
1879 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
1880 @$(MKCONFIG) -a gth2 mips mips gth2
1882 #########################################################################
1884 #########################################################################
1886 B2_config : unconfig
1887 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
1889 #########################################################################
1891 #########################################################################
1893 armadillo_config: unconfig
1894 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
1896 ep7312_config : unconfig
1897 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
1899 impa7_config : unconfig
1900 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
1902 modnet50_config : unconfig
1903 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
1905 evb4510_config : unconfig
1906 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
1908 #########################################################################
1910 #########################################################################
1912 adsvix_config : unconfig
1913 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
1915 cerf250_config : unconfig
1916 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
1918 cradle_config : unconfig
1919 @$(MKCONFIG) $(@:_config=) arm pxa cradle
1921 csb226_config : unconfig
1922 @$(MKCONFIG) $(@:_config=) arm pxa csb226
1925 @$(MKCONFIG) $(@:_config=) arm pxa delta
1927 innokom_config : unconfig
1928 @$(MKCONFIG) $(@:_config=) arm pxa innokom
1930 ixdp425_config : unconfig
1931 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
1933 ixdpg425_config : unconfig
1934 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
1936 lubbock_config : unconfig
1937 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
1939 pleb2_config : unconfig
1940 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
1942 logodl_config : unconfig
1943 @$(MKCONFIG) $(@:_config=) arm pxa logodl
1945 pdnb3_config : unconfig
1946 @$(MKCONFIG) $(@:_config=) arm ixp pdnb3 prodrive
1948 pxa255_idp_config: unconfig
1949 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
1951 wepep250_config : unconfig
1952 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
1954 xaeniax_config : unconfig
1955 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
1957 xm250_config : unconfig
1958 @$(MKCONFIG) $(@:_config=) arm pxa xm250
1960 xsengine_config : unconfig
1961 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
1964 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
1966 #########################################################################
1968 #########################################################################
1969 omap2420h4_config : unconfig
1970 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
1972 #========================================================================
1974 #========================================================================
1975 #########################################################################
1977 #########################################################################
1978 sc520_cdp_config : unconfig
1979 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
1981 sc520_spunk_config : unconfig
1982 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
1984 sc520_spunk_rel_config : unconfig
1985 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
1987 #========================================================================
1989 #========================================================================
1990 #########################################################################
1992 #########################################################################
1994 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1996 incaip_100MHz_config \
1997 incaip_133MHz_config \
1998 incaip_150MHz_config \
1999 incaip_config: unconfig
2000 @mkdir -p $(obj)include
2001 @ >$(obj)include/config.h
2002 @[ -z "$(findstring _100MHz,$@)" ] || \
2003 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2004 echo "... with 100MHz system clock" ; \
2006 @[ -z "$(findstring _133MHz,$@)" ] || \
2007 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2008 echo "... with 133MHz system clock" ; \
2010 @[ -z "$(findstring _150MHz,$@)" ] || \
2011 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2012 echo "... with 150MHz system clock" ; \
2014 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2016 tb0229_config: unconfig
2017 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2019 #########################################################################
2021 #########################################################################
2022 dbau1000_config : unconfig
2023 @mkdir -p $(obj)include
2024 @ >$(obj)include/config.h
2025 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2026 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2028 dbau1100_config : unconfig
2029 @mkdir -p $(obj)include
2030 @ >$(obj)include/config.h
2031 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2032 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2034 dbau1500_config : unconfig
2035 @mkdir -p $(obj)include
2036 @ >$(obj)include/config.h
2037 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2038 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2040 dbau1550_config : unconfig
2041 @mkdir -p $(obj)include
2042 @ >$(obj)include/config.h
2043 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2044 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2046 dbau1550_el_config : unconfig
2047 @mkdir -p $(obj)include
2048 @ >$(obj)include/config.h
2049 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2050 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2052 pb1000_config : unconfig
2053 @mkdir -p $(obj)include
2054 @ >$(obj)include/config.h
2055 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2056 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2058 #########################################################################
2060 #########################################################################
2062 purple_config : unconfig
2063 @$(MKCONFIG) $(@:_config=) mips mips purple
2065 #========================================================================
2067 #========================================================================
2068 #########################################################################
2070 #########################################################################
2072 DK1C20_safe_32_config \
2073 DK1C20_standard_32_config \
2074 DK1C20_config: unconfig
2075 @mkdir -p $(obj)include
2076 @ >$(obj)include/config.h
2077 @[ -z "$(findstring _safe_32,$@)" ] || \
2078 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2079 echo "... NIOS 'safe_32' configuration" ; \
2081 @[ -z "$(findstring _standard_32,$@)" ] || \
2082 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2083 echo "... NIOS 'standard_32' configuration" ; \
2085 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2086 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2087 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2089 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2091 DK1S10_safe_32_config \
2092 DK1S10_standard_32_config \
2093 DK1S10_mtx_ldk_20_config \
2094 DK1S10_config: unconfig
2095 @mkdir -p $(obj)include
2096 @ >$(obj)include/config.h
2097 @[ -z "$(findstring _safe_32,$@)" ] || \
2098 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2099 echo "... NIOS 'safe_32' configuration" ; \
2101 @[ -z "$(findstring _standard_32,$@)" ] || \
2102 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2103 echo "... NIOS 'standard_32' configuration" ; \
2105 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2106 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2107 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2109 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2110 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2111 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2113 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2115 ADNPESC1_DNPEVA2_base_32_config \
2116 ADNPESC1_base_32_config \
2117 ADNPESC1_config: unconfig
2118 @mkdir -p $(obj)include
2119 @ >$(obj)include/config.h
2120 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2121 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2122 echo "... DNP/EVA2 configuration" ; \
2124 @[ -z "$(findstring _base_32,$@)" ] || \
2125 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2126 echo "... NIOS 'base_32' configuration" ; \
2128 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2129 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2130 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2132 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2134 #########################################################################
2136 #########################################################################
2138 EP1C20_config : unconfig
2139 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2141 EP1S10_config : unconfig
2142 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2144 EP1S40_config : unconfig
2145 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2147 PK1C20_config : unconfig
2148 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2150 PCI5441_config : unconfig
2151 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2153 #========================================================================
2155 #========================================================================
2156 #########################################################################
2158 #########################################################################
2159 suzaku_config: unconfig
2160 @mkdir -p $(obj)include
2161 @ >$(obj)include/config.h
2162 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2163 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2165 #########################################################################
2167 #########################################################################
2168 ezkit533_config : unconfig
2169 @$(MKCONFIG) $(@:_config=) blackfin bf533 ezkit533
2171 stamp_config : unconfig
2172 @$(MKCONFIG) $(@:_config=) blackfin bf533 stamp
2174 dspstamp_config : unconfig
2175 @$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
2177 #########################################################################
2178 #########################################################################
2179 #########################################################################
2182 find $(OBJTREE) -type f \
2183 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2184 -o -name '*.o' -o -name '*.a' \) -print \
2186 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2187 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2188 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2189 $(obj)examples/smc91111_eeprom \
2190 $(obj)examples/test_burst
2191 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2192 $(obj)tools/gen_eth_addr
2193 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2194 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2195 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2196 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2197 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2198 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2199 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2200 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2201 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2202 rm -f $(obj)include/bmp_logo.h
2205 find $(OBJTREE) -type f \( -name .depend \
2206 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2209 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2211 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2212 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2213 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2214 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2216 ifeq ($(OBJTREE),$(SRCTREE))
2218 distclean: clobber unconfig
2221 distclean: clobber unconfig
2226 F=`basename $(TOPDIR)` ; cd .. ; \
2227 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2229 #########################################################################