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/bios_emulator/libatibiosemu.a
209 LIBS += drivers/block/libblock.a
210 LIBS += drivers/hwmon/libhwmon.a
211 LIBS += drivers/i2c/libi2c.a
212 LIBS += drivers/input/libinput.a
213 LIBS += drivers/misc/libmisc.a
214 LIBS += drivers/mtd/libmtd.a
215 LIBS += drivers/mtd/nand/libnand.a
216 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
217 LIBS += drivers/mtd/onenand/libonenand.a
218 LIBS += drivers/net/libnet.a
219 LIBS += drivers/net/sk98lin/libsk98lin.a
220 LIBS += drivers/pci/libpci.a
221 LIBS += drivers/pcmcia/libpcmcia.a
222 ifeq ($(CPU),mpc83xx)
223 LIBS += drivers/qe/qe.a
225 ifeq ($(CPU),mpc85xx)
226 LIBS += drivers/qe/qe.a
228 LIBS += drivers/rtc/librtc.a
229 LIBS += drivers/serial/libserial.a
230 LIBS += drivers/usb/libusb.a
231 LIBS += drivers/video/libvideo.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 common drivers/bios_emulator \
339 drivers/block drivers/hwmon drivers/i2c \
340 drivers/input drivers/misc drivers/mtd \
341 drivers/mtd/nand drivers/mtd/nand_legacy \
342 drivers/mtd/onenand drivers/net drivers/net/sk98lin \
343 drivers/pci drivers/pcmcia drivers/qe drivers/rtc \
344 drivers/serial drivers/usb drivers/video \
345 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
348 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
349 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
350 fs/cramfs fs/fat fs/fdos fs/jffs2 \
351 net disk common drivers/bios_emulator \
352 drivers/block drivers/hwmon drivers/i2c \
353 drivers/input drivers/misc drivers/mtd \
354 drivers/mtd/nand drivers/mtd/nand_legacy \
355 drivers/mtd/onenand drivers/net drivers/net/sk98lin \
356 drivers/pci drivers/pcmcia drivers/qe drivers/rtc \
357 drivers/serial drivers/usb drivers/video \
358 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
360 $(obj)System.map: $(obj)u-boot
362 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
363 sort > $(obj)System.map
365 #########################################################################
367 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
368 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
369 $(SUBDIRS) version gdbtools updater env depend \
370 dep tags ctags etags $(obj)System.map:
371 @echo "System not configured - see README" >&2
377 git log --no-merges U-Boot-1_1_5.. | \
378 unexpand -a | sed -e 's/\s\s*$$//' > $@
380 #########################################################################
383 @rm -f $(obj)include/config.h $(obj)include/config.mk \
384 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
386 #========================================================================
388 #========================================================================
390 #########################################################################
392 #########################################################################
394 canmb_config: unconfig
395 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
397 cmi_mpc5xx_config: unconfig
398 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
400 PATI_config: unconfig
401 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
403 #########################################################################
405 #########################################################################
408 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
410 BC3450_config: unconfig
411 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
413 cpci5200_config: unconfig
414 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
416 hmi1001_config: unconfig
417 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
420 Lite5200_LOWBOOT_config \
421 Lite5200_LOWBOOT08_config \
422 icecube_5200_config \
423 icecube_5200_LOWBOOT_config \
424 icecube_5200_LOWBOOT08_config \
425 icecube_5200_DDR_config \
426 icecube_5200_DDR_LOWBOOT_config \
427 icecube_5200_DDR_LOWBOOT08_config \
428 icecube_5100_config: unconfig
429 @mkdir -p $(obj)include
430 @mkdir -p $(obj)board/icecube
431 @ >$(obj)include/config.h
432 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
433 { if [ "$(findstring DDR,$@)" ] ; \
434 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
435 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
437 echo "... with LOWBOOT configuration" ; \
439 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
440 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
441 echo "... with 8 MB flash only" ; \
442 echo "... with LOWBOOT configuration" ; \
444 @[ -z "$(findstring DDR,$@)" ] || \
445 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
446 echo "... DDR memory revision" ; \
448 @[ -z "$(findstring 5200,$@)" ] || \
449 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
450 echo "... with MPC5200 processor" ; \
452 @[ -z "$(findstring 5100,$@)" ] || \
453 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
454 echo "... with MGT5100 processor" ; \
456 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
458 jupiter_config: unconfig
459 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
461 v38b_config: unconfig
462 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
464 inka4x0_config: unconfig
465 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
468 lite5200b_PM_config \
469 lite5200b_LOWBOOT_config: unconfig
470 @mkdir -p $(obj)include
471 @mkdir -p $(obj)board/icecube
472 @ >$(obj)include/config.h
473 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
474 @ echo "... DDR memory revision"
475 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
476 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
477 @[ -z "$(findstring _PM_,$@)" ] || \
478 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
479 echo "... with power management (low-power mode) support" ; \
481 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
482 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
483 echo "... with LOWBOOT configuration" ; \
485 @ echo "... with MPC5200B processor"
486 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
489 mcc200_SDRAM_config \
490 mcc200_highboot_config \
491 mcc200_COM12_config \
492 mcc200_COM12_SDRAM_config \
493 mcc200_COM12_highboot_config \
494 mcc200_COM12_highboot_SDRAM_config \
495 mcc200_highboot_SDRAM_config \
498 prs200_highboot_config \
499 prs200_highboot_DDR_config: unconfig
500 @mkdir -p $(obj)include
501 @mkdir -p $(obj)board/mcc200
502 @ >$(obj)include/config.h
503 @[ -n "$(findstring highboot,$@)" ] || \
504 { echo "... with lowboot configuration" ; \
506 @[ -z "$(findstring highboot,$@)" ] || \
507 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
508 echo "... with highboot configuration" ; \
510 @[ -n "$(findstring _SDRAM,$@)" ] || \
511 { if [ -n "$(findstring mcc200,$@)" ]; \
513 echo "... with DDR" ; \
515 if [ -n "$(findstring _DDR,$@)" ];\
517 echo "... with DDR" ; \
519 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
520 echo "... with SDRAM" ; \
524 @[ -z "$(findstring _SDRAM,$@)" ] || \
525 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
526 echo "... with SDRAM" ; \
528 @[ -z "$(findstring COM12,$@)" ] || \
529 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
530 echo "... with console on COM12" ; \
532 @[ -z "$(findstring prs200,$@)" ] || \
533 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
535 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
537 mecp5200_config: unconfig
538 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
541 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
543 pf5200_config: unconfig
544 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
548 PM520_ROMBOOT_config \
549 PM520_ROMBOOT_DDR_config: unconfig
550 @mkdir -p $(obj)include
551 @ >$(obj)include/config.h
552 @[ -z "$(findstring DDR,$@)" ] || \
553 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
554 echo "... DDR memory revision" ; \
556 @[ -z "$(findstring ROMBOOT,$@)" ] || \
557 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
558 echo "... booting from 8-bit flash" ; \
560 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
562 smmaco4_config: unconfig
563 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
565 cm5200_config: unconfig
566 @./mkconfig -a cm5200 ppc mpc5xxx cm5200
568 spieval_config: unconfig
569 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
572 TB5200_config: unconfig
573 @mkdir -p $(obj)include
574 @[ -z "$(findstring _B,$@)" ] || \
575 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
576 echo "... with MPC5200B processor" ; \
578 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
582 TOP5200_config: unconfig
583 @mkdir -p $(obj)include
584 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
585 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
589 Total5200_lowboot_config \
590 Total5200_Rev2_config \
591 Total5200_Rev2_lowboot_config: unconfig
592 @mkdir -p $(obj)include
593 @mkdir -p $(obj)board/total5200
594 @ >$(obj)include/config.h
595 @[ -z "$(findstring 5100,$@)" ] || \
596 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
597 echo "... with MGT5100 processor" ; \
599 @[ -z "$(findstring 5200,$@)" ] || \
600 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
601 echo "... with MPC5200 processor" ; \
603 @[ -n "$(findstring Rev,$@)" ] || \
604 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
605 echo "... revision 1 board" ; \
607 @[ -z "$(findstring Rev2_,$@)" ] || \
608 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
609 echo "... revision 2 board" ; \
611 @[ -z "$(findstring lowboot_,$@)" ] || \
612 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
613 echo "... with lowboot configuration" ; \
615 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
618 cam5200_niosflash_config \
622 TQM5200S_HIGHBOOT_config \
624 TQM5200_B_HIGHBOOT_config \
626 TQM5200_STK100_config: unconfig
627 @mkdir -p $(obj)include
628 @mkdir -p $(obj)board/tqm5200
629 @ >$(obj)include/config.h
630 @[ -z "$(findstring cam5200,$@)" ] || \
631 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
632 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
633 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
634 echo "... TQM5200S on Cam5200" ; \
636 @[ -z "$(findstring niosflash,$@)" ] || \
637 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
638 echo "... with NIOS flash driver" ; \
640 @[ -z "$(findstring fo300,$@)" ] || \
641 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
642 echo "... TQM5200 on FO300" ; \
644 @[ -z "$(findstring MiniFAP,$@)" ] || \
645 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
646 echo "... TQM5200_AC on MiniFAP" ; \
648 @[ -z "$(findstring STK100,$@)" ] || \
649 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
650 echo "... on a STK52XX.100 base board" ; \
652 @[ -z "$(findstring TQM5200_B,$@)" ] || \
653 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
655 @[ -z "$(findstring TQM5200S,$@)" ] || \
656 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
657 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
659 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
660 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
662 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
663 uc101_config: unconfig
664 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
665 motionpro_config: unconfig
666 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
669 #########################################################################
671 #########################################################################
672 ads5121_config: unconfig
673 @$(MKCONFIG) ads5121 ppc mpc512x ads5121
676 #########################################################################
678 #########################################################################
684 @mkdir -p $(obj)include
685 $(if $(findstring AdderII,$@), \
686 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
687 @$(MKCONFIG) -a Adder ppc mpc8xx adder
689 AdderUSB_config: unconfig
690 @./mkconfig -a AdderUSB ppc mpc8xx adder
697 FADS860T_config: unconfig
698 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
700 AMX860_config : unconfig
701 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
703 c2mon_config: unconfig
704 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
707 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
709 cogent_mpc8xx_config: unconfig
710 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
712 ELPT860_config: unconfig
713 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
715 EP88x_config: unconfig
716 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
718 ESTEEM192E_config: unconfig
719 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
721 ETX094_config : unconfig
722 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
724 FLAGADM_config: unconfig
725 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
727 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
730 GEN860T_config: unconfig
731 @mkdir -p $(obj)include
732 @ >$(obj)include/config.h
733 @[ -z "$(findstring _SC,$@)" ] || \
734 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
735 echo "With reduced H/W feature set (SC)..." ; \
737 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
739 GENIETV_config: unconfig
740 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
743 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
745 hermes_config : unconfig
746 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
748 HMI10_config : unconfig
749 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
751 IAD210_config: unconfig
752 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
754 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
756 ICU862_100MHz_config \
757 ICU862_config: unconfig
758 @mkdir -p $(obj)include
759 @ >$(obj)include/config.h
760 @[ -z "$(findstring _100MHz,$@)" ] || \
761 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
762 echo "... with 100MHz system clock" ; \
764 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
766 IP860_config : unconfig
767 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
771 IVML24_config: unconfig
772 @mkdir -p $(obj)include
773 @ >$(obj)include/config.h
774 @[ -z "$(findstring IVML24_config,$@)" ] || \
775 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
777 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
778 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
780 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
781 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
783 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
787 IVMS8_config: unconfig
788 @mkdir -p $(obj)include
789 @ >$(obj)include/config.h
790 @[ -z "$(findstring IVMS8_config,$@)" ] || \
791 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
793 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
794 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
796 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
797 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
799 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
801 KUP4K_config : unconfig
802 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
804 KUP4X_config : unconfig
805 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
807 LANTEC_config : unconfig
808 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
810 lwmon_config: unconfig
811 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
814 MBX860T_config: unconfig
815 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
817 MHPC_config: unconfig
818 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
820 MVS1_config : unconfig
821 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
823 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
826 NETVIA_config: unconfig
827 @mkdir -p $(obj)include
828 @ >$(obj)include/config.h
829 @[ -z "$(findstring NETVIA_config,$@)" ] || \
830 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
831 echo "... Version 1" ; \
833 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
834 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
835 echo "... Version 2" ; \
837 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
839 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
842 NETPHONE_config: unconfig
843 @mkdir -p $(obj)include
844 @ >$(obj)include/config.h
845 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
846 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
848 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
849 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
851 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
853 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
855 NETTA_ISDN_6412_SWAPHOOK_config \
856 NETTA_ISDN_SWAPHOOK_config \
857 NETTA_6412_SWAPHOOK_config \
858 NETTA_SWAPHOOK_config \
859 NETTA_ISDN_6412_config \
862 NETTA_config: unconfig
863 @mkdir -p $(obj)include
864 @ >$(obj)include/config.h
865 @[ -z "$(findstring ISDN_,$@)" ] || \
866 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
868 @[ -n "$(findstring ISDN_,$@)" ] || \
869 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
871 @[ -z "$(findstring 6412_,$@)" ] || \
872 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
874 @[ -n "$(findstring 6412_,$@)" ] || \
875 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
877 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
878 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
880 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
881 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
883 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
885 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
888 NETTA2_config: unconfig
889 @mkdir -p $(obj)include
890 @ >$(obj)include/config.h
891 @[ -z "$(findstring NETTA2_config,$@)" ] || \
892 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
894 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
895 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
897 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
901 CP850_config: unconfig
902 @mkdir -p $(obj)include
903 @ >$(obj)include/config.h
904 @[ -z "$(findstring CP850,$@)" ] || \
905 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
906 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
908 @[ -z "$(findstring Rev1,$@)" ] || \
909 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
911 @[ -z "$(findstring Rev2,$@)" ] || \
912 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
914 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
916 NX823_config: unconfig
917 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
919 pcu_e_config: unconfig
920 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
922 QS850_config: unconfig
923 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
925 QS823_config: unconfig
926 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
928 QS860T_config: unconfig
929 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
931 quantum_config: unconfig
932 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
934 R360MPI_config: unconfig
935 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
937 RBC823_config: unconfig
938 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
940 RPXClassic_config: unconfig
941 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
943 RPXlite_config: unconfig
944 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
946 RPXlite_DW_64_config \
947 RPXlite_DW_LCD_config \
948 RPXlite_DW_64_LCD_config \
949 RPXlite_DW_NVRAM_config \
950 RPXlite_DW_NVRAM_64_config \
951 RPXlite_DW_NVRAM_LCD_config \
952 RPXlite_DW_NVRAM_64_LCD_config \
953 RPXlite_DW_config: unconfig
954 @mkdir -p $(obj)include
955 @ >$(obj)include/config.h
956 @[ -z "$(findstring _64,$@)" ] || \
957 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
958 echo "... with 64MHz system clock ..."; \
960 @[ -z "$(findstring _LCD,$@)" ] || \
961 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
962 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
963 echo "... with LCD display ..."; \
965 @[ -z "$(findstring _NVRAM,$@)" ] || \
966 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
967 echo "... with ENV in NVRAM ..."; \
969 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
972 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
974 RRvision_config: unconfig
975 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
977 RRvision_LCD_config: unconfig
978 @mkdir -p $(obj)include
979 @echo "#define CONFIG_LCD" >$(obj)include/config.h
980 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
981 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
983 SM850_config : unconfig
984 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
987 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
989 SPD823TS_config: unconfig
990 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
992 stxxtc_config: unconfig
993 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
995 svm_sc8xx_config: unconfig
996 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
998 SXNI855T_config: unconfig
999 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1001 # EMK MPC8xx based modules
1002 TOP860_config: unconfig
1003 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1005 # Play some tricks for configuration selection
1006 # Only 855 and 860 boards may come with FEC
1007 # and only 823 boards may have LCD support
1008 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1014 TQM823L_LCD_config \
1026 virtlab2_config: unconfig
1027 @mkdir -p $(obj)include
1028 @ >$(obj)include/config.h
1029 @[ -z "$(findstring _LCD,$@)" ] || \
1030 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1031 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1032 echo "... with LCD display" ; \
1034 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1036 TTTech_config: unconfig
1037 @mkdir -p $(obj)include
1038 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1039 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1040 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1042 uc100_config : unconfig
1043 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1045 v37_config: unconfig
1046 @mkdir -p $(obj)include
1047 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1048 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1049 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1051 wtk_config: unconfig
1052 @mkdir -p $(obj)include
1053 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1054 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1055 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1057 #########################################################################
1059 #########################################################################
1060 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1062 acadia_config: unconfig
1063 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1065 acadia_nand_config: unconfig
1066 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1067 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1068 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1069 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1070 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1071 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1073 ADCIOP_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1076 alpr_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1079 AP1000_config:unconfig
1080 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1082 APC405_config: unconfig
1083 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1085 AR405_config: unconfig
1086 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1088 ASH405_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1091 bamboo_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1094 bamboo_nand_config: unconfig
1095 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1096 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1097 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1098 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1099 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1100 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1102 bubinga_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1105 CANBT_config: unconfig
1106 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1109 CATcenter_25_config \
1110 CATcenter_33_config: unconfig
1111 @mkdir -p $(obj)include
1112 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1113 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1114 @[ -z "$(findstring _25,$@)" ] || \
1115 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1116 echo "SysClk = 25MHz" ; \
1118 @[ -z "$(findstring _33,$@)" ] || \
1119 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1120 echo "SysClk = 33MHz" ; \
1122 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1124 CPCI2DP_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1130 CPCI405AB_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1132 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1134 CPCI440_config: unconfig
1135 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1137 CPCIISER4_config: unconfig
1138 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1140 CRAYL1_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1143 csb272_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1146 csb472_config: unconfig
1147 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1149 DASA_SIM_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1152 DP405_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1155 DU405_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1158 ebony_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1161 ERIC_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1164 EXBITGEN_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1167 G2000_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1170 hcu4_config: unconfig
1171 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1173 hcu5_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1176 HH405_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1179 HUB405_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1182 JSE_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1185 KAREF_config: unconfig
1186 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1188 katmai_config: unconfig
1189 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1191 luan_config: unconfig
1192 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1194 lwmon5_config: unconfig
1195 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1197 METROBOX_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1200 MIP405_config: unconfig
1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1203 MIP405T_config: unconfig
1204 @mkdir -p $(obj)include
1205 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1206 @echo "Enable subset config for MIP405T"
1207 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1209 ML2_config: unconfig
1210 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1212 ml300_config: unconfig
1213 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1215 ocotea_config: unconfig
1216 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1219 ORSG_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1222 p3p440_config: unconfig
1223 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1225 PCI405_config: unconfig
1226 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1228 pcs440ep_config: unconfig
1229 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1231 PIP405_config: unconfig
1232 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1234 PLU405_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1237 PMC405_config: unconfig
1238 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1240 PPChameleonEVB_config \
1241 PPChameleonEVB_BA_25_config \
1242 PPChameleonEVB_ME_25_config \
1243 PPChameleonEVB_HI_25_config \
1244 PPChameleonEVB_BA_33_config \
1245 PPChameleonEVB_ME_33_config \
1246 PPChameleonEVB_HI_33_config: unconfig
1247 @mkdir -p $(obj)include
1248 @ >$(obj)include/config.h
1249 @[ -z "$(findstring EVB_BA,$@)" ] || \
1250 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1251 echo "... BASIC model" ; \
1253 @[ -z "$(findstring EVB_ME,$@)" ] || \
1254 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1255 echo "... MEDIUM model" ; \
1257 @[ -z "$(findstring EVB_HI,$@)" ] || \
1258 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1259 echo "... HIGH-END model" ; \
1261 @[ -z "$(findstring _25,$@)" ] || \
1262 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1263 echo "SysClk = 25MHz" ; \
1265 @[ -z "$(findstring _33,$@)" ] || \
1266 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1267 echo "SysClk = 33MHz" ; \
1269 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1271 sbc405_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1275 rainier_config: unconfig
1276 @mkdir -p $(obj)include
1277 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1278 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1279 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1281 sequoia_nand_config \
1282 rainier_nand_config: unconfig
1283 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1284 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1285 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1286 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1287 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1288 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1289 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1290 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1295 taihu_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1298 taishan_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1301 VOH405_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1304 VOM405_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1307 CMS700_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1311 W7OLMG_config: unconfig
1312 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1314 # Walnut & Sycamore images are identical (recognized via PVR)
1316 sycamore_config: unconfig
1317 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1319 WUH405_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1322 XPEDITE1K_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1326 yellowstone_config: unconfig
1327 @mkdir -p $(obj)include
1328 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1329 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1330 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1332 yucca_config: unconfig
1333 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1335 zeus_config: unconfig
1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1338 #########################################################################
1340 #########################################################################
1343 Yukon8220_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1346 sorcery_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1349 #########################################################################
1351 #########################################################################
1352 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1354 A3000_config: unconfig
1355 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1357 barco_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1360 BMW_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1364 CPC45_ROMBOOT_config: unconfig
1365 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1366 @cd $(obj)include ; \
1367 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1368 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1369 echo "... booting from 8-bit flash" ; \
1371 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1372 echo "... booting from 64-bit flash" ; \
1374 echo "export CONFIG_BOOT_ROM" >> config.mk;
1376 CU824_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1379 debris_config: unconfig
1380 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1382 eXalion_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1385 HIDDEN_DRAGON_config: unconfig
1386 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1388 kvme080_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1391 MOUSSE_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1394 MUSENKI_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1397 MVBLUE_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1400 OXC_config: unconfig
1401 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1403 PN62_config: unconfig
1404 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1406 Sandpoint8240_config: unconfig
1407 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1409 Sandpoint8245_config: unconfig
1410 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1412 sbc8240_config: unconfig
1413 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1415 SL8245_config: unconfig
1416 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1418 utx8245_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1421 #########################################################################
1423 #########################################################################
1425 atc_config: unconfig
1426 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1428 cogent_mpc8260_config: unconfig
1429 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1432 CPU86_ROMBOOT_config: unconfig
1433 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1434 @cd $(obj)include ; \
1435 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1436 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1437 echo "... booting from 8-bit flash" ; \
1439 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1440 echo "... booting from 64-bit flash" ; \
1442 echo "export CONFIG_BOOT_ROM" >> config.mk;
1445 CPU87_ROMBOOT_config: unconfig
1446 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1447 @cd $(obj)include ; \
1448 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1449 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1450 echo "... booting from 8-bit flash" ; \
1452 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1453 echo "... booting from 64-bit flash" ; \
1455 echo "export CONFIG_BOOT_ROM" >> config.mk;
1458 ep8248E_config : unconfig
1459 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1461 ep8260_config: unconfig
1462 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1464 ep82xxm_config: unconfig
1465 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1467 gw8260_config: unconfig
1468 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1470 hymod_config: unconfig
1471 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1473 IDS8247_config: unconfig
1474 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1476 IPHASE4539_config: unconfig
1477 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1480 ISPAN_REVB_config: unconfig
1481 @mkdir -p $(obj)include
1482 @if [ "$(findstring _REVB_,$@)" ] ; then \
1483 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1485 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1488 MPC8260ADS_lowboot_config \
1489 MPC8260ADS_33MHz_config \
1490 MPC8260ADS_33MHz_lowboot_config \
1491 MPC8260ADS_40MHz_config \
1492 MPC8260ADS_40MHz_lowboot_config \
1494 MPC8272ADS_lowboot_config \
1496 PQ2FADS_lowboot_config \
1498 PQ2FADS-VR_lowboot_config \
1500 PQ2FADS-ZU_lowboot_config \
1501 PQ2FADS-ZU_66MHz_config \
1502 PQ2FADS-ZU_66MHz_lowboot_config \
1504 @mkdir -p $(obj)include
1505 @mkdir -p $(obj)board/mpc8260ads
1506 $(if $(findstring PQ2FADS,$@), \
1507 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1508 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1509 $(if $(findstring MHz,$@), \
1510 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1511 $(if $(findstring VR,$@), \
1512 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1513 @[ -z "$(findstring lowboot_,$@)" ] || \
1514 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1515 echo "... with lowboot configuration" ; \
1517 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1519 MPC8266ADS_config: unconfig
1520 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1522 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1524 PM825_ROMBOOT_config \
1525 PM825_BIGFLASH_config \
1526 PM825_ROMBOOT_BIGFLASH_config \
1528 PM826_ROMBOOT_config \
1529 PM826_BIGFLASH_config \
1530 PM826_ROMBOOT_BIGFLASH_config: unconfig
1531 @mkdir -p $(obj)include
1532 @mkdir -p $(obj)board/pm826
1533 @if [ "$(findstring PM825_,$@)" ] ; then \
1534 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1536 >$(obj)include/config.h ; \
1538 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1539 echo "... booting from 8-bit flash" ; \
1540 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1541 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1542 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1543 echo "... with 32 MB Flash" ; \
1544 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1547 echo "... booting from 64-bit flash" ; \
1548 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1549 echo "... with 32 MB Flash" ; \
1550 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1551 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1553 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1556 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1560 PM828_ROMBOOT_config \
1561 PM828_ROMBOOT_PCI_config: unconfig
1562 @mkdir -p $(obj)include
1563 @mkdir -p $(obj)board/pm826
1564 @if [ "$(findstring _PCI_,$@)" ] ; then \
1565 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1566 echo "... with PCI enabled" ; \
1568 >$(obj)include/config.h ; \
1570 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1571 echo "... booting from 8-bit flash" ; \
1572 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1573 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1575 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1577 ppmc8260_config: unconfig
1578 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1580 Rattler8248_config \
1581 Rattler_config: unconfig
1582 @mkdir -p $(obj)include
1583 $(if $(findstring 8248,$@), \
1584 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1585 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1587 RPXsuper_config: unconfig
1588 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1590 rsdproto_config: unconfig
1591 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1593 sacsng_config: unconfig
1594 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1596 sbc8260_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1599 SCM_config: unconfig
1600 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1612 TQM8265_AA_config: unconfig
1613 @mkdir -p $(obj)include
1615 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1616 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1617 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1618 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1619 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1620 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1621 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1622 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1623 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1624 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1625 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1627 >$(obj)include/config.h ; \
1628 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1629 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1631 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1632 echo "... with $${CFREQ}MHz system clock" ; \
1633 if [ "$${CACHE}" == "yes" ] ; then \
1634 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1635 echo "... with L2 Cache support" ; \
1637 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1638 echo "... without L2 Cache support" ; \
1640 if [ "$${BMODE}" == "60x" ] ; then \
1641 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1642 echo "... with 60x Bus Mode" ; \
1644 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1645 echo "... without 60x Bus Mode" ; \
1647 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1649 TQM8272_config: unconfig
1650 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1652 VoVPN-GW_66MHz_config \
1653 VoVPN-GW_100MHz_config: unconfig
1654 @mkdir -p $(obj)include
1655 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1656 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1658 ZPC1900_config: unconfig
1659 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1661 #########################################################################
1663 #########################################################################
1666 M5235EVB_Flash16_config \
1667 M5235EVB_Flash32_config: unconfig
1669 M5235EVB_config) FLASH=16;; \
1670 M5235EVB_Flash16_config) FLASH=16;; \
1671 M5235EVB_Flash32_config) FLASH=32;; \
1673 >include/config.h ; \
1674 if [ "$${FLASH}" != "16" ] ; then \
1675 echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \
1676 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1677 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1679 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1680 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1682 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1684 M5249EVB_config : unconfig
1685 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1687 M5253EVBE_config : unconfig
1688 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1690 cobra5272_config : unconfig
1691 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1693 EB+MCF-EV123_config : unconfig
1694 @mkdir -p $(obj)include
1695 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1696 @ >$(obj)include/config.h
1697 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1698 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1700 EB+MCF-EV123_internal_config : unconfig
1701 @mkdir -p $(obj)include
1702 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1703 @ >$(obj)include/config.h
1704 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1705 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1707 idmr_config : unconfig
1708 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1710 M5271EVB_config : unconfig
1711 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1713 M5272C3_config : unconfig
1714 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1716 M5282EVB_config : unconfig
1717 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1719 TASREG_config : unconfig
1720 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1722 r5200_config : unconfig
1723 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1726 M5329BFEE_config : unconfig
1728 M5329AFEE_config) NAND=0;; \
1729 M5329BFEE_config) NAND=16;; \
1731 >include/config.h ; \
1732 if [ "$${NAND}" != "0" ] ; then \
1733 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1735 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1738 M54455EVB_atmel_config \
1739 M54455EVB_intel_config \
1740 M54455EVB_a33_config \
1741 M54455EVB_a66_config \
1742 M54455EVB_i33_config \
1743 M54455EVB_i66_config : unconfig
1745 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1746 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1747 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1748 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1749 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1750 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1751 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1753 >include/config.h ; \
1754 if [ "$${FLASH}" == "INTEL" ] ; then \
1755 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1756 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1757 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1758 echo "... with INTEL boot..." ; \
1760 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1761 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1762 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1763 echo "... with ATMEL boot..." ; \
1765 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1766 echo "... with $${FREQ}Hz input clock"
1767 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1769 #########################################################################
1771 #########################################################################
1773 MPC8313ERDB_33_config \
1774 MPC8313ERDB_66_config: unconfig
1775 @mkdir -p $(obj)include
1776 @echo "" >$(obj)include/config.h ; \
1777 if [ "$(findstring _33_,$@)" ] ; then \
1778 echo -n "...33M ..." ; \
1779 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1781 if [ "$(findstring _66_,$@)" ] ; then \
1782 echo -n "...66M..." ; \
1783 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1785 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1787 MPC8323ERDB_config: unconfig
1788 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1790 MPC832XEMDS_config \
1791 MPC832XEMDS_HOST_33_config \
1792 MPC832XEMDS_HOST_66_config \
1793 MPC832XEMDS_SLAVE_config \
1794 MPC832XEMDS_ATM_config: unconfig
1795 @mkdir -p $(obj)include
1796 @echo "" >$(obj)include/config.h ; \
1797 if [ "$(findstring _HOST_,$@)" ] ; then \
1798 echo -n "... PCI HOST " ; \
1799 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1801 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1802 echo "...PCI SLAVE 66M" ; \
1803 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1804 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1806 if [ "$(findstring _33_,$@)" ] ; then \
1807 echo -n "...33M ..." ; \
1808 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1809 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1811 if [ "$(findstring _66_,$@)" ] ; then \
1812 echo -n "...66M..." ; \
1813 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1814 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1816 if [ "$(findstring _ATM_,$@)" ] ; then \
1817 echo -n "...ATM..." ; \
1818 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1819 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1821 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1823 MPC8349EMDS_config: unconfig
1824 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1827 MPC8349ITX_LOWBOOT_config \
1828 MPC8349ITXGP_config: unconfig
1829 @mkdir -p $(obj)include
1830 @mkdir -p $(obj)board/freescale/mpc8349itx
1831 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1832 @if [ "$(findstring GP,$@)" ] ; then \
1833 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1835 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1836 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1838 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
1840 MPC8360EMDS_config \
1841 MPC8360EMDS_HOST_33_config \
1842 MPC8360EMDS_HOST_66_config \
1843 MPC8360EMDS_SLAVE_config \
1844 MPC8360EMDS_ATM_config: unconfig
1845 @mkdir -p $(obj)include
1846 @echo "" >$(obj)include/config.h ; \
1847 if [ "$(findstring _HOST_,$@)" ] ; then \
1848 echo -n "... PCI HOST " ; \
1849 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1851 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1852 echo "...PCI SLAVE 66M" ; \
1853 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1854 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1856 if [ "$(findstring _33_,$@)" ] ; then \
1857 echo -n "...33M ..." ; \
1858 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1859 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1861 if [ "$(findstring _66_,$@)" ] ; then \
1862 echo -n "...66M..." ; \
1863 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1864 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1866 if [ "$(findstring _ATM_,$@)" ] ; then \
1867 echo -n "...ATM..." ; \
1868 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1869 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1871 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
1873 sbc8349_config: unconfig
1874 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1876 TQM834x_config: unconfig
1877 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1880 #########################################################################
1882 #########################################################################
1884 MPC8540ADS_config: unconfig
1885 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1887 MPC8540EVAL_config \
1888 MPC8540EVAL_33_config \
1889 MPC8540EVAL_66_config \
1890 MPC8540EVAL_33_slave_config \
1891 MPC8540EVAL_66_slave_config: unconfig
1892 @mkdir -p $(obj)include
1893 @echo "" >$(obj)include/config.h ; \
1894 if [ "$(findstring _33_,$@)" ] ; then \
1895 echo "... 33 MHz PCI" ; \
1897 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1898 echo "... 66 MHz PCI" ; \
1900 if [ "$(findstring _slave_,$@)" ] ; then \
1901 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1906 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1908 MPC8560ADS_config: unconfig
1909 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1911 MPC8541CDS_legacy_config \
1912 MPC8541CDS_config: unconfig
1913 @mkdir -p $(obj)include
1914 @echo "" >$(obj)include/config.h ; \
1915 if [ "$(findstring _legacy_,$@)" ] ; then \
1916 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1917 echo "... legacy" ; \
1919 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds cds
1921 MPC8544DS_config: unconfig
1922 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1924 MPC8548CDS_legacy_config \
1925 MPC8548CDS_config: unconfig
1926 @mkdir -p $(obj)include
1927 @echo "" >$(obj)include/config.h ; \
1928 if [ "$(findstring _legacy_,$@)" ] ; then \
1929 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1930 echo "... legacy" ; \
1932 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds cds
1934 MPC8555CDS_legacy_config \
1935 MPC8555CDS_config: unconfig
1936 @mkdir -p $(obj)include
1937 @echo "" >$(obj)include/config.h ; \
1938 if [ "$(findstring _legacy_,$@)" ] ; then \
1939 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1940 echo "... legacy" ; \
1942 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds cds
1944 MPC8568MDS_config: unconfig
1945 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1947 PM854_config: unconfig
1948 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1950 PM856_config: unconfig
1951 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1955 sbc8540_66_config: unconfig
1956 @mkdir -p $(obj)include
1957 @if [ "$(findstring _66_,$@)" ] ; then \
1958 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1959 echo "... 66 MHz PCI" ; \
1961 >$(obj)include/config.h ; \
1962 echo "... 33 MHz PCI" ; \
1964 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1968 sbc8560_66_config: unconfig
1969 @mkdir -p $(obj)include
1970 @if [ "$(findstring _66_,$@)" ] ; then \
1971 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1972 echo "... 66 MHz PCI" ; \
1974 >$(obj)include/config.h ; \
1975 echo "... 33 MHz PCI" ; \
1977 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1979 stxgp3_config: unconfig
1980 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1983 stxssa_4M_config: unconfig
1984 @mkdir -p $(obj)include
1985 @if [ "$(findstring _4M_,$@)" ] ; then \
1986 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1987 echo "... with 4 MiB flash memory" ; \
1989 >$(obj)include/config.h ; \
1991 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1996 TQM8560_config: unconfig
1997 @mkdir -p $(obj)include
1998 @CTYPE=$(subst TQM,,$(@:_config=)); \
1999 >$(obj)include/config.h ; \
2000 echo "... TQM"$${CTYPE}; \
2001 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2002 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2003 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2004 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2005 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2006 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2008 #########################################################################
2010 #########################################################################
2012 MPC8641HPCN_config: unconfig
2013 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2015 sbc8641d_config: unconfig
2016 @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2018 #########################################################################
2020 #########################################################################
2022 AmigaOneG3SE_config: unconfig
2023 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2025 BAB7xx_config: unconfig
2026 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2028 CPCI750_config: unconfig
2029 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2031 DB64360_config: unconfig
2032 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2034 DB64460_config: unconfig
2035 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2037 ELPPC_config: unconfig
2038 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2041 EVB64260_750CX_config: unconfig
2042 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2044 mpc7448hpc2_config: unconfig
2045 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
2047 P3G4_config: unconfig
2048 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2051 p3m7448_config: unconfig
2052 @mkdir -p $(obj)include
2053 @if [ "$(findstring 750_,$@)" ] ; then \
2054 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2056 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2058 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2061 PCIPPC6_config: unconfig
2062 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2064 ZUMA_config: unconfig
2065 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2067 ppmc7xx_config: unconfig
2068 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2070 #========================================================================
2072 #========================================================================
2073 #########################################################################
2074 ## StrongARM Systems
2075 #########################################################################
2077 assabet_config : unconfig
2078 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2080 dnp1110_config : unconfig
2081 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2083 gcplus_config : unconfig
2084 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2086 lart_config : unconfig
2087 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2089 shannon_config : unconfig
2090 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2092 #########################################################################
2094 #########################################################################
2096 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2098 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2100 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2102 at91rm9200dk_config : unconfig
2103 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2105 cmc_pu2_config : unconfig
2106 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2108 csb637_config : unconfig
2109 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2111 mp2usb_config : unconfig
2112 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2115 ########################################################################
2116 ## ARM Integrator boards - see doc/README-integrator for more info.
2117 integratorap_config \
2126 ap946es_config: unconfig
2127 @board/integratorap/split_by_variant.sh $@
2129 integratorcp_config \
2138 cp1026_config: unconfig
2139 @board/integratorcp/split_by_variant.sh $@
2141 kb9202_config : unconfig
2142 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2145 lpd7a404_config: unconfig
2146 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2148 mx1ads_config : unconfig
2149 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2151 mx1fs2_config : unconfig
2152 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2155 netstar_config: unconfig
2156 @mkdir -p $(obj)include
2157 @if [ "$(findstring _32_,$@)" ] ; then \
2158 echo "... 32MB SDRAM" ; \
2159 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2161 echo "... 64MB SDRAM" ; \
2162 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2164 @$(MKCONFIG) -a netstar arm arm925t netstar
2166 omap1510inn_config : unconfig
2167 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2169 omap5912osk_config : unconfig
2170 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2172 davinci_dvevm_config : unconfig
2173 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2175 davinci_schmoogie_config : unconfig
2176 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2178 davinci_sonata_config : unconfig
2179 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2181 omap1610inn_config \
2182 omap1610inn_cs0boot_config \
2183 omap1610inn_cs3boot_config \
2184 omap1610inn_cs_autoboot_config \
2186 omap1610h2_cs0boot_config \
2187 omap1610h2_cs3boot_config \
2188 omap1610h2_cs_autoboot_config: unconfig
2189 @mkdir -p $(obj)include
2190 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2191 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2192 echo "... configured for CS0 boot"; \
2193 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2194 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2195 echo "... configured for CS_AUTO boot"; \
2197 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2198 echo "... configured for CS3 boot"; \
2200 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2203 omap730p2_cs0boot_config \
2204 omap730p2_cs3boot_config : unconfig
2205 @mkdir -p $(obj)include
2206 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2207 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2208 echo "... configured for CS0 boot"; \
2210 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2211 echo "... configured for CS3 boot"; \
2213 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2215 sbc2410x_config: unconfig
2216 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2218 scb9328_config : unconfig
2219 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2221 smdk2400_config : unconfig
2222 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2224 smdk2410_config : unconfig
2225 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2227 SX1_config : unconfig
2228 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2230 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2232 trab_bigram_config \
2233 trab_bigflash_config \
2234 trab_old_config: unconfig
2235 @mkdir -p $(obj)include
2236 @mkdir -p $(obj)board/trab
2237 @ >$(obj)include/config.h
2238 @[ -z "$(findstring _bigram,$@)" ] || \
2239 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2240 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2241 echo "... with 8 MB Flash, 32 MB RAM" ; \
2243 @[ -z "$(findstring _bigflash,$@)" ] || \
2244 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2245 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2246 echo "... with 16 MB Flash, 16 MB RAM" ; \
2247 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2249 @[ -z "$(findstring _old,$@)" ] || \
2250 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2251 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2252 echo "... with 8 MB Flash, 16 MB RAM" ; \
2253 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2255 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2257 VCMA9_config : unconfig
2258 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2260 #========================================================================
2261 # ARM supplied Versatile development boards
2262 #========================================================================
2264 versatileab_config \
2265 versatilepb_config : unconfig
2266 @board/versatile/split_by_variant.sh $@
2268 voiceblue_smallflash_config \
2269 voiceblue_config: unconfig
2270 @mkdir -p $(obj)include
2271 @mkdir -p $(obj)board/voiceblue
2272 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2273 echo "... boot from lower flash bank" ; \
2274 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2275 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2277 echo "... boot from upper flash bank" ; \
2278 >$(obj)include/config.h ; \
2279 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2281 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2283 cm4008_config : unconfig
2284 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2286 cm41xx_config : unconfig
2287 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2289 gth2_config : unconfig
2290 @mkdir -p $(obj)include
2291 @ >$(obj)include/config.h
2292 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2293 @$(MKCONFIG) -a gth2 mips mips gth2
2295 #########################################################################
2297 #########################################################################
2299 B2_config : unconfig
2300 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2302 #########################################################################
2304 #########################################################################
2306 armadillo_config: unconfig
2307 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2309 ep7312_config : unconfig
2310 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2312 impa7_config : unconfig
2313 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2315 modnet50_config : unconfig
2316 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2318 evb4510_config : unconfig
2319 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2321 lpc2292sodimm_config: unconfig
2322 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2324 SMN42_config : unconfig
2325 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2327 #########################################################################
2329 #########################################################################
2331 adsvix_config : unconfig
2332 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2334 cerf250_config : unconfig
2335 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2337 cradle_config : unconfig
2338 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2340 csb226_config : unconfig
2341 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2344 @$(MKCONFIG) $(@:_config=) arm pxa delta
2346 innokom_config : unconfig
2347 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2349 ixdp425_config : unconfig
2350 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2352 ixdpg425_config : unconfig
2353 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2355 lubbock_config : unconfig
2356 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2358 pleb2_config : unconfig
2359 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2361 logodl_config : unconfig
2362 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2365 scpu_config: unconfig
2366 @mkdir -p $(obj)include
2367 @if [ "$(findstring scpu_,$@)" ] ; then \
2368 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2369 echo "... on SCPU board variant" ; \
2371 >$(obj)include/config.h ; \
2373 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2375 pxa255_idp_config: unconfig
2376 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2378 trizepsiv_config : unconfig
2379 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2381 wepep250_config : unconfig
2382 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2384 xaeniax_config : unconfig
2385 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2387 xm250_config : unconfig
2388 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2390 xsengine_config : unconfig
2391 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2394 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2396 #########################################################################
2398 #########################################################################
2399 omap2420h4_config : unconfig
2400 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2402 #========================================================================
2404 #========================================================================
2405 #########################################################################
2407 #########################################################################
2408 sc520_cdp_config : unconfig
2409 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2411 sc520_spunk_config : unconfig
2412 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2414 sc520_spunk_rel_config : unconfig
2415 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2417 #========================================================================
2419 #========================================================================
2420 #########################################################################
2422 #########################################################################
2424 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2426 incaip_100MHz_config \
2427 incaip_133MHz_config \
2428 incaip_150MHz_config \
2429 incaip_config: unconfig
2430 @mkdir -p $(obj)include
2431 @ >$(obj)include/config.h
2432 @[ -z "$(findstring _100MHz,$@)" ] || \
2433 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2434 echo "... with 100MHz system clock" ; \
2436 @[ -z "$(findstring _133MHz,$@)" ] || \
2437 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2438 echo "... with 133MHz system clock" ; \
2440 @[ -z "$(findstring _150MHz,$@)" ] || \
2441 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2442 echo "... with 150MHz system clock" ; \
2444 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2446 tb0229_config: unconfig
2447 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2449 #########################################################################
2451 #########################################################################
2452 dbau1000_config : unconfig
2453 @mkdir -p $(obj)include
2454 @ >$(obj)include/config.h
2455 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2456 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2458 dbau1100_config : unconfig
2459 @mkdir -p $(obj)include
2460 @ >$(obj)include/config.h
2461 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2462 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2464 dbau1500_config : unconfig
2465 @mkdir -p $(obj)include
2466 @ >$(obj)include/config.h
2467 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2468 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2470 dbau1550_config : unconfig
2471 @mkdir -p $(obj)include
2472 @ >$(obj)include/config.h
2473 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2474 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2476 dbau1550_el_config : unconfig
2477 @mkdir -p $(obj)include
2478 @ >$(obj)include/config.h
2479 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2480 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2482 pb1000_config : unconfig
2483 @mkdir -p $(obj)include
2484 @ >$(obj)include/config.h
2485 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2486 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2488 #########################################################################
2490 #########################################################################
2492 purple_config : unconfig
2493 @$(MKCONFIG) $(@:_config=) mips mips purple
2495 #========================================================================
2497 #========================================================================
2498 #########################################################################
2500 #########################################################################
2502 DK1C20_safe_32_config \
2503 DK1C20_standard_32_config \
2504 DK1C20_config: unconfig
2505 @mkdir -p $(obj)include
2506 @ >$(obj)include/config.h
2507 @[ -z "$(findstring _safe_32,$@)" ] || \
2508 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2509 echo "... NIOS 'safe_32' configuration" ; \
2511 @[ -z "$(findstring _standard_32,$@)" ] || \
2512 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2513 echo "... NIOS 'standard_32' configuration" ; \
2515 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2516 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2517 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2519 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2521 DK1S10_safe_32_config \
2522 DK1S10_standard_32_config \
2523 DK1S10_mtx_ldk_20_config \
2524 DK1S10_config: unconfig
2525 @mkdir -p $(obj)include
2526 @ >$(obj)include/config.h
2527 @[ -z "$(findstring _safe_32,$@)" ] || \
2528 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2529 echo "... NIOS 'safe_32' configuration" ; \
2531 @[ -z "$(findstring _standard_32,$@)" ] || \
2532 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2533 echo "... NIOS 'standard_32' configuration" ; \
2535 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2536 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2537 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2539 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2540 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2541 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2543 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2545 ADNPESC1_DNPEVA2_base_32_config \
2546 ADNPESC1_base_32_config \
2547 ADNPESC1_config: unconfig
2548 @mkdir -p $(obj)include
2549 @ >$(obj)include/config.h
2550 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2551 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2552 echo "... DNP/EVA2 configuration" ; \
2554 @[ -z "$(findstring _base_32,$@)" ] || \
2555 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2556 echo "... NIOS 'base_32' configuration" ; \
2558 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2559 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2560 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2562 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2564 #########################################################################
2566 #########################################################################
2568 EP1C20_config : unconfig
2569 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2571 EP1S10_config : unconfig
2572 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2574 EP1S40_config : unconfig
2575 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2577 PK1C20_config : unconfig
2578 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2580 PCI5441_config : unconfig
2581 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2583 #========================================================================
2585 #========================================================================
2586 #########################################################################
2588 #########################################################################
2589 suzaku_config: unconfig
2590 @mkdir -p $(obj)include
2591 @ >$(obj)include/config.h
2592 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2593 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2595 ml401_config: unconfig
2596 @mkdir -p $(obj)include
2597 @ >$(obj)include/config.h
2598 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2599 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2601 xupv2p_config: unconfig
2602 @mkdir -p $(obj)include
2603 @ >$(obj)include/config.h
2604 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2605 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2607 #########################################################################
2609 #########################################################################
2610 bf533-ezkit_config: unconfig
2611 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2613 bf533-stamp_config: unconfig
2614 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2616 bf537-stamp_config: unconfig
2617 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2619 bf561-ezkit_config: unconfig
2620 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2622 #========================================================================
2624 #========================================================================
2625 #########################################################################
2627 #########################################################################
2629 atstk1002_config : unconfig
2630 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2632 #########################################################################
2633 #########################################################################
2634 #########################################################################
2637 find $(OBJTREE) -type f \
2638 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2639 -o -name '*.o' -o -name '*.a' \) -print \
2641 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2642 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2643 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2644 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2645 $(obj)examples/test_burst
2646 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2647 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2648 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2649 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2650 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2651 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2652 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2653 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2654 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2655 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2656 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2657 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2658 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2659 rm -f $(obj)include/bmp_logo.h
2660 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2663 find $(OBJTREE) -type f \( -name .depend \
2664 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2667 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2669 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2670 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2671 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2672 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2673 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2675 ifeq ($(OBJTREE),$(SRCTREE))
2677 distclean: clobber unconfig
2680 distclean: clobber unconfig
2685 F=`basename $(TOPDIR)` ; cd .. ; \
2686 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2688 #########################################################################