2 # (C) Copyright 2000-2010
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 ifneq "$(SUBLEVEL)" ""
29 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
31 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
33 TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34 VERSION_FILE = $(obj)include/version_autogenerated.h
36 HOSTARCH := $(shell uname -m | \
46 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
47 sed -e 's/\(cygwin\).*/cygwin/')
49 # Set shell to bash if possible, otherwise fall back to sh
50 SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
51 else if [ -x /bin/bash ]; then echo /bin/bash; \
54 export HOSTARCH HOSTOS SHELL
56 # Deal with colliding definitions from tcsh etc.
59 #########################################################################
60 # Allow for silent builds
61 ifeq (,$(findstring s,$(MAKEFLAGS)))
67 #########################################################################
69 # U-boot build supports producing a object files to the separate external
70 # directory. Two use cases are supported:
72 # 1) Add O= to the make command line
73 # 'make O=/tmp/build all'
75 # 2) Set environement variable BUILD_DIR to point to the desired location
76 # 'export BUILD_DIR=/tmp/build'
79 # The second approach can also be used with a MAKEALL script
80 # 'export BUILD_DIR=/tmp/build'
83 # Command line 'O=' setting overrides BUILD_DIR environent variable.
85 # When none of the above methods is used the local build is performed and
86 # the object files are placed in the source directory.
90 ifeq ("$(origin O)", "command line")
96 saved-output := $(BUILD_DIR)
98 # Attempt to create a output directory.
99 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
101 # Verify if it was successful.
102 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
103 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
104 endif # ifneq ($(BUILD_DIR),)
106 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
110 export TOPDIR SRCTREE OBJTREE
112 MKCONFIG := $(SRCTREE)/mkconfig
115 ifneq ($(OBJTREE),$(SRCTREE))
120 # $(obj) and (src) are defined in config.mk but here in main Makefile
121 # we also need them before config.mk is included which is the case for
122 # some targets like unconfig, clean, clobber, distclean, etc.
123 ifneq ($(OBJTREE),$(SRCTREE))
132 # Make sure CDPATH settings don't interfere
135 #########################################################################
137 # The "tools" are needed early, so put this first
138 # Don't include stuff already done in $(LIBS)
140 examples/standalone \
145 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
147 # Include autoconf.mk before config.mk so that the config options are available
148 # to all top level build files. We need the dummy all: target to prevent the
149 # dependency target in autoconf.mk.dep from being the default.
151 sinclude $(obj)include/autoconf.mk.dep
152 sinclude $(obj)include/autoconf.mk
154 # load ARCH, BOARD, and CPU configuration
155 include $(obj)include/config.mk
156 export ARCH CPU BOARD VENDOR SOC
158 # set default to nothing for native builds
159 ifeq ($(HOSTARCH),$(ARCH))
163 # load other configuration
164 include $(TOPDIR)/config.mk
166 #########################################################################
167 # U-Boot objects....order is important (i.e. start must be first)
169 OBJS = $(CPUDIR)/start.o
171 OBJS += $(CPUDIR)/start16.o
172 OBJS += $(CPUDIR)/resetvec.o
175 OBJS += $(CPUDIR)/resetvec.o
177 ifeq ($(CPU),mpc85xx)
178 OBJS += $(CPUDIR)/resetvec.o
181 OBJS := $(addprefix $(obj),$(OBJS))
183 LIBS = lib/libgeneric.a
184 LIBS += lib/lzma/liblzma.a
185 LIBS += lib/lzo/liblzo.a
186 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
187 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
188 LIBS += $(CPUDIR)/lib$(CPU).a
190 LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a
193 LIBS += arch/arm/cpu/ixp/npe/libnpe.a
195 LIBS += arch/$(ARCH)/lib/lib$(ARCH).a
196 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
197 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
200 LIBS += disk/libdisk.a
201 LIBS += drivers/bios_emulator/libatibiosemu.a
202 LIBS += drivers/block/libblock.a
203 LIBS += drivers/dma/libdma.a
204 LIBS += drivers/fpga/libfpga.a
205 LIBS += drivers/gpio/libgpio.a
206 LIBS += drivers/hwmon/libhwmon.a
207 LIBS += drivers/i2c/libi2c.a
208 LIBS += drivers/input/libinput.a
209 LIBS += drivers/misc/libmisc.a
210 LIBS += drivers/mmc/libmmc.a
211 LIBS += drivers/mtd/libmtd.a
212 LIBS += drivers/mtd/nand/libnand.a
213 LIBS += drivers/mtd/onenand/libonenand.a
214 LIBS += drivers/mtd/ubi/libubi.a
215 LIBS += drivers/mtd/spi/libspi_flash.a
216 LIBS += drivers/net/libnet.a
217 LIBS += drivers/net/phy/libphy.a
218 LIBS += drivers/pci/libpci.a
219 LIBS += drivers/pcmcia/libpcmcia.a
220 LIBS += drivers/power/libpower.a
221 LIBS += drivers/spi/libspi.a
222 ifeq ($(CPU),mpc83xx)
223 LIBS += drivers/qe/qe.a
224 LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
226 ifeq ($(CPU),mpc85xx)
227 LIBS += drivers/qe/qe.a
228 LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
229 LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
231 ifeq ($(CPU),mpc86xx)
232 LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
233 LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
235 LIBS += drivers/rtc/librtc.a
236 LIBS += drivers/serial/libserial.a
237 LIBS += drivers/twserial/libtws.a
238 LIBS += drivers/usb/gadget/libusb_gadget.a
239 LIBS += drivers/usb/host/libusb_host.a
240 LIBS += drivers/usb/musb/libusb_musb.a
241 LIBS += drivers/usb/phy/libusb_phy.a
242 LIBS += drivers/video/libvideo.a
243 LIBS += drivers/watchdog/libwatchdog.a
244 LIBS += common/libcommon.a
245 LIBS += lib/libfdt/libfdt.a
247 LIBS += post/libpost.a
249 LIBS := $(addprefix $(obj),$(LIBS))
250 .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
252 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
253 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
256 ifdef USE_PRIVATE_LIBGCC
257 ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
258 PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
260 PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
263 PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
265 PLATFORM_LIBS += $(PLATFORM_LIBGCC)
268 # Special flags for CPP when processing the linker script.
269 # Pass the version down so we can handle backwards compatibility
272 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \
273 $(shell $(LD) --version | \
274 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
276 ifeq ($(CONFIG_NAND_U_BOOT),y)
278 U_BOOT_NAND = $(obj)u-boot-nand.bin
281 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
282 ONENAND_IPL = onenand_ipl
283 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
284 ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
287 __OBJS := $(subst $(obj),,$(OBJS))
288 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
290 #########################################################################
291 #########################################################################
293 # Always append ALL so that arch config.mk's can add custom ones
294 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
298 $(obj)u-boot.hex: $(obj)u-boot
299 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
301 $(obj)u-boot.srec: $(obj)u-boot
302 $(OBJCOPY) -O srec $< $@
304 $(obj)u-boot.bin: $(obj)u-boot
305 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
307 $(obj)u-boot.ldr: $(obj)u-boot
309 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
311 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
312 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
314 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
315 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
317 $(obj)u-boot.img: $(obj)u-boot.bin
318 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \
319 -a $(TEXT_BASE) -e 0 \
320 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
321 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
324 $(obj)u-boot.imx: $(obj)u-boot.bin
325 $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \
326 -e $(TEXT_BASE) -d $< $@
328 $(obj)u-boot.kwb: $(obj)u-boot.bin
329 $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \
330 -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
332 $(obj)u-boot.sha1: $(obj)u-boot.bin
333 $(obj)tools/ubsha1 $(obj)u-boot.bin
335 $(obj)u-boot.dis: $(obj)u-boot
336 $(OBJDUMP) -d $< > $@
339 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
340 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
341 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
342 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
343 -Map u-boot.map -o u-boot
344 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
346 ifeq ($(CONFIG_KALLSYMS),y)
347 smap=`$(call SYSTEM_MAP,u-boot) | \
348 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
349 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
350 -c common/system_map.c -o $(obj)common/system_map.o
351 $(GEN_UBOOT) $(obj)common/system_map.o
355 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
357 $(LIBS): depend $(SUBDIRS)
358 $(MAKE) -C $(dir $(subst $(obj),,$@))
360 $(LIBBOARD): depend $(LIBS)
361 $(MAKE) -C $(dir $(subst $(obj),,$@))
367 $(MAKE) -C $(dir $@) $(notdir $@)
369 $(obj)u-boot.lds: $(LDSCRIPT)
370 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
372 $(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
373 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
375 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
376 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
378 $(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
379 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
381 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
382 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
385 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
386 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
387 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
390 @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
391 @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@
394 $(MAKE) -C tools/gdb all || exit 1
397 $(MAKE) -C tools/updater all || exit 1
400 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
402 # Explicitly make _depend in subdirs containing multiple targets to prevent
403 # parallel sub-makes creating .depend files simultaneously.
404 depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
405 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
406 $(MAKE) -C $$dir _depend ; done
408 TAG_SUBDIRS = $(SUBDIRS)
409 TAG_SUBDIRS += $(dir $(__LIBS))
410 TAG_SUBDIRS += include
413 ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \
414 -name '*.[chS]' -print`
417 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \
418 -name '*.[chS]' -print`
420 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files
425 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
427 $(obj)System.map: $(obj)u-boot
428 @$(call SYSTEM_MAP,$<) > $(obj)System.map
431 # Auto-generate the autoconf.mk file (which is included by all makefiles)
433 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
434 # the dep file is only include in this top level makefile to determine when
435 # to regenerate the autoconf.mk file.
436 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
437 @$(XECHO) Generating $@ ; \
439 : Generate the dependancies ; \
440 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
441 -MQ $(obj)include/autoconf.mk include/common.h > $@
443 $(obj)include/autoconf.mk: $(obj)include/config.h
444 @$(XECHO) Generating $@ ; \
446 : Extract the config macros ; \
447 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
448 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
451 #########################################################################
453 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
454 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
455 $(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \
456 updater env depend dep tags ctags etags cscope $(obj)System.map:
457 @echo "System not configured - see README" >&2
463 $(MAKE) -C tools HOST_TOOLS_ALL=y
468 git log --no-merges U-Boot-1_1_5.. | \
469 unexpand -a | sed -e 's/\s\s*$$//' > $@
471 include/license.h: tools/bin2header COPYING
472 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
473 #########################################################################
476 @rm -f $(obj)include/config.h $(obj)include/config.mk \
477 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
478 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
481 @$(MKCONFIG) -A $(@:_config=)
487 # Functions to generate common board directory names
489 lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/')
490 ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/')
492 #========================================================================
494 #========================================================================
496 #########################################################################
498 #########################################################################
501 digsy_mtc_LOWBOOT_config \
502 digsy_mtc_RAMBOOT_config: unconfig
503 @mkdir -p $(obj)include
504 @mkdir -p $(obj)board/digsy_mtc
505 @ >$(obj)include/config.h
506 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
507 echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp
508 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
509 echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp
510 @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc
512 galaxy5200_LOWBOOT_config \
513 galaxy5200_config: unconfig
514 @mkdir -p $(obj)include
515 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
516 @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200
519 Lite5200_LOWBOOT_config \
520 Lite5200_LOWBOOT08_config \
521 icecube_5200_config \
522 icecube_5200_LOWBOOT_config \
523 icecube_5200_LOWBOOT08_config \
524 icecube_5200_DDR_config \
525 icecube_5200_DDR_LOWBOOT_config \
526 icecube_5200_DDR_LOWBOOT08_config: unconfig
527 @mkdir -p $(obj)include
528 @mkdir -p $(obj)board/icecube
529 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
530 if [ "$(findstring DDR,$@)" ] ; \
531 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
532 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
534 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
535 echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp
536 @[ -z "$(findstring DDR,$@)" ] || \
537 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
538 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
541 lite5200b_PM_config \
542 lite5200b_LOWBOOT_config: unconfig
543 @mkdir -p $(obj)include
544 @mkdir -p $(obj)board/icecube
545 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
546 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
547 @[ -z "$(findstring _PM_,$@)" ] || \
548 echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h
549 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
550 echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp
551 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
554 mcc200_SDRAM_config \
555 mcc200_highboot_config \
556 mcc200_COM12_config \
557 mcc200_COM12_SDRAM_config \
558 mcc200_COM12_highboot_config \
559 mcc200_COM12_highboot_SDRAM_config \
560 mcc200_highboot_SDRAM_config \
563 prs200_highboot_config \
564 prs200_highboot_DDR_config: unconfig
565 @mkdir -p $(obj)include
566 @mkdir -p $(obj)board/mcc200
567 @[ -z "$(findstring highboot,$@)" ] || \
568 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp
569 @[ -n "$(findstring _SDRAM,$@)" ] || \
570 if [ -n "$(findstring prs200,$@)" ]; \
572 if [ -z "$(findstring _DDR,$@)" ];\
574 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
577 @[ -z "$(findstring _SDRAM,$@)" ] || \
578 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h
579 @[ -z "$(findstring COM12,$@)" ] || \
580 echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h
581 @[ -z "$(findstring prs200,$@)" ] || \
582 echo "#define CONFIG_PRS200" >>$(obj)include/config.h
583 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
585 MVBC_P_config: unconfig
586 @mkdir -p $(obj)include
587 @mkdir -p $(obj)board/mvbc_p
588 @ >$(obj)include/config.h
589 @[ -z "$(findstring MVBC_P,$@)" ] || \
590 echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h
591 @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision
593 MVSMR_config: unconfig
594 @mkdir -p $(obj)include
595 @mkdir -p $(obj)board/matrix_vision/mvsmr
596 @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision
599 pcm030_LOWBOOT_config: unconfig
600 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
601 @ >$(obj)include/config.h
602 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
603 echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp
604 @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec
608 PM520_ROMBOOT_config \
609 PM520_ROMBOOT_DDR_config: unconfig
610 @mkdir -p $(obj)include
611 @[ -z "$(findstring DDR,$@)" ] || \
612 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
613 @[ -z "$(findstring ROMBOOT,$@)" ] || \
614 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h
615 @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520
618 TB5200_config: unconfig
619 @mkdir -p $(obj)include
620 @[ -z "$(findstring _B,$@)" ] || \
621 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
622 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
626 TOP5200_config: unconfig
627 @mkdir -p $(obj)include
628 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
629 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
632 Total5200_lowboot_config \
633 Total5200_Rev2_config \
634 Total5200_Rev2_lowboot_config: unconfig
635 @mkdir -p $(obj)include
636 @mkdir -p $(obj)board/total5200
637 @[ -n "$(findstring Rev,$@)" ] || \
638 echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h
639 @[ -z "$(findstring Rev2_,$@)" ] || \
640 echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h
641 @[ -z "$(findstring lowboot_,$@)" ] || \
642 echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp
643 @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200
646 cam5200_niosflash_config \
650 TQM5200S_HIGHBOOT_config \
652 TQM5200_B_HIGHBOOT_config \
654 TQM5200_STK100_config: unconfig
655 @mkdir -p $(obj)include
656 @mkdir -p $(obj)board/tqc/tqm5200
657 @[ -z "$(findstring cam5200,$@)" ] || \
658 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
659 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
660 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
662 @[ -z "$(findstring niosflash,$@)" ] || \
663 echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h
664 @[ -z "$(findstring fo300,$@)" ] || \
665 echo "#define CONFIG_FO300" >>$(obj)include/config.h
666 @[ -z "$(findstring MiniFAP,$@)" ] || \
667 echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h
668 @[ -z "$(findstring STK100,$@)" ] || \
669 echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h
670 @[ -z "$(findstring TQM5200_B,$@)" ] || \
671 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
672 @[ -z "$(findstring TQM5200S,$@)" ] || \
673 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
674 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
676 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
677 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp
678 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
680 #########################################################################
682 #########################################################################
685 mpc5121ads_rev2_config \
687 @mkdir -p $(obj)include
688 @if [ "$(findstring rev2,$@)" ] ; then \
689 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
691 @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale
693 #########################################################################
695 #########################################################################
702 @mkdir -p $(obj)include
703 $(if $(findstring AdderII,$@), \
704 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
705 @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder
712 FADS860T_config: unconfig
713 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads
716 GEN860T_config: unconfig
717 @mkdir -p $(obj)include
718 @[ -z "$(findstring _SC,$@)" ] || \
719 echo "#define CONFIG_SC" >>$(obj)include/config.h
720 @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t
722 ICU862_100MHz_config \
723 ICU862_config: unconfig
724 @mkdir -p $(obj)include
725 @[ -z "$(findstring _100MHz,$@)" ] || \
726 echo "#define CONFIG_100MHz" >>$(obj)include/config.h
727 @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862
731 IVML24_config: unconfig
732 @mkdir -p $(obj)include
733 @[ -z "$(findstring IVML24_config,$@)" ] || \
734 echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h
735 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
736 echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h
737 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
738 echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h
739 @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm
743 IVMS8_config: unconfig
744 @mkdir -p $(obj)include
745 @[ -z "$(findstring IVMS8_config,$@)" ] || \
746 echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h
747 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
748 echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h
749 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
750 echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h
751 @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm
754 MBX860T_config: unconfig
755 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx
758 NETVIA_config: unconfig
759 @mkdir -p $(obj)include
760 @[ -z "$(findstring NETVIA_config,$@)" ] || \
761 echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h
762 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
763 echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h
764 @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia
767 NETPHONE_config: unconfig
768 @mkdir -p $(obj)include
769 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
770 echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h
771 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
772 echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h
773 @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone
775 NETTA_ISDN_6412_SWAPHOOK_config \
776 NETTA_ISDN_SWAPHOOK_config \
777 NETTA_6412_SWAPHOOK_config \
778 NETTA_SWAPHOOK_config \
779 NETTA_ISDN_6412_config \
782 NETTA_config: unconfig
783 @mkdir -p $(obj)include
784 @[ -z "$(findstring ISDN_,$@)" ] || \
785 echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h
786 @[ -n "$(findstring ISDN_,$@)" ] || \
787 echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h
788 @[ -z "$(findstring 6412_,$@)" ] || \
789 echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h
790 @[ -n "$(findstring 6412_,$@)" ] || \
791 echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h
792 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
793 echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h
794 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
795 echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h
796 @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta
799 NETTA2_config: unconfig
800 @mkdir -p $(obj)include
801 @[ -z "$(findstring NETTA2_config,$@)" ] || \
802 echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h
803 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
804 echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h
805 @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2
809 CP850_config: unconfig
810 @mkdir -p $(obj)include
811 @[ -z "$(findstring CP850,$@)" ] || \
812 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
813 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
815 @[ -z "$(findstring Rev1,$@)" ] || \
816 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
818 @[ -z "$(findstring Rev2,$@)" ] || \
819 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
821 @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650
823 RPXlite_DW_64_config \
824 RPXlite_DW_LCD_config \
825 RPXlite_DW_64_LCD_config \
826 RPXlite_DW_NVRAM_config \
827 RPXlite_DW_NVRAM_64_config \
828 RPXlite_DW_NVRAM_LCD_config \
829 RPXlite_DW_NVRAM_64_LCD_config \
830 RPXlite_DW_config: unconfig
831 @mkdir -p $(obj)include
832 @[ -z "$(findstring _64,$@)" ] || \
833 echo "#define RPXlite_64MHz" >>$(obj)include/config.h
834 @[ -z "$(findstring _LCD,$@)" ] || \
835 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
836 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
838 @[ -z "$(findstring _NVRAM,$@)" ] || \
839 echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h
840 @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw
842 RRvision_LCD_config: unconfig
843 @mkdir -p $(obj)include
844 @echo "#define CONFIG_LCD" >$(obj)include/config.h
845 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
846 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
848 SPD823TS_config: unconfig
849 @$(MKCONFIG) $@ powerpc mpc8xx spd8xx
851 SXNI855T_config: unconfig
852 @$(MKCONFIG) $@ powerpc mpc8xx sixnet
854 # Play some tricks for configuration selection
855 # Only 855 and 860 boards may come with FEC
856 # and only 823 boards may have LCD support
857 xtract_8xx = $(subst _LCD,,$1)
876 virtlab2_config: unconfig
877 @mkdir -p $(obj)include
878 @[ -z "$(findstring _LCD,$@)" ] || \
879 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
880 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
882 @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
884 TTTech_config: unconfig
885 @mkdir -p $(obj)include
886 @echo "#define CONFIG_LCD" >$(obj)include/config.h
887 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
888 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
891 @mkdir -p $(obj)include
892 @echo "#define CONFIG_LCD" >$(obj)include/config.h
893 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
894 @$(MKCONFIG) $@ powerpc mpc8xx v37
897 @mkdir -p $(obj)include
898 @echo "#define CONFIG_LCD" >$(obj)include/config.h
899 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
900 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
902 #########################################################################
904 #########################################################################
906 acadia_nand_config: unconfig
907 @mkdir -p $(obj)include $(obj)board/amcc/acadia
908 @mkdir -p $(obj)nand_spl/board/amcc/acadia
909 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
910 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
911 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
912 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
914 bamboo_nand_config: unconfig
915 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
916 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
917 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
918 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
919 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
920 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
922 # Arches, Canyonlands & Glacier use different U-Boot images
925 glacier_config: unconfig
926 @mkdir -p $(obj)include
927 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
928 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
929 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
931 canyonlands_nand_config \
932 glacier_nand_config: unconfig
933 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
934 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
935 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
936 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
937 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
938 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
939 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
940 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
943 CATcenter_25_config \
944 CATcenter_33_config: unconfig
945 @mkdir -p $(obj)include
946 @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
947 @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
948 @[ -z "$(findstring _25,$@)" ] || \
949 echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h
950 @[ -z "$(findstring _33,$@)" ] || \
951 echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h
952 @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave
957 CPCI405AB_config: unconfig
958 @mkdir -p $(obj)board/esd/cpci405
959 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd
961 fx12mm_flash_config: unconfig
962 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
963 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
964 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
965 > $(obj)board/avnet/fx12mm/config.tmp
966 @echo "TEXT_BASE := 0xFFCB0000" \
967 >> $(obj)board/avnet/fx12mm/config.tmp
968 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
970 fx12mm_config: unconfig
971 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
972 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
973 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
974 > $(obj)board/avnet/fx12mm/config.tmp
975 @echo "TEXT_BASE := 0x03000000" \
976 >> $(obj)board/avnet/fx12mm/config.tmp
977 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
979 # Compact-Center(codename intip) & DevCon-Center use different U-Boot images
981 devconcenter_config: unconfig
982 @mkdir -p $(obj)include
983 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
984 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
985 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
989 mcu25_config: unconfig
990 @mkdir -p $(obj)board/netstal/common
991 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal
993 # Kilauea & Haleakala images are identical (recognized via PVR)
995 haleakala_config: unconfig
996 @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc
998 kilauea_nand_config \
999 haleakala_nand_config: unconfig
1000 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1001 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1002 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1003 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1004 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1005 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
1007 MIP405T_config: unconfig
1008 @mkdir -p $(obj)include
1009 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1010 @$(XECHO) "Enable subset config for MIP405T"
1011 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
1013 ml507_flash_config: unconfig
1014 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1015 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1016 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1017 > $(obj)board/xilinx/ml507/config.tmp
1018 @echo "TEXT_BASE := 0xFE360000" \
1019 >> $(obj)board/xilinx/ml507/config.tmp
1020 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
1022 ml507_config: unconfig
1023 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1024 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1025 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1026 > $(obj)board/xilinx/ml507/config.tmp
1027 @echo "TEXT_BASE := 0x04000000" \
1028 >> $(obj)board/xilinx/ml507/config.tmp
1029 @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx
1032 ORSG_config: unconfig
1033 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd
1035 PPChameleonEVB_config \
1036 PPChameleonEVB_BA_25_config \
1037 PPChameleonEVB_ME_25_config \
1038 PPChameleonEVB_HI_25_config \
1039 PPChameleonEVB_BA_33_config \
1040 PPChameleonEVB_ME_33_config \
1041 PPChameleonEVB_HI_33_config: unconfig
1042 @mkdir -p $(obj)include
1043 @[ -z "$(findstring EVB_BA,$@)" ] || \
1044 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h
1045 @[ -z "$(findstring EVB_ME,$@)" ] || \
1046 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h
1047 @[ -z "$(findstring EVB_HI,$@)" ] || \
1048 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h
1049 @[ -z "$(findstring _25,$@)" ] || \
1050 echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h
1051 @[ -z "$(findstring _33,$@)" ] || \
1052 echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h
1053 @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave
1056 rainier_config: unconfig
1057 @mkdir -p $(obj)include
1058 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1059 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1060 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1062 sequoia_nand_config \
1063 rainier_nand_config: unconfig
1064 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1065 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1066 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1067 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1068 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1069 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1070 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1071 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1073 sequoia_ramboot_config \
1074 rainier_ramboot_config: unconfig
1075 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1076 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1077 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1078 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1079 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1080 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1081 $(obj)board/amcc/sequoia/config.tmp
1082 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1084 v5fx30teval_config: unconfig
1085 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1086 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1087 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1088 > $(obj)board/avnet/v5fx30teval/config.tmp
1089 @echo "TEXT_BASE := 0x03000000" \
1090 >> $(obj)board/avnet/v5fx30teval/config.tmp
1091 @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet
1093 v5fx30teval_flash_config: unconfig
1094 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1095 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1096 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1097 > $(obj)board/avnet/v5fx30teval/config.tmp
1098 @echo "TEXT_BASE := 0xFF1C0000" \
1099 >> $(obj)board/avnet/v5fx30teval/config.tmp
1100 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
1103 W7OLMG_config: unconfig
1104 @$(MKCONFIG) $@ powerpc ppc4xx w7o
1106 # Walnut & Sycamore images are identical (recognized via PVR)
1108 sycamore_config: unconfig
1109 @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc
1111 xilinx-ppc405-generic_flash_config: unconfig
1112 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1113 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1114 > $(obj)board/xilinx/ppc405-generic/config.tmp
1115 @echo "TEXT_BASE := 0xFE360000" \
1116 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1117 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
1119 xilinx-ppc405-generic_config: unconfig
1120 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1121 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1122 > $(obj)board/xilinx/ppc405-generic/config.tmp
1123 @echo "TEXT_BASE := 0x04000000" \
1124 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1125 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
1127 xilinx-ppc440-generic_flash_config: unconfig
1128 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1129 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1130 > $(obj)board/xilinx/ppc440-generic/config.tmp
1131 @echo "TEXT_BASE := 0xFE360000" \
1132 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1133 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
1135 xilinx-ppc440-generic_config: unconfig
1136 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1137 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1138 > $(obj)board/xilinx/ppc440-generic/config.tmp
1139 @echo "TEXT_BASE := 0x04000000" \
1140 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1141 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
1144 yellowstone_config: unconfig
1145 @mkdir -p $(obj)include
1146 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1147 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1148 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
1150 #########################################################################
1152 #########################################################################
1154 eXalion_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
1158 CPC45_ROMBOOT_config: unconfig
1159 @mkdir -p $(obj)include ; \
1160 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1161 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
1163 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
1165 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
1166 @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45
1168 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1170 #linkstation_HDLAN_config \
1171 # Remove this line when HDLAN is fixed
1172 linkstation_HGLAN_config: unconfig
1173 @mkdir -p $(obj)include
1175 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1176 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1178 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
1180 Sandpoint8240_config: unconfig
1181 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
1183 Sandpoint8245_config: unconfig
1184 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
1186 #########################################################################
1188 #########################################################################
1190 cogent_mpc8260_config: unconfig
1191 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
1194 CPU86_ROMBOOT_config: unconfig
1195 @mkdir -p $(obj)include ; \
1196 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1197 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
1199 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
1201 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
1202 @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86
1205 CPU87_ROMBOOT_config: unconfig
1206 @mkdir -p $(obj)include ; \
1207 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1208 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
1210 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
1212 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
1213 @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87
1216 ep8248E_config : unconfig
1217 @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248
1220 ISPAN_REVB_config: unconfig
1221 @mkdir -p $(obj)include
1222 @if [ "$(findstring _REVB_,$@)" ] ; then \
1223 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1225 @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan
1228 MPC8260ADS_lowboot_config \
1229 MPC8260ADS_33MHz_config \
1230 MPC8260ADS_33MHz_lowboot_config \
1231 MPC8260ADS_40MHz_config \
1232 MPC8260ADS_40MHz_lowboot_config \
1234 MPC8272ADS_lowboot_config \
1236 PQ2FADS_lowboot_config \
1238 PQ2FADS-VR_lowboot_config \
1240 PQ2FADS-ZU_lowboot_config \
1241 PQ2FADS-ZU_66MHz_config \
1242 PQ2FADS-ZU_66MHz_lowboot_config \
1244 @mkdir -p $(obj)include
1245 @mkdir -p $(obj)board/freescale/mpc8260ads
1246 $(if $(findstring PQ2FADS,$@), \
1247 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1248 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1249 $(if $(findstring MHz,$@), \
1250 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1251 $(if $(findstring VR,$@), \
1252 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1253 @[ -z "$(findstring lowboot_,$@)" ] || \
1254 echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp
1255 @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
1257 muas3001_dev_config \
1258 muas3001_config : unconfig
1259 @mkdir -p $(obj)include
1260 @mkdir -p $(obj)board/muas3001
1261 @if [ "$(findstring dev,$@)" ] ; then \
1262 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1264 @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001
1266 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1268 PM825_ROMBOOT_config \
1269 PM825_BIGFLASH_config \
1270 PM825_ROMBOOT_BIGFLASH_config \
1272 PM826_ROMBOOT_config \
1273 PM826_BIGFLASH_config \
1274 PM826_ROMBOOT_BIGFLASH_config: unconfig
1275 @mkdir -p $(obj)include
1276 @mkdir -p $(obj)board/pm826
1277 @if [ "$(findstring PM825_,$@)" ] ; then \
1278 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1280 >$(obj)include/config.h ; \
1282 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1283 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1284 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1285 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1286 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1289 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1290 $(XECHO) "... with 32 MB Flash" ; \
1291 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1292 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1294 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1297 @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826
1301 PM828_ROMBOOT_config \
1302 PM828_ROMBOOT_PCI_config: unconfig
1303 @mkdir -p $(obj)include
1304 @mkdir -p $(obj)board/pm826
1305 @if [ "$(findstring _PCI_,$@)" ] ; then \
1306 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1308 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1309 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1310 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1312 @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828
1314 Rattler8248_config \
1315 Rattler_config: unconfig
1316 @mkdir -p $(obj)include
1317 $(if $(findstring 8248,$@), \
1318 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1319 @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler
1331 TQM8265_AA_config: unconfig
1332 @mkdir -p $(obj)include
1334 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1335 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1336 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1337 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1338 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1339 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1340 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1341 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1342 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1343 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1344 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1346 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1347 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1349 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1350 if [ "$${CACHE}" = "yes" ] ; then \
1351 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1353 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1355 if [ "$${BMODE}" = "60x" ] ; then \
1356 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1358 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1360 @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc
1362 VoVPN-GW_66MHz_config \
1363 VoVPN-GW_100MHz_config: unconfig
1364 @mkdir -p $(obj)include
1365 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1366 @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
1368 #########################################################################
1370 #########################################################################
1372 astro_mcf5373l_config \
1373 astro_mcf5373l_RAM_config : unconfig
1374 @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro
1377 M52277EVB_spansion_config \
1378 M52277EVB_stmicro_config : unconfig
1380 M52277EVB_config) FLASH=SPANSION;; \
1381 M52277EVB_spansion_config) FLASH=SPANSION;; \
1382 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1384 if [ "$${FLASH}" = "SPANSION" ] ; then \
1385 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1386 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1387 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1389 if [ "$${FLASH}" = "STMICRO" ] ; then \
1390 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1391 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1392 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1393 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1395 @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
1398 M5235EVB_Flash16_config \
1399 M5235EVB_Flash32_config: unconfig
1401 M5235EVB_config) FLASH=16;; \
1402 M5235EVB_Flash16_config) FLASH=16;; \
1403 M5235EVB_Flash32_config) FLASH=32;; \
1405 if [ "$${FLASH}" != "16" ] ; then \
1406 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1407 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1408 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1410 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1411 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1413 @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
1415 cobra5272_config : unconfig
1416 @$(MKCONFIG) $@ m68k mcf52x2 cobra5272
1418 EB+MCF-EV123_config : unconfig
1419 @mkdir -p $(obj)include
1420 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1421 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1422 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1424 EB+MCF-EV123_internal_config : unconfig
1425 @mkdir -p $(obj)include
1426 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1427 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1428 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1431 M5329BFEE_config : unconfig
1433 M5329AFEE_config) NAND=0;; \
1434 M5329BFEE_config) NAND=16;; \
1436 if [ "$${NAND}" != "0" ] ; then \
1437 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1439 @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale
1441 M5373EVB_config : unconfig
1443 M5373EVB_config) NAND=16;; \
1445 if [ "$${NAND}" != "0" ] ; then \
1446 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1448 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1451 M54451EVB_stmicro_config : unconfig
1453 M54451EVB_config) FLASH=NOR;; \
1454 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1456 if [ "$${FLASH}" = "NOR" ] ; then \
1457 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1458 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1460 if [ "$${FLASH}" = "STMICRO" ] ; then \
1461 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1462 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1463 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1464 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1466 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1467 @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
1470 M54455EVB_atmel_config \
1471 M54455EVB_intel_config \
1472 M54455EVB_a33_config \
1473 M54455EVB_a66_config \
1474 M54455EVB_i33_config \
1475 M54455EVB_i66_config \
1476 M54455EVB_stm33_config : unconfig
1478 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1479 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1480 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1481 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1482 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1483 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1484 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1485 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1487 if [ "$${FLASH}" = "INTEL" ] ; then \
1488 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
1489 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1490 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1492 if [ "$${FLASH}" = "ATMEL" ] ; then \
1493 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
1494 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1495 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1497 if [ "$${FLASH}" = "STMICRO" ] ; then \
1498 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1499 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1500 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1501 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1503 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1504 @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale
1512 M5475GFE_config : unconfig
1514 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1515 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1516 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1517 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1518 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1519 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1520 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1522 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
1523 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1524 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1525 if [ "$${RAM1}" != "0" ] ; then \
1526 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1528 if [ "$${CODE}" != "0" ] ; then \
1529 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1531 if [ "$${VID}" == "1" ] ; then \
1532 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
1534 if [ "$${USB}" == "1" ] ; then \
1535 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
1537 @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale
1546 M5485HFE_config : unconfig
1548 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1549 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1550 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1551 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1552 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1553 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1554 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1555 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1557 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
1558 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1559 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1560 if [ "$${RAM1}" != "0" ] ; then \
1561 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1563 if [ "$${CODE}" != "0" ] ; then \
1564 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1566 if [ "$${VID}" == "1" ] ; then \
1567 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
1569 if [ "$${USB}" == "1" ] ; then \
1570 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
1572 @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale
1574 #########################################################################
1576 #########################################################################
1578 MPC8313ERDB_33_config \
1579 MPC8313ERDB_66_config \
1580 MPC8313ERDB_NAND_33_config \
1581 MPC8313ERDB_NAND_66_config: unconfig
1582 @mkdir -p $(obj)include
1583 @mkdir -p $(obj)board/freescale/mpc8313erdb
1584 @if [ "$(findstring _33_,$@)" ] ; then \
1585 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
1587 if [ "$(findstring _66_,$@)" ] ; then \
1588 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
1590 if [ "$(findstring _NAND_,$@)" ] ; then \
1591 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
1592 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
1594 @if [ "$(findstring _NAND_,$@)" ] ; then \
1595 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
1597 @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
1599 MPC8315ERDB_NAND_config \
1600 MPC8315ERDB_config: unconfig
1601 @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
1603 MPC832XEMDS_config \
1604 MPC832XEMDS_HOST_33_config \
1605 MPC832XEMDS_HOST_66_config \
1606 MPC832XEMDS_SLAVE_config \
1607 MPC832XEMDS_ATM_config: unconfig
1608 @mkdir -p $(obj)include
1609 @if [ "$(findstring _HOST_,$@)" ] ; then \
1610 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1612 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1613 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1614 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1616 if [ "$(findstring _33_,$@)" ] ; then \
1617 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1618 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1620 if [ "$(findstring _66_,$@)" ] ; then \
1621 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1622 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1624 if [ "$(findstring _ATM_,$@)" ] ; then \
1625 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1626 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1628 @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
1631 MPC8349ITX_LOWBOOT_config \
1632 MPC8349ITXGP_config: unconfig
1633 @mkdir -p $(obj)include
1634 @mkdir -p $(obj)board/freescale/mpc8349itx
1635 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1636 @if [ "$(findstring GP,$@)" ] ; then \
1637 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1639 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1640 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1642 @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale
1644 MPC8360EMDS_config \
1645 MPC8360EMDS_HOST_33_config \
1646 MPC8360EMDS_HOST_66_config \
1647 MPC8360EMDS_SLAVE_config \
1648 MPC8360EMDS_ATM_config: unconfig
1649 @mkdir -p $(obj)include
1650 @if [ "$(findstring _HOST_,$@)" ] ; then \
1651 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1653 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1654 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1655 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1657 if [ "$(findstring _33_,$@)" ] ; then \
1658 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1659 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1661 if [ "$(findstring _66_,$@)" ] ; then \
1662 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1663 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1665 if [ "$(findstring _ATM_,$@)" ] ; then \
1666 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1667 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1669 @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
1671 MPC8360ERDK_33_config \
1672 MPC8360ERDK_66_config \
1673 MPC8360ERDK_config: unconfig
1674 @mkdir -p $(obj)include
1675 @if [ "$(findstring _33_,$@)" ] ; then \
1676 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1678 @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
1680 MPC837XEMDS_config \
1681 MPC837XEMDS_HOST_config: unconfig
1682 @mkdir -p $(obj)include
1683 @if [ "$(findstring _HOST_,$@)" ] ; then \
1684 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1686 @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
1689 sbc8349_PCI_33_config \
1690 sbc8349_PCI_66_config: unconfig
1691 @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349
1693 SIMPC8313_LP_config \
1694 SIMPC8313_SP_config: unconfig
1695 @mkdir -p $(obj)include
1696 @mkdir -p $(obj)board/sheldon/simpc8313
1697 @if [ "$(findstring _LP_,$@)" ] ; then \
1698 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
1700 if [ "$(findstring _SP_,$@)" ] ; then \
1701 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
1703 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1704 @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
1707 vme8349_config: unconfig
1708 @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd
1710 #########################################################################
1712 #########################################################################
1714 MPC8536DS_NAND_config \
1715 MPC8536DS_SDCARD_config \
1716 MPC8536DS_SPIFLASH_config \
1717 MPC8536DS_36BIT_config \
1718 MPC8536DS_config: unconfig
1719 @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale
1721 MPC8540EVAL_config \
1722 MPC8540EVAL_33_config \
1723 MPC8540EVAL_66_config \
1724 MPC8540EVAL_33_slave_config \
1725 MPC8540EVAL_66_slave_config: unconfig
1726 @mkdir -p $(obj)include
1727 @if [ -z "$(findstring _33_,$@)" ] ; then \
1728 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1730 if [ "$(findstring _slave_,$@)" ] ; then \
1731 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1733 @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval
1735 MPC8541CDS_legacy_config \
1736 MPC8541CDS_config: unconfig
1737 @mkdir -p $(obj)include
1738 @if [ "$(findstring _legacy_,$@)" ] ; then \
1739 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1741 @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
1743 MPC8548CDS_legacy_config \
1744 MPC8548CDS_config: unconfig
1745 @mkdir -p $(obj)include
1746 @if [ "$(findstring _legacy_,$@)" ] ; then \
1747 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1749 @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
1751 MPC8555CDS_legacy_config \
1752 MPC8555CDS_config: unconfig
1753 @mkdir -p $(obj)include
1754 @if [ "$(findstring _legacy_,$@)" ] ; then \
1755 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1757 @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
1759 MPC8569MDS_ATM_config \
1760 MPC8569MDS_NAND_config \
1761 MPC8569MDS_config: unconfig
1762 @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale
1764 MPC8572DS_36BIT_config \
1765 MPC8572DS_config: unconfig
1766 @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale
1768 P2020DS_36BIT_config \
1769 P2020DS_config: unconfig
1770 @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale
1773 P1011RDB_NAND_config \
1774 P1011RDB_SDCARD_config \
1775 P1011RDB_SPIFLASH_config \
1777 P1020RDB_NAND_config \
1778 P1020RDB_SDCARD_config \
1779 P1020RDB_SPIFLASH_config \
1781 P2010RDB_NAND_config \
1782 P2010RDB_SDCARD_config \
1783 P2010RDB_SPIFLASH_config \
1785 P2020RDB_NAND_config \
1786 P2020RDB_SDCARD_config \
1787 P2020RDB_SPIFLASH_config: unconfig
1788 @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
1792 sbc8540_66_config: unconfig
1793 @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560
1796 sbc8548_PCI_33_config \
1797 sbc8548_PCI_66_config \
1798 sbc8548_PCI_33_PCIE_config \
1799 sbc8548_PCI_66_PCIE_config: unconfig
1800 @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548
1804 sbc8560_66_config: unconfig
1805 @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560
1808 stxssa_4M_config: unconfig
1809 @mkdir -p $(obj)include
1810 @if [ "$(findstring _4M_,$@)" ] ; then \
1811 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1813 @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx
1821 TQM8560_config: unconfig
1822 @mkdir -p $(obj)include
1823 @BTYPE=$(@:_config=); \
1824 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
1825 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1826 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
1827 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1828 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
1829 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
1830 @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc
1832 #########################################################################
1834 #########################################################################
1836 MPC8641HPCN_36BIT_config \
1837 MPC8641HPCN_config: unconfig
1838 @mkdir -p $(obj)include
1839 @if [ "$(findstring _36BIT_,$@)" ] ; then \
1840 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
1842 @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
1844 #########################################################################
1846 #########################################################################
1849 EVB64260_750CX_config: unconfig
1850 @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260
1853 p3m7448_config: unconfig
1854 @mkdir -p $(obj)include
1855 @if [ "$(findstring 750_,$@)" ] ; then \
1856 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1858 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1860 @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive
1863 PCIPPC6_config: unconfig
1864 @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2
1866 #========================================================================
1868 #========================================================================
1870 #########################################################################
1871 ## Atmel AT91RM9200 Systems
1872 #########################################################################
1874 CPUAT91_RAM_config \
1875 CPUAT91_config : unconfig
1876 @mkdir -p $(obj)include
1877 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
1878 @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
1880 #########################################################################
1881 ## ARM926EJ-S Systems
1882 #########################################################################
1884 at91sam9260ek_nandflash_config \
1885 at91sam9260ek_dataflash_cs0_config \
1886 at91sam9260ek_dataflash_cs1_config \
1887 at91sam9260ek_config \
1888 at91sam9g20ek_nandflash_config \
1889 at91sam9g20ek_dataflash_cs0_config \
1890 at91sam9g20ek_dataflash_cs1_config \
1891 at91sam9g20ek_config : unconfig
1892 @mkdir -p $(obj)include
1893 @if [ "$(findstring 9g20,$@)" ] ; then \
1894 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
1896 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
1898 @if [ "$(findstring _nandflash,$@)" ] ; then \
1899 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1900 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1901 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
1903 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
1905 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
1907 at91sam9xeek_nandflash_config \
1908 at91sam9xeek_dataflash_cs0_config \
1909 at91sam9xeek_dataflash_cs1_config \
1910 at91sam9xeek_config : unconfig
1911 @mkdir -p $(obj)include
1912 @if [ "$(findstring _nandflash,$@)" ] ; then \
1913 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1914 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1915 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
1917 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
1919 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
1921 at91sam9261ek_nandflash_config \
1922 at91sam9261ek_dataflash_cs0_config \
1923 at91sam9261ek_dataflash_cs3_config \
1924 at91sam9261ek_config \
1925 at91sam9g10ek_nandflash_config \
1926 at91sam9g10ek_dataflash_cs0_config \
1927 at91sam9g10ek_dataflash_cs3_config \
1928 at91sam9g10ek_config : unconfig
1929 @mkdir -p $(obj)include
1930 @if [ "$(findstring 9g10,$@)" ] ; then \
1931 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
1933 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
1935 @if [ "$(findstring _nandflash,$@)" ] ; then \
1936 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1937 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1938 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
1940 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
1942 @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
1944 at91sam9263ek_norflash_config \
1945 at91sam9263ek_norflash_boot_config \
1946 at91sam9263ek_nandflash_config \
1947 at91sam9263ek_dataflash_config \
1948 at91sam9263ek_dataflash_cs0_config \
1949 at91sam9263ek_config : unconfig
1950 @mkdir -p $(obj)include
1951 @if [ "$(findstring _nandflash,$@)" ] ; then \
1952 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1953 elif [ "$(findstring norflash,$@)" ] ; then \
1954 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
1956 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
1958 @if [ "$(findstring norflash_boot,$@)" ] ; then \
1959 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
1961 @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
1963 at91sam9rlek_nandflash_config \
1964 at91sam9rlek_dataflash_config \
1965 at91sam9rlek_dataflash_cs0_config \
1966 at91sam9rlek_config : unconfig
1967 @mkdir -p $(obj)include
1968 @if [ "$(findstring _nandflash,$@)" ] ; then \
1969 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1971 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
1973 @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
1975 CPU9G20_128M_config \
1977 CPU9260_128M_config \
1978 CPU9260_config : unconfig
1979 @mkdir -p $(obj)include
1980 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
1981 @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91
1983 at91sam9m10g45ek_nandflash_config \
1984 at91sam9m10g45ek_dataflash_config \
1985 at91sam9m10g45ek_dataflash_cs0_config \
1986 at91sam9m10g45ek_config \
1987 at91sam9g45ekes_nandflash_config \
1988 at91sam9g45ekes_dataflash_config \
1989 at91sam9g45ekes_dataflash_cs0_config \
1990 at91sam9g45ekes_config : unconfig
1991 @mkdir -p $(obj)include
1992 @if [ "$(findstring 9m10,$@)" ] ; then \
1993 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
1995 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
1997 @if [ "$(findstring _nandflash,$@)" ] ; then \
1998 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2000 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
2002 @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
2004 pm9g45_config : unconfig
2005 @mkdir -p $(obj)include
2006 @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91
2008 SBC35_A9G20_NANDFLASH_config \
2009 SBC35_A9G20_EEPROM_config \
2010 SBC35_A9G20_config : unconfig
2011 @mkdir -p $(obj)include
2012 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2013 @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
2015 TNY_A9G20_NANDFLASH_config \
2016 TNY_A9G20_EEPROM_config \
2018 TNY_A9260_NANDFLASH_config \
2019 TNY_A9260_EEPROM_config \
2020 TNY_A9260_config : unconfig
2021 @mkdir -p $(obj)include
2022 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2023 @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91
2025 ########################################################################
2026 ## ARM Integrator boards - see doc/README-integrator for more info.
2027 integratorap_config \
2036 ap946es_config: unconfig
2037 @board/armltd/integrator/split_by_variant.sh ap $@
2039 integratorcp_config \
2048 cp1026_config: unconfig
2049 @board/armltd/integrator/split_by_variant.sh cp $@
2052 nhk8815_onenand_config: unconfig
2053 @mkdir -p $(obj)include
2054 @ > $(obj)include/config.h
2055 @if [ "$(findstring _onenand, $@)" ] ; then \
2056 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2058 @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik
2060 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2062 omap1610inn_config \
2063 omap1610inn_cs0boot_config \
2064 omap1610inn_cs3boot_config \
2065 omap1610inn_cs_autoboot_config \
2067 omap1610h2_cs0boot_config \
2068 omap1610h2_cs3boot_config \
2069 omap1610h2_cs_autoboot_config: unconfig
2070 @mkdir -p $(obj)include
2071 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2072 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2073 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2074 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2076 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2078 @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
2081 omap730p2_cs0boot_config \
2082 omap730p2_cs3boot_config : unconfig
2083 @mkdir -p $(obj)include
2084 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2085 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2087 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2089 @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap
2093 spear320_config : unconfig
2094 @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear
2096 spear600_config : unconfig
2097 @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear
2099 SX1_stdout_serial_config \
2100 SX1_config: unconfig
2101 @mkdir -p $(obj)include
2102 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
2103 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
2105 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
2107 @$(MKCONFIG) -n $@ SX1 arm arm925t sx1
2109 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2111 trab_bigram_config \
2112 trab_bigflash_config \
2113 trab_old_config: unconfig
2114 @mkdir -p $(obj)include
2115 @mkdir -p $(obj)board/trab
2116 @[ -z "$(findstring _bigram,$@)" ] || \
2117 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2118 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2120 @[ -z "$(findstring _bigflash,$@)" ] || \
2121 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2122 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2123 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2125 @[ -z "$(findstring _old,$@)" ] || \
2126 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2127 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2128 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2130 @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0
2132 tx25_config : unconfig
2133 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2134 @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25
2143 edb9315a_config: unconfig
2144 @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx
2146 #########################################################################
2147 # ARM supplied Versatile development boards
2148 #########################################################################
2151 versatileab_config \
2152 versatilepb_config : unconfig
2153 @board/armltd/versatile/split_by_variant.sh $@
2155 #########################################################################
2157 #########################################################################
2160 scpu_config: unconfig
2161 @mkdir -p $(obj)include
2162 @if [ "$(findstring scpu_,$@)" ] ; then \
2163 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2165 @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive
2168 trizepsiv_config : unconfig
2169 @mkdir -p $(obj)include
2170 @if [ "$(findstring polaris,$@)" ] ; then \
2171 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
2173 @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv
2175 #########################################################################
2177 #########################################################################
2179 apollon_config : unconfig
2180 @mkdir -p $(obj)include
2181 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2182 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2183 @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx
2185 imx31_phycore_eet_config \
2186 imx31_phycore_config : unconfig
2187 @mkdir -p $(obj)include
2188 @if [ -n "$(findstring _eet_,$@)" ]; then \
2189 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
2191 @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31
2194 mx31pdk_nand_config : unconfig
2195 @mkdir -p $(obj)include
2196 @if [ -n "$(findstring _nand_,$@)" ]; then \
2197 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
2199 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
2200 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
2202 @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31
2204 #########################################################################
2206 #########################################################################
2207 smdk6400_noUSB_config \
2208 smdk6400_config : unconfig
2209 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2210 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2211 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2212 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2213 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2214 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2216 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2218 @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx
2219 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2221 #========================================================================
2223 #========================================================================
2224 #########################################################################
2226 #########################################################################
2228 incaip_100MHz_config \
2229 incaip_133MHz_config \
2230 incaip_150MHz_config \
2231 incaip_config: unconfig
2232 @mkdir -p $(obj)include
2233 @[ -z "$(findstring _100MHz,$@)" ] || \
2234 echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h
2235 @[ -z "$(findstring _133MHz,$@)" ] || \
2236 echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h
2237 @[ -z "$(findstring _150MHz,$@)" ] || \
2238 echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h
2239 @$(MKCONFIG) -n $@ -a incaip mips mips incaip
2241 vct_premium_config \
2242 vct_premium_small_config \
2243 vct_premium_onenand_config \
2244 vct_premium_onenand_small_config \
2245 vct_platinum_config \
2246 vct_platinum_small_config \
2247 vct_platinum_onenand_config \
2248 vct_platinum_onenand_small_config \
2249 vct_platinumavc_config \
2250 vct_platinumavc_small_config \
2251 vct_platinumavc_onenand_config \
2252 vct_platinumavc_onenand_small_config: unconfig
2253 @mkdir -p $(obj)include
2254 @[ -z "$(findstring _premium,$@)" ] || \
2255 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h
2256 @[ -z "$(findstring _platinum_,$@)" ] || \
2257 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h
2258 @[ -z "$(findstring _platinumavc,$@)" ] || \
2259 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h
2260 @[ -z "$(findstring _onenand,$@)" ] || \
2261 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h
2262 @[ -z "$(findstring _small,$@)" ] || \
2263 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h
2264 @$(MKCONFIG) -n $@ -a vct mips mips vct micronas
2266 #########################################################################
2268 #########################################################################
2270 dbau1000_config : unconfig
2271 @mkdir -p $(obj)include
2272 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2273 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2275 dbau1100_config : unconfig
2276 @mkdir -p $(obj)include
2277 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2278 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2280 dbau1500_config : unconfig
2281 @mkdir -p $(obj)include
2282 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2283 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2285 dbau1550_config : unconfig
2286 @mkdir -p $(obj)include
2287 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2288 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2290 dbau1550_el_config : unconfig
2291 @mkdir -p $(obj)include
2292 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2293 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2295 gth2_config : unconfig
2296 @mkdir -p $(obj)include
2297 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2298 @$(MKCONFIG) -a $@ mips mips gth2
2300 pb1000_config : unconfig
2301 @mkdir -p $(obj)include
2302 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2303 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2305 qemu_mips_config : unconfig
2306 @mkdir -p $(obj)include
2307 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2308 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2310 #========================================================================
2312 #========================================================================
2314 #########################################################################
2316 #########################################################################
2318 # nios2 generic boards
2319 NIOS2_GENERIC = nios2-generic
2321 $(NIOS2_GENERIC:%=%_config) : unconfig
2322 @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera
2324 #========================================================================
2326 #========================================================================
2328 bf527-ezkit-v2_config : unconfig
2329 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
2330 bf527-ezkit blackfin blackfin bf527-ezkit
2332 #========================================================================
2334 #========================================================================
2336 #########################################################################
2337 ## sh2 (Renesas SuperH)
2338 #########################################################################
2339 rsk7203_config: unconfig
2340 @mkdir -p $(obj)include
2341 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
2342 @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas
2344 #########################################################################
2345 ## sh3 (Renesas SuperH)
2346 #########################################################################
2348 mpr2_config: unconfig
2349 @mkdir -p $(obj)include
2350 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
2351 @$(MKCONFIG) -a $@ sh sh3 mpr2
2353 ms7720se_config: unconfig
2354 @mkdir -p $(obj)include
2355 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
2356 @$(MKCONFIG) -a $@ sh sh3 ms7720se
2358 #########################################################################
2359 ## sh4 (Renesas SuperH)
2360 #########################################################################
2362 MigoR_config : unconfig
2363 @mkdir -p $(obj)include
2364 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
2365 @$(MKCONFIG) -a $@ sh sh4 MigoR renesas
2367 ms7750se_config: unconfig
2368 @mkdir -p $(obj)include
2369 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2370 @$(MKCONFIG) -a $@ sh sh4 ms7750se
2372 ms7722se_config : unconfig
2373 @mkdir -p $(obj)include
2374 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2375 @$(MKCONFIG) -a $@ sh sh4 ms7722se
2377 r2dplus_config : unconfig
2378 @mkdir -p $(obj)include
2379 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
2380 @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas
2382 r7780mp_config: unconfig
2383 @mkdir -p $(obj)include
2384 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
2385 @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas
2387 sh7763rdp_config : unconfig
2388 @mkdir -p $(obj)include
2389 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
2390 @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas
2392 sh7785lcr_32bit_config \
2393 sh7785lcr_config : unconfig
2394 @mkdir -p $(obj)include
2395 @mkdir -p $(obj)board/renesas/sh7785lcr
2396 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
2397 @if [ "$(findstring 32bit, $@)" ] ; then \
2398 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
2399 echo "TEXT_BASE = 0x8ff80000" > \
2400 $(obj)board/renesas/sh7785lcr/config.tmp ; \
2402 @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas
2404 ap325rxa_config : unconfig
2405 @mkdir -p $(obj)include
2406 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
2407 @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas
2409 espt_config : unconfig
2410 @mkdir -p $(obj)include
2411 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
2412 @$(MKCONFIG) -a $@ sh sh4 espt
2414 #########################################################################
2415 #########################################################################
2418 @rm -f $(obj)examples/standalone/82559_eeprom \
2419 $(obj)examples/standalone/atmel_df_pow2 \
2420 $(obj)examples/standalone/eepro100_eeprom \
2421 $(obj)examples/standalone/hello_world \
2422 $(obj)examples/standalone/interrupt \
2423 $(obj)examples/standalone/mem_to_mem_idma2intr \
2424 $(obj)examples/standalone/sched \
2425 $(obj)examples/standalone/smc91111_eeprom \
2426 $(obj)examples/standalone/test_burst \
2427 $(obj)examples/standalone/timer
2428 @rm -f $(obj)examples/api/demo{,.bin}
2429 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2430 $(obj)tools/env/{fw_printenv,fw_setenv} \
2431 $(obj)tools/envcrc \
2432 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2433 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2434 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2435 $(obj)tools/ncb $(obj)tools/ubsha1
2436 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2437 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2438 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2439 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
2441 $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs]
2442 @rm -f $(obj)include/bmp_logo.h
2443 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
2444 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
2445 @rm -f $(ONENAND_BIN)
2446 @rm -f $(obj)onenand_ipl/u-boot.lds
2447 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
2448 @find $(OBJTREE) -type f \
2449 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2450 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
2454 @find $(OBJTREE) -type f \( -name .depend \
2455 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2458 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
2459 $(obj)cscope.* $(obj)*.*~
2460 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2461 @rm -f $(obj)u-boot.kwb
2462 @rm -f $(obj)u-boot.imx
2463 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
2464 @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
2465 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2466 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
2467 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
2469 ifeq ($(OBJTREE),$(SRCTREE))
2471 distclean: clobber unconfig
2474 distclean: clobber unconfig
2479 F=`basename $(TOPDIR)` ; cd .. ; \
2480 gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2482 #########################################################################