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
225 ifeq ($(CPU),mpc85xx)
226 LIBS += drivers/qe/qe.a
227 LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
228 LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
230 ifeq ($(CPU),mpc86xx)
231 LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
232 LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
234 LIBS += drivers/rtc/librtc.a
235 LIBS += drivers/serial/libserial.a
236 LIBS += drivers/twserial/libtws.a
237 LIBS += drivers/usb/gadget/libusb_gadget.a
238 LIBS += drivers/usb/host/libusb_host.a
239 LIBS += drivers/usb/musb/libusb_musb.a
240 LIBS += drivers/usb/phy/libusb_phy.a
241 LIBS += drivers/video/libvideo.a
242 LIBS += drivers/watchdog/libwatchdog.a
243 LIBS += common/libcommon.a
244 LIBS += lib/libfdt/libfdt.a
246 LIBS += post/libpost.a
248 LIBS := $(addprefix $(obj),$(LIBS))
249 .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
251 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
252 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
255 ifdef USE_PRIVATE_LIBGCC
256 ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
257 PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
259 PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
262 PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
264 PLATFORM_LIBS += $(PLATFORM_LIBGCC)
267 # Special flags for CPP when processing the linker script.
268 # Pass the version down so we can handle backwards compatibility
271 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \
272 $(shell $(LD) --version | \
273 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
275 ifeq ($(CONFIG_NAND_U_BOOT),y)
277 U_BOOT_NAND = $(obj)u-boot-nand.bin
280 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
281 ONENAND_IPL = onenand_ipl
282 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
283 ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
286 __OBJS := $(subst $(obj),,$(OBJS))
287 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
289 #########################################################################
290 #########################################################################
292 # Always append ALL so that arch config.mk's can add custom ones
293 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
297 $(obj)u-boot.hex: $(obj)u-boot
298 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
300 $(obj)u-boot.srec: $(obj)u-boot
301 $(OBJCOPY) -O srec $< $@
303 $(obj)u-boot.bin: $(obj)u-boot
304 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
306 $(obj)u-boot.ldr: $(obj)u-boot
308 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
310 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
311 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
313 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
314 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
316 $(obj)u-boot.img: $(obj)u-boot.bin
317 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \
318 -a $(TEXT_BASE) -e 0 \
319 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
320 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
323 $(obj)u-boot.imx: $(obj)u-boot.bin
324 $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \
325 -e $(TEXT_BASE) -d $< $@
327 $(obj)u-boot.kwb: $(obj)u-boot.bin
328 $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \
329 -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
331 $(obj)u-boot.sha1: $(obj)u-boot.bin
332 $(obj)tools/ubsha1 $(obj)u-boot.bin
334 $(obj)u-boot.dis: $(obj)u-boot
335 $(OBJDUMP) -d $< > $@
338 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
339 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
340 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
341 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
342 -Map u-boot.map -o u-boot
343 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
345 ifeq ($(CONFIG_KALLSYMS),y)
346 smap=`$(call SYSTEM_MAP,u-boot) | \
347 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
348 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
349 -c common/system_map.c -o $(obj)common/system_map.o
350 $(GEN_UBOOT) $(obj)common/system_map.o
354 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
356 $(LIBS): depend $(SUBDIRS)
357 $(MAKE) -C $(dir $(subst $(obj),,$@))
359 $(LIBBOARD): depend $(LIBS)
360 $(MAKE) -C $(dir $(subst $(obj),,$@))
366 $(MAKE) -C $(dir $@) $(notdir $@)
368 $(obj)u-boot.lds: $(LDSCRIPT)
369 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
371 $(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
372 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
374 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
375 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
377 $(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
378 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
380 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
381 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
384 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
385 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
386 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
389 @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
390 @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@
393 $(MAKE) -C tools/gdb all || exit 1
396 $(MAKE) -C tools/updater all || exit 1
399 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
401 # Explicitly make _depend in subdirs containing multiple targets to prevent
402 # parallel sub-makes creating .depend files simultaneously.
403 depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
404 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
405 $(MAKE) -C $$dir _depend ; done
407 TAG_SUBDIRS = $(SUBDIRS)
408 TAG_SUBDIRS += $(dir $(__LIBS))
409 TAG_SUBDIRS += include
412 ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \
413 -name '*.[chS]' -print`
416 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \
417 -name '*.[chS]' -print`
419 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files
424 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
426 $(obj)System.map: $(obj)u-boot
427 @$(call SYSTEM_MAP,$<) > $(obj)System.map
430 # Auto-generate the autoconf.mk file (which is included by all makefiles)
432 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
433 # the dep file is only include in this top level makefile to determine when
434 # to regenerate the autoconf.mk file.
435 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
436 @$(XECHO) Generating $@ ; \
438 : Generate the dependancies ; \
439 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
440 -MQ $(obj)include/autoconf.mk include/common.h > $@
442 $(obj)include/autoconf.mk: $(obj)include/config.h
443 @$(XECHO) Generating $@ ; \
445 : Extract the config macros ; \
446 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
447 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
450 #########################################################################
452 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
453 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
454 $(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \
455 updater env depend dep tags ctags etags cscope $(obj)System.map:
456 @echo "System not configured - see README" >&2
462 $(MAKE) -C tools HOST_TOOLS_ALL=y
467 git log --no-merges U-Boot-1_1_5.. | \
468 unexpand -a | sed -e 's/\s\s*$$//' > $@
470 include/license.h: tools/bin2header COPYING
471 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
472 #########################################################################
475 @rm -f $(obj)include/config.h $(obj)include/config.mk \
476 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
477 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
480 @$(MKCONFIG) -A $(@:_config=)
486 # Functions to generate common board directory names
488 lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/')
489 ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/')
491 #========================================================================
493 #========================================================================
495 #########################################################################
497 #########################################################################
500 digsy_mtc_LOWBOOT_config \
501 digsy_mtc_RAMBOOT_config: unconfig
502 @mkdir -p $(obj)include
503 @mkdir -p $(obj)board/digsy_mtc
504 @ >$(obj)include/config.h
505 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
506 echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp
507 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
508 echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp
509 @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc
511 galaxy5200_LOWBOOT_config \
512 galaxy5200_config: unconfig
513 @mkdir -p $(obj)include
514 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
515 @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200
518 Lite5200_LOWBOOT_config \
519 Lite5200_LOWBOOT08_config \
520 icecube_5200_config \
521 icecube_5200_LOWBOOT_config \
522 icecube_5200_LOWBOOT08_config \
523 icecube_5200_DDR_config \
524 icecube_5200_DDR_LOWBOOT_config \
525 icecube_5200_DDR_LOWBOOT08_config: unconfig
526 @mkdir -p $(obj)include
527 @mkdir -p $(obj)board/icecube
528 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
529 if [ "$(findstring DDR,$@)" ] ; \
530 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
531 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
533 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
534 echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp
535 @[ -z "$(findstring DDR,$@)" ] || \
536 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
537 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
540 lite5200b_PM_config \
541 lite5200b_LOWBOOT_config: unconfig
542 @mkdir -p $(obj)include
543 @mkdir -p $(obj)board/icecube
544 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
545 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
546 @[ -z "$(findstring _PM_,$@)" ] || \
547 echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h
548 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
549 echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp
550 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
553 mcc200_SDRAM_config \
554 mcc200_highboot_config \
555 mcc200_COM12_config \
556 mcc200_COM12_SDRAM_config \
557 mcc200_COM12_highboot_config \
558 mcc200_COM12_highboot_SDRAM_config \
559 mcc200_highboot_SDRAM_config \
562 prs200_highboot_config \
563 prs200_highboot_DDR_config: unconfig
564 @mkdir -p $(obj)include
565 @mkdir -p $(obj)board/mcc200
566 @[ -z "$(findstring highboot,$@)" ] || \
567 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp
568 @[ -n "$(findstring _SDRAM,$@)" ] || \
569 if [ -n "$(findstring prs200,$@)" ]; \
571 if [ -z "$(findstring _DDR,$@)" ];\
573 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
576 @[ -z "$(findstring _SDRAM,$@)" ] || \
577 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h
578 @[ -z "$(findstring COM12,$@)" ] || \
579 echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h
580 @[ -z "$(findstring prs200,$@)" ] || \
581 echo "#define CONFIG_PRS200" >>$(obj)include/config.h
582 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
584 MVBC_P_config: unconfig
585 @mkdir -p $(obj)include
586 @mkdir -p $(obj)board/mvbc_p
587 @ >$(obj)include/config.h
588 @[ -z "$(findstring MVBC_P,$@)" ] || \
589 echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h
590 @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision
592 MVSMR_config: unconfig
593 @mkdir -p $(obj)include
594 @mkdir -p $(obj)board/matrix_vision/mvsmr
595 @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision
598 pcm030_LOWBOOT_config: unconfig
599 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
600 @ >$(obj)include/config.h
601 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
602 echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp
603 @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec
607 PM520_ROMBOOT_config \
608 PM520_ROMBOOT_DDR_config: unconfig
609 @mkdir -p $(obj)include
610 @[ -z "$(findstring DDR,$@)" ] || \
611 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
612 @[ -z "$(findstring ROMBOOT,$@)" ] || \
613 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h
614 @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520
617 TB5200_config: unconfig
618 @mkdir -p $(obj)include
619 @[ -z "$(findstring _B,$@)" ] || \
620 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
621 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
625 TOP5200_config: unconfig
626 @mkdir -p $(obj)include
627 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
628 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
631 Total5200_lowboot_config \
632 Total5200_Rev2_config \
633 Total5200_Rev2_lowboot_config: unconfig
634 @mkdir -p $(obj)include
635 @mkdir -p $(obj)board/total5200
636 @[ -n "$(findstring Rev,$@)" ] || \
637 echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h
638 @[ -z "$(findstring Rev2_,$@)" ] || \
639 echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h
640 @[ -z "$(findstring lowboot_,$@)" ] || \
641 echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp
642 @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200
645 cam5200_niosflash_config \
649 TQM5200S_HIGHBOOT_config \
651 TQM5200_B_HIGHBOOT_config \
653 TQM5200_STK100_config: unconfig
654 @mkdir -p $(obj)include
655 @mkdir -p $(obj)board/tqc/tqm5200
656 @[ -z "$(findstring cam5200,$@)" ] || \
657 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
658 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
659 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
661 @[ -z "$(findstring niosflash,$@)" ] || \
662 echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h
663 @[ -z "$(findstring fo300,$@)" ] || \
664 echo "#define CONFIG_FO300" >>$(obj)include/config.h
665 @[ -z "$(findstring MiniFAP,$@)" ] || \
666 echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h
667 @[ -z "$(findstring STK100,$@)" ] || \
668 echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h
669 @[ -z "$(findstring TQM5200_B,$@)" ] || \
670 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
671 @[ -z "$(findstring TQM5200S,$@)" ] || \
672 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
673 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
675 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
676 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp
677 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
679 #########################################################################
681 #########################################################################
684 mpc5121ads_rev2_config \
686 @mkdir -p $(obj)include
687 @if [ "$(findstring rev2,$@)" ] ; then \
688 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
690 @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale
692 #########################################################################
694 #########################################################################
701 @mkdir -p $(obj)include
702 $(if $(findstring AdderII,$@), \
703 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
704 @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder
711 FADS860T_config: unconfig
712 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads
715 GEN860T_config: unconfig
716 @mkdir -p $(obj)include
717 @[ -z "$(findstring _SC,$@)" ] || \
718 echo "#define CONFIG_SC" >>$(obj)include/config.h
719 @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t
721 ICU862_100MHz_config \
722 ICU862_config: unconfig
723 @mkdir -p $(obj)include
724 @[ -z "$(findstring _100MHz,$@)" ] || \
725 echo "#define CONFIG_100MHz" >>$(obj)include/config.h
726 @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862
730 IVML24_config: unconfig
731 @mkdir -p $(obj)include
732 @[ -z "$(findstring IVML24_config,$@)" ] || \
733 echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h
734 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
735 echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h
736 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
737 echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h
738 @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm
742 IVMS8_config: unconfig
743 @mkdir -p $(obj)include
744 @[ -z "$(findstring IVMS8_config,$@)" ] || \
745 echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h
746 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
747 echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h
748 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
749 echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h
750 @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm
753 MBX860T_config: unconfig
754 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx
757 NETVIA_config: unconfig
758 @mkdir -p $(obj)include
759 @[ -z "$(findstring NETVIA_config,$@)" ] || \
760 echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h
761 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
762 echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h
763 @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia
766 NETPHONE_config: unconfig
767 @mkdir -p $(obj)include
768 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
769 echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h
770 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
771 echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h
772 @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone
774 NETTA_ISDN_6412_SWAPHOOK_config \
775 NETTA_ISDN_SWAPHOOK_config \
776 NETTA_6412_SWAPHOOK_config \
777 NETTA_SWAPHOOK_config \
778 NETTA_ISDN_6412_config \
781 NETTA_config: unconfig
782 @mkdir -p $(obj)include
783 @[ -z "$(findstring ISDN_,$@)" ] || \
784 echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h
785 @[ -n "$(findstring ISDN_,$@)" ] || \
786 echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h
787 @[ -z "$(findstring 6412_,$@)" ] || \
788 echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h
789 @[ -n "$(findstring 6412_,$@)" ] || \
790 echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h
791 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
792 echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h
793 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
794 echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h
795 @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta
798 NETTA2_config: unconfig
799 @mkdir -p $(obj)include
800 @[ -z "$(findstring NETTA2_config,$@)" ] || \
801 echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h
802 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
803 echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h
804 @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2
808 CP850_config: unconfig
809 @mkdir -p $(obj)include
810 @[ -z "$(findstring CP850,$@)" ] || \
811 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
812 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
814 @[ -z "$(findstring Rev1,$@)" ] || \
815 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
817 @[ -z "$(findstring Rev2,$@)" ] || \
818 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
820 @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650
822 RPXlite_DW_64_config \
823 RPXlite_DW_LCD_config \
824 RPXlite_DW_64_LCD_config \
825 RPXlite_DW_NVRAM_config \
826 RPXlite_DW_NVRAM_64_config \
827 RPXlite_DW_NVRAM_LCD_config \
828 RPXlite_DW_NVRAM_64_LCD_config \
829 RPXlite_DW_config: unconfig
830 @mkdir -p $(obj)include
831 @[ -z "$(findstring _64,$@)" ] || \
832 echo "#define RPXlite_64MHz" >>$(obj)include/config.h
833 @[ -z "$(findstring _LCD,$@)" ] || \
834 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
835 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
837 @[ -z "$(findstring _NVRAM,$@)" ] || \
838 echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h
839 @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw
841 RRvision_LCD_config: unconfig
842 @mkdir -p $(obj)include
843 @echo "#define CONFIG_LCD" >$(obj)include/config.h
844 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
845 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
847 SPD823TS_config: unconfig
848 @$(MKCONFIG) $@ powerpc mpc8xx spd8xx
850 SXNI855T_config: unconfig
851 @$(MKCONFIG) $@ powerpc mpc8xx sixnet
853 # Play some tricks for configuration selection
854 # Only 855 and 860 boards may come with FEC
855 # and only 823 boards may have LCD support
856 xtract_8xx = $(subst _LCD,,$1)
875 virtlab2_config: unconfig
876 @mkdir -p $(obj)include
877 @[ -z "$(findstring _LCD,$@)" ] || \
878 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
879 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
881 @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
883 TTTech_config: unconfig
884 @mkdir -p $(obj)include
885 @echo "#define CONFIG_LCD" >$(obj)include/config.h
886 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
887 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
890 @mkdir -p $(obj)include
891 @echo "#define CONFIG_LCD" >$(obj)include/config.h
892 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
893 @$(MKCONFIG) $@ powerpc mpc8xx v37
896 @mkdir -p $(obj)include
897 @echo "#define CONFIG_LCD" >$(obj)include/config.h
898 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
899 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
901 #########################################################################
903 #########################################################################
905 acadia_nand_config: unconfig
906 @mkdir -p $(obj)include $(obj)board/amcc/acadia
907 @mkdir -p $(obj)nand_spl/board/amcc/acadia
908 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
909 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
910 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
911 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
913 bamboo_nand_config: unconfig
914 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
915 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
916 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
917 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
918 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
919 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
921 # Arches, Canyonlands & Glacier use different U-Boot images
924 glacier_config: unconfig
925 @mkdir -p $(obj)include
926 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
927 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
928 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
930 canyonlands_nand_config \
931 glacier_nand_config: unconfig
932 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
933 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
934 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
935 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
936 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
937 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
938 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
939 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
942 CATcenter_25_config \
943 CATcenter_33_config: unconfig
944 @mkdir -p $(obj)include
945 @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
946 @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
947 @[ -z "$(findstring _25,$@)" ] || \
948 echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h
949 @[ -z "$(findstring _33,$@)" ] || \
950 echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h
951 @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave
956 CPCI405AB_config: unconfig
957 @mkdir -p $(obj)board/esd/cpci405
958 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd
960 fx12mm_flash_config: unconfig
961 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
962 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
963 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
964 > $(obj)board/avnet/fx12mm/config.tmp
965 @echo "TEXT_BASE := 0xFFCB0000" \
966 >> $(obj)board/avnet/fx12mm/config.tmp
967 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
969 fx12mm_config: unconfig
970 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
971 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
972 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
973 > $(obj)board/avnet/fx12mm/config.tmp
974 @echo "TEXT_BASE := 0x03000000" \
975 >> $(obj)board/avnet/fx12mm/config.tmp
976 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
978 # Compact-Center(codename intip) & DevCon-Center use different U-Boot images
980 devconcenter_config: unconfig
981 @mkdir -p $(obj)include
982 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
983 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
984 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
988 mcu25_config: unconfig
989 @mkdir -p $(obj)board/netstal/common
990 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal
992 # Kilauea & Haleakala images are identical (recognized via PVR)
994 haleakala_config: unconfig
995 @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc
997 kilauea_nand_config \
998 haleakala_nand_config: unconfig
999 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1000 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1001 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1002 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1003 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1004 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
1006 MIP405T_config: unconfig
1007 @mkdir -p $(obj)include
1008 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1009 @$(XECHO) "Enable subset config for MIP405T"
1010 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
1012 ml507_flash_config: unconfig
1013 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1014 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1015 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1016 > $(obj)board/xilinx/ml507/config.tmp
1017 @echo "TEXT_BASE := 0xFE360000" \
1018 >> $(obj)board/xilinx/ml507/config.tmp
1019 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
1021 ml507_config: unconfig
1022 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1023 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1024 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1025 > $(obj)board/xilinx/ml507/config.tmp
1026 @echo "TEXT_BASE := 0x04000000" \
1027 >> $(obj)board/xilinx/ml507/config.tmp
1028 @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx
1031 ORSG_config: unconfig
1032 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd
1034 PPChameleonEVB_config \
1035 PPChameleonEVB_BA_25_config \
1036 PPChameleonEVB_ME_25_config \
1037 PPChameleonEVB_HI_25_config \
1038 PPChameleonEVB_BA_33_config \
1039 PPChameleonEVB_ME_33_config \
1040 PPChameleonEVB_HI_33_config: unconfig
1041 @mkdir -p $(obj)include
1042 @[ -z "$(findstring EVB_BA,$@)" ] || \
1043 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h
1044 @[ -z "$(findstring EVB_ME,$@)" ] || \
1045 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h
1046 @[ -z "$(findstring EVB_HI,$@)" ] || \
1047 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h
1048 @[ -z "$(findstring _25,$@)" ] || \
1049 echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h
1050 @[ -z "$(findstring _33,$@)" ] || \
1051 echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h
1052 @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave
1055 rainier_config: unconfig
1056 @mkdir -p $(obj)include
1057 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1058 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1059 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1061 sequoia_nand_config \
1062 rainier_nand_config: unconfig
1063 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1064 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1065 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1066 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1067 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1068 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1069 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1070 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1072 sequoia_ramboot_config \
1073 rainier_ramboot_config: unconfig
1074 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1075 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1076 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1077 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1078 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1079 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1080 $(obj)board/amcc/sequoia/config.tmp
1081 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1083 v5fx30teval_config: unconfig
1084 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1085 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1086 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1087 > $(obj)board/avnet/v5fx30teval/config.tmp
1088 @echo "TEXT_BASE := 0x03000000" \
1089 >> $(obj)board/avnet/v5fx30teval/config.tmp
1090 @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet
1092 v5fx30teval_flash_config: unconfig
1093 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1094 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1095 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1096 > $(obj)board/avnet/v5fx30teval/config.tmp
1097 @echo "TEXT_BASE := 0xFF1C0000" \
1098 >> $(obj)board/avnet/v5fx30teval/config.tmp
1099 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
1102 W7OLMG_config: unconfig
1103 @$(MKCONFIG) $@ powerpc ppc4xx w7o
1105 # Walnut & Sycamore images are identical (recognized via PVR)
1107 sycamore_config: unconfig
1108 @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc
1110 xilinx-ppc405-generic_flash_config: unconfig
1111 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1112 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1113 > $(obj)board/xilinx/ppc405-generic/config.tmp
1114 @echo "TEXT_BASE := 0xFE360000" \
1115 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1116 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
1118 xilinx-ppc405-generic_config: unconfig
1119 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1120 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1121 > $(obj)board/xilinx/ppc405-generic/config.tmp
1122 @echo "TEXT_BASE := 0x04000000" \
1123 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1124 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
1126 xilinx-ppc440-generic_flash_config: unconfig
1127 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1128 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1129 > $(obj)board/xilinx/ppc440-generic/config.tmp
1130 @echo "TEXT_BASE := 0xFE360000" \
1131 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1132 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
1134 xilinx-ppc440-generic_config: unconfig
1135 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1136 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1137 > $(obj)board/xilinx/ppc440-generic/config.tmp
1138 @echo "TEXT_BASE := 0x04000000" \
1139 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1140 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
1143 yellowstone_config: unconfig
1144 @mkdir -p $(obj)include
1145 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1146 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1147 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
1149 #########################################################################
1151 #########################################################################
1153 eXalion_config: unconfig
1154 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
1157 CPC45_ROMBOOT_config: unconfig
1158 @mkdir -p $(obj)include ; \
1159 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1160 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
1162 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
1164 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
1165 @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45
1167 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1169 #linkstation_HDLAN_config \
1170 # Remove this line when HDLAN is fixed
1171 linkstation_HGLAN_config: unconfig
1172 @mkdir -p $(obj)include
1174 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1175 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1177 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
1179 Sandpoint8240_config: unconfig
1180 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
1182 Sandpoint8245_config: unconfig
1183 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
1185 #########################################################################
1187 #########################################################################
1189 cogent_mpc8260_config: unconfig
1190 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
1193 CPU86_ROMBOOT_config: unconfig
1194 @mkdir -p $(obj)include ; \
1195 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1196 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
1198 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
1200 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
1201 @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86
1204 CPU87_ROMBOOT_config: unconfig
1205 @mkdir -p $(obj)include ; \
1206 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1207 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
1209 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
1211 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
1212 @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87
1215 ep8248E_config : unconfig
1216 @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248
1219 ISPAN_REVB_config: unconfig
1220 @mkdir -p $(obj)include
1221 @if [ "$(findstring _REVB_,$@)" ] ; then \
1222 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1224 @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan
1227 MPC8260ADS_lowboot_config \
1228 MPC8260ADS_33MHz_config \
1229 MPC8260ADS_33MHz_lowboot_config \
1230 MPC8260ADS_40MHz_config \
1231 MPC8260ADS_40MHz_lowboot_config \
1233 MPC8272ADS_lowboot_config \
1235 PQ2FADS_lowboot_config \
1237 PQ2FADS-VR_lowboot_config \
1239 PQ2FADS-ZU_lowboot_config \
1240 PQ2FADS-ZU_66MHz_config \
1241 PQ2FADS-ZU_66MHz_lowboot_config \
1243 @mkdir -p $(obj)include
1244 @mkdir -p $(obj)board/freescale/mpc8260ads
1245 $(if $(findstring PQ2FADS,$@), \
1246 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1247 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1248 $(if $(findstring MHz,$@), \
1249 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1250 $(if $(findstring VR,$@), \
1251 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1252 @[ -z "$(findstring lowboot_,$@)" ] || \
1253 echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp
1254 @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
1256 muas3001_dev_config \
1257 muas3001_config : unconfig
1258 @mkdir -p $(obj)include
1259 @mkdir -p $(obj)board/muas3001
1260 @if [ "$(findstring dev,$@)" ] ; then \
1261 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1263 @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001
1265 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1267 PM825_ROMBOOT_config \
1268 PM825_BIGFLASH_config \
1269 PM825_ROMBOOT_BIGFLASH_config \
1271 PM826_ROMBOOT_config \
1272 PM826_BIGFLASH_config \
1273 PM826_ROMBOOT_BIGFLASH_config: unconfig
1274 @mkdir -p $(obj)include
1275 @mkdir -p $(obj)board/pm826
1276 @if [ "$(findstring PM825_,$@)" ] ; then \
1277 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1279 >$(obj)include/config.h ; \
1281 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1282 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1283 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1284 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1285 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1288 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1289 $(XECHO) "... with 32 MB Flash" ; \
1290 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1291 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1293 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1296 @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826
1300 PM828_ROMBOOT_config \
1301 PM828_ROMBOOT_PCI_config: unconfig
1302 @mkdir -p $(obj)include
1303 @mkdir -p $(obj)board/pm826
1304 @if [ "$(findstring _PCI_,$@)" ] ; then \
1305 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1307 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1308 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1309 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1311 @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828
1313 Rattler8248_config \
1314 Rattler_config: unconfig
1315 @mkdir -p $(obj)include
1316 $(if $(findstring 8248,$@), \
1317 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1318 @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler
1330 TQM8265_AA_config: unconfig
1331 @mkdir -p $(obj)include
1333 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1334 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1335 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1336 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1337 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1338 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1339 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1340 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1341 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1342 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1343 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1345 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1346 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1348 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1349 if [ "$${CACHE}" = "yes" ] ; then \
1350 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1352 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1354 if [ "$${BMODE}" = "60x" ] ; then \
1355 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1357 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1359 @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc
1361 VoVPN-GW_66MHz_config \
1362 VoVPN-GW_100MHz_config: unconfig
1363 @mkdir -p $(obj)include
1364 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1365 @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
1367 #########################################################################
1369 #########################################################################
1371 astro_mcf5373l_config \
1372 astro_mcf5373l_RAM_config : unconfig
1373 @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro
1376 M52277EVB_spansion_config \
1377 M52277EVB_stmicro_config : unconfig
1379 M52277EVB_config) FLASH=SPANSION;; \
1380 M52277EVB_spansion_config) FLASH=SPANSION;; \
1381 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1383 if [ "$${FLASH}" = "SPANSION" ] ; then \
1384 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1385 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1386 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1388 if [ "$${FLASH}" = "STMICRO" ] ; then \
1389 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1390 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1391 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1392 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1394 @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
1397 M5235EVB_Flash16_config \
1398 M5235EVB_Flash32_config: unconfig
1400 M5235EVB_config) FLASH=16;; \
1401 M5235EVB_Flash16_config) FLASH=16;; \
1402 M5235EVB_Flash32_config) FLASH=32;; \
1404 if [ "$${FLASH}" != "16" ] ; then \
1405 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1406 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1407 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1409 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1410 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1412 @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
1414 cobra5272_config : unconfig
1415 @$(MKCONFIG) $@ m68k mcf52x2 cobra5272
1417 EB+MCF-EV123_config : unconfig
1418 @mkdir -p $(obj)include
1419 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1420 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1421 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1423 EB+MCF-EV123_internal_config : unconfig
1424 @mkdir -p $(obj)include
1425 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1426 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1427 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1430 M5329BFEE_config : unconfig
1432 M5329AFEE_config) NAND=0;; \
1433 M5329BFEE_config) NAND=16;; \
1435 if [ "$${NAND}" != "0" ] ; then \
1436 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1438 @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale
1440 M5373EVB_config : unconfig
1442 M5373EVB_config) NAND=16;; \
1444 if [ "$${NAND}" != "0" ] ; then \
1445 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1447 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1450 M54451EVB_stmicro_config : unconfig
1452 M54451EVB_config) FLASH=NOR;; \
1453 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1455 if [ "$${FLASH}" = "NOR" ] ; then \
1456 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1457 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
1459 if [ "$${FLASH}" = "STMICRO" ] ; then \
1460 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1461 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1462 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1463 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
1465 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
1466 @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
1469 M54455EVB_atmel_config \
1470 M54455EVB_intel_config \
1471 M54455EVB_a33_config \
1472 M54455EVB_a66_config \
1473 M54455EVB_i33_config \
1474 M54455EVB_i66_config \
1475 M54455EVB_stm33_config : unconfig
1477 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1478 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1479 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1480 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1481 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1482 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1483 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1484 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
1486 if [ "$${FLASH}" = "INTEL" ] ; then \
1487 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
1488 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1489 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1491 if [ "$${FLASH}" = "ATMEL" ] ; then \
1492 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
1493 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1494 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1496 if [ "$${FLASH}" = "STMICRO" ] ; then \
1497 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1498 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1499 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1500 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1502 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1503 @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale
1511 M5475GFE_config : unconfig
1513 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1514 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1515 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1516 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1517 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1518 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1519 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1521 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
1522 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1523 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1524 if [ "$${RAM1}" != "0" ] ; then \
1525 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1527 if [ "$${CODE}" != "0" ] ; then \
1528 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1530 if [ "$${VID}" == "1" ] ; then \
1531 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
1533 if [ "$${USB}" == "1" ] ; then \
1534 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
1536 @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale
1545 M5485HFE_config : unconfig
1547 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1548 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1549 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1550 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1551 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1552 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1553 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1554 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
1556 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
1557 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1558 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1559 if [ "$${RAM1}" != "0" ] ; then \
1560 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1562 if [ "$${CODE}" != "0" ] ; then \
1563 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1565 if [ "$${VID}" == "1" ] ; then \
1566 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
1568 if [ "$${USB}" == "1" ] ; then \
1569 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
1571 @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale
1573 #########################################################################
1575 #########################################################################
1577 MPC8313ERDB_33_config \
1578 MPC8313ERDB_66_config \
1579 MPC8313ERDB_NAND_33_config \
1580 MPC8313ERDB_NAND_66_config: unconfig
1581 @mkdir -p $(obj)include
1582 @mkdir -p $(obj)board/freescale/mpc8313erdb
1583 @if [ "$(findstring _33_,$@)" ] ; then \
1584 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
1586 if [ "$(findstring _66_,$@)" ] ; then \
1587 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
1589 if [ "$(findstring _NAND_,$@)" ] ; then \
1590 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
1591 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
1593 @if [ "$(findstring _NAND_,$@)" ] ; then \
1594 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
1596 @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
1598 MPC8315ERDB_NAND_config \
1599 MPC8315ERDB_config: unconfig
1600 @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
1602 MPC832XEMDS_config \
1603 MPC832XEMDS_HOST_33_config \
1604 MPC832XEMDS_HOST_66_config \
1605 MPC832XEMDS_SLAVE_config \
1606 MPC832XEMDS_ATM_config: unconfig
1607 @mkdir -p $(obj)include
1608 @if [ "$(findstring _HOST_,$@)" ] ; then \
1609 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1611 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1612 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1613 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1615 if [ "$(findstring _33_,$@)" ] ; then \
1616 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1617 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1619 if [ "$(findstring _66_,$@)" ] ; then \
1620 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1621 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1623 if [ "$(findstring _ATM_,$@)" ] ; then \
1624 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1625 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1627 @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
1630 MPC8349ITX_LOWBOOT_config \
1631 MPC8349ITXGP_config: unconfig
1632 @mkdir -p $(obj)include
1633 @mkdir -p $(obj)board/freescale/mpc8349itx
1634 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1635 @if [ "$(findstring GP,$@)" ] ; then \
1636 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1638 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1639 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1641 @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale
1643 MPC8360EMDS_config \
1644 MPC8360EMDS_HOST_33_config \
1645 MPC8360EMDS_HOST_66_config \
1646 MPC8360EMDS_SLAVE_config \
1647 MPC8360EMDS_ATM_config: unconfig
1648 @mkdir -p $(obj)include
1649 @if [ "$(findstring _HOST_,$@)" ] ; then \
1650 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1652 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1653 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1654 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1656 if [ "$(findstring _33_,$@)" ] ; then \
1657 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1658 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1660 if [ "$(findstring _66_,$@)" ] ; then \
1661 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1662 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1664 if [ "$(findstring _ATM_,$@)" ] ; then \
1665 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1666 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1668 @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
1670 MPC8360ERDK_33_config \
1671 MPC8360ERDK_66_config \
1672 MPC8360ERDK_config: unconfig
1673 @mkdir -p $(obj)include
1674 @if [ "$(findstring _33_,$@)" ] ; then \
1675 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1677 @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
1679 MPC837XEMDS_config \
1680 MPC837XEMDS_HOST_config: unconfig
1681 @mkdir -p $(obj)include
1682 @if [ "$(findstring _HOST_,$@)" ] ; then \
1683 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1685 @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
1688 sbc8349_PCI_33_config \
1689 sbc8349_PCI_66_config: unconfig
1690 @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349
1692 SIMPC8313_LP_config \
1693 SIMPC8313_SP_config: unconfig
1694 @mkdir -p $(obj)include
1695 @mkdir -p $(obj)board/sheldon/simpc8313
1696 @if [ "$(findstring _LP_,$@)" ] ; then \
1697 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
1699 if [ "$(findstring _SP_,$@)" ] ; then \
1700 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
1702 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1703 @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
1706 vme8349_config: unconfig
1707 @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd
1709 #########################################################################
1711 #########################################################################
1713 MPC8536DS_NAND_config \
1714 MPC8536DS_SDCARD_config \
1715 MPC8536DS_SPIFLASH_config \
1716 MPC8536DS_36BIT_config \
1717 MPC8536DS_config: unconfig
1718 @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale
1720 MPC8540EVAL_config \
1721 MPC8540EVAL_33_config \
1722 MPC8540EVAL_66_config \
1723 MPC8540EVAL_33_slave_config \
1724 MPC8540EVAL_66_slave_config: unconfig
1725 @mkdir -p $(obj)include
1726 @if [ -z "$(findstring _33_,$@)" ] ; then \
1727 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1729 if [ "$(findstring _slave_,$@)" ] ; then \
1730 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1732 @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval
1734 MPC8541CDS_legacy_config \
1735 MPC8541CDS_config: unconfig
1736 @mkdir -p $(obj)include
1737 @if [ "$(findstring _legacy_,$@)" ] ; then \
1738 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1740 @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
1742 MPC8548CDS_legacy_config \
1743 MPC8548CDS_config: unconfig
1744 @mkdir -p $(obj)include
1745 @if [ "$(findstring _legacy_,$@)" ] ; then \
1746 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1748 @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
1750 MPC8555CDS_legacy_config \
1751 MPC8555CDS_config: unconfig
1752 @mkdir -p $(obj)include
1753 @if [ "$(findstring _legacy_,$@)" ] ; then \
1754 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
1756 @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
1758 MPC8569MDS_ATM_config \
1759 MPC8569MDS_NAND_config \
1760 MPC8569MDS_config: unconfig
1761 @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale
1763 MPC8572DS_36BIT_config \
1764 MPC8572DS_config: unconfig
1765 @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale
1767 P2020DS_36BIT_config \
1768 P2020DS_config: unconfig
1769 @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale
1772 P1011RDB_NAND_config \
1773 P1011RDB_SDCARD_config \
1774 P1011RDB_SPIFLASH_config \
1776 P1020RDB_NAND_config \
1777 P1020RDB_SDCARD_config \
1778 P1020RDB_SPIFLASH_config \
1780 P2010RDB_NAND_config \
1781 P2010RDB_SDCARD_config \
1782 P2010RDB_SPIFLASH_config \
1784 P2020RDB_NAND_config \
1785 P2020RDB_SDCARD_config \
1786 P2020RDB_SPIFLASH_config: unconfig
1787 @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
1791 sbc8540_66_config: unconfig
1792 @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560
1795 sbc8548_PCI_33_config \
1796 sbc8548_PCI_66_config \
1797 sbc8548_PCI_33_PCIE_config \
1798 sbc8548_PCI_66_PCIE_config: unconfig
1799 @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548
1803 sbc8560_66_config: unconfig
1804 @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560
1807 stxssa_4M_config: unconfig
1808 @mkdir -p $(obj)include
1809 @if [ "$(findstring _4M_,$@)" ] ; then \
1810 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1812 @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx
1820 TQM8560_config: unconfig
1821 @mkdir -p $(obj)include
1822 @BTYPE=$(@:_config=); \
1823 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
1824 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1825 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
1826 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1827 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
1828 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
1829 @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc
1831 #########################################################################
1833 #########################################################################
1835 MPC8641HPCN_36BIT_config \
1836 MPC8641HPCN_config: unconfig
1837 @mkdir -p $(obj)include
1838 @if [ "$(findstring _36BIT_,$@)" ] ; then \
1839 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
1841 @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
1843 #########################################################################
1845 #########################################################################
1848 EVB64260_750CX_config: unconfig
1849 @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260
1852 p3m7448_config: unconfig
1853 @mkdir -p $(obj)include
1854 @if [ "$(findstring 750_,$@)" ] ; then \
1855 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1857 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1859 @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive
1862 PCIPPC6_config: unconfig
1863 @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2
1865 #========================================================================
1867 #========================================================================
1869 #########################################################################
1870 ## Atmel AT91RM9200 Systems
1871 #########################################################################
1873 CPUAT91_RAM_config \
1874 CPUAT91_config : unconfig
1875 @mkdir -p $(obj)include
1876 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
1877 @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
1879 #########################################################################
1880 ## ARM926EJ-S Systems
1881 #########################################################################
1883 at91sam9260ek_nandflash_config \
1884 at91sam9260ek_dataflash_cs0_config \
1885 at91sam9260ek_dataflash_cs1_config \
1886 at91sam9260ek_config \
1887 at91sam9g20ek_nandflash_config \
1888 at91sam9g20ek_dataflash_cs0_config \
1889 at91sam9g20ek_dataflash_cs1_config \
1890 at91sam9g20ek_config : unconfig
1891 @mkdir -p $(obj)include
1892 @if [ "$(findstring 9g20,$@)" ] ; then \
1893 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
1895 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
1897 @if [ "$(findstring _nandflash,$@)" ] ; then \
1898 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1899 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1900 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
1902 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
1904 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
1906 at91sam9xeek_nandflash_config \
1907 at91sam9xeek_dataflash_cs0_config \
1908 at91sam9xeek_dataflash_cs1_config \
1909 at91sam9xeek_config : unconfig
1910 @mkdir -p $(obj)include
1911 @if [ "$(findstring _nandflash,$@)" ] ; then \
1912 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1913 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1914 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
1916 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
1918 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
1920 at91sam9261ek_nandflash_config \
1921 at91sam9261ek_dataflash_cs0_config \
1922 at91sam9261ek_dataflash_cs3_config \
1923 at91sam9261ek_config \
1924 at91sam9g10ek_nandflash_config \
1925 at91sam9g10ek_dataflash_cs0_config \
1926 at91sam9g10ek_dataflash_cs3_config \
1927 at91sam9g10ek_config : unconfig
1928 @mkdir -p $(obj)include
1929 @if [ "$(findstring 9g10,$@)" ] ; then \
1930 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
1932 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
1934 @if [ "$(findstring _nandflash,$@)" ] ; then \
1935 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1936 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1937 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
1939 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
1941 @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
1943 at91sam9263ek_norflash_config \
1944 at91sam9263ek_norflash_boot_config \
1945 at91sam9263ek_nandflash_config \
1946 at91sam9263ek_dataflash_config \
1947 at91sam9263ek_dataflash_cs0_config \
1948 at91sam9263ek_config : unconfig
1949 @mkdir -p $(obj)include
1950 @if [ "$(findstring _nandflash,$@)" ] ; then \
1951 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1952 elif [ "$(findstring norflash,$@)" ] ; then \
1953 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
1955 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
1957 @if [ "$(findstring norflash_boot,$@)" ] ; then \
1958 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
1960 @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
1962 at91sam9rlek_nandflash_config \
1963 at91sam9rlek_dataflash_config \
1964 at91sam9rlek_dataflash_cs0_config \
1965 at91sam9rlek_config : unconfig
1966 @mkdir -p $(obj)include
1967 @if [ "$(findstring _nandflash,$@)" ] ; then \
1968 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1970 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
1972 @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
1974 CPU9G20_128M_config \
1976 CPU9260_128M_config \
1977 CPU9260_config : unconfig
1978 @mkdir -p $(obj)include
1979 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
1980 @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91
1982 at91sam9m10g45ek_nandflash_config \
1983 at91sam9m10g45ek_dataflash_config \
1984 at91sam9m10g45ek_dataflash_cs0_config \
1985 at91sam9m10g45ek_config \
1986 at91sam9g45ekes_nandflash_config \
1987 at91sam9g45ekes_dataflash_config \
1988 at91sam9g45ekes_dataflash_cs0_config \
1989 at91sam9g45ekes_config : unconfig
1990 @mkdir -p $(obj)include
1991 @if [ "$(findstring 9m10,$@)" ] ; then \
1992 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
1994 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
1996 @if [ "$(findstring _nandflash,$@)" ] ; then \
1997 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
1999 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
2001 @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
2003 pm9g45_config : unconfig
2004 @mkdir -p $(obj)include
2005 @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91
2007 SBC35_A9G20_NANDFLASH_config \
2008 SBC35_A9G20_EEPROM_config \
2009 SBC35_A9G20_config : unconfig
2010 @mkdir -p $(obj)include
2011 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2012 @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
2014 TNY_A9G20_NANDFLASH_config \
2015 TNY_A9G20_EEPROM_config \
2017 TNY_A9260_NANDFLASH_config \
2018 TNY_A9260_EEPROM_config \
2019 TNY_A9260_config : unconfig
2020 @mkdir -p $(obj)include
2021 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2022 @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91
2024 ########################################################################
2025 ## ARM Integrator boards - see doc/README-integrator for more info.
2026 integratorap_config \
2035 ap946es_config: unconfig
2036 @board/armltd/integrator/split_by_variant.sh ap $@
2038 integratorcp_config \
2047 cp1026_config: unconfig
2048 @board/armltd/integrator/split_by_variant.sh cp $@
2051 nhk8815_onenand_config: unconfig
2052 @mkdir -p $(obj)include
2053 @ > $(obj)include/config.h
2054 @if [ "$(findstring _onenand, $@)" ] ; then \
2055 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2057 @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik
2059 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2061 omap1610inn_config \
2062 omap1610inn_cs0boot_config \
2063 omap1610inn_cs3boot_config \
2064 omap1610inn_cs_autoboot_config \
2066 omap1610h2_cs0boot_config \
2067 omap1610h2_cs3boot_config \
2068 omap1610h2_cs_autoboot_config: unconfig
2069 @mkdir -p $(obj)include
2070 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2071 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2072 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2073 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2075 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2077 @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
2080 omap730p2_cs0boot_config \
2081 omap730p2_cs3boot_config : unconfig
2082 @mkdir -p $(obj)include
2083 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2084 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2086 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2088 @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap
2092 spear320_config : unconfig
2093 @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear
2095 spear600_config : unconfig
2096 @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear
2098 SX1_stdout_serial_config \
2099 SX1_config: unconfig
2100 @mkdir -p $(obj)include
2101 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
2102 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
2104 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
2106 @$(MKCONFIG) -n $@ SX1 arm arm925t sx1
2108 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2110 trab_bigram_config \
2111 trab_bigflash_config \
2112 trab_old_config: unconfig
2113 @mkdir -p $(obj)include
2114 @mkdir -p $(obj)board/trab
2115 @[ -z "$(findstring _bigram,$@)" ] || \
2116 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2117 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2119 @[ -z "$(findstring _bigflash,$@)" ] || \
2120 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2121 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2122 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2124 @[ -z "$(findstring _old,$@)" ] || \
2125 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2126 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2127 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2129 @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0
2131 tx25_config : unconfig
2132 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2133 @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25
2142 edb9315a_config: unconfig
2143 @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx
2145 #########################################################################
2146 # ARM supplied Versatile development boards
2147 #########################################################################
2150 versatileab_config \
2151 versatilepb_config : unconfig
2152 @board/armltd/versatile/split_by_variant.sh $@
2154 #########################################################################
2156 #########################################################################
2159 scpu_config: unconfig
2160 @mkdir -p $(obj)include
2161 @if [ "$(findstring scpu_,$@)" ] ; then \
2162 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2164 @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive
2167 trizepsiv_config : unconfig
2168 @mkdir -p $(obj)include
2169 @if [ "$(findstring polaris,$@)" ] ; then \
2170 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
2172 @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv
2174 #########################################################################
2176 #########################################################################
2178 apollon_config : unconfig
2179 @mkdir -p $(obj)include
2180 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2181 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2182 @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx
2184 imx31_phycore_eet_config \
2185 imx31_phycore_config : unconfig
2186 @mkdir -p $(obj)include
2187 @if [ -n "$(findstring _eet_,$@)" ]; then \
2188 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
2190 @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31
2193 mx31pdk_nand_config : unconfig
2194 @mkdir -p $(obj)include
2195 @if [ -n "$(findstring _nand_,$@)" ]; then \
2196 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
2198 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
2199 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
2201 @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31
2203 #########################################################################
2205 #########################################################################
2206 smdk6400_noUSB_config \
2207 smdk6400_config : unconfig
2208 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2209 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2210 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2211 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2212 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2213 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2215 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2217 @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx
2218 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2220 #========================================================================
2222 #========================================================================
2223 #########################################################################
2225 #########################################################################
2227 incaip_100MHz_config \
2228 incaip_133MHz_config \
2229 incaip_150MHz_config \
2230 incaip_config: unconfig
2231 @mkdir -p $(obj)include
2232 @[ -z "$(findstring _100MHz,$@)" ] || \
2233 echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h
2234 @[ -z "$(findstring _133MHz,$@)" ] || \
2235 echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h
2236 @[ -z "$(findstring _150MHz,$@)" ] || \
2237 echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h
2238 @$(MKCONFIG) -n $@ -a incaip mips mips incaip
2240 vct_premium_config \
2241 vct_premium_small_config \
2242 vct_premium_onenand_config \
2243 vct_premium_onenand_small_config \
2244 vct_platinum_config \
2245 vct_platinum_small_config \
2246 vct_platinum_onenand_config \
2247 vct_platinum_onenand_small_config \
2248 vct_platinumavc_config \
2249 vct_platinumavc_small_config \
2250 vct_platinumavc_onenand_config \
2251 vct_platinumavc_onenand_small_config: unconfig
2252 @mkdir -p $(obj)include
2253 @[ -z "$(findstring _premium,$@)" ] || \
2254 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h
2255 @[ -z "$(findstring _platinum_,$@)" ] || \
2256 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h
2257 @[ -z "$(findstring _platinumavc,$@)" ] || \
2258 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h
2259 @[ -z "$(findstring _onenand,$@)" ] || \
2260 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h
2261 @[ -z "$(findstring _small,$@)" ] || \
2262 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h
2263 @$(MKCONFIG) -n $@ -a vct mips mips vct micronas
2265 #########################################################################
2267 #########################################################################
2269 dbau1000_config : unconfig
2270 @mkdir -p $(obj)include
2271 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2272 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2274 dbau1100_config : unconfig
2275 @mkdir -p $(obj)include
2276 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2277 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2279 dbau1500_config : unconfig
2280 @mkdir -p $(obj)include
2281 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2282 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2284 dbau1550_config : unconfig
2285 @mkdir -p $(obj)include
2286 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2287 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2289 dbau1550_el_config : unconfig
2290 @mkdir -p $(obj)include
2291 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2292 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2294 gth2_config : unconfig
2295 @mkdir -p $(obj)include
2296 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
2297 @$(MKCONFIG) -a $@ mips mips gth2
2299 pb1000_config : unconfig
2300 @mkdir -p $(obj)include
2301 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2302 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2304 qemu_mips_config : unconfig
2305 @mkdir -p $(obj)include
2306 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
2307 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2309 #========================================================================
2311 #========================================================================
2313 #########################################################################
2315 #########################################################################
2317 # nios2 generic boards
2318 NIOS2_GENERIC = nios2-generic
2320 $(NIOS2_GENERIC:%=%_config) : unconfig
2321 @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera
2323 #========================================================================
2325 #========================================================================
2327 bf527-ezkit-v2_config : unconfig
2328 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
2329 bf527-ezkit blackfin blackfin bf527-ezkit
2331 #========================================================================
2333 #========================================================================
2335 #########################################################################
2336 ## sh2 (Renesas SuperH)
2337 #########################################################################
2338 rsk7203_config: unconfig
2339 @mkdir -p $(obj)include
2340 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
2341 @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas
2343 #########################################################################
2344 ## sh3 (Renesas SuperH)
2345 #########################################################################
2347 mpr2_config: unconfig
2348 @mkdir -p $(obj)include
2349 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
2350 @$(MKCONFIG) -a $@ sh sh3 mpr2
2352 ms7720se_config: unconfig
2353 @mkdir -p $(obj)include
2354 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
2355 @$(MKCONFIG) -a $@ sh sh3 ms7720se
2357 #########################################################################
2358 ## sh4 (Renesas SuperH)
2359 #########################################################################
2361 MigoR_config : unconfig
2362 @mkdir -p $(obj)include
2363 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
2364 @$(MKCONFIG) -a $@ sh sh4 MigoR renesas
2366 ms7750se_config: unconfig
2367 @mkdir -p $(obj)include
2368 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
2369 @$(MKCONFIG) -a $@ sh sh4 ms7750se
2371 ms7722se_config : unconfig
2372 @mkdir -p $(obj)include
2373 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
2374 @$(MKCONFIG) -a $@ sh sh4 ms7722se
2376 r2dplus_config : unconfig
2377 @mkdir -p $(obj)include
2378 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
2379 @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas
2381 r7780mp_config: unconfig
2382 @mkdir -p $(obj)include
2383 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
2384 @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas
2386 sh7763rdp_config : unconfig
2387 @mkdir -p $(obj)include
2388 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
2389 @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas
2391 sh7785lcr_32bit_config \
2392 sh7785lcr_config : unconfig
2393 @mkdir -p $(obj)include
2394 @mkdir -p $(obj)board/renesas/sh7785lcr
2395 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
2396 @if [ "$(findstring 32bit, $@)" ] ; then \
2397 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
2398 echo "TEXT_BASE = 0x8ff80000" > \
2399 $(obj)board/renesas/sh7785lcr/config.tmp ; \
2401 @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas
2403 ap325rxa_config : unconfig
2404 @mkdir -p $(obj)include
2405 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
2406 @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas
2408 espt_config : unconfig
2409 @mkdir -p $(obj)include
2410 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
2411 @$(MKCONFIG) -a $@ sh sh4 espt
2413 #########################################################################
2414 #########################################################################
2417 @rm -f $(obj)examples/standalone/82559_eeprom \
2418 $(obj)examples/standalone/atmel_df_pow2 \
2419 $(obj)examples/standalone/eepro100_eeprom \
2420 $(obj)examples/standalone/hello_world \
2421 $(obj)examples/standalone/interrupt \
2422 $(obj)examples/standalone/mem_to_mem_idma2intr \
2423 $(obj)examples/standalone/sched \
2424 $(obj)examples/standalone/smc91111_eeprom \
2425 $(obj)examples/standalone/test_burst \
2426 $(obj)examples/standalone/timer
2427 @rm -f $(obj)examples/api/demo{,.bin}
2428 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2429 $(obj)tools/env/{fw_printenv,fw_setenv} \
2430 $(obj)tools/envcrc \
2431 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2432 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2433 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2434 $(obj)tools/ncb $(obj)tools/ubsha1
2435 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2436 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2437 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
2438 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
2439 $(obj)arch/blackfin/lib/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 #########################################################################