2 # (C) Copyright 2000-2007
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
208 LIBS += drivers/libdrivers.a
209 LIBS += drivers/bios_emulator/libatibiosemu.a
210 LIBS += drivers/block/libblock.a
211 LIBS += drivers/hwmon/libhwmon.a
212 LIBS += drivers/i2c/libi2c.a
213 LIBS += drivers/input/libinput.a
214 LIBS += drivers/misc/libmisc.a
215 LIBS += drivers/nand/libnand.a
216 LIBS += drivers/nand_legacy/libnand_legacy.a
217 LIBS += drivers/net/libnet.a
218 LIBS += drivers/net/sk98lin/libsk98lin.a
219 LIBS += drivers/onenand/libonenand.a
220 LIBS += drivers/pci/libpci.a
221 LIBS += drivers/pcmcia/libpcmcia.a
222 LIBS += drivers/rtc/librtc.a
223 LIBS += drivers/serial/libserial.a
224 LIBS += drivers/usb/libusb.a
225 LIBS += drivers/video/libvideo.a
226 ifeq ($(CPU),mpc83xx)
227 LIBS += drivers/qe/qe.a
229 ifeq ($(CPU),mpc85xx)
230 LIBS += drivers/qe/qe.a
232 LIBS += post/libpost.a post/drivers/libpostdrivers.a
233 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
234 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
235 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
236 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
237 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
238 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
239 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
240 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
241 LIBS += common/libcommon.a
242 LIBS += libfdt/libfdt.a
244 LIBS := $(addprefix $(obj),$(LIBS))
248 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
250 # The "tools" are needed early, so put this first
251 # Don't include stuff already done in $(LIBS)
257 ifeq ($(CONFIG_NAND_U_BOOT),y)
259 U_BOOT_NAND = $(obj)u-boot-nand.bin
262 __OBJS := $(subst $(obj),,$(OBJS))
263 __LIBS := $(subst $(obj),,$(LIBS))
265 #########################################################################
266 #########################################################################
268 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
272 $(obj)u-boot.hex: $(obj)u-boot
273 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
275 $(obj)u-boot.srec: $(obj)u-boot
276 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
278 $(obj)u-boot.bin: $(obj)u-boot
279 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
281 $(obj)u-boot.img: $(obj)u-boot.bin
282 ./tools/mkimage -A $(ARCH) -T firmware -C none \
283 -a $(TEXT_BASE) -e 0 \
284 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
285 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
288 $(obj)u-boot.sha1: $(obj)u-boot.bin
289 $(obj)tools/ubsha1 $(obj)u-boot.bin
291 $(obj)u-boot.dis: $(obj)u-boot
292 $(OBJDUMP) -d $< > $@
294 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
295 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
296 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
297 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
298 -Map u-boot.map -o u-boot
301 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
304 $(MAKE) -C $(dir $(subst $(obj),,$@))
310 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
312 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
313 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
316 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
317 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
318 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
319 $(TOPDIR)) >> $(VERSION_FILE); \
320 echo "\"" >> $(VERSION_FILE)
323 $(MAKE) -C tools/gdb all || exit 1
326 $(MAKE) -C tools/updater all || exit 1
329 $(MAKE) -C tools/env all || exit 1
332 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
335 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
336 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
337 fs/cramfs fs/fat fs/fdos fs/jffs2 \
338 net disk rtc dtt drivers drivers/sk98lin common \
339 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
342 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
343 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
344 fs/cramfs fs/fat fs/fdos fs/jffs2 \
345 net disk rtc dtt drivers drivers/sk98lin common \
346 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
348 $(obj)System.map: $(obj)u-boot
350 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
351 sort > $(obj)System.map
353 #########################################################################
355 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
356 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
357 $(SUBDIRS) version gdbtools updater env depend \
358 dep tags ctags etags $(obj)System.map:
359 @echo "System not configured - see README" >&2
365 git log --no-merges U-Boot-1_1_5.. | \
366 unexpand -a | sed -e 's/\s\s*$$//' > $@
368 #########################################################################
371 @rm -f $(obj)include/config.h $(obj)include/config.mk \
372 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
374 #========================================================================
376 #========================================================================
378 #########################################################################
380 #########################################################################
382 canmb_config: unconfig
383 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
385 cmi_mpc5xx_config: unconfig
386 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
388 PATI_config: unconfig
389 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
391 #########################################################################
393 #########################################################################
396 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
398 BC3450_config: unconfig
399 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
401 cpci5200_config: unconfig
402 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
404 hmi1001_config: unconfig
405 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
408 Lite5200_LOWBOOT_config \
409 Lite5200_LOWBOOT08_config \
410 icecube_5200_config \
411 icecube_5200_LOWBOOT_config \
412 icecube_5200_LOWBOOT08_config \
413 icecube_5200_DDR_config \
414 icecube_5200_DDR_LOWBOOT_config \
415 icecube_5200_DDR_LOWBOOT08_config \
416 icecube_5100_config: unconfig
417 @mkdir -p $(obj)include
418 @mkdir -p $(obj)board/icecube
419 @ >$(obj)include/config.h
420 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
421 { if [ "$(findstring DDR,$@)" ] ; \
422 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
423 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
425 echo "... with LOWBOOT configuration" ; \
427 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
428 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
429 echo "... with 8 MB flash only" ; \
430 echo "... with LOWBOOT configuration" ; \
432 @[ -z "$(findstring DDR,$@)" ] || \
433 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
434 echo "... DDR memory revision" ; \
436 @[ -z "$(findstring 5200,$@)" ] || \
437 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
438 echo "... with MPC5200 processor" ; \
440 @[ -z "$(findstring 5100,$@)" ] || \
441 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
442 echo "... with MGT5100 processor" ; \
444 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
446 jupiter_config: unconfig
447 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
449 v38b_config: unconfig
450 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
452 inka4x0_config: unconfig
453 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
456 lite5200b_PM_config \
457 lite5200b_LOWBOOT_config: unconfig
458 @mkdir -p $(obj)include
459 @mkdir -p $(obj)board/icecube
460 @ >$(obj)include/config.h
461 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
462 @ echo "... DDR memory revision"
463 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
464 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
465 @[ -z "$(findstring _PM_,$@)" ] || \
466 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
467 echo "... with power management (low-power mode) support" ; \
469 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
470 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
471 echo "... with LOWBOOT configuration" ; \
473 @ echo "... with MPC5200B processor"
474 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
477 mcc200_SDRAM_config \
478 mcc200_highboot_config \
479 mcc200_COM12_config \
480 mcc200_COM12_SDRAM_config \
481 mcc200_COM12_highboot_config \
482 mcc200_COM12_highboot_SDRAM_config \
483 mcc200_highboot_SDRAM_config \
486 prs200_highboot_config \
487 prs200_highboot_DDR_config: unconfig
488 @mkdir -p $(obj)include
489 @mkdir -p $(obj)board/mcc200
490 @ >$(obj)include/config.h
491 @[ -n "$(findstring highboot,$@)" ] || \
492 { echo "... with lowboot configuration" ; \
494 @[ -z "$(findstring highboot,$@)" ] || \
495 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
496 echo "... with highboot configuration" ; \
498 @[ -n "$(findstring _SDRAM,$@)" ] || \
499 { if [ -n "$(findstring mcc200,$@)" ]; \
501 echo "... with DDR" ; \
503 if [ -n "$(findstring _DDR,$@)" ];\
505 echo "... with DDR" ; \
507 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
508 echo "... with SDRAM" ; \
512 @[ -z "$(findstring _SDRAM,$@)" ] || \
513 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
514 echo "... with SDRAM" ; \
516 @[ -z "$(findstring COM12,$@)" ] || \
517 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
518 echo "... with console on COM12" ; \
520 @[ -z "$(findstring prs200,$@)" ] || \
521 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
523 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
525 mecp5200_config: unconfig
526 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
529 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
531 pf5200_config: unconfig
532 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
536 PM520_ROMBOOT_config \
537 PM520_ROMBOOT_DDR_config: unconfig
538 @mkdir -p $(obj)include
539 @ >$(obj)include/config.h
540 @[ -z "$(findstring DDR,$@)" ] || \
541 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
542 echo "... DDR memory revision" ; \
544 @[ -z "$(findstring ROMBOOT,$@)" ] || \
545 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
546 echo "... booting from 8-bit flash" ; \
548 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
550 smmaco4_config: unconfig
551 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
553 cm5200_config: unconfig
554 @./mkconfig -a cm5200 ppc mpc5xxx cm5200
556 spieval_config: unconfig
557 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
560 TB5200_config: unconfig
561 @mkdir -p $(obj)include
562 @[ -z "$(findstring _B,$@)" ] || \
563 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
564 echo "... with MPC5200B processor" ; \
566 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
570 TOP5200_config: unconfig
571 @mkdir -p $(obj)include
572 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
573 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
577 Total5200_lowboot_config \
578 Total5200_Rev2_config \
579 Total5200_Rev2_lowboot_config: unconfig
580 @mkdir -p $(obj)include
581 @mkdir -p $(obj)board/total5200
582 @ >$(obj)include/config.h
583 @[ -z "$(findstring 5100,$@)" ] || \
584 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
585 echo "... with MGT5100 processor" ; \
587 @[ -z "$(findstring 5200,$@)" ] || \
588 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
589 echo "... with MPC5200 processor" ; \
591 @[ -n "$(findstring Rev,$@)" ] || \
592 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
593 echo "... revision 1 board" ; \
595 @[ -z "$(findstring Rev2_,$@)" ] || \
596 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
597 echo "... revision 2 board" ; \
599 @[ -z "$(findstring lowboot_,$@)" ] || \
600 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
601 echo "... with lowboot configuration" ; \
603 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
606 cam5200_niosflash_config \
610 TQM5200S_HIGHBOOT_config \
612 TQM5200_B_HIGHBOOT_config \
614 TQM5200_STK100_config: unconfig
615 @mkdir -p $(obj)include
616 @mkdir -p $(obj)board/tqm5200
617 @ >$(obj)include/config.h
618 @[ -z "$(findstring cam5200,$@)" ] || \
619 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
620 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
621 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
622 echo "... TQM5200S on Cam5200" ; \
624 @[ -z "$(findstring niosflash,$@)" ] || \
625 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
626 echo "... with NIOS flash driver" ; \
628 @[ -z "$(findstring fo300,$@)" ] || \
629 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
630 echo "... TQM5200 on FO300" ; \
632 @[ -z "$(findstring MiniFAP,$@)" ] || \
633 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
634 echo "... TQM5200_AC on MiniFAP" ; \
636 @[ -z "$(findstring STK100,$@)" ] || \
637 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
638 echo "... on a STK52XX.100 base board" ; \
640 @[ -z "$(findstring TQM5200_B,$@)" ] || \
641 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
643 @[ -z "$(findstring TQM5200S,$@)" ] || \
644 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
645 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
647 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
648 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
650 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
651 uc101_config: unconfig
652 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
653 motionpro_config: unconfig
654 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
657 #########################################################################
659 #########################################################################
660 ads5121_config: unconfig
661 @$(MKCONFIG) ads5121 ppc mpc512x ads5121
664 #########################################################################
666 #########################################################################
672 @mkdir -p $(obj)include
673 $(if $(findstring AdderII,$@), \
674 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
675 @$(MKCONFIG) -a Adder ppc mpc8xx adder
677 AdderUSB_config: unconfig
678 @./mkconfig -a AdderUSB ppc mpc8xx adder
685 FADS860T_config: unconfig
686 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
688 AMX860_config : unconfig
689 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
691 c2mon_config: unconfig
692 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
695 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
697 cogent_mpc8xx_config: unconfig
698 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
700 ELPT860_config: unconfig
701 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
703 EP88x_config: unconfig
704 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
706 ESTEEM192E_config: unconfig
707 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
709 ETX094_config : unconfig
710 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
712 FLAGADM_config: unconfig
713 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
715 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
718 GEN860T_config: unconfig
719 @mkdir -p $(obj)include
720 @ >$(obj)include/config.h
721 @[ -z "$(findstring _SC,$@)" ] || \
722 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
723 echo "With reduced H/W feature set (SC)..." ; \
725 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
727 GENIETV_config: unconfig
728 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
731 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
733 hermes_config : unconfig
734 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
736 HMI10_config : unconfig
737 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
739 IAD210_config: unconfig
740 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
742 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
744 ICU862_100MHz_config \
745 ICU862_config: unconfig
746 @mkdir -p $(obj)include
747 @ >$(obj)include/config.h
748 @[ -z "$(findstring _100MHz,$@)" ] || \
749 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
750 echo "... with 100MHz system clock" ; \
752 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
754 IP860_config : unconfig
755 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
759 IVML24_config: unconfig
760 @mkdir -p $(obj)include
761 @ >$(obj)include/config.h
762 @[ -z "$(findstring IVML24_config,$@)" ] || \
763 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
765 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
766 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
768 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
769 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
771 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
775 IVMS8_config: unconfig
776 @mkdir -p $(obj)include
777 @ >$(obj)include/config.h
778 @[ -z "$(findstring IVMS8_config,$@)" ] || \
779 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
781 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
782 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
784 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
785 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
787 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
789 KUP4K_config : unconfig
790 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
792 KUP4X_config : unconfig
793 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
795 LANTEC_config : unconfig
796 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
798 lwmon_config: unconfig
799 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
802 MBX860T_config: unconfig
803 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
805 MHPC_config: unconfig
806 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
808 MVS1_config : unconfig
809 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
811 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
814 NETVIA_config: unconfig
815 @mkdir -p $(obj)include
816 @ >$(obj)include/config.h
817 @[ -z "$(findstring NETVIA_config,$@)" ] || \
818 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
819 echo "... Version 1" ; \
821 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
822 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
823 echo "... Version 2" ; \
825 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
827 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
830 NETPHONE_config: unconfig
831 @mkdir -p $(obj)include
832 @ >$(obj)include/config.h
833 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
834 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
836 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
837 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
839 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
841 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
843 NETTA_ISDN_6412_SWAPHOOK_config \
844 NETTA_ISDN_SWAPHOOK_config \
845 NETTA_6412_SWAPHOOK_config \
846 NETTA_SWAPHOOK_config \
847 NETTA_ISDN_6412_config \
850 NETTA_config: unconfig
851 @mkdir -p $(obj)include
852 @ >$(obj)include/config.h
853 @[ -z "$(findstring ISDN_,$@)" ] || \
854 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
856 @[ -n "$(findstring ISDN_,$@)" ] || \
857 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
859 @[ -z "$(findstring 6412_,$@)" ] || \
860 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
862 @[ -n "$(findstring 6412_,$@)" ] || \
863 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
865 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
866 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
868 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
869 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
871 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
873 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
876 NETTA2_config: unconfig
877 @mkdir -p $(obj)include
878 @ >$(obj)include/config.h
879 @[ -z "$(findstring NETTA2_config,$@)" ] || \
880 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
882 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
883 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
885 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
889 CP850_config: unconfig
890 @mkdir -p $(obj)include
891 @ >$(obj)include/config.h
892 @[ -z "$(findstring CP850,$@)" ] || \
893 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
894 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
896 @[ -z "$(findstring Rev1,$@)" ] || \
897 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
899 @[ -z "$(findstring Rev2,$@)" ] || \
900 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
902 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
904 NX823_config: unconfig
905 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
907 pcu_e_config: unconfig
908 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
910 QS850_config: unconfig
911 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
913 QS823_config: unconfig
914 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
916 QS860T_config: unconfig
917 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
919 quantum_config: unconfig
920 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
922 R360MPI_config: unconfig
923 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
925 RBC823_config: unconfig
926 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
928 RPXClassic_config: unconfig
929 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
931 RPXlite_config: unconfig
932 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
934 RPXlite_DW_64_config \
935 RPXlite_DW_LCD_config \
936 RPXlite_DW_64_LCD_config \
937 RPXlite_DW_NVRAM_config \
938 RPXlite_DW_NVRAM_64_config \
939 RPXlite_DW_NVRAM_LCD_config \
940 RPXlite_DW_NVRAM_64_LCD_config \
941 RPXlite_DW_config: unconfig
942 @mkdir -p $(obj)include
943 @ >$(obj)include/config.h
944 @[ -z "$(findstring _64,$@)" ] || \
945 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
946 echo "... with 64MHz system clock ..."; \
948 @[ -z "$(findstring _LCD,$@)" ] || \
949 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
950 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
951 echo "... with LCD display ..."; \
953 @[ -z "$(findstring _NVRAM,$@)" ] || \
954 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
955 echo "... with ENV in NVRAM ..."; \
957 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
960 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
962 RRvision_config: unconfig
963 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
965 RRvision_LCD_config: unconfig
966 @mkdir -p $(obj)include
967 @echo "#define CONFIG_LCD" >$(obj)include/config.h
968 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
969 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
971 SM850_config : unconfig
972 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
975 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
977 SPD823TS_config: unconfig
978 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
980 stxxtc_config: unconfig
981 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
983 svm_sc8xx_config: unconfig
984 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
986 SXNI855T_config: unconfig
987 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
989 # EMK MPC8xx based modules
990 TOP860_config: unconfig
991 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
993 # Play some tricks for configuration selection
994 # Only 855 and 860 boards may come with FEC
995 # and only 823 boards may have LCD support
996 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1002 TQM823L_LCD_config \
1014 virtlab2_config: unconfig
1015 @mkdir -p $(obj)include
1016 @ >$(obj)include/config.h
1017 @[ -z "$(findstring _LCD,$@)" ] || \
1018 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1019 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1020 echo "... with LCD display" ; \
1022 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1024 TTTech_config: unconfig
1025 @mkdir -p $(obj)include
1026 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1027 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1028 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1030 uc100_config : unconfig
1031 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1033 v37_config: unconfig
1034 @mkdir -p $(obj)include
1035 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1036 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1037 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1039 wtk_config: unconfig
1040 @mkdir -p $(obj)include
1041 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1042 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1043 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1045 #########################################################################
1047 #########################################################################
1048 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1050 acadia_config: unconfig
1051 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1053 acadia_nand_config: unconfig
1054 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1055 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1056 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1057 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1058 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1059 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1061 ADCIOP_config: unconfig
1062 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1064 alpr_config: unconfig
1065 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1067 AP1000_config:unconfig
1068 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1070 APC405_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1073 AR405_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1076 ASH405_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1079 bamboo_config: unconfig
1080 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1082 bamboo_nand_config: unconfig
1083 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1084 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1085 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1086 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1087 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1088 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1090 bubinga_config: unconfig
1091 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1093 CANBT_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1097 CATcenter_25_config \
1098 CATcenter_33_config: unconfig
1099 @mkdir -p $(obj)include
1100 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1101 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1102 @[ -z "$(findstring _25,$@)" ] || \
1103 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1104 echo "SysClk = 25MHz" ; \
1106 @[ -z "$(findstring _33,$@)" ] || \
1107 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1108 echo "SysClk = 33MHz" ; \
1110 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1112 CPCI2DP_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1118 CPCI405AB_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1120 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1122 CPCI440_config: unconfig
1123 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1125 CPCIISER4_config: unconfig
1126 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1128 CRAYL1_config: unconfig
1129 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1131 csb272_config: unconfig
1132 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1134 csb472_config: unconfig
1135 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1137 DASA_SIM_config: unconfig
1138 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1140 DP405_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1143 DU405_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1146 ebony_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1149 ERIC_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1152 EXBITGEN_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1155 G2000_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1158 hcu4_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1161 hcu5_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1164 HH405_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1167 HUB405_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1170 JSE_config: unconfig
1171 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1173 KAREF_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1176 katmai_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1179 luan_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1182 lwmon5_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1185 METROBOX_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1188 MIP405_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1191 MIP405T_config: unconfig
1192 @mkdir -p $(obj)include
1193 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1194 @echo "Enable subset config for MIP405T"
1195 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1197 ML2_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1200 ml300_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1203 ocotea_config: unconfig
1204 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1207 ORSG_config: unconfig
1208 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1210 p3p440_config: unconfig
1211 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1213 PCI405_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1216 pcs440ep_config: unconfig
1217 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1219 PIP405_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1222 PLU405_config: unconfig
1223 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1225 PMC405_config: unconfig
1226 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1228 PPChameleonEVB_config \
1229 PPChameleonEVB_BA_25_config \
1230 PPChameleonEVB_ME_25_config \
1231 PPChameleonEVB_HI_25_config \
1232 PPChameleonEVB_BA_33_config \
1233 PPChameleonEVB_ME_33_config \
1234 PPChameleonEVB_HI_33_config: unconfig
1235 @mkdir -p $(obj)include
1236 @ >$(obj)include/config.h
1237 @[ -z "$(findstring EVB_BA,$@)" ] || \
1238 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1239 echo "... BASIC model" ; \
1241 @[ -z "$(findstring EVB_ME,$@)" ] || \
1242 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1243 echo "... MEDIUM model" ; \
1245 @[ -z "$(findstring EVB_HI,$@)" ] || \
1246 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1247 echo "... HIGH-END model" ; \
1249 @[ -z "$(findstring _25,$@)" ] || \
1250 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1251 echo "SysClk = 25MHz" ; \
1253 @[ -z "$(findstring _33,$@)" ] || \
1254 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1255 echo "SysClk = 33MHz" ; \
1257 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1259 sbc405_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1263 rainier_config: unconfig
1264 @mkdir -p $(obj)include
1265 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1266 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1267 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1269 sequoia_nand_config \
1270 rainier_nand_config: unconfig
1271 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1272 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1273 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1274 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1275 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1276 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1277 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1278 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1283 taihu_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1286 taishan_config: unconfig
1287 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1289 VOH405_config: unconfig
1290 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1292 VOM405_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1295 CMS700_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1299 W7OLMG_config: unconfig
1300 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1302 # Walnut & Sycamore images are identical (recognized via PVR)
1304 sycamore_config: unconfig
1305 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1307 WUH405_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1310 XPEDITE1K_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1314 yellowstone_config: unconfig
1315 @mkdir -p $(obj)include
1316 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1317 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1318 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1320 yucca_config: unconfig
1321 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1323 zeus_config: unconfig
1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1326 #########################################################################
1328 #########################################################################
1331 Yukon8220_config: unconfig
1332 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1334 sorcery_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1337 #########################################################################
1339 #########################################################################
1340 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1342 A3000_config: unconfig
1343 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1345 barco_config: unconfig
1346 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1348 BMW_config: unconfig
1349 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1352 CPC45_ROMBOOT_config: unconfig
1353 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1354 @cd $(obj)include ; \
1355 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1356 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1357 echo "... booting from 8-bit flash" ; \
1359 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1360 echo "... booting from 64-bit flash" ; \
1362 echo "export CONFIG_BOOT_ROM" >> config.mk;
1364 CU824_config: unconfig
1365 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1367 debris_config: unconfig
1368 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1370 eXalion_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1373 HIDDEN_DRAGON_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1376 kvme080_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1379 MOUSSE_config: unconfig
1380 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1382 MUSENKI_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1385 MVBLUE_config: unconfig
1386 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1388 OXC_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1391 PN62_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1394 Sandpoint8240_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1397 Sandpoint8245_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1400 sbc8240_config: unconfig
1401 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1403 SL8245_config: unconfig
1404 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1406 utx8245_config: unconfig
1407 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1409 #########################################################################
1411 #########################################################################
1413 atc_config: unconfig
1414 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1416 cogent_mpc8260_config: unconfig
1417 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1420 CPU86_ROMBOOT_config: unconfig
1421 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1422 @cd $(obj)include ; \
1423 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1424 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1425 echo "... booting from 8-bit flash" ; \
1427 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1428 echo "... booting from 64-bit flash" ; \
1430 echo "export CONFIG_BOOT_ROM" >> config.mk;
1433 CPU87_ROMBOOT_config: unconfig
1434 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1435 @cd $(obj)include ; \
1436 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1437 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1438 echo "... booting from 8-bit flash" ; \
1440 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1441 echo "... booting from 64-bit flash" ; \
1443 echo "export CONFIG_BOOT_ROM" >> config.mk;
1446 ep8248E_config : unconfig
1447 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1449 ep8260_config: unconfig
1450 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1452 ep82xxm_config: unconfig
1453 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1455 gw8260_config: unconfig
1456 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1458 hymod_config: unconfig
1459 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1461 IDS8247_config: unconfig
1462 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1464 IPHASE4539_config: unconfig
1465 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1468 ISPAN_REVB_config: unconfig
1469 @mkdir -p $(obj)include
1470 @if [ "$(findstring _REVB_,$@)" ] ; then \
1471 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1473 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1476 MPC8260ADS_lowboot_config \
1477 MPC8260ADS_33MHz_config \
1478 MPC8260ADS_33MHz_lowboot_config \
1479 MPC8260ADS_40MHz_config \
1480 MPC8260ADS_40MHz_lowboot_config \
1482 MPC8272ADS_lowboot_config \
1484 PQ2FADS_lowboot_config \
1486 PQ2FADS-VR_lowboot_config \
1488 PQ2FADS-ZU_lowboot_config \
1489 PQ2FADS-ZU_66MHz_config \
1490 PQ2FADS-ZU_66MHz_lowboot_config \
1492 @mkdir -p $(obj)include
1493 @mkdir -p $(obj)board/mpc8260ads
1494 $(if $(findstring PQ2FADS,$@), \
1495 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1496 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1497 $(if $(findstring MHz,$@), \
1498 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1499 $(if $(findstring VR,$@), \
1500 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1501 @[ -z "$(findstring lowboot_,$@)" ] || \
1502 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1503 echo "... with lowboot configuration" ; \
1505 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1507 MPC8266ADS_config: unconfig
1508 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1510 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1512 PM825_ROMBOOT_config \
1513 PM825_BIGFLASH_config \
1514 PM825_ROMBOOT_BIGFLASH_config \
1516 PM826_ROMBOOT_config \
1517 PM826_BIGFLASH_config \
1518 PM826_ROMBOOT_BIGFLASH_config: unconfig
1519 @mkdir -p $(obj)include
1520 @mkdir -p $(obj)board/pm826
1521 @if [ "$(findstring PM825_,$@)" ] ; then \
1522 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1524 >$(obj)include/config.h ; \
1526 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1527 echo "... booting from 8-bit flash" ; \
1528 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1529 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1530 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1531 echo "... with 32 MB Flash" ; \
1532 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1535 echo "... booting from 64-bit flash" ; \
1536 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1537 echo "... with 32 MB Flash" ; \
1538 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1539 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1541 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1544 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1548 PM828_ROMBOOT_config \
1549 PM828_ROMBOOT_PCI_config: unconfig
1550 @mkdir -p $(obj)include
1551 @mkdir -p $(obj)board/pm826
1552 @if [ "$(findstring _PCI_,$@)" ] ; then \
1553 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1554 echo "... with PCI enabled" ; \
1556 >$(obj)include/config.h ; \
1558 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1559 echo "... booting from 8-bit flash" ; \
1560 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1561 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1563 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1565 ppmc8260_config: unconfig
1566 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1568 Rattler8248_config \
1569 Rattler_config: unconfig
1570 @mkdir -p $(obj)include
1571 $(if $(findstring 8248,$@), \
1572 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1573 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1575 RPXsuper_config: unconfig
1576 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1578 rsdproto_config: unconfig
1579 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1581 sacsng_config: unconfig
1582 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1584 sbc8260_config: unconfig
1585 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1587 SCM_config: unconfig
1588 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1600 TQM8265_AA_config: unconfig
1601 @mkdir -p $(obj)include
1603 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1604 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1605 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1606 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1607 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1608 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1609 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1610 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1611 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1612 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1613 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1615 >$(obj)include/config.h ; \
1616 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1617 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1619 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1620 echo "... with $${CFREQ}MHz system clock" ; \
1621 if [ "$${CACHE}" == "yes" ] ; then \
1622 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1623 echo "... with L2 Cache support" ; \
1625 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1626 echo "... without L2 Cache support" ; \
1628 if [ "$${BMODE}" == "60x" ] ; then \
1629 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1630 echo "... with 60x Bus Mode" ; \
1632 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1633 echo "... without 60x Bus Mode" ; \
1635 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1637 TQM8272_config: unconfig
1638 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1640 VoVPN-GW_66MHz_config \
1641 VoVPN-GW_100MHz_config: unconfig
1642 @mkdir -p $(obj)include
1643 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1644 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1646 ZPC1900_config: unconfig
1647 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1649 #########################################################################
1651 #########################################################################
1654 M5235EVB_Flash16_config \
1655 M5235EVB_Flash32_config: unconfig
1657 M5235EVB_config) FLASH=16;; \
1658 M5235EVB_Flash16_config) FLASH=16;; \
1659 M5235EVB_Flash32_config) FLASH=32;; \
1661 >include/config.h ; \
1662 if [ "$${FLASH}" != "16" ] ; then \
1663 echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \
1664 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1665 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1667 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1668 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1670 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1672 M5249EVB_config : unconfig
1673 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1675 M5253EVBE_config : unconfig
1676 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1678 cobra5272_config : unconfig
1679 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1681 EB+MCF-EV123_config : unconfig
1682 @mkdir -p $(obj)include
1683 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1684 @ >$(obj)include/config.h
1685 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1686 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1688 EB+MCF-EV123_internal_config : unconfig
1689 @mkdir -p $(obj)include
1690 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1691 @ >$(obj)include/config.h
1692 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1693 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1695 idmr_config : unconfig
1696 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1698 M5271EVB_config : unconfig
1699 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1701 M5272C3_config : unconfig
1702 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1704 M5282EVB_config : unconfig
1705 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1707 TASREG_config : unconfig
1708 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1710 r5200_config : unconfig
1711 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1714 M5329BFEE_config : unconfig
1716 M5329AFEE_config) NAND=0;; \
1717 M5329BFEE_config) NAND=16;; \
1719 >include/config.h ; \
1720 if [ "$${NAND}" != "0" ] ; then \
1721 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1723 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1726 M54455EVB_atmel_config \
1727 M54455EVB_intel_config \
1728 M54455EVB_a33_config \
1729 M54455EVB_a66_config \
1730 M54455EVB_i33_config \
1731 M54455EVB_i66_config : unconfig
1733 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1734 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1735 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1736 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1737 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1738 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1739 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1741 >include/config.h ; \
1742 if [ "$${FLASH}" == "INTEL" ] ; then \
1743 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1744 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1745 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1746 echo "... with INTEL boot..." ; \
1748 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1749 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1750 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1751 echo "... with ATMEL boot..." ; \
1753 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1754 echo "... with $${FREQ}Hz input clock"
1755 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1757 #########################################################################
1759 #########################################################################
1761 MPC8313ERDB_33_config \
1762 MPC8313ERDB_66_config: unconfig
1763 @mkdir -p $(obj)include
1764 @echo "" >$(obj)include/config.h ; \
1765 if [ "$(findstring _33_,$@)" ] ; then \
1766 echo -n "...33M ..." ; \
1767 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1769 if [ "$(findstring _66_,$@)" ] ; then \
1770 echo -n "...66M..." ; \
1771 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1773 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1775 MPC8323ERDB_config: unconfig
1776 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1778 MPC832XEMDS_config \
1779 MPC832XEMDS_HOST_33_config \
1780 MPC832XEMDS_HOST_66_config \
1781 MPC832XEMDS_SLAVE_config \
1782 MPC832XEMDS_ATM_config: unconfig
1783 @mkdir -p $(obj)include
1784 @echo "" >$(obj)include/config.h ; \
1785 if [ "$(findstring _HOST_,$@)" ] ; then \
1786 echo -n "... PCI HOST " ; \
1787 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1789 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1790 echo "...PCI SLAVE 66M" ; \
1791 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1792 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1794 if [ "$(findstring _33_,$@)" ] ; then \
1795 echo -n "...33M ..." ; \
1796 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1797 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1799 if [ "$(findstring _66_,$@)" ] ; then \
1800 echo -n "...66M..." ; \
1801 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1802 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1804 if [ "$(findstring _ATM_,$@)" ] ; then \
1805 echo -n "...ATM..." ; \
1806 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1807 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1809 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1811 MPC8349EMDS_config: unconfig
1812 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1815 MPC8349ITX_LOWBOOT_config \
1816 MPC8349ITXGP_config: unconfig
1817 @mkdir -p $(obj)include
1818 @mkdir -p $(obj)board/freescale/mpc8349itx
1819 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1820 @if [ "$(findstring GP,$@)" ] ; then \
1821 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1823 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1824 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1826 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
1828 MPC8360EMDS_config \
1829 MPC8360EMDS_HOST_33_config \
1830 MPC8360EMDS_HOST_66_config \
1831 MPC8360EMDS_SLAVE_config \
1832 MPC8360EMDS_ATM_config: unconfig
1833 @mkdir -p $(obj)include
1834 @echo "" >$(obj)include/config.h ; \
1835 if [ "$(findstring _HOST_,$@)" ] ; then \
1836 echo -n "... PCI HOST " ; \
1837 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1839 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1840 echo "...PCI SLAVE 66M" ; \
1841 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1842 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1844 if [ "$(findstring _33_,$@)" ] ; then \
1845 echo -n "...33M ..." ; \
1846 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1847 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1849 if [ "$(findstring _66_,$@)" ] ; then \
1850 echo -n "...66M..." ; \
1851 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1852 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1854 if [ "$(findstring _ATM_,$@)" ] ; then \
1855 echo -n "...ATM..." ; \
1856 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1857 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1859 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
1861 sbc8349_config: unconfig
1862 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1864 TQM834x_config: unconfig
1865 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1868 #########################################################################
1870 #########################################################################
1872 MPC8540ADS_config: unconfig
1873 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1875 MPC8540EVAL_config \
1876 MPC8540EVAL_33_config \
1877 MPC8540EVAL_66_config \
1878 MPC8540EVAL_33_slave_config \
1879 MPC8540EVAL_66_slave_config: unconfig
1880 @mkdir -p $(obj)include
1881 @echo "" >$(obj)include/config.h ; \
1882 if [ "$(findstring _33_,$@)" ] ; then \
1883 echo "... 33 MHz PCI" ; \
1885 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1886 echo "... 66 MHz PCI" ; \
1888 if [ "$(findstring _slave_,$@)" ] ; then \
1889 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1894 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1896 MPC8560ADS_config: unconfig
1897 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1899 MPC8541CDS_legacy_config \
1900 MPC8541CDS_config: unconfig
1901 @mkdir -p $(obj)include
1902 @echo "" >$(obj)include/config.h ; \
1903 if [ "$(findstring _legacy_,$@)" ] ; then \
1904 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1905 echo "... legacy" ; \
1907 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds cds
1909 MPC8544DS_config: unconfig
1910 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1912 MPC8548CDS_legacy_config \
1913 MPC8548CDS_config: unconfig
1914 @mkdir -p $(obj)include
1915 @echo "" >$(obj)include/config.h ; \
1916 if [ "$(findstring _legacy_,$@)" ] ; then \
1917 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1918 echo "... legacy" ; \
1920 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds cds
1922 MPC8555CDS_legacy_config \
1923 MPC8555CDS_config: unconfig
1924 @mkdir -p $(obj)include
1925 @echo "" >$(obj)include/config.h ; \
1926 if [ "$(findstring _legacy_,$@)" ] ; then \
1927 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1928 echo "... legacy" ; \
1930 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds cds
1932 MPC8568MDS_config: unconfig
1933 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1935 PM854_config: unconfig
1936 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1938 PM856_config: unconfig
1939 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1943 sbc8540_66_config: unconfig
1944 @mkdir -p $(obj)include
1945 @if [ "$(findstring _66_,$@)" ] ; then \
1946 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1947 echo "... 66 MHz PCI" ; \
1949 >$(obj)include/config.h ; \
1950 echo "... 33 MHz PCI" ; \
1952 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1956 sbc8560_66_config: unconfig
1957 @mkdir -p $(obj)include
1958 @if [ "$(findstring _66_,$@)" ] ; then \
1959 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1960 echo "... 66 MHz PCI" ; \
1962 >$(obj)include/config.h ; \
1963 echo "... 33 MHz PCI" ; \
1965 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1967 stxgp3_config: unconfig
1968 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1971 stxssa_4M_config: unconfig
1972 @mkdir -p $(obj)include
1973 @if [ "$(findstring _4M_,$@)" ] ; then \
1974 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1975 echo "... with 4 MiB flash memory" ; \
1977 >$(obj)include/config.h ; \
1979 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1984 TQM8560_config: unconfig
1985 @mkdir -p $(obj)include
1986 @CTYPE=$(subst TQM,,$(@:_config=)); \
1987 >$(obj)include/config.h ; \
1988 echo "... TQM"$${CTYPE}; \
1989 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1990 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1991 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1992 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1993 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
1994 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1996 #########################################################################
1998 #########################################################################
2000 MPC8641HPCN_config: unconfig
2001 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2003 sbc8641d_config: unconfig
2004 @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2006 #########################################################################
2008 #########################################################################
2010 AmigaOneG3SE_config: unconfig
2011 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2013 BAB7xx_config: unconfig
2014 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2016 CPCI750_config: unconfig
2017 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2019 DB64360_config: unconfig
2020 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2022 DB64460_config: unconfig
2023 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2025 ELPPC_config: unconfig
2026 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2029 EVB64260_750CX_config: unconfig
2030 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2032 mpc7448hpc2_config: unconfig
2033 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
2035 P3G4_config: unconfig
2036 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2039 p3m7448_config: unconfig
2040 @mkdir -p $(obj)include
2041 @if [ "$(findstring 750_,$@)" ] ; then \
2042 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2044 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2046 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2049 PCIPPC6_config: unconfig
2050 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2052 ZUMA_config: unconfig
2053 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2055 ppmc7xx_config: unconfig
2056 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2058 #========================================================================
2060 #========================================================================
2061 #########################################################################
2062 ## StrongARM Systems
2063 #########################################################################
2065 assabet_config : unconfig
2066 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2068 dnp1110_config : unconfig
2069 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2071 gcplus_config : unconfig
2072 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2074 lart_config : unconfig
2075 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2077 shannon_config : unconfig
2078 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2080 #########################################################################
2082 #########################################################################
2084 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2086 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2088 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2090 at91rm9200dk_config : unconfig
2091 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2093 cmc_pu2_config : unconfig
2094 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2096 csb637_config : unconfig
2097 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2099 mp2usb_config : unconfig
2100 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2103 ########################################################################
2104 ## ARM Integrator boards - see doc/README-integrator for more info.
2105 integratorap_config \
2114 ap946es_config: unconfig
2115 @board/integratorap/split_by_variant.sh $@
2117 integratorcp_config \
2126 cp1026_config: unconfig
2127 @board/integratorcp/split_by_variant.sh $@
2129 kb9202_config : unconfig
2130 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2133 lpd7a404_config: unconfig
2134 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2136 mx1ads_config : unconfig
2137 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2139 mx1fs2_config : unconfig
2140 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2143 netstar_config: unconfig
2144 @mkdir -p $(obj)include
2145 @if [ "$(findstring _32_,$@)" ] ; then \
2146 echo "... 32MB SDRAM" ; \
2147 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2149 echo "... 64MB SDRAM" ; \
2150 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2152 @$(MKCONFIG) -a netstar arm arm925t netstar
2154 omap1510inn_config : unconfig
2155 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2157 omap5912osk_config : unconfig
2158 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2160 davinci_dvevm_config : unconfig
2161 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2163 davinci_schmoogie_config : unconfig
2164 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2166 davinci_sonata_config : unconfig
2167 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2169 omap1610inn_config \
2170 omap1610inn_cs0boot_config \
2171 omap1610inn_cs3boot_config \
2172 omap1610inn_cs_autoboot_config \
2174 omap1610h2_cs0boot_config \
2175 omap1610h2_cs3boot_config \
2176 omap1610h2_cs_autoboot_config: unconfig
2177 @mkdir -p $(obj)include
2178 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2179 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2180 echo "... configured for CS0 boot"; \
2181 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2182 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2183 echo "... configured for CS_AUTO boot"; \
2185 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2186 echo "... configured for CS3 boot"; \
2188 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2191 omap730p2_cs0boot_config \
2192 omap730p2_cs3boot_config : unconfig
2193 @mkdir -p $(obj)include
2194 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2195 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2196 echo "... configured for CS0 boot"; \
2198 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2199 echo "... configured for CS3 boot"; \
2201 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2203 sbc2410x_config: unconfig
2204 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2206 scb9328_config : unconfig
2207 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2209 smdk2400_config : unconfig
2210 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2212 smdk2410_config : unconfig
2213 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2215 SX1_config : unconfig
2216 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2218 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2220 trab_bigram_config \
2221 trab_bigflash_config \
2222 trab_old_config: unconfig
2223 @mkdir -p $(obj)include
2224 @mkdir -p $(obj)board/trab
2225 @ >$(obj)include/config.h
2226 @[ -z "$(findstring _bigram,$@)" ] || \
2227 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2228 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2229 echo "... with 8 MB Flash, 32 MB RAM" ; \
2231 @[ -z "$(findstring _bigflash,$@)" ] || \
2232 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2233 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2234 echo "... with 16 MB Flash, 16 MB RAM" ; \
2235 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2237 @[ -z "$(findstring _old,$@)" ] || \
2238 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2239 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2240 echo "... with 8 MB Flash, 16 MB RAM" ; \
2241 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2243 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2245 VCMA9_config : unconfig
2246 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2248 #========================================================================
2249 # ARM supplied Versatile development boards
2250 #========================================================================
2252 versatileab_config \
2253 versatilepb_config : unconfig
2254 @board/versatile/split_by_variant.sh $@
2256 voiceblue_smallflash_config \
2257 voiceblue_config: unconfig
2258 @mkdir -p $(obj)include
2259 @mkdir -p $(obj)board/voiceblue
2260 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2261 echo "... boot from lower flash bank" ; \
2262 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2263 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2265 echo "... boot from upper flash bank" ; \
2266 >$(obj)include/config.h ; \
2267 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2269 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2271 cm4008_config : unconfig
2272 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2274 cm41xx_config : unconfig
2275 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2277 gth2_config : unconfig
2278 @mkdir -p $(obj)include
2279 @ >$(obj)include/config.h
2280 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2281 @$(MKCONFIG) -a gth2 mips mips gth2
2283 #########################################################################
2285 #########################################################################
2287 B2_config : unconfig
2288 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2290 #########################################################################
2292 #########################################################################
2294 armadillo_config: unconfig
2295 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2297 ep7312_config : unconfig
2298 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2300 impa7_config : unconfig
2301 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2303 modnet50_config : unconfig
2304 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2306 evb4510_config : unconfig
2307 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2309 lpc2292sodimm_config: unconfig
2310 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2312 SMN42_config : unconfig
2313 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2315 #########################################################################
2317 #########################################################################
2319 adsvix_config : unconfig
2320 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2322 cerf250_config : unconfig
2323 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2325 cradle_config : unconfig
2326 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2328 csb226_config : unconfig
2329 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2332 @$(MKCONFIG) $(@:_config=) arm pxa delta
2334 innokom_config : unconfig
2335 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2337 ixdp425_config : unconfig
2338 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2340 ixdpg425_config : unconfig
2341 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2343 lubbock_config : unconfig
2344 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2346 pleb2_config : unconfig
2347 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2349 logodl_config : unconfig
2350 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2353 scpu_config: unconfig
2354 @mkdir -p $(obj)include
2355 @if [ "$(findstring scpu_,$@)" ] ; then \
2356 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2357 echo "... on SCPU board variant" ; \
2359 >$(obj)include/config.h ; \
2361 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2363 pxa255_idp_config: unconfig
2364 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2366 trizepsiv_config : unconfig
2367 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2369 wepep250_config : unconfig
2370 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2372 xaeniax_config : unconfig
2373 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2375 xm250_config : unconfig
2376 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2378 xsengine_config : unconfig
2379 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2382 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2384 #########################################################################
2386 #########################################################################
2387 omap2420h4_config : unconfig
2388 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2390 #========================================================================
2392 #========================================================================
2393 #########################################################################
2395 #########################################################################
2396 sc520_cdp_config : unconfig
2397 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2399 sc520_spunk_config : unconfig
2400 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2402 sc520_spunk_rel_config : unconfig
2403 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2405 #========================================================================
2407 #========================================================================
2408 #########################################################################
2410 #########################################################################
2412 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2414 incaip_100MHz_config \
2415 incaip_133MHz_config \
2416 incaip_150MHz_config \
2417 incaip_config: unconfig
2418 @mkdir -p $(obj)include
2419 @ >$(obj)include/config.h
2420 @[ -z "$(findstring _100MHz,$@)" ] || \
2421 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2422 echo "... with 100MHz system clock" ; \
2424 @[ -z "$(findstring _133MHz,$@)" ] || \
2425 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2426 echo "... with 133MHz system clock" ; \
2428 @[ -z "$(findstring _150MHz,$@)" ] || \
2429 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2430 echo "... with 150MHz system clock" ; \
2432 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2434 tb0229_config: unconfig
2435 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2437 #########################################################################
2439 #########################################################################
2440 dbau1000_config : unconfig
2441 @mkdir -p $(obj)include
2442 @ >$(obj)include/config.h
2443 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2444 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2446 dbau1100_config : unconfig
2447 @mkdir -p $(obj)include
2448 @ >$(obj)include/config.h
2449 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2450 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2452 dbau1500_config : unconfig
2453 @mkdir -p $(obj)include
2454 @ >$(obj)include/config.h
2455 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2456 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2458 dbau1550_config : unconfig
2459 @mkdir -p $(obj)include
2460 @ >$(obj)include/config.h
2461 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2462 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2464 dbau1550_el_config : unconfig
2465 @mkdir -p $(obj)include
2466 @ >$(obj)include/config.h
2467 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2468 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2470 pb1000_config : unconfig
2471 @mkdir -p $(obj)include
2472 @ >$(obj)include/config.h
2473 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2474 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2476 #########################################################################
2478 #########################################################################
2480 purple_config : unconfig
2481 @$(MKCONFIG) $(@:_config=) mips mips purple
2483 #========================================================================
2485 #========================================================================
2486 #########################################################################
2488 #########################################################################
2490 DK1C20_safe_32_config \
2491 DK1C20_standard_32_config \
2492 DK1C20_config: unconfig
2493 @mkdir -p $(obj)include
2494 @ >$(obj)include/config.h
2495 @[ -z "$(findstring _safe_32,$@)" ] || \
2496 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2497 echo "... NIOS 'safe_32' configuration" ; \
2499 @[ -z "$(findstring _standard_32,$@)" ] || \
2500 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2501 echo "... NIOS 'standard_32' configuration" ; \
2503 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2504 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2505 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2507 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2509 DK1S10_safe_32_config \
2510 DK1S10_standard_32_config \
2511 DK1S10_mtx_ldk_20_config \
2512 DK1S10_config: unconfig
2513 @mkdir -p $(obj)include
2514 @ >$(obj)include/config.h
2515 @[ -z "$(findstring _safe_32,$@)" ] || \
2516 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2517 echo "... NIOS 'safe_32' configuration" ; \
2519 @[ -z "$(findstring _standard_32,$@)" ] || \
2520 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2521 echo "... NIOS 'standard_32' configuration" ; \
2523 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2524 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2525 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2527 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2528 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2529 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2531 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2533 ADNPESC1_DNPEVA2_base_32_config \
2534 ADNPESC1_base_32_config \
2535 ADNPESC1_config: unconfig
2536 @mkdir -p $(obj)include
2537 @ >$(obj)include/config.h
2538 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2539 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2540 echo "... DNP/EVA2 configuration" ; \
2542 @[ -z "$(findstring _base_32,$@)" ] || \
2543 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2544 echo "... NIOS 'base_32' configuration" ; \
2546 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2547 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2548 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2550 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2552 #########################################################################
2554 #########################################################################
2556 EP1C20_config : unconfig
2557 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2559 EP1S10_config : unconfig
2560 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2562 EP1S40_config : unconfig
2563 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2565 PK1C20_config : unconfig
2566 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2568 PCI5441_config : unconfig
2569 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2571 #========================================================================
2573 #========================================================================
2574 #########################################################################
2576 #########################################################################
2577 suzaku_config: unconfig
2578 @mkdir -p $(obj)include
2579 @ >$(obj)include/config.h
2580 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2581 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2583 ml401_config: unconfig
2584 @mkdir -p $(obj)include
2585 @ >$(obj)include/config.h
2586 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2587 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2589 xupv2p_config: unconfig
2590 @mkdir -p $(obj)include
2591 @ >$(obj)include/config.h
2592 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2593 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2595 #########################################################################
2597 #########################################################################
2598 bf533-ezkit_config: unconfig
2599 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2601 bf533-stamp_config: unconfig
2602 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2604 bf537-stamp_config: unconfig
2605 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2607 bf561-ezkit_config: unconfig
2608 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2610 #========================================================================
2612 #========================================================================
2613 #########################################################################
2615 #########################################################################
2617 atstk1002_config : unconfig
2618 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2620 #########################################################################
2621 #########################################################################
2622 #########################################################################
2625 find $(OBJTREE) -type f \
2626 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2627 -o -name '*.o' -o -name '*.a' \) -print \
2629 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2630 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2631 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2632 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2633 $(obj)examples/test_burst
2634 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2635 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2636 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2637 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2638 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2639 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2640 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2641 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2642 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2643 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2644 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2645 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2646 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2647 rm -f $(obj)include/bmp_logo.h
2648 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2651 find $(OBJTREE) -type f \( -name .depend \
2652 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2655 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2657 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2658 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2659 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2660 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2661 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2663 ifeq ($(OBJTREE),$(SRCTREE))
2665 distclean: clobber unconfig
2668 distclean: clobber unconfig
2673 F=`basename $(TOPDIR)` ; cd .. ; \
2674 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2676 #########################################################################