2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/')
43 export HOSTARCH HOSTOS
45 # Deal with colliding definitions from tcsh etc.
48 #########################################################################
50 # U-boot build supports producing a object files to the separate external
51 # directory. Two use cases are supported:
53 # 1) Add O= to the make command line
54 # 'make O=/tmp/build all'
56 # 2) Set environement variable BUILD_DIR to point to the desired location
57 # 'export BUILD_DIR=/tmp/build'
60 # The second approach can also be used with a MAKEALL script
61 # 'export BUILD_DIR=/tmp/build'
64 # Command line 'O=' setting overrides BUILD_DIR environent variable.
66 # When none of the above methods is used the local build is performed and
67 # the object files are placed in the source directory.
71 ifeq ("$(origin O)", "command line")
77 saved-output := $(BUILD_DIR)
79 # Attempt to create a output directory.
80 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
82 # Verify if it was successful.
83 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
84 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
85 endif # ifneq ($(BUILD_DIR),)
87 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
91 export TOPDIR SRCTREE OBJTREE
93 MKCONFIG := $(SRCTREE)/mkconfig
96 ifneq ($(OBJTREE),$(SRCTREE))
101 # $(obj) and (src) are defined in config.mk but here in main Makefile
102 # we also need them before config.mk is included which is the case for
103 # some targets like unconfig, clean, clobber, distclean, etc.
104 ifneq ($(OBJTREE),$(SRCTREE))
113 #########################################################################
115 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
117 # load ARCH, BOARD, and CPU configuration
118 include $(OBJTREE)/include/config.mk
119 export ARCH CPU BOARD VENDOR SOC
122 ifeq ($(HOSTARCH),$(ARCH))
126 CROSS_COMPILE = ppc_8xx-
129 CROSS_COMPILE = arm-linux-
132 CROSS_COMPILE = i386-linux-
135 CROSS_COMPILE = mips_4KC-
138 CROSS_COMPILE = nios-elf-
141 CROSS_COMPILE = nios2-elf-
144 CROSS_COMPILE = m68k-elf-
146 ifeq ($(ARCH),microblaze)
149 ifeq ($(ARCH),blackfin)
150 CROSS_COMPILE = bfin-uclinux-
153 CROSS_COMPILE = avr32-linux-
160 # load other configuration
161 include $(TOPDIR)/config.mk
163 #########################################################################
164 # U-Boot objects....order is important (i.e. start must be first)
166 OBJS = cpu/$(CPU)/start.o
168 OBJS += cpu/$(CPU)/start16.o
169 OBJS += cpu/$(CPU)/reset.o
172 OBJS += cpu/$(CPU)/resetvec.o
174 ifeq ($(CPU),mpc85xx)
175 OBJS += cpu/$(CPU)/resetvec.o
178 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
179 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
182 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
183 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
186 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
187 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
190 OBJS := $(addprefix $(obj),$(OBJS))
192 LIBS = lib_generic/libgeneric.a
193 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
194 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
195 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
196 LIBS += cpu/$(CPU)/lib$(CPU).a
198 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
201 LIBS += cpu/ixp/npe/libnpe.a
203 LIBS += lib_$(ARCH)/lib$(ARCH).a
204 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
205 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
207 LIBS += disk/libdisk.a
210 LIBS += drivers/libdrivers.a
211 LIBS += drivers/bios_emulator/libatibiosemu.a
212 LIBS += drivers/nand/libnand.a
213 LIBS += drivers/nand_legacy/libnand_legacy.a
214 LIBS += drivers/net/libnet.a
215 ifeq ($(CPU),mpc83xx)
216 LIBS += drivers/qe/qe.a
218 ifeq ($(CPU),mpc85xx)
219 LIBS += drivers/qe/qe.a
221 LIBS += drivers/serial/libserial.a
222 LIBS += drivers/sk98lin/libsk98lin.a
223 LIBS += post/libpost.a post/drivers/libpostdrivers.a
224 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
225 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
226 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
227 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
228 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
229 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
230 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
231 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
232 LIBS += common/libcommon.a
233 LIBS += libfdt/libfdt.a
235 LIBS := $(addprefix $(obj),$(LIBS))
239 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
241 # The "tools" are needed early, so put this first
242 # Don't include stuff already done in $(LIBS)
248 ifeq ($(CONFIG_NAND_U_BOOT),y)
250 U_BOOT_NAND = $(obj)u-boot-nand.bin
253 __OBJS := $(subst $(obj),,$(OBJS))
254 __LIBS := $(subst $(obj),,$(LIBS))
256 #########################################################################
257 #########################################################################
259 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
263 $(obj)u-boot.hex: $(obj)u-boot
264 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
266 $(obj)u-boot.srec: $(obj)u-boot
267 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
269 $(obj)u-boot.bin: $(obj)u-boot
270 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
272 $(obj)u-boot.img: $(obj)u-boot.bin
273 ./tools/mkimage -A $(ARCH) -T firmware -C none \
274 -a $(TEXT_BASE) -e 0 \
275 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
276 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
279 $(obj)u-boot.sha1: $(obj)u-boot.bin
280 $(obj)tools/ubsha1 $(obj)u-boot.bin
282 $(obj)u-boot.dis: $(obj)u-boot
283 $(OBJDUMP) -d $< > $@
285 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
286 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
287 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
288 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
289 -Map u-boot.map -o u-boot
292 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
295 $(MAKE) -C $(dir $(subst $(obj),,$@))
301 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
303 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
304 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
307 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
308 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
309 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
310 $(TOPDIR)) >> $(VERSION_FILE); \
311 echo "\"" >> $(VERSION_FILE)
314 $(MAKE) -C tools/gdb all || exit 1
317 $(MAKE) -C tools/updater all || exit 1
320 $(MAKE) -C tools/env all || exit 1
323 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
326 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
327 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
328 fs/cramfs fs/fat fs/fdos fs/jffs2 \
329 net disk rtc dtt drivers drivers/sk98lin common \
330 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
333 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
334 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
335 fs/cramfs fs/fat fs/fdos fs/jffs2 \
336 net disk rtc dtt drivers drivers/sk98lin common \
337 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
339 $(obj)System.map: $(obj)u-boot
341 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
342 sort > $(obj)System.map
344 #########################################################################
346 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
347 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
348 $(SUBDIRS) version gdbtools updater env depend \
349 dep tags ctags etags $(obj)System.map:
350 @echo "System not configured - see README" >&2
356 git log --no-merges U-Boot-1_1_5.. | \
357 unexpand -a | sed -e 's/\s\s*$$//' > $@
359 #########################################################################
362 @rm -f $(obj)include/config.h $(obj)include/config.mk \
363 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
365 #========================================================================
367 #========================================================================
369 #########################################################################
371 #########################################################################
373 canmb_config: unconfig
374 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
376 cmi_mpc5xx_config: unconfig
377 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
379 PATI_config: unconfig
380 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
382 #########################################################################
384 #########################################################################
387 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
389 BC3450_config: unconfig
390 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
392 cpci5200_config: unconfig
393 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
395 hmi1001_config: unconfig
396 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
399 Lite5200_LOWBOOT_config \
400 Lite5200_LOWBOOT08_config \
401 icecube_5200_config \
402 icecube_5200_LOWBOOT_config \
403 icecube_5200_LOWBOOT08_config \
404 icecube_5200_DDR_config \
405 icecube_5200_DDR_LOWBOOT_config \
406 icecube_5200_DDR_LOWBOOT08_config \
407 icecube_5100_config: unconfig
408 @mkdir -p $(obj)include
409 @mkdir -p $(obj)board/icecube
410 @ >$(obj)include/config.h
411 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
412 { if [ "$(findstring DDR,$@)" ] ; \
413 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
414 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
416 echo "... with LOWBOOT configuration" ; \
418 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
419 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
420 echo "... with 8 MB flash only" ; \
421 echo "... with LOWBOOT configuration" ; \
423 @[ -z "$(findstring DDR,$@)" ] || \
424 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
425 echo "... DDR memory revision" ; \
427 @[ -z "$(findstring 5200,$@)" ] || \
428 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
429 echo "... with MPC5200 processor" ; \
431 @[ -z "$(findstring 5100,$@)" ] || \
432 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
433 echo "... with MGT5100 processor" ; \
435 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
437 jupiter_config: unconfig
438 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
440 v38b_config: unconfig
441 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
443 inka4x0_config: unconfig
444 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
447 lite5200b_PM_config \
448 lite5200b_LOWBOOT_config: unconfig
449 @mkdir -p $(obj)include
450 @mkdir -p $(obj)board/icecube
451 @ >$(obj)include/config.h
452 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
453 @ echo "... DDR memory revision"
454 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
455 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
456 @[ -z "$(findstring _PM_,$@)" ] || \
457 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
458 echo "... with power management (low-power mode) support" ; \
460 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
461 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
462 echo "... with LOWBOOT configuration" ; \
464 @ echo "... with MPC5200B processor"
465 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
468 mcc200_SDRAM_config \
469 mcc200_highboot_config \
470 mcc200_COM12_config \
471 mcc200_COM12_SDRAM_config \
472 mcc200_COM12_highboot_config \
473 mcc200_COM12_highboot_SDRAM_config \
474 mcc200_highboot_SDRAM_config \
477 prs200_highboot_config \
478 prs200_highboot_DDR_config: unconfig
479 @mkdir -p $(obj)include
480 @mkdir -p $(obj)board/mcc200
481 @ >$(obj)include/config.h
482 @[ -n "$(findstring highboot,$@)" ] || \
483 { echo "... with lowboot configuration" ; \
485 @[ -z "$(findstring highboot,$@)" ] || \
486 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
487 echo "... with highboot configuration" ; \
489 @[ -n "$(findstring _SDRAM,$@)" ] || \
490 { if [ -n "$(findstring mcc200,$@)" ]; \
492 echo "... with DDR" ; \
494 if [ -n "$(findstring _DDR,$@)" ];\
496 echo "... with DDR" ; \
498 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
499 echo "... with SDRAM" ; \
503 @[ -z "$(findstring _SDRAM,$@)" ] || \
504 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
505 echo "... with SDRAM" ; \
507 @[ -z "$(findstring COM12,$@)" ] || \
508 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
509 echo "... with console on COM12" ; \
511 @[ -z "$(findstring prs200,$@)" ] || \
512 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
514 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
516 mecp5200_config: unconfig
517 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
520 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
522 pf5200_config: unconfig
523 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
527 PM520_ROMBOOT_config \
528 PM520_ROMBOOT_DDR_config: unconfig
529 @mkdir -p $(obj)include
530 @ >$(obj)include/config.h
531 @[ -z "$(findstring DDR,$@)" ] || \
532 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
533 echo "... DDR memory revision" ; \
535 @[ -z "$(findstring ROMBOOT,$@)" ] || \
536 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
537 echo "... booting from 8-bit flash" ; \
539 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
541 smmaco4_config: unconfig
542 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
544 cm5200_config: unconfig
545 @./mkconfig -a cm5200 ppc mpc5xxx cm5200
547 spieval_config: unconfig
548 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
551 TB5200_config: unconfig
552 @mkdir -p $(obj)include
553 @[ -z "$(findstring _B,$@)" ] || \
554 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
555 echo "... with MPC5200B processor" ; \
557 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
561 TOP5200_config: unconfig
562 @mkdir -p $(obj)include
563 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
564 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
568 Total5200_lowboot_config \
569 Total5200_Rev2_config \
570 Total5200_Rev2_lowboot_config: unconfig
571 @mkdir -p $(obj)include
572 @mkdir -p $(obj)board/total5200
573 @ >$(obj)include/config.h
574 @[ -z "$(findstring 5100,$@)" ] || \
575 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
576 echo "... with MGT5100 processor" ; \
578 @[ -z "$(findstring 5200,$@)" ] || \
579 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
580 echo "... with MPC5200 processor" ; \
582 @[ -n "$(findstring Rev,$@)" ] || \
583 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
584 echo "... revision 1 board" ; \
586 @[ -z "$(findstring Rev2_,$@)" ] || \
587 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
588 echo "... revision 2 board" ; \
590 @[ -z "$(findstring lowboot_,$@)" ] || \
591 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
592 echo "... with lowboot configuration" ; \
594 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
597 cam5200_niosflash_config \
601 TQM5200S_HIGHBOOT_config \
603 TQM5200_B_HIGHBOOT_config \
605 TQM5200_STK100_config: unconfig
606 @mkdir -p $(obj)include
607 @mkdir -p $(obj)board/tqm5200
608 @ >$(obj)include/config.h
609 @[ -z "$(findstring cam5200,$@)" ] || \
610 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
611 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
612 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
613 echo "... TQM5200S on Cam5200" ; \
615 @[ -z "$(findstring niosflash,$@)" ] || \
616 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
617 echo "... with NIOS flash driver" ; \
619 @[ -z "$(findstring fo300,$@)" ] || \
620 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
621 echo "... TQM5200 on FO300" ; \
623 @[ -z "$(findstring MiniFAP,$@)" ] || \
624 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
625 echo "... TQM5200_AC on MiniFAP" ; \
627 @[ -z "$(findstring STK100,$@)" ] || \
628 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
629 echo "... on a STK52XX.100 base board" ; \
631 @[ -z "$(findstring TQM5200_B,$@)" ] || \
632 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
634 @[ -z "$(findstring TQM5200S,$@)" ] || \
635 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
636 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
638 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
639 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
641 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
642 uc101_config: unconfig
643 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
644 motionpro_config: unconfig
645 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
648 #########################################################################
650 #########################################################################
651 ads5121_config: unconfig
652 @$(MKCONFIG) ads5121 ppc mpc512x ads5121
655 #########################################################################
657 #########################################################################
663 @mkdir -p $(obj)include
664 $(if $(findstring AdderII,$@), \
665 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
666 @$(MKCONFIG) -a Adder ppc mpc8xx adder
668 AdderUSB_config: unconfig
669 @./mkconfig -a AdderUSB ppc mpc8xx adder
676 FADS860T_config: unconfig
677 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
679 AMX860_config : unconfig
680 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
682 c2mon_config: unconfig
683 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
686 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
688 cogent_mpc8xx_config: unconfig
689 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
691 ELPT860_config: unconfig
692 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
694 EP88x_config: unconfig
695 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
697 ESTEEM192E_config: unconfig
698 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
700 ETX094_config : unconfig
701 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
703 FLAGADM_config: unconfig
704 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
706 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
709 GEN860T_config: unconfig
710 @mkdir -p $(obj)include
711 @ >$(obj)include/config.h
712 @[ -z "$(findstring _SC,$@)" ] || \
713 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
714 echo "With reduced H/W feature set (SC)..." ; \
716 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
718 GENIETV_config: unconfig
719 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
722 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
724 hermes_config : unconfig
725 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
727 HMI10_config : unconfig
728 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
730 IAD210_config: unconfig
731 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
733 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
735 ICU862_100MHz_config \
736 ICU862_config: unconfig
737 @mkdir -p $(obj)include
738 @ >$(obj)include/config.h
739 @[ -z "$(findstring _100MHz,$@)" ] || \
740 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
741 echo "... with 100MHz system clock" ; \
743 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
745 IP860_config : unconfig
746 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
750 IVML24_config: unconfig
751 @mkdir -p $(obj)include
752 @ >$(obj)include/config.h
753 @[ -z "$(findstring IVML24_config,$@)" ] || \
754 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
756 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
757 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
759 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
760 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
762 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
766 IVMS8_config: unconfig
767 @mkdir -p $(obj)include
768 @ >$(obj)include/config.h
769 @[ -z "$(findstring IVMS8_config,$@)" ] || \
770 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
772 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
773 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
775 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
776 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
778 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
780 KUP4K_config : unconfig
781 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
783 KUP4X_config : unconfig
784 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
786 LANTEC_config : unconfig
787 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
789 lwmon_config: unconfig
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
793 MBX860T_config: unconfig
794 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
796 MHPC_config: unconfig
797 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
799 MVS1_config : unconfig
800 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
802 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
805 NETVIA_config: unconfig
806 @mkdir -p $(obj)include
807 @ >$(obj)include/config.h
808 @[ -z "$(findstring NETVIA_config,$@)" ] || \
809 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
810 echo "... Version 1" ; \
812 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
813 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
814 echo "... Version 2" ; \
816 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
818 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
821 NETPHONE_config: unconfig
822 @mkdir -p $(obj)include
823 @ >$(obj)include/config.h
824 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
825 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
827 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
828 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
830 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
832 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
834 NETTA_ISDN_6412_SWAPHOOK_config \
835 NETTA_ISDN_SWAPHOOK_config \
836 NETTA_6412_SWAPHOOK_config \
837 NETTA_SWAPHOOK_config \
838 NETTA_ISDN_6412_config \
841 NETTA_config: unconfig
842 @mkdir -p $(obj)include
843 @ >$(obj)include/config.h
844 @[ -z "$(findstring ISDN_,$@)" ] || \
845 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
847 @[ -n "$(findstring ISDN_,$@)" ] || \
848 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
850 @[ -z "$(findstring 6412_,$@)" ] || \
851 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
853 @[ -n "$(findstring 6412_,$@)" ] || \
854 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
856 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
857 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
859 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
860 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
862 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
864 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
867 NETTA2_config: unconfig
868 @mkdir -p $(obj)include
869 @ >$(obj)include/config.h
870 @[ -z "$(findstring NETTA2_config,$@)" ] || \
871 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
873 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
874 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
876 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
880 CP850_config: unconfig
881 @mkdir -p $(obj)include
882 @ >$(obj)include/config.h
883 @[ -z "$(findstring CP850,$@)" ] || \
884 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
885 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
887 @[ -z "$(findstring Rev1,$@)" ] || \
888 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
890 @[ -z "$(findstring Rev2,$@)" ] || \
891 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
893 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
895 NX823_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
898 pcu_e_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
901 QS850_config: unconfig
902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
904 QS823_config: unconfig
905 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
907 QS860T_config: unconfig
908 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
910 quantum_config: unconfig
911 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
913 R360MPI_config: unconfig
914 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
916 RBC823_config: unconfig
917 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
919 RPXClassic_config: unconfig
920 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
922 RPXlite_config: unconfig
923 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
925 RPXlite_DW_64_config \
926 RPXlite_DW_LCD_config \
927 RPXlite_DW_64_LCD_config \
928 RPXlite_DW_NVRAM_config \
929 RPXlite_DW_NVRAM_64_config \
930 RPXlite_DW_NVRAM_LCD_config \
931 RPXlite_DW_NVRAM_64_LCD_config \
932 RPXlite_DW_config: unconfig
933 @mkdir -p $(obj)include
934 @ >$(obj)include/config.h
935 @[ -z "$(findstring _64,$@)" ] || \
936 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
937 echo "... with 64MHz system clock ..."; \
939 @[ -z "$(findstring _LCD,$@)" ] || \
940 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
941 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
942 echo "... with LCD display ..."; \
944 @[ -z "$(findstring _NVRAM,$@)" ] || \
945 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
946 echo "... with ENV in NVRAM ..."; \
948 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
951 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
953 RRvision_config: unconfig
954 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
956 RRvision_LCD_config: unconfig
957 @mkdir -p $(obj)include
958 @echo "#define CONFIG_LCD" >$(obj)include/config.h
959 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
960 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
962 SM850_config : unconfig
963 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
966 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
968 SPD823TS_config: unconfig
969 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
971 stxxtc_config: unconfig
972 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
974 svm_sc8xx_config: unconfig
975 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
977 SXNI855T_config: unconfig
978 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
980 # EMK MPC8xx based modules
981 TOP860_config: unconfig
982 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
984 # Play some tricks for configuration selection
985 # Only 855 and 860 boards may come with FEC
986 # and only 823 boards may have LCD support
987 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1005 virtlab2_config: unconfig
1006 @mkdir -p $(obj)include
1007 @ >$(obj)include/config.h
1008 @[ -z "$(findstring _LCD,$@)" ] || \
1009 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1010 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1011 echo "... with LCD display" ; \
1013 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1015 TTTech_config: unconfig
1016 @mkdir -p $(obj)include
1017 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1018 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1019 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1021 uc100_config : unconfig
1022 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1024 v37_config: unconfig
1025 @mkdir -p $(obj)include
1026 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1027 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1028 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1030 wtk_config: unconfig
1031 @mkdir -p $(obj)include
1032 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1033 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1034 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1036 #########################################################################
1038 #########################################################################
1039 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1041 acadia_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1044 acadia_nand_config: unconfig
1045 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1046 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1047 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1048 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1049 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1050 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1052 ADCIOP_config: unconfig
1053 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1055 alpr_config: unconfig
1056 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1058 AP1000_config:unconfig
1059 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1061 APC405_config: unconfig
1062 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1064 AR405_config: unconfig
1065 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1067 ASH405_config: unconfig
1068 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1070 bamboo_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1073 bamboo_nand_config: unconfig
1074 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1075 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1076 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1077 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1078 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1079 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1081 bubinga_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1084 CANBT_config: unconfig
1085 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1088 CATcenter_25_config \
1089 CATcenter_33_config: unconfig
1090 @mkdir -p $(obj)include
1091 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1092 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1093 @[ -z "$(findstring _25,$@)" ] || \
1094 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1095 echo "SysClk = 25MHz" ; \
1097 @[ -z "$(findstring _33,$@)" ] || \
1098 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1099 echo "SysClk = 33MHz" ; \
1101 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1103 CPCI2DP_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1109 CPCI405AB_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1111 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1113 CPCI440_config: unconfig
1114 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1116 CPCIISER4_config: unconfig
1117 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1119 CRAYL1_config: unconfig
1120 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1122 csb272_config: unconfig
1123 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1125 csb472_config: unconfig
1126 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1128 DASA_SIM_config: unconfig
1129 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1131 DP405_config: unconfig
1132 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1134 DU405_config: unconfig
1135 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1137 ebony_config: unconfig
1138 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1140 ERIC_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1143 EXBITGEN_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1146 G2000_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1149 hcu4_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1152 hcu5_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1155 HH405_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1158 HUB405_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1161 JSE_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1164 KAREF_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1167 katmai_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1170 luan_config: unconfig
1171 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1173 lwmon5_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1176 METROBOX_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1179 MIP405_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1182 MIP405T_config: unconfig
1183 @mkdir -p $(obj)include
1184 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1185 @echo "Enable subset config for MIP405T"
1186 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1188 ML2_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1191 ml300_config: unconfig
1192 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1194 ocotea_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1198 ORSG_config: unconfig
1199 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1201 p3p440_config: unconfig
1202 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1204 PCI405_config: unconfig
1205 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1207 pcs440ep_config: unconfig
1208 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1210 PIP405_config: unconfig
1211 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1213 PLU405_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1216 PMC405_config: unconfig
1217 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1219 PPChameleonEVB_config \
1220 PPChameleonEVB_BA_25_config \
1221 PPChameleonEVB_ME_25_config \
1222 PPChameleonEVB_HI_25_config \
1223 PPChameleonEVB_BA_33_config \
1224 PPChameleonEVB_ME_33_config \
1225 PPChameleonEVB_HI_33_config: unconfig
1226 @mkdir -p $(obj)include
1227 @ >$(obj)include/config.h
1228 @[ -z "$(findstring EVB_BA,$@)" ] || \
1229 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1230 echo "... BASIC model" ; \
1232 @[ -z "$(findstring EVB_ME,$@)" ] || \
1233 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1234 echo "... MEDIUM model" ; \
1236 @[ -z "$(findstring EVB_HI,$@)" ] || \
1237 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1238 echo "... HIGH-END model" ; \
1240 @[ -z "$(findstring _25,$@)" ] || \
1241 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1242 echo "SysClk = 25MHz" ; \
1244 @[ -z "$(findstring _33,$@)" ] || \
1245 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1246 echo "SysClk = 33MHz" ; \
1248 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1250 sbc405_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1254 rainier_config: unconfig
1255 @mkdir -p $(obj)include
1256 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1257 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1258 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1260 sequoia_nand_config \
1261 rainier_nand_config: unconfig
1262 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1263 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1264 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1265 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1266 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1267 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1268 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1269 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1274 taihu_config: unconfig
1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1277 taishan_config: unconfig
1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1280 VOH405_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1283 VOM405_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1286 CMS700_config: unconfig
1287 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1290 W7OLMG_config: unconfig
1291 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1293 # Walnut & Sycamore images are identical (recognized via PVR)
1295 sycamore_config: unconfig
1296 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1298 WUH405_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1301 XPEDITE1K_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1305 yellowstone_config: unconfig
1306 @mkdir -p $(obj)include
1307 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1308 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1309 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1311 yucca_config: unconfig
1312 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1314 zeus_config: unconfig
1315 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1317 #########################################################################
1319 #########################################################################
1322 Yukon8220_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1325 sorcery_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1328 #########################################################################
1330 #########################################################################
1331 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1333 A3000_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1336 barco_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1339 BMW_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1343 CPC45_ROMBOOT_config: unconfig
1344 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1345 @cd $(obj)include ; \
1346 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1347 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1348 echo "... booting from 8-bit flash" ; \
1350 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1351 echo "... booting from 64-bit flash" ; \
1353 echo "export CONFIG_BOOT_ROM" >> config.mk;
1355 CU824_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1358 debris_config: unconfig
1359 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1361 eXalion_config: unconfig
1362 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1364 HIDDEN_DRAGON_config: unconfig
1365 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1367 kvme080_config: unconfig
1368 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1370 MOUSSE_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1373 MUSENKI_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1376 MVBLUE_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1379 OXC_config: unconfig
1380 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1382 PN62_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1385 Sandpoint8240_config: unconfig
1386 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1388 Sandpoint8245_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1391 sbc8240_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1394 SL8245_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1397 utx8245_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1400 #########################################################################
1402 #########################################################################
1404 atc_config: unconfig
1405 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1407 cogent_mpc8260_config: unconfig
1408 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1411 CPU86_ROMBOOT_config: unconfig
1412 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1413 @cd $(obj)include ; \
1414 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1415 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1416 echo "... booting from 8-bit flash" ; \
1418 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1419 echo "... booting from 64-bit flash" ; \
1421 echo "export CONFIG_BOOT_ROM" >> config.mk;
1424 CPU87_ROMBOOT_config: unconfig
1425 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1426 @cd $(obj)include ; \
1427 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1428 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1429 echo "... booting from 8-bit flash" ; \
1431 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1432 echo "... booting from 64-bit flash" ; \
1434 echo "export CONFIG_BOOT_ROM" >> config.mk;
1437 ep8248E_config : unconfig
1438 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1440 ep8260_config: unconfig
1441 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1443 ep82xxm_config: unconfig
1444 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1446 gw8260_config: unconfig
1447 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1449 hymod_config: unconfig
1450 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1452 IDS8247_config: unconfig
1453 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1455 IPHASE4539_config: unconfig
1456 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1459 ISPAN_REVB_config: unconfig
1460 @mkdir -p $(obj)include
1461 @if [ "$(findstring _REVB_,$@)" ] ; then \
1462 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1464 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1467 MPC8260ADS_lowboot_config \
1468 MPC8260ADS_33MHz_config \
1469 MPC8260ADS_33MHz_lowboot_config \
1470 MPC8260ADS_40MHz_config \
1471 MPC8260ADS_40MHz_lowboot_config \
1473 MPC8272ADS_lowboot_config \
1475 PQ2FADS_lowboot_config \
1477 PQ2FADS-VR_lowboot_config \
1479 PQ2FADS-ZU_lowboot_config \
1480 PQ2FADS-ZU_66MHz_config \
1481 PQ2FADS-ZU_66MHz_lowboot_config \
1483 @mkdir -p $(obj)include
1484 @mkdir -p $(obj)board/mpc8260ads
1485 $(if $(findstring PQ2FADS,$@), \
1486 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1487 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1488 $(if $(findstring MHz,$@), \
1489 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1490 $(if $(findstring VR,$@), \
1491 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1492 @[ -z "$(findstring lowboot_,$@)" ] || \
1493 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1494 echo "... with lowboot configuration" ; \
1496 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1498 MPC8266ADS_config: unconfig
1499 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1501 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1503 PM825_ROMBOOT_config \
1504 PM825_BIGFLASH_config \
1505 PM825_ROMBOOT_BIGFLASH_config \
1507 PM826_ROMBOOT_config \
1508 PM826_BIGFLASH_config \
1509 PM826_ROMBOOT_BIGFLASH_config: unconfig
1510 @mkdir -p $(obj)include
1511 @mkdir -p $(obj)board/pm826
1512 @if [ "$(findstring PM825_,$@)" ] ; then \
1513 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1515 >$(obj)include/config.h ; \
1517 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1518 echo "... booting from 8-bit flash" ; \
1519 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1520 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1521 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1522 echo "... with 32 MB Flash" ; \
1523 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1526 echo "... booting from 64-bit flash" ; \
1527 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1528 echo "... with 32 MB Flash" ; \
1529 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1530 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1532 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1535 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1539 PM828_ROMBOOT_config \
1540 PM828_ROMBOOT_PCI_config: unconfig
1541 @mkdir -p $(obj)include
1542 @mkdir -p $(obj)board/pm826
1543 @if [ "$(findstring _PCI_,$@)" ] ; then \
1544 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1545 echo "... with PCI enabled" ; \
1547 >$(obj)include/config.h ; \
1549 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1550 echo "... booting from 8-bit flash" ; \
1551 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1552 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1554 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1556 ppmc8260_config: unconfig
1557 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1559 Rattler8248_config \
1560 Rattler_config: unconfig
1561 @mkdir -p $(obj)include
1562 $(if $(findstring 8248,$@), \
1563 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1564 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1566 RPXsuper_config: unconfig
1567 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1569 rsdproto_config: unconfig
1570 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1572 sacsng_config: unconfig
1573 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1575 sbc8260_config: unconfig
1576 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1578 SCM_config: unconfig
1579 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1591 TQM8265_AA_config: unconfig
1592 @mkdir -p $(obj)include
1594 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1595 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1596 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1597 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1598 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1599 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1600 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1601 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1602 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1603 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1604 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1606 >$(obj)include/config.h ; \
1607 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1608 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1610 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1611 echo "... with $${CFREQ}MHz system clock" ; \
1612 if [ "$${CACHE}" == "yes" ] ; then \
1613 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1614 echo "... with L2 Cache support" ; \
1616 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1617 echo "... without L2 Cache support" ; \
1619 if [ "$${BMODE}" == "60x" ] ; then \
1620 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1621 echo "... with 60x Bus Mode" ; \
1623 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1624 echo "... without 60x Bus Mode" ; \
1626 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1628 TQM8272_config: unconfig
1629 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1631 VoVPN-GW_66MHz_config \
1632 VoVPN-GW_100MHz_config: unconfig
1633 @mkdir -p $(obj)include
1634 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1635 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1637 ZPC1900_config: unconfig
1638 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1640 #########################################################################
1642 #########################################################################
1645 M5235EVB_Flash16_config \
1646 M5235EVB_Flash32_config: unconfig
1648 M5235EVB_config) FLASH=16;; \
1649 M5235EVB_Flash16_config) FLASH=16;; \
1650 M5235EVB_Flash32_config) FLASH=32;; \
1652 >include/config.h ; \
1653 if [ "$${FLASH}" != "16" ] ; then \
1654 echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \
1655 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1656 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1658 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1659 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1661 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1663 M5249EVB_config : unconfig
1664 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1666 M5253EVBE_config : unconfig
1667 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1669 cobra5272_config : unconfig
1670 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1672 EB+MCF-EV123_config : unconfig
1673 @mkdir -p $(obj)include
1674 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1675 @ >$(obj)include/config.h
1676 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1677 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1679 EB+MCF-EV123_internal_config : unconfig
1680 @mkdir -p $(obj)include
1681 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1682 @ >$(obj)include/config.h
1683 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1684 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1686 idmr_config : unconfig
1687 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1689 M5271EVB_config : unconfig
1690 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1692 M5272C3_config : unconfig
1693 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1695 M5282EVB_config : unconfig
1696 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1698 TASREG_config : unconfig
1699 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1701 r5200_config : unconfig
1702 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1705 M5329BFEE_config : unconfig
1707 M5329AFEE_config) NAND=0;; \
1708 M5329BFEE_config) NAND=16;; \
1710 >include/config.h ; \
1711 if [ "$${NAND}" != "0" ] ; then \
1712 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1714 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1717 M54455EVB_atmel_config \
1718 M54455EVB_intel_config \
1719 M54455EVB_a33_config \
1720 M54455EVB_a66_config \
1721 M54455EVB_i33_config \
1722 M54455EVB_i66_config : unconfig
1724 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1725 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1726 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1727 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1728 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1729 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1730 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1732 >include/config.h ; \
1733 if [ "$${FLASH}" == "INTEL" ] ; then \
1734 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1735 echo "... with INTEL boot..." ; \
1737 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1738 echo "... with ATMEL boot..." ; \
1740 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1741 echo "... with $${FREQ}Hz input clock"
1742 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1744 #########################################################################
1746 #########################################################################
1748 MPC8313ERDB_33_config \
1749 MPC8313ERDB_66_config: unconfig
1750 @mkdir -p $(obj)include
1751 @echo "" >$(obj)include/config.h ; \
1752 if [ "$(findstring _33_,$@)" ] ; then \
1753 echo -n "...33M ..." ; \
1754 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1756 if [ "$(findstring _66_,$@)" ] ; then \
1757 echo -n "...66M..." ; \
1758 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1760 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1762 MPC8323ERDB_config: unconfig
1763 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1765 MPC832XEMDS_config \
1766 MPC832XEMDS_HOST_33_config \
1767 MPC832XEMDS_HOST_66_config \
1768 MPC832XEMDS_SLAVE_config: unconfig
1769 @mkdir -p $(obj)include
1770 @echo "" >$(obj)include/config.h ; \
1771 if [ "$(findstring _HOST_,$@)" ] ; then \
1772 echo -n "... PCI HOST " ; \
1773 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1775 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1776 echo "...PCI SLAVE 66M" ; \
1777 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1778 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1780 if [ "$(findstring _33_,$@)" ] ; then \
1781 echo -n "...33M ..." ; \
1782 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1784 if [ "$(findstring _66_,$@)" ] ; then \
1785 echo -n "...66M..." ; \
1786 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1788 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1790 MPC8349EMDS_config: unconfig
1791 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1794 MPC8349ITX_LOWBOOT_config \
1795 MPC8349ITXGP_config: unconfig
1796 @mkdir -p $(obj)include
1797 @mkdir -p $(obj)board/mpc8349itx
1798 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1799 @if [ "$(findstring GP,$@)" ] ; then \
1800 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1802 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1803 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1805 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
1807 MPC8360EMDS_config \
1808 MPC8360EMDS_HOST_33_config \
1809 MPC8360EMDS_HOST_66_config \
1810 MPC8360EMDS_SLAVE_config: unconfig
1811 @mkdir -p $(obj)include
1812 @echo "" >$(obj)include/config.h ; \
1813 if [ "$(findstring _HOST_,$@)" ] ; then \
1814 echo -n "... PCI HOST " ; \
1815 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1817 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1818 echo "...PCI SLAVE 66M" ; \
1819 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1820 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1822 if [ "$(findstring _33_,$@)" ] ; then \
1823 echo -n "...33M ..." ; \
1824 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1826 if [ "$(findstring _66_,$@)" ] ; then \
1827 echo -n "...66M..." ; \
1828 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1830 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
1832 sbc8349_config: unconfig
1833 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1835 TQM834x_config: unconfig
1836 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1839 #########################################################################
1841 #########################################################################
1843 MPC8540ADS_config: unconfig
1844 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1846 MPC8540EVAL_config \
1847 MPC8540EVAL_33_config \
1848 MPC8540EVAL_66_config \
1849 MPC8540EVAL_33_slave_config \
1850 MPC8540EVAL_66_slave_config: unconfig
1851 @mkdir -p $(obj)include
1852 @echo "" >$(obj)include/config.h ; \
1853 if [ "$(findstring _33_,$@)" ] ; then \
1854 echo "... 33 MHz PCI" ; \
1856 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1857 echo "... 66 MHz PCI" ; \
1859 if [ "$(findstring _slave_,$@)" ] ; then \
1860 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1865 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1867 MPC8560ADS_config: unconfig
1868 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1870 MPC8541CDS_legacy_config \
1871 MPC8541CDS_config: unconfig
1872 @mkdir -p $(obj)include
1873 @echo "" >$(obj)include/config.h ; \
1874 if [ "$(findstring _legacy_,$@)" ] ; then \
1875 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1876 echo "... legacy" ; \
1878 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds cds
1880 MPC8544DS_config: unconfig
1881 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1883 MPC8548CDS_legacy_config \
1884 MPC8548CDS_config: unconfig
1885 @mkdir -p $(obj)include
1886 @echo "" >$(obj)include/config.h ; \
1887 if [ "$(findstring _legacy_,$@)" ] ; then \
1888 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1889 echo "... legacy" ; \
1891 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds cds
1893 MPC8555CDS_legacy_config \
1894 MPC8555CDS_config: unconfig
1895 @mkdir -p $(obj)include
1896 @echo "" >$(obj)include/config.h ; \
1897 if [ "$(findstring _legacy_,$@)" ] ; then \
1898 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1899 echo "... legacy" ; \
1901 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds cds
1903 MPC8568MDS_config: unconfig
1904 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1906 PM854_config: unconfig
1907 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1909 PM856_config: unconfig
1910 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1914 sbc8540_66_config: unconfig
1915 @mkdir -p $(obj)include
1916 @if [ "$(findstring _66_,$@)" ] ; then \
1917 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1918 echo "... 66 MHz PCI" ; \
1920 >$(obj)include/config.h ; \
1921 echo "... 33 MHz PCI" ; \
1923 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1927 sbc8560_66_config: unconfig
1928 @mkdir -p $(obj)include
1929 @if [ "$(findstring _66_,$@)" ] ; then \
1930 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1931 echo "... 66 MHz PCI" ; \
1933 >$(obj)include/config.h ; \
1934 echo "... 33 MHz PCI" ; \
1936 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1938 stxgp3_config: unconfig
1939 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1942 stxssa_4M_config: unconfig
1943 @mkdir -p $(obj)include
1944 @if [ "$(findstring _4M_,$@)" ] ; then \
1945 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1946 echo "... with 4 MiB flash memory" ; \
1948 >$(obj)include/config.h ; \
1950 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1955 TQM8560_config: unconfig
1956 @mkdir -p $(obj)include
1957 @CTYPE=$(subst TQM,,$(@:_config=)); \
1958 >$(obj)include/config.h ; \
1959 echo "... TQM"$${CTYPE}; \
1960 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1961 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1962 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1963 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1964 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1965 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1967 #########################################################################
1969 #########################################################################
1971 MPC8641HPCN_config: unconfig
1972 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
1974 sbc8641d_config: unconfig
1975 @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
1977 #########################################################################
1979 #########################################################################
1981 AmigaOneG3SE_config: unconfig
1982 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1984 BAB7xx_config: unconfig
1985 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1987 CPCI750_config: unconfig
1988 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1990 DB64360_config: unconfig
1991 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1993 DB64460_config: unconfig
1994 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1996 ELPPC_config: unconfig
1997 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2000 EVB64260_750CX_config: unconfig
2001 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2003 mpc7448hpc2_config: unconfig
2004 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
2006 P3G4_config: unconfig
2007 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2010 p3m7448_config: unconfig
2011 @mkdir -p $(obj)include
2012 @if [ "$(findstring 750_,$@)" ] ; then \
2013 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2015 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2017 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2020 PCIPPC6_config: unconfig
2021 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2023 ZUMA_config: unconfig
2024 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2026 ppmc7xx_config: unconfig
2027 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2029 #========================================================================
2031 #========================================================================
2032 #########################################################################
2033 ## StrongARM Systems
2034 #########################################################################
2036 assabet_config : unconfig
2037 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2039 dnp1110_config : unconfig
2040 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2042 gcplus_config : unconfig
2043 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2045 lart_config : unconfig
2046 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2048 shannon_config : unconfig
2049 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2051 #########################################################################
2053 #########################################################################
2055 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2057 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2059 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2061 at91rm9200dk_config : unconfig
2062 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2064 cmc_pu2_config : unconfig
2065 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2067 csb637_config : unconfig
2068 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2070 mp2usb_config : unconfig
2071 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2074 ########################################################################
2075 ## ARM Integrator boards - see doc/README-integrator for more info.
2076 integratorap_config \
2085 ap946es_config: unconfig
2086 @board/integratorap/split_by_variant.sh $@
2088 integratorcp_config \
2097 cp1026_config: unconfig
2098 @board/integratorcp/split_by_variant.sh $@
2100 kb9202_config : unconfig
2101 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2104 lpd7a404_config: unconfig
2105 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2107 mx1ads_config : unconfig
2108 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2110 mx1fs2_config : unconfig
2111 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2114 netstar_config: unconfig
2115 @mkdir -p $(obj)include
2116 @if [ "$(findstring _32_,$@)" ] ; then \
2117 echo "... 32MB SDRAM" ; \
2118 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2120 echo "... 64MB SDRAM" ; \
2121 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2123 @$(MKCONFIG) -a netstar arm arm925t netstar
2125 omap1510inn_config : unconfig
2126 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2128 omap5912osk_config : unconfig
2129 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2131 davinci_dvevm_config : unconfig
2132 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2134 davinci_schmoogie_config : unconfig
2135 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2137 davinci_sonata_config : unconfig
2138 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2140 omap1610inn_config \
2141 omap1610inn_cs0boot_config \
2142 omap1610inn_cs3boot_config \
2143 omap1610inn_cs_autoboot_config \
2145 omap1610h2_cs0boot_config \
2146 omap1610h2_cs3boot_config \
2147 omap1610h2_cs_autoboot_config: unconfig
2148 @mkdir -p $(obj)include
2149 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2150 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2151 echo "... configured for CS0 boot"; \
2152 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2153 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2154 echo "... configured for CS_AUTO boot"; \
2156 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2157 echo "... configured for CS3 boot"; \
2159 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2162 omap730p2_cs0boot_config \
2163 omap730p2_cs3boot_config : unconfig
2164 @mkdir -p $(obj)include
2165 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2166 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2167 echo "... configured for CS0 boot"; \
2169 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2170 echo "... configured for CS3 boot"; \
2172 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2174 sbc2410x_config: unconfig
2175 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2177 scb9328_config : unconfig
2178 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2180 smdk2400_config : unconfig
2181 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2183 smdk2410_config : unconfig
2184 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2186 SX1_config : unconfig
2187 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2189 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2191 trab_bigram_config \
2192 trab_bigflash_config \
2193 trab_old_config: unconfig
2194 @mkdir -p $(obj)include
2195 @mkdir -p $(obj)board/trab
2196 @ >$(obj)include/config.h
2197 @[ -z "$(findstring _bigram,$@)" ] || \
2198 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2199 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2200 echo "... with 8 MB Flash, 32 MB RAM" ; \
2202 @[ -z "$(findstring _bigflash,$@)" ] || \
2203 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2204 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2205 echo "... with 16 MB Flash, 16 MB RAM" ; \
2206 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2208 @[ -z "$(findstring _old,$@)" ] || \
2209 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2210 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2211 echo "... with 8 MB Flash, 16 MB RAM" ; \
2212 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2214 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2216 VCMA9_config : unconfig
2217 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2219 #========================================================================
2220 # ARM supplied Versatile development boards
2221 #========================================================================
2223 versatileab_config \
2224 versatilepb_config : unconfig
2225 @board/versatile/split_by_variant.sh $@
2227 voiceblue_smallflash_config \
2228 voiceblue_config: unconfig
2229 @mkdir -p $(obj)include
2230 @mkdir -p $(obj)board/voiceblue
2231 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2232 echo "... boot from lower flash bank" ; \
2233 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2234 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2236 echo "... boot from upper flash bank" ; \
2237 >$(obj)include/config.h ; \
2238 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2240 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2242 cm4008_config : unconfig
2243 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2245 cm41xx_config : unconfig
2246 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2248 gth2_config : unconfig
2249 @mkdir -p $(obj)include
2250 @ >$(obj)include/config.h
2251 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2252 @$(MKCONFIG) -a gth2 mips mips gth2
2254 #########################################################################
2256 #########################################################################
2258 B2_config : unconfig
2259 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2261 #########################################################################
2263 #########################################################################
2265 armadillo_config: unconfig
2266 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2268 ep7312_config : unconfig
2269 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2271 impa7_config : unconfig
2272 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2274 modnet50_config : unconfig
2275 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2277 evb4510_config : unconfig
2278 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2280 lpc2292sodimm_config: unconfig
2281 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2283 SMN42_config : unconfig
2284 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2286 #########################################################################
2288 #########################################################################
2290 adsvix_config : unconfig
2291 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2293 cerf250_config : unconfig
2294 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2296 cradle_config : unconfig
2297 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2299 csb226_config : unconfig
2300 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2303 @$(MKCONFIG) $(@:_config=) arm pxa delta
2305 innokom_config : unconfig
2306 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2308 ixdp425_config : unconfig
2309 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2311 ixdpg425_config : unconfig
2312 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2314 lubbock_config : unconfig
2315 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2317 pleb2_config : unconfig
2318 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2320 logodl_config : unconfig
2321 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2324 scpu_config: unconfig
2325 @mkdir -p $(obj)include
2326 @if [ "$(findstring scpu_,$@)" ] ; then \
2327 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2328 echo "... on SCPU board variant" ; \
2330 >$(obj)include/config.h ; \
2332 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2334 pxa255_idp_config: unconfig
2335 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2337 wepep250_config : unconfig
2338 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2340 xaeniax_config : unconfig
2341 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2343 xm250_config : unconfig
2344 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2346 xsengine_config : unconfig
2347 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2350 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2352 #########################################################################
2354 #########################################################################
2355 omap2420h4_config : unconfig
2356 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2358 #========================================================================
2360 #========================================================================
2361 #########################################################################
2363 #########################################################################
2364 sc520_cdp_config : unconfig
2365 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2367 sc520_spunk_config : unconfig
2368 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2370 sc520_spunk_rel_config : unconfig
2371 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2373 #========================================================================
2375 #========================================================================
2376 #########################################################################
2378 #########################################################################
2380 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2382 incaip_100MHz_config \
2383 incaip_133MHz_config \
2384 incaip_150MHz_config \
2385 incaip_config: unconfig
2386 @mkdir -p $(obj)include
2387 @ >$(obj)include/config.h
2388 @[ -z "$(findstring _100MHz,$@)" ] || \
2389 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2390 echo "... with 100MHz system clock" ; \
2392 @[ -z "$(findstring _133MHz,$@)" ] || \
2393 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2394 echo "... with 133MHz system clock" ; \
2396 @[ -z "$(findstring _150MHz,$@)" ] || \
2397 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2398 echo "... with 150MHz system clock" ; \
2400 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2402 tb0229_config: unconfig
2403 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2405 #########################################################################
2407 #########################################################################
2408 dbau1000_config : unconfig
2409 @mkdir -p $(obj)include
2410 @ >$(obj)include/config.h
2411 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2412 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2414 dbau1100_config : unconfig
2415 @mkdir -p $(obj)include
2416 @ >$(obj)include/config.h
2417 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2418 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2420 dbau1500_config : unconfig
2421 @mkdir -p $(obj)include
2422 @ >$(obj)include/config.h
2423 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2424 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2426 dbau1550_config : unconfig
2427 @mkdir -p $(obj)include
2428 @ >$(obj)include/config.h
2429 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2430 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2432 dbau1550_el_config : unconfig
2433 @mkdir -p $(obj)include
2434 @ >$(obj)include/config.h
2435 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2436 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2438 pb1000_config : unconfig
2439 @mkdir -p $(obj)include
2440 @ >$(obj)include/config.h
2441 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2442 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2444 #########################################################################
2446 #########################################################################
2448 purple_config : unconfig
2449 @$(MKCONFIG) $(@:_config=) mips mips purple
2451 #========================================================================
2453 #========================================================================
2454 #########################################################################
2456 #########################################################################
2458 DK1C20_safe_32_config \
2459 DK1C20_standard_32_config \
2460 DK1C20_config: unconfig
2461 @mkdir -p $(obj)include
2462 @ >$(obj)include/config.h
2463 @[ -z "$(findstring _safe_32,$@)" ] || \
2464 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2465 echo "... NIOS 'safe_32' configuration" ; \
2467 @[ -z "$(findstring _standard_32,$@)" ] || \
2468 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2469 echo "... NIOS 'standard_32' configuration" ; \
2471 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2472 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2473 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2475 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2477 DK1S10_safe_32_config \
2478 DK1S10_standard_32_config \
2479 DK1S10_mtx_ldk_20_config \
2480 DK1S10_config: unconfig
2481 @mkdir -p $(obj)include
2482 @ >$(obj)include/config.h
2483 @[ -z "$(findstring _safe_32,$@)" ] || \
2484 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2485 echo "... NIOS 'safe_32' configuration" ; \
2487 @[ -z "$(findstring _standard_32,$@)" ] || \
2488 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2489 echo "... NIOS 'standard_32' configuration" ; \
2491 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2492 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2493 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2495 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2496 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2497 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2499 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2501 ADNPESC1_DNPEVA2_base_32_config \
2502 ADNPESC1_base_32_config \
2503 ADNPESC1_config: unconfig
2504 @mkdir -p $(obj)include
2505 @ >$(obj)include/config.h
2506 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2507 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2508 echo "... DNP/EVA2 configuration" ; \
2510 @[ -z "$(findstring _base_32,$@)" ] || \
2511 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2512 echo "... NIOS 'base_32' configuration" ; \
2514 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2515 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2516 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2518 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2520 #########################################################################
2522 #########################################################################
2524 EP1C20_config : unconfig
2525 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2527 EP1S10_config : unconfig
2528 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2530 EP1S40_config : unconfig
2531 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2533 PK1C20_config : unconfig
2534 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2536 PCI5441_config : unconfig
2537 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2539 #========================================================================
2541 #========================================================================
2542 #########################################################################
2544 #########################################################################
2545 suzaku_config: unconfig
2546 @mkdir -p $(obj)include
2547 @ >$(obj)include/config.h
2548 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2549 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2551 ml401_config: unconfig
2552 @mkdir -p $(obj)include
2553 @ >$(obj)include/config.h
2554 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2555 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2557 xupv2p_config: unconfig
2558 @mkdir -p $(obj)include
2559 @ >$(obj)include/config.h
2560 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2561 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2563 #########################################################################
2565 #########################################################################
2566 bf533-ezkit_config: unconfig
2567 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2569 bf533-stamp_config: unconfig
2570 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2572 bf537-stamp_config: unconfig
2573 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2575 bf561-ezkit_config: unconfig
2576 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2578 #========================================================================
2580 #========================================================================
2581 #########################################################################
2583 #########################################################################
2585 atstk1002_config : unconfig
2586 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2588 #########################################################################
2589 #########################################################################
2590 #########################################################################
2593 find $(OBJTREE) -type f \
2594 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2595 -o -name '*.o' -o -name '*.a' \) -print \
2597 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2598 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2599 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2600 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2601 $(obj)examples/test_burst
2602 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2603 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2604 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2605 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2606 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2607 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2608 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2609 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2610 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2611 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2612 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2613 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2614 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2615 rm -f $(obj)include/bmp_logo.h
2616 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2619 find $(OBJTREE) -type f \( -name .depend \
2620 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2623 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2625 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2626 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2627 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2628 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2629 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2631 ifeq ($(OBJTREE),$(SRCTREE))
2633 distclean: clobber unconfig
2636 distclean: clobber unconfig
2641 F=`basename $(TOPDIR)` ; cd .. ; \
2642 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2644 #########################################################################