Add README to clarify relation to U-Boot and ACube's version
[u-boot-sam460ex.git] / Makefile
1 #
2 # (C) Copyright 2000-2010
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # See file CREDITS for list of people who contributed to this
6 # project.
7 #
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.
12 #
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.
17 #
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,
21 # MA 02111-1307 USA
22 #
23
24 VERSION = 2010
25 PATCHLEVEL = 06
26 SUBLEVEL = 05
27 EXTRAVERSION =
28 ifneq "$(SUBLEVEL)" ""
29 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
30 else
31 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
32 endif
33 TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34 VERSION_FILE = $(obj)include/version_autogenerated.h
35
36 HOSTARCH := $(shell uname -m | \
37 sed -e s/i.86/i386/ \
38 -e s/sun4u/sparc64/ \
39 -e s/arm.*/arm/ \
40 -e s/sa110/arm/ \
41 -e s/ppc64/powerpc/ \
42 -e s/ppc/powerpc/ \
43 -e s/macppc/powerpc/)
44
45 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
46 sed -e 's/\(cygwin\).*/cygwin/')
47
48 # Set shell to bash if possible, otherwise fall back to sh
49 SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50 else if [ -x /bin/bash ]; then echo /bin/bash; \
51 else echo sh; fi; fi)
52
53 export HOSTARCH HOSTOS SHELL
54
55 # Deal with colliding definitions from tcsh etc.
56 VENDOR=
57
58 #########################################################################
59 # Allow for silent builds
60 ifeq (,$(findstring s,$(MAKEFLAGS)))
61 XECHO = echo
62 else
63 XECHO = :
64 endif
65
66 #########################################################################
67 #
68 # U-boot build supports producing a object files to the separate external
69 # directory. Two use cases are supported:
70 #
71 # 1) Add O= to the make command line
72 # 'make O=/tmp/build all'
73 #
74 # 2) Set environement variable BUILD_DIR to point to the desired location
75 # 'export BUILD_DIR=/tmp/build'
76 # 'make'
77 #
78 # The second approach can also be used with a MAKEALL script
79 # 'export BUILD_DIR=/tmp/build'
80 # './MAKEALL'
81 #
82 # Command line 'O=' setting overrides BUILD_DIR environent variable.
83 #
84 # When none of the above methods is used the local build is performed and
85 # the object files are placed in the source directory.
86 #
87
88 ifdef O
89 ifeq ("$(origin O)", "command line")
90 BUILD_DIR := $(O)
91 endif
92 endif
93
94 ifneq ($(BUILD_DIR),)
95 saved-output := $(BUILD_DIR)
96
97 # Attempt to create a output directory.
98 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
99
100 # Verify if it was successful.
101 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103 endif # ifneq ($(BUILD_DIR),)
104
105 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
106 SRCTREE := $(CURDIR)
107 TOPDIR := $(SRCTREE)
108 LNDIR := $(OBJTREE)
109 export TOPDIR SRCTREE OBJTREE
110
111 MKCONFIG := $(SRCTREE)/mkconfig
112 export MKCONFIG
113
114 ifneq ($(OBJTREE),$(SRCTREE))
115 REMOTE_BUILD := 1
116 export REMOTE_BUILD
117 endif
118
119 # $(obj) and (src) are defined in config.mk but here in main Makefile
120 # we also need them before config.mk is included which is the case for
121 # some targets like unconfig, clean, clobber, distclean, etc.
122 ifneq ($(OBJTREE),$(SRCTREE))
123 obj := $(OBJTREE)/
124 src := $(SRCTREE)/
125 else
126 obj :=
127 src :=
128 endif
129 export obj src
130
131 # Make sure CDPATH settings don't interfere
132 unexport CDPATH
133
134 #########################################################################
135
136 # The "tools" are needed early, so put this first
137 # Don't include stuff already done in $(LIBS)
138 SUBDIRS = tools \
139 # examples/standalone \
140 # examples/api
141
142 .PHONY : $(SUBDIRS)
143
144 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
145
146 # Include autoconf.mk before config.mk so that the config options are available
147 # to all top level build files. We need the dummy all: target to prevent the
148 # dependency target in autoconf.mk.dep from being the default.
149 all:
150 sinclude $(obj)include/autoconf.mk.dep
151 sinclude $(obj)include/autoconf.mk
152
153 # load ARCH, BOARD, and CPU configuration
154 include $(obj)include/config.mk
155 export ARCH CPU BOARD VENDOR SOC
156
157 # set default to nothing for native builds
158 ifeq ($(HOSTARCH),$(ARCH))
159 CROSS_COMPILE ?=
160 endif
161
162 # load other configuration
163 include $(TOPDIR)/config.mk
164
165 #########################################################################
166 # U-Boot objects....order is important (i.e. start must be first)
167
168 OBJS = $(CPUDIR)/start.o
169 ifeq ($(CPU),i386)
170 OBJS += $(CPUDIR)/start16.o
171 OBJS += $(CPUDIR)/resetvec.o
172 endif
173 ifeq ($(CPU),ppc4xx)
174 OBJS += $(CPUDIR)/resetvec.o
175 endif
176 ifeq ($(CPU),mpc85xx)
177 OBJS += $(CPUDIR)/resetvec.o
178 endif
179
180 OBJS := $(addprefix $(obj),$(OBJS))
181
182 LIBS = lib/libgeneric.a
183 LIBS += lib/lzma/liblzma.a
184 LIBS += lib/lzo/liblzo.a
185 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
186 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
187 LIBS += $(CPUDIR)/lib$(CPU).a
188 ifdef SOC
189 LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a
190 endif
191 ifeq ($(CPU),ixp)
192 LIBS += arch/arm/cpu/ixp/npe/libnpe.a
193 endif
194 LIBS += arch/$(ARCH)/lib/lib$(ARCH).a
195 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
196 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
197 fs/ubifs/libubifs.a
198 LIBS += net/libnet.a
199 LIBS += disk/libdisk.a
200 LIBS += drivers/bios_emulator/libatibiosemu.a
201 LIBS += drivers/block/libblock.a
202 LIBS += drivers/dma/libdma.a
203 LIBS += drivers/fpga/libfpga.a
204 LIBS += drivers/gpio/libgpio.a
205 LIBS += drivers/hwmon/libhwmon.a
206 LIBS += drivers/i2c/libi2c.a
207 LIBS += drivers/input/libinput.a
208 LIBS += drivers/misc/libmisc.a
209 LIBS += drivers/mmc/libmmc.a
210 LIBS += drivers/mtd/libmtd.a
211 LIBS += drivers/mtd/nand/libnand.a
212 LIBS += drivers/mtd/onenand/libonenand.a
213 LIBS += drivers/mtd/ubi/libubi.a
214 LIBS += drivers/mtd/spi/libspi_flash.a
215 LIBS += drivers/net/libnet.a
216 LIBS += drivers/net/phy/libphy.a
217 LIBS += drivers/pci/libpci.a
218 LIBS += drivers/pcmcia/libpcmcia.a
219 LIBS += drivers/power/libpower.a
220 LIBS += drivers/spi/libspi.a
221 ifeq ($(CPU),mpc83xx)
222 LIBS += drivers/qe/qe.a
223 endif
224 ifeq ($(CPU),mpc85xx)
225 LIBS += drivers/qe/qe.a
226 LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
227 LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
228 endif
229 ifeq ($(CPU),mpc86xx)
230 LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
231 LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
232 endif
233 LIBS += drivers/rtc/librtc.a
234 LIBS += drivers/serial/libserial.a
235 LIBS += drivers/twserial/libtws.a
236 LIBS += drivers/usb/gadget/libusb_gadget.a
237 LIBS += drivers/usb/host/libusb_host.a
238 LIBS += drivers/usb/musb/libusb_musb.a
239 LIBS += drivers/usb/phy/libusb_phy.a
240 LIBS += drivers/video/libvideo.a
241 LIBS += drivers/watchdog/libwatchdog.a
242 LIBS += common/libcommon.a
243 LIBS += lib/libfdt/libfdt.a
244 LIBS += api/libapi.a
245 LIBS += post/libpost.a
246
247 LIBS := $(addprefix $(obj),$(LIBS))
248 .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
249
250 LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
251 LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
252
253 # Add GCC lib
254 ifdef USE_PRIVATE_LIBGCC
255 ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
256 PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
257 else
258 PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
259 endif
260 else
261 PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
262 endif
263 PLATFORM_LIBS += $(PLATFORM_LIBGCC)
264 export PLATFORM_LIBS
265
266 # Special flags for CPP when processing the linker script.
267 # Pass the version down so we can handle backwards compatibility
268 # on the fly.
269 LDPPFLAGS += \
270 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \
271 $(shell $(LD) --version | \
272 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
273
274 ifeq ($(CONFIG_NAND_U_BOOT),y)
275 NAND_SPL = nand_spl
276 U_BOOT_NAND = $(obj)u-boot-nand.bin
277 endif
278
279 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
280 ONENAND_IPL = onenand_ipl
281 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
282 ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
283 endif
284
285 __OBJS := $(subst $(obj),,$(OBJS))
286 __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
287
288 #########################################################################
289 #########################################################################
290
291 # Always append ALL so that arch config.mk's can add custom ones
292 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
293
294 all: $(ALL)
295
296 $(obj)u-boot.hex: $(obj)u-boot
297 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
298
299 $(obj)u-boot.srec: $(obj)u-boot
300 $(OBJCOPY) -O srec $< $@
301
302 $(obj)u-boot.bin: $(obj)u-boot
303 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
304
305 $(obj)u-boot.ldr: $(obj)u-boot
306 $(CREATE_LDR_ENV)
307 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
308
309 $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
310 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
311
312 $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
313 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
314
315 $(obj)u-boot.img: $(obj)u-boot.bin
316 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \
317 -a $(TEXT_BASE) -e 0 \
318 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
319 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
320 -d $< $@
321
322 $(obj)u-boot.imx: $(obj)u-boot.bin
323 $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \
324 -e $(TEXT_BASE) -d $< $@
325
326 $(obj)u-boot.kwb: $(obj)u-boot.bin
327 $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \
328 -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
329
330 $(obj)u-boot.sha1: $(obj)u-boot.bin
331 $(obj)tools/ubsha1 $(obj)u-boot.bin
332
333 $(obj)u-boot.dis: $(obj)u-boot
334 $(OBJDUMP) -d $< > $@
335
336 GEN_UBOOT = \
337 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
338 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
339 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
340 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
341 -Map u-boot.map -o u-boot
342 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
343 $(GEN_UBOOT)
344 ifeq ($(CONFIG_KALLSYMS),y)
345 smap=`$(call SYSTEM_MAP,u-boot) | \
346 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
347 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
348 -c common/system_map.c -o $(obj)common/system_map.o
349 $(GEN_UBOOT) $(obj)common/system_map.o
350 endif
351
352 $(OBJS): depend
353 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
354
355 $(LIBS): depend $(SUBDIRS)
356 $(MAKE) -C $(dir $(subst $(obj),,$@))
357
358 $(LIBBOARD): depend $(LIBS)
359 $(MAKE) -C $(dir $(subst $(obj),,$@))
360
361 $(SUBDIRS): depend
362 $(MAKE) -C $@ all
363
364 $(LDSCRIPT): depend
365 $(MAKE) -C $(dir $@) $(notdir $@)
366
367 $(obj)u-boot.lds: $(LDSCRIPT)
368 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
369
370 $(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
371 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
372
373 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
374 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
375
376 $(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
377 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
378
379 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
380 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
381
382 $(VERSION_FILE):
383 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
384 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
385 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
386
387 $(TIMESTAMP_FILE):
388 @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
389 @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@
390
391 gdbtools:
392 $(MAKE) -C tools/gdb all || exit 1
393
394 multiplier:
395 $(MAKE) -C tools/multiplier all || exit 1
396
397 updater:
398 $(MAKE) -C tools/updater all || exit 1
399
400 env:
401 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
402
403 # Explicitly make _depend in subdirs containing multiple targets to prevent
404 # parallel sub-makes creating .depend files simultaneously.
405 depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
406 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
407 $(MAKE) -C $$dir _depend ; done
408
409 TAG_SUBDIRS = $(SUBDIRS)
410 TAG_SUBDIRS += $(dir $(__LIBS))
411 TAG_SUBDIRS += include
412
413 tags ctags:
414 ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \
415 -name '*.[chS]' -print`
416
417 etags:
418 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \
419 -name '*.[chS]' -print`
420 cscope:
421 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files
422 cscope -b -q -k
423
424 SYSTEM_MAP = \
425 $(NM) $1 | \
426 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
427 LC_ALL=C sort
428 $(obj)System.map: $(obj)u-boot
429 @$(call SYSTEM_MAP,$<) > $(obj)System.map
430
431 #
432 # Auto-generate the autoconf.mk file (which is included by all makefiles)
433 #
434 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
435 # the dep file is only include in this top level makefile to determine when
436 # to regenerate the autoconf.mk file.
437 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
438 @$(XECHO) Generating $@ ; \
439 set -e ; \
440 : Generate the dependancies ; \
441 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
442 -MQ $(obj)include/autoconf.mk include/common.h > $@
443
444 $(obj)include/autoconf.mk: $(obj)include/config.h
445 @$(XECHO) Generating $@ ; \
446 set -e ; \
447 : Extract the config macros ; \
448 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
449 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
450 mv $@.tmp $@
451
452 #########################################################################
453 else # !config.mk
454 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
455 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
456 $(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \
457 updater env depend dep tags ctags etags cscope $(obj)System.map:
458 @echo "System not configured - see README" >&2
459 @ exit 1
460
461 tools:
462 $(MAKE) -C tools
463 tools-all:
464 $(MAKE) -C tools HOST_TOOLS_ALL=y
465 endif # config.mk
466
467 .PHONY : CHANGELOG
468 CHANGELOG:
469 git log --no-merges U-Boot-1_1_5.. | \
470 unexpand -a | sed -e 's/\s\s*$$//' > $@
471
472 include/license.h: tools/bin2header COPYING
473 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
474 #########################################################################
475
476 unconfig:
477 @rm -f $(obj)include/config.h $(obj)include/config.mk \
478 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
479 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
480
481 %: %_config
482 $(MAKE)
483
484 #========================================================================
485 # PowerPC
486 #========================================================================
487
488 #########################################################################
489 ## MPC5xx Systems
490 #########################################################################
491
492 canmb_config: unconfig
493 @$(MKCONFIG) -a canmb powerpc mpc5xxx canmb
494
495 cmi_mpc5xx_config: unconfig
496 @$(MKCONFIG) $(@:_config=) powerpc mpc5xx cmi
497
498 PATI_config: unconfig
499 @$(MKCONFIG) $(@:_config=) powerpc mpc5xx pati mpl
500
501 #########################################################################
502 ## MPC5xxx Systems
503 #########################################################################
504
505 aev_config: unconfig
506 @$(MKCONFIG) -a aev powerpc mpc5xxx tqm5200 tqc
507
508 BC3450_config: unconfig
509 @$(MKCONFIG) -a BC3450 powerpc mpc5xxx bc3450
510
511 cm5200_config: unconfig
512 @$(MKCONFIG) -a cm5200 powerpc mpc5xxx cm5200
513
514 cpci5200_config: unconfig
515 @$(MKCONFIG) -a cpci5200 powerpc mpc5xxx cpci5200 esd
516
517 digsy_mtc_config \
518 digsy_mtc_LOWBOOT_config \
519 digsy_mtc_RAMBOOT_config: unconfig
520 @mkdir -p $(obj)include
521 @mkdir -p $(obj)board/digsy_mtc
522 @ >$(obj)include/config.h
523 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
524 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \
525 echo "... with LOWBOOT configuration" ; \
526 }
527 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
528 { echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
529 echo "... with RAMBOOT configuration" ; \
530 }
531 @$(MKCONFIG) -a digsy_mtc powerpc mpc5xxx digsy_mtc
532
533 galaxy5200_LOWBOOT_config \
534 galaxy5200_config: unconfig
535 @mkdir -p $(obj)include
536 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
537 @$(MKCONFIG) -a galaxy5200 powerpc mpc5xxx galaxy5200
538
539 hmi1001_config: unconfig
540 @$(MKCONFIG) hmi1001 powerpc mpc5xxx hmi1001
541
542 Lite5200_config \
543 Lite5200_LOWBOOT_config \
544 Lite5200_LOWBOOT08_config \
545 icecube_5200_config \
546 icecube_5200_LOWBOOT_config \
547 icecube_5200_LOWBOOT08_config \
548 icecube_5200_DDR_config \
549 icecube_5200_DDR_LOWBOOT_config \
550 icecube_5200_DDR_LOWBOOT08_config: unconfig
551 @mkdir -p $(obj)include
552 @mkdir -p $(obj)board/icecube
553 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
554 { if [ "$(findstring DDR,$@)" ] ; \
555 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
556 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
557 fi ; \
558 $(XECHO) "... with LOWBOOT configuration" ; \
559 }
560 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
561 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
562 echo "... with 8 MB flash only" ; \
563 $(XECHO) "... with LOWBOOT configuration" ; \
564 }
565 @[ -z "$(findstring DDR,$@)" ] || \
566 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
567 $(XECHO) "... DDR memory revision" ; \
568 }
569 @$(MKCONFIG) -a IceCube powerpc mpc5xxx icecube
570
571 jupiter_config: unconfig
572 @$(MKCONFIG) jupiter powerpc mpc5xxx jupiter
573
574 inka4x0_config: unconfig
575 @$(MKCONFIG) inka4x0 powerpc mpc5xxx inka4x0
576
577 ipek01_config: unconfig
578 @$(MKCONFIG) -a ipek01 powerpc mpc5xxx ipek01
579
580 lite5200b_config \
581 lite5200b_PM_config \
582 lite5200b_LOWBOOT_config: unconfig
583 @mkdir -p $(obj)include
584 @mkdir -p $(obj)board/icecube
585 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
586 @ $(XECHO) "... DDR memory revision"
587 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
588 @[ -z "$(findstring _PM_,$@)" ] || \
589 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
590 $(XECHO) "... with power management (low-power mode) support" ; \
591 }
592 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
593 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
594 $(XECHO) "... with LOWBOOT configuration" ; \
595 }
596 @$(MKCONFIG) -a IceCube powerpc mpc5xxx icecube
597
598 mcc200_config \
599 mcc200_SDRAM_config \
600 mcc200_highboot_config \
601 mcc200_COM12_config \
602 mcc200_COM12_SDRAM_config \
603 mcc200_COM12_highboot_config \
604 mcc200_COM12_highboot_SDRAM_config \
605 mcc200_highboot_SDRAM_config \
606 prs200_config \
607 prs200_DDR_config \
608 prs200_highboot_config \
609 prs200_highboot_DDR_config: unconfig
610 @mkdir -p $(obj)include
611 @mkdir -p $(obj)board/mcc200
612 @[ -n "$(findstring highboot,$@)" ] || \
613 { $(XECHO) "... with lowboot configuration" ; \
614 }
615 @[ -z "$(findstring highboot,$@)" ] || \
616 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
617 $(XECHO) "... with highboot configuration" ; \
618 }
619 @[ -n "$(findstring _SDRAM,$@)" ] || \
620 { if [ -n "$(findstring mcc200,$@)" ]; \
621 then \
622 $(XECHO) "... with DDR" ; \
623 else \
624 if [ -n "$(findstring _DDR,$@)" ];\
625 then \
626 $(XECHO) "... with DDR" ; \
627 else \
628 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
629 $(XECHO) "... with SDRAM" ; \
630 fi; \
631 fi; \
632 }
633 @[ -z "$(findstring _SDRAM,$@)" ] || \
634 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
635 $(XECHO) "... with SDRAM" ; \
636 }
637 @[ -z "$(findstring COM12,$@)" ] || \
638 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
639 $(XECHO) "... with console on COM12" ; \
640 }
641 @[ -z "$(findstring prs200,$@)" ] || \
642 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
643 }
644 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
645
646 mecp5200_config: unconfig
647 @$(MKCONFIG) mecp5200 powerpc mpc5xxx mecp5200 esd
648
649 motionpro_config: unconfig
650 @$(MKCONFIG) motionpro powerpc mpc5xxx motionpro
651
652 mucmc52_config: unconfig
653 @$(MKCONFIG) mucmc52 powerpc mpc5xxx mucmc52
654
655 munices_config: unconfig
656 @$(MKCONFIG) munices powerpc mpc5xxx munices
657
658 MVBC_P_config: unconfig
659 @mkdir -p $(obj)include
660 @mkdir -p $(obj)board/mvbc_p
661 @ >$(obj)include/config.h
662 @[ -z "$(findstring MVBC_P,$@)" ] || \
663 { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; }
664 @$(MKCONFIG) -n $@ -a MVBC_P powerpc mpc5xxx mvbc_p matrix_vision
665
666 MVSMR_config: unconfig
667 @mkdir -p $(obj)include
668 @mkdir -p $(obj)board/matrix_vision/mvsmr
669 @$(MKCONFIG) $(@:_config=) powerpc mpc5xxx mvsmr matrix_vision
670
671 o2dnt_config: unconfig
672 @$(MKCONFIG) o2dnt powerpc mpc5xxx o2dnt
673
674 pcm030_config \
675 pcm030_LOWBOOT_config: unconfig
676 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
677 @ >$(obj)include/config.h
678 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
679 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp ; \
680 echo "... with LOWBOOT configuration" ; \
681 }
682 @$(MKCONFIG) -a pcm030 powerpc mpc5xxx pcm030 phytec
683
684 pf5200_config: unconfig
685 @$(MKCONFIG) pf5200 powerpc mpc5xxx pf5200 esd
686
687 PM520_config \
688 PM520_DDR_config \
689 PM520_ROMBOOT_config \
690 PM520_ROMBOOT_DDR_config: unconfig
691 @mkdir -p $(obj)include
692 @[ -z "$(findstring DDR,$@)" ] || \
693 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
694 $(XECHO) "... DDR memory revision" ; \
695 }
696 @[ -z "$(findstring ROMBOOT,$@)" ] || \
697 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
698 $(XECHO) "... booting from 8-bit flash" ; \
699 }
700 @$(MKCONFIG) -a PM520 powerpc mpc5xxx pm520
701
702 smmaco4_config: unconfig
703 @$(MKCONFIG) -a smmaco4 powerpc mpc5xxx tqm5200 tqc
704
705 spieval_config: unconfig
706 @$(MKCONFIG) -a spieval powerpc mpc5xxx tqm5200 tqc
707
708 TB5200_B_config \
709 TB5200_config: unconfig
710 @mkdir -p $(obj)include
711 @[ -z "$(findstring _B,$@)" ] || \
712 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
713 $(XECHO) "... with MPC5200B processor" ; \
714 }
715 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
716
717 MINI5200_config \
718 EVAL5200_config \
719 TOP5200_config: unconfig
720 @mkdir -p $(obj)include
721 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
722 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
723
724 Total5200_config \
725 Total5200_lowboot_config \
726 Total5200_Rev2_config \
727 Total5200_Rev2_lowboot_config: unconfig
728 @mkdir -p $(obj)include
729 @mkdir -p $(obj)board/total5200
730 @[ -n "$(findstring Rev,$@)" ] || \
731 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
732 $(XECHO) "... revision 1 board" ; \
733 }
734 @[ -z "$(findstring Rev2_,$@)" ] || \
735 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
736 $(XECHO) "... revision 2 board" ; \
737 }
738 @[ -z "$(findstring lowboot_,$@)" ] || \
739 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
740 $(XECHO) "... with lowboot configuration" ; \
741 }
742 @$(MKCONFIG) -a Total5200 powerpc mpc5xxx total5200
743
744 cam5200_config \
745 cam5200_niosflash_config \
746 fo300_config \
747 MiniFAP_config \
748 TQM5200S_config \
749 TQM5200S_HIGHBOOT_config \
750 TQM5200_B_config \
751 TQM5200_B_HIGHBOOT_config \
752 TQM5200_config \
753 TQM5200_STK100_config: unconfig
754 @mkdir -p $(obj)include
755 @mkdir -p $(obj)board/tqc/tqm5200
756 @[ -z "$(findstring cam5200,$@)" ] || \
757 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
758 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
759 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
760 $(XECHO) "... TQM5200S on Cam5200" ; \
761 }
762 @[ -z "$(findstring niosflash,$@)" ] || \
763 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
764 $(XECHO) "... with NIOS flash driver" ; \
765 }
766 @[ -z "$(findstring fo300,$@)" ] || \
767 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
768 $(XECHO) "... TQM5200 on FO300" ; \
769 }
770 @[ -z "$(findstring MiniFAP,$@)" ] || \
771 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
772 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
773 }
774 @[ -z "$(findstring STK100,$@)" ] || \
775 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
776 $(XECHO) "... on a STK52XX.100 base board" ; \
777 }
778 @[ -z "$(findstring TQM5200_B,$@)" ] || \
779 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
780 }
781 @[ -z "$(findstring TQM5200S,$@)" ] || \
782 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
783 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
784 }
785 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
786 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
787 }
788 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
789
790 uc101_config: unconfig
791 @$(MKCONFIG) uc101 powerpc mpc5xxx uc101
792
793 v38b_config: unconfig
794 @$(MKCONFIG) -a v38b powerpc mpc5xxx v38b
795
796 #########################################################################
797 ## MPC512x Systems
798 #########################################################################
799
800 aria_config: unconfig
801 @$(MKCONFIG) -a aria powerpc mpc512x aria davedenx
802
803 mecp5123_config: unconfig
804 @$(MKCONFIG) -a mecp5123 powerpc mpc512x mecp5123 esd
805
806 mpc5121ads_config \
807 mpc5121ads_rev2_config \
808 : unconfig
809 @mkdir -p $(obj)include
810 @if [ "$(findstring rev2,$@)" ] ; then \
811 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
812 fi
813 @$(MKCONFIG) -a mpc5121ads powerpc mpc512x mpc5121ads freescale
814
815 pdm360ng_config: unconfig
816 @$(MKCONFIG) -a pdm360ng powerpc mpc512x pdm360ng
817
818 #########################################################################
819 ## MPC8xx Systems
820 #########################################################################
821
822 Adder_config \
823 Adder87x_config \
824 AdderII_config \
825 : unconfig
826 @mkdir -p $(obj)include
827 $(if $(findstring AdderII,$@), \
828 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
829 @$(MKCONFIG) -a Adder powerpc mpc8xx adder
830
831 AdderUSB_config: unconfig
832 @$(MKCONFIG) -a AdderUSB powerpc mpc8xx adder
833
834 ADS860_config \
835 FADS823_config \
836 FADS850SAR_config \
837 MPC86xADS_config \
838 MPC885ADS_config \
839 FADS860T_config: unconfig
840 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx fads
841
842 AMX860_config : unconfig
843 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx amx860 westel
844
845 c2mon_config: unconfig
846 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx c2mon
847
848 CCM_config: unconfig
849 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx CCM siemens
850
851 cogent_mpc8xx_config: unconfig
852 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx cogent
853
854 ELPT860_config: unconfig
855 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx elpt860 LEOX
856
857 EP88x_config: unconfig
858 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx ep88x
859
860 ESTEEM192E_config: unconfig
861 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx esteem192e
862
863 ETX094_config : unconfig
864 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx etx094
865
866 FLAGADM_config: unconfig
867 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx flagadm
868
869 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
870
871 GEN860T_SC_config \
872 GEN860T_config: unconfig
873 @mkdir -p $(obj)include
874 @[ -z "$(findstring _SC,$@)" ] || \
875 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
876 $(XECHO) "With reduced H/W feature set (SC)..." ; \
877 }
878 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) powerpc mpc8xx gen860t
879
880 GENIETV_config: unconfig
881 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx genietv
882
883 GTH_config: unconfig
884 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx gth
885
886 hermes_config : unconfig
887 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx hermes
888
889 HMI10_config : unconfig
890 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx tqm8xx tqc
891
892 IAD210_config: unconfig
893 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx IAD210 siemens
894
895 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
896
897 ICU862_100MHz_config \
898 ICU862_config: unconfig
899 @mkdir -p $(obj)include
900 @[ -z "$(findstring _100MHz,$@)" ] || \
901 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
902 $(XECHO) "... with 100MHz system clock" ; \
903 }
904 @$(MKCONFIG) -a $(call xtract_ICU862,$@) powerpc mpc8xx icu862
905
906 IP860_config : unconfig
907 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx ip860
908
909 IVML24_256_config \
910 IVML24_128_config \
911 IVML24_config: unconfig
912 @mkdir -p $(obj)include
913 @[ -z "$(findstring IVML24_config,$@)" ] || \
914 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
915 }
916 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
917 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
918 }
919 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
920 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
921 }
922 @$(MKCONFIG) -a IVML24 powerpc mpc8xx ivm
923
924 IVMS8_256_config \
925 IVMS8_128_config \
926 IVMS8_config: unconfig
927 @mkdir -p $(obj)include
928 @[ -z "$(findstring IVMS8_config,$@)" ] || \
929 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
930 }
931 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
932 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
933 }
934 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
935 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
936 }
937 @$(MKCONFIG) -a IVMS8 powerpc mpc8xx ivm
938
939 kmsupx4_config: unconfig
940 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx km8xx keymile
941
942 KUP4K_config : unconfig
943 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx kup4k kup
944
945 KUP4X_config : unconfig
946 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx kup4x kup
947
948 LANTEC_config : unconfig
949 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx lantec
950
951 lwmon_config: unconfig
952 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx lwmon
953
954 MBX_config \
955 MBX860T_config: unconfig
956 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx mbx8xx
957
958 mgsuvd_config: unconfig
959 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx km8xx keymile
960
961 MHPC_config: unconfig
962 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx mhpc eltec
963
964 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
965
966 NETVIA_V2_config \
967 NETVIA_config: unconfig
968 @mkdir -p $(obj)include
969 @[ -z "$(findstring NETVIA_config,$@)" ] || \
970 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
971 $(XECHO) "... Version 1" ; \
972 }
973 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
974 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
975 $(XECHO) "... Version 2" ; \
976 }
977 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) powerpc mpc8xx netvia
978
979 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
980
981 NETPHONE_V2_config \
982 NETPHONE_config: unconfig
983 @mkdir -p $(obj)include
984 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
985 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
986 }
987 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
988 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
989 }
990 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) powerpc mpc8xx netphone
991
992 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
993
994 NETTA_ISDN_6412_SWAPHOOK_config \
995 NETTA_ISDN_SWAPHOOK_config \
996 NETTA_6412_SWAPHOOK_config \
997 NETTA_SWAPHOOK_config \
998 NETTA_ISDN_6412_config \
999 NETTA_ISDN_config \
1000 NETTA_6412_config \
1001 NETTA_config: unconfig
1002 @mkdir -p $(obj)include
1003 @[ -z "$(findstring ISDN_,$@)" ] || \
1004 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
1005 }
1006 @[ -n "$(findstring ISDN_,$@)" ] || \
1007 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
1008 }
1009 @[ -z "$(findstring 6412_,$@)" ] || \
1010 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
1011 }
1012 @[ -n "$(findstring 6412_,$@)" ] || \
1013 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
1014 }
1015 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
1016 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
1017 }
1018 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1019 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
1020 }
1021 @$(MKCONFIG) -a $(call xtract_NETTA,$@) powerpc mpc8xx netta
1022
1023 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
1024
1025 NETTA2_V2_config \
1026 NETTA2_config: unconfig
1027 @mkdir -p $(obj)include
1028 @[ -z "$(findstring NETTA2_config,$@)" ] || \
1029 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
1030 }
1031 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1032 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
1033 }
1034 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) powerpc mpc8xx netta2
1035
1036 NC650_Rev1_config \
1037 NC650_Rev2_config \
1038 CP850_config: unconfig
1039 @mkdir -p $(obj)include
1040 @[ -z "$(findstring CP850,$@)" ] || \
1041 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1042 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1043 }
1044 @[ -z "$(findstring Rev1,$@)" ] || \
1045 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1046 }
1047 @[ -z "$(findstring Rev2,$@)" ] || \
1048 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1049 }
1050 @$(MKCONFIG) -a NC650 powerpc mpc8xx nc650
1051
1052 NX823_config: unconfig
1053 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx nx823
1054
1055 pcu_e_config: unconfig
1056 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx pcu_e siemens
1057
1058 QS850_config: unconfig
1059 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs850 snmc
1060
1061 QS823_config: unconfig
1062 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs850 snmc
1063
1064 QS860T_config: unconfig
1065 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs860t snmc
1066
1067 quantum_config: unconfig
1068 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx quantum
1069
1070 R360MPI_config: unconfig
1071 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx r360mpi
1072
1073 RBC823_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx rbc823
1075
1076 RPXClassic_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RPXClassic
1078
1079 RPXlite_config: unconfig
1080 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RPXlite
1081
1082 RPXlite_DW_64_config \
1083 RPXlite_DW_LCD_config \
1084 RPXlite_DW_64_LCD_config \
1085 RPXlite_DW_NVRAM_config \
1086 RPXlite_DW_NVRAM_64_config \
1087 RPXlite_DW_NVRAM_LCD_config \
1088 RPXlite_DW_NVRAM_64_LCD_config \
1089 RPXlite_DW_config: unconfig
1090 @mkdir -p $(obj)include
1091 @[ -z "$(findstring _64,$@)" ] || \
1092 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1093 $(XECHO) "... with 64MHz system clock ..."; \
1094 }
1095 @[ -z "$(findstring _LCD,$@)" ] || \
1096 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1097 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1098 $(XECHO) "... with LCD display ..."; \
1099 }
1100 @[ -z "$(findstring _NVRAM,$@)" ] || \
1101 { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1102 $(XECHO) "... with ENV in NVRAM ..."; \
1103 }
1104 @$(MKCONFIG) -a RPXlite_DW powerpc mpc8xx RPXlite_dw
1105
1106 rmu_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx rmu
1108
1109 RRvision_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RRvision
1111
1112 RRvision_LCD_config: unconfig
1113 @mkdir -p $(obj)include
1114 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1115 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1116 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
1117
1118 SM850_config : unconfig
1119 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx tqm8xx tqc
1120
1121 spc1920_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx spc1920
1123
1124 SPD823TS_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx spd8xx
1126
1127 stxxtc_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx stxxtc stx
1129
1130 svm_sc8xx_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx svm_sc8xx
1132
1133 SXNI855T_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx sixnet
1135
1136 # EMK MPC8xx based modules
1137 TOP860_config: unconfig
1138 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx top860 emk
1139
1140 # Play some tricks for configuration selection
1141 # Only 855 and 860 boards may come with FEC
1142 # and only 823 boards may have LCD support
1143 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1144
1145 FPS850L_config \
1146 FPS860L_config \
1147 NSCU_config \
1148 TQM823L_config \
1149 TQM823L_LCD_config \
1150 TQM850L_config \
1151 TQM855L_config \
1152 TQM860L_config \
1153 TQM862L_config \
1154 TQM823M_config \
1155 TQM850M_config \
1156 TQM855M_config \
1157 TQM860M_config \
1158 TQM862M_config \
1159 TQM866M_config \
1160 TQM885D_config \
1161 TK885D_config \
1162 virtlab2_config: unconfig
1163 @mkdir -p $(obj)include
1164 @[ -z "$(findstring _LCD,$@)" ] || \
1165 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1166 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1167 $(XECHO) "... with LCD display" ; \
1168 }
1169 @$(MKCONFIG) -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
1170
1171 TTTech_config: unconfig
1172 @mkdir -p $(obj)include
1173 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1174 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1175 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
1176
1177 uc100_config : unconfig
1178 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx uc100
1179
1180 v37_config: unconfig
1181 @mkdir -p $(obj)include
1182 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1183 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1184 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx v37
1185
1186 wtk_config: unconfig
1187 @mkdir -p $(obj)include
1188 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1189 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1190 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
1191
1192 #########################################################################
1193 ## PPC4xx Systems
1194 #########################################################################
1195 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1196
1197 acadia_config: unconfig
1198 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx acadia amcc
1199
1200 acadia_nand_config: unconfig
1201 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1202 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1203 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1204 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
1205 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1206 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1207
1208 ADCIOP_config: unconfig
1209 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx adciop esd
1210
1211 alpr_config: unconfig
1212 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx alpr prodrive
1213
1214 AP1000_config:unconfig
1215 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ap1000 amirix
1216
1217 APC405_config: unconfig
1218 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx apc405 esd
1219
1220 AR405_config: unconfig
1221 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ar405 esd
1222
1223 ASH405_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ash405 esd
1225
1226 bamboo_config: unconfig
1227 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx bamboo amcc
1228
1229 bamboo_nand_config: unconfig
1230 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1231 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1232 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1233 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
1234 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1235 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1236
1237 bubinga_config: unconfig
1238 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx bubinga amcc
1239
1240 CANBT_config: unconfig
1241 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx canbt esd
1242
1243 # Arches, Canyonlands & Glacier use different U-Boot images
1244 arches_config \
1245 canyonlands_config \
1246 glacier_config: unconfig
1247 @mkdir -p $(obj)include
1248 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1249 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1250 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
1251
1252 canyonlands_nand_config \
1253 glacier_nand_config: unconfig
1254 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1255 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1256 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1257 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1258 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1259 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
1260 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1261 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1262
1263 CATcenter_config \
1264 CATcenter_25_config \
1265 CATcenter_33_config: unconfig
1266 @mkdir -p $(obj)include
1267 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1268 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1269 @[ -z "$(findstring _25,$@)" ] || \
1270 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1271 $(XECHO) "SysClk = 25MHz" ; \
1272 }
1273 @[ -z "$(findstring _33,$@)" ] || \
1274 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1275 $(XECHO) "SysClk = 33MHz" ; \
1276 }
1277 @$(MKCONFIG) -a $(call xtract_4xx,$@) powerpc ppc4xx PPChameleonEVB dave
1278
1279 CMS700_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cms700 esd
1281
1282 CPCI2DP_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpci2dp esd
1284
1285 CPCI405_config \
1286 CPCI4052_config \
1287 CPCI405DT_config \
1288 CPCI405AB_config: unconfig
1289 @mkdir -p $(obj)board/esd/cpci405
1290 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpci405 esd
1291
1292 CPCIISER4_config: unconfig
1293 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpciiser4 esd
1294
1295 CRAYL1_config: unconfig
1296 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx L1 cray
1297
1298 csb272_config: unconfig
1299 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx csb272
1300
1301 csb472_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx csb472
1303
1304 DASA_SIM_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dasa_sim esd
1306
1307 dlvision_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dlvision gdsys
1309
1310 DP405_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dp405 esd
1312
1313 DU405_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx du405 esd
1315
1316 DU440_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx du440 esd
1318
1319 ebony_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ebony amcc
1321
1322 ERIC_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx eric
1324
1325 fx12mm_flash_config: unconfig
1326 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1327 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1328 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1329 > $(obj)board/avnet/fx12mm/config.tmp
1330 @echo "TEXT_BASE := 0xFFCB0000" \
1331 >> $(obj)board/avnet/fx12mm/config.tmp
1332 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
1333
1334 fx12mm_config: unconfig
1335 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1336 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1337 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1338 > $(obj)board/avnet/fx12mm/config.tmp
1339 @echo "TEXT_BASE := 0x03000000" \
1340 >> $(obj)board/avnet/fx12mm/config.tmp
1341 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
1342
1343 G2000_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx g2000
1345
1346 gdppc440etx_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx gdppc440etx gdsys
1348
1349 hcu4_config: unconfig
1350 @mkdir -p $(obj)board/netstal/common
1351 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hcu4 netstal
1352
1353 hcu5_config: unconfig
1354 @mkdir -p $(obj)board/netstal/common
1355 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hcu5 netstal
1356
1357 HH405_config: unconfig
1358 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hh405 esd
1359
1360 HUB405_config: unconfig
1361 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hub405 esd
1362
1363 icon_config: unconfig
1364 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx icon mosaixtech
1365
1366 # Compact-Center(codename intip) & DevCon-Center use different U-Boot images
1367 intip_config \
1368 devconcenter_config: unconfig
1369 @mkdir -p $(obj)include
1370 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1371 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1372 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
1373
1374 JSE_config: unconfig
1375 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx jse
1376
1377 KAREF_config: unconfig
1378 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx karef sandburst
1379
1380 katmai_config: unconfig
1381 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx katmai amcc
1382
1383 # Kilauea & Haleakala images are identical (recognized via PVR)
1384 kilauea_config \
1385 haleakala_config: unconfig
1386 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
1387
1388 kilauea_nand_config \
1389 haleakala_nand_config: unconfig
1390 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1391 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1392 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1393 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
1394 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1395 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1396
1397 korat_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx korat
1399
1400 luan_config: unconfig
1401 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx luan amcc
1402
1403 lwmon5_config: unconfig
1404 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx lwmon5
1405
1406 makalu_config: unconfig
1407 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx makalu amcc
1408
1409 mcu25_config: unconfig
1410 @mkdir -p $(obj)board/netstal/common
1411 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx mcu25 netstal
1412
1413 METROBOX_config: unconfig
1414 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx metrobox sandburst
1415
1416 MIP405_config: unconfig
1417 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx mip405 mpl
1418
1419 MIP405T_config: unconfig
1420 @mkdir -p $(obj)include
1421 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1422 @$(XECHO) "Enable subset config for MIP405T"
1423 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
1424
1425 ML2_config: unconfig
1426 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ml2
1427
1428 ml507_flash_config: unconfig
1429 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1430 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1431 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1432 > $(obj)board/xilinx/ml507/config.tmp
1433 @echo "TEXT_BASE := 0xFE360000" \
1434 >> $(obj)board/xilinx/ml507/config.tmp
1435 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
1436
1437 ml507_config: unconfig
1438 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1439 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
1440 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1441 > $(obj)board/xilinx/ml507/config.tmp
1442 @echo "TEXT_BASE := 0x04000000" \
1443 >> $(obj)board/xilinx/ml507/config.tmp
1444 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
1445
1446 neo_config: unconfig
1447 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx neo gdsys
1448
1449 ocotea_config: unconfig
1450 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ocotea amcc
1451
1452 OCRTC_config \
1453 ORSG_config: unconfig
1454 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ocrtc esd
1455
1456 p3p440_config: unconfig
1457 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx p3p440 prodrive
1458
1459 PCI405_config: unconfig
1460 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pci405 esd
1461
1462 pcs440ep_config: unconfig
1463 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pcs440ep
1464
1465 PIP405_config: unconfig
1466 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pip405 mpl
1467
1468 PLU405_config: unconfig
1469 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx plu405 esd
1470
1471 PMC405_config: unconfig
1472 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc405 esd
1473
1474 PMC405DE_config: unconfig
1475 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc405de esd
1476
1477 PMC440_config: unconfig
1478 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc440 esd
1479
1480 PPChameleonEVB_config \
1481 PPChameleonEVB_BA_25_config \
1482 PPChameleonEVB_ME_25_config \
1483 PPChameleonEVB_HI_25_config \
1484 PPChameleonEVB_BA_33_config \
1485 PPChameleonEVB_ME_33_config \
1486 PPChameleonEVB_HI_33_config: unconfig
1487 @mkdir -p $(obj)include
1488 @[ -z "$(findstring EVB_BA,$@)" ] || \
1489 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1490 $(XECHO) "... BASIC model" ; \
1491 }
1492 @[ -z "$(findstring EVB_ME,$@)" ] || \
1493 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1494 $(XECHO) "... MEDIUM model" ; \
1495 }
1496 @[ -z "$(findstring EVB_HI,$@)" ] || \
1497 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1498 $(XECHO) "... HIGH-END model" ; \
1499 }
1500 @[ -z "$(findstring _25,$@)" ] || \
1501 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1502 $(XECHO) "SysClk = 25MHz" ; \
1503 }
1504 @[ -z "$(findstring _33,$@)" ] || \
1505 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1506 $(XECHO) "SysClk = 33MHz" ; \
1507 }
1508 @$(MKCONFIG) -a $(call xtract_4xx,$@) powerpc ppc4xx PPChameleonEVB dave
1509
1510 quad100hd_config: unconfig
1511 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx quad100hd
1512
1513 redwood_config: unconfig
1514 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx redwood amcc
1515
1516 Sam460ex_config: unconfig
1517 @mkdir -p $(obj)include
1518 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1519 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1520 @$(MKCONFIG) -n $@ -a Sam460ex powerpc ppc4xx Sam460ex ACube
1521
1522 sbc405_config: unconfig
1523 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx sbc405
1524
1525 sc3_config:unconfig
1526 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx sc3
1527
1528 sequoia_config \
1529 rainier_config: unconfig
1530 @mkdir -p $(obj)include
1531 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1532 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1533 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1534
1535 sequoia_nand_config \
1536 rainier_nand_config: unconfig
1537 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1538 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1539 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1540 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1541 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1542 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1543 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1544 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1545
1546 sequoia_ramboot_config \
1547 rainier_ramboot_config: unconfig
1548 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1549 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1550 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1551 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1552 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
1553 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1554 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1555 $(obj)board/amcc/sequoia/config.tmp
1556
1557 taihu_config: unconfig
1558 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx taihu amcc
1559
1560 taishan_config: unconfig
1561 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx taishan amcc
1562
1563 v5fx30teval_config: unconfig
1564 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1565 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1566 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1567 > $(obj)board/avnet/v5fx30teval/config.tmp
1568 @echo "TEXT_BASE := 0x03000000" \
1569 >> $(obj)board/avnet/v5fx30teval/config.tmp
1570 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
1571
1572 v5fx30teval_flash_config: unconfig
1573 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1574 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1575 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1576 > $(obj)board/avnet/v5fx30teval/config.tmp
1577 @echo "TEXT_BASE := 0xFF1C0000" \
1578 >> $(obj)board/avnet/v5fx30teval/config.tmp
1579 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
1580
1581 VOH405_config: unconfig
1582 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx voh405 esd
1583
1584 VOM405_config: unconfig
1585 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx vom405 esd
1586
1587 W7OLMC_config \
1588 W7OLMG_config: unconfig
1589 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx w7o
1590
1591 # Walnut & Sycamore images are identical (recognized via PVR)
1592 walnut_config \
1593 sycamore_config: unconfig
1594 @$(MKCONFIG) -n $@ -a walnut powerpc ppc4xx walnut amcc
1595
1596 WUH405_config: unconfig
1597 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx wuh405 esd
1598
1599 xilinx-ppc405-generic_flash_config: unconfig
1600 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1601 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1602 > $(obj)board/xilinx/ppc405-generic/config.tmp
1603 @echo "TEXT_BASE := 0xFE360000" \
1604 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1605 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
1606
1607 xilinx-ppc405-generic_config: unconfig
1608 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1609 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1610 > $(obj)board/xilinx/ppc405-generic/config.tmp
1611 @echo "TEXT_BASE := 0x04000000" \
1612 >> $(obj)board/xilinx/ppc405-generic/config.tmp
1613 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
1614
1615 xilinx-ppc440-generic_flash_config: unconfig
1616 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1617 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1618 > $(obj)board/xilinx/ppc440-generic/config.tmp
1619 @echo "TEXT_BASE := 0xFE360000" \
1620 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1621 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
1622
1623 xilinx-ppc440-generic_config: unconfig
1624 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1625 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1626 > $(obj)board/xilinx/ppc440-generic/config.tmp
1627 @echo "TEXT_BASE := 0x04000000" \
1628 >> $(obj)board/xilinx/ppc440-generic/config.tmp
1629 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
1630
1631 XPEDITE1000_config: unconfig
1632 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx xpedite1000 xes
1633
1634 yosemite_config \
1635 yellowstone_config: unconfig
1636 @mkdir -p $(obj)include
1637 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1638 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1639 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
1640
1641 yucca_config: unconfig
1642 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx yucca amcc
1643
1644 zeus_config: unconfig
1645 @$(MKCONFIG) $(@:_config=) powerpc ppc4xx zeus
1646
1647 #########################################################################
1648 ## MPC8220 Systems
1649 #########################################################################
1650
1651 Alaska8220_config \
1652 Yukon8220_config: unconfig
1653 @$(MKCONFIG) $(@:_config=) powerpc mpc8220 alaska
1654
1655 sorcery_config: unconfig
1656 @$(MKCONFIG) $(@:_config=) powerpc mpc8220 sorcery
1657
1658 #########################################################################
1659 ## MPC824x Systems
1660 #########################################################################
1661 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1662
1663 A3000_config: unconfig
1664 @$(MKCONFIG) $(@:_config=) powerpc mpc824x a3000
1665
1666 barco_config: unconfig
1667 @$(MKCONFIG) $(@:_config=) powerpc mpc824x barco
1668
1669 BMW_config: unconfig
1670 @$(MKCONFIG) $(@:_config=) powerpc mpc824x bmw
1671
1672 CPC45_config \
1673 CPC45_ROMBOOT_config: unconfig
1674 @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc824x cpc45
1675 @cd $(obj)include ; \
1676 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1677 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1678 $(XECHO) "... booting from 8-bit flash" ; \
1679 else \
1680 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1681 $(XECHO) "... booting from 64-bit flash" ; \
1682 fi; \
1683 echo "export CONFIG_BOOT_ROM" >> config.mk;
1684
1685 CU824_config: unconfig
1686 @$(MKCONFIG) $(@:_config=) powerpc mpc824x cu824
1687
1688 debris_config: unconfig
1689 @$(MKCONFIG) $(@:_config=) powerpc mpc824x debris etin
1690
1691 eXalion_config: unconfig
1692 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
1693
1694 HIDDEN_DRAGON_config: unconfig
1695 @$(MKCONFIG) $(@:_config=) powerpc mpc824x hidden_dragon
1696
1697 kvme080_config: unconfig
1698 @$(MKCONFIG) $(@:_config=) powerpc mpc824x kvme080 etin
1699
1700 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1701 # time permits.
1702 #linkstation_HDLAN_config \
1703 # Remove this line when HDLAN is fixed
1704 linkstation_HGLAN_config: unconfig
1705 @mkdir -p $(obj)include
1706 @case $@ in \
1707 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1708 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1709 esac
1710 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
1711
1712 MOUSSE_config: unconfig
1713 @$(MKCONFIG) $(@:_config=) powerpc mpc824x mousse
1714
1715 MUSENKI_config: unconfig
1716 @$(MKCONFIG) $(@:_config=) powerpc mpc824x musenki
1717
1718 MVBLUE_config: unconfig
1719 @$(MKCONFIG) $(@:_config=) powerpc mpc824x mvblue
1720
1721 OXC_config: unconfig
1722 @$(MKCONFIG) $(@:_config=) powerpc mpc824x oxc
1723
1724 PN62_config: unconfig
1725 @$(MKCONFIG) $(@:_config=) powerpc mpc824x pn62
1726
1727 Sandpoint8240_config: unconfig
1728 @$(MKCONFIG) $(@:_config=) powerpc mpc824x sandpoint
1729
1730 Sandpoint8245_config: unconfig
1731 @$(MKCONFIG) $(@:_config=) powerpc mpc824x sandpoint
1732
1733 sbc8240_config: unconfig
1734 @$(MKCONFIG) $(@:_config=) powerpc mpc824x sbc8240
1735
1736 utx8245_config: unconfig
1737 @$(MKCONFIG) $(@:_config=) powerpc mpc824x utx8245
1738
1739 #########################################################################
1740 ## MPC8260 Systems
1741 #########################################################################
1742
1743 atc_config: unconfig
1744 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 atc
1745
1746 cogent_mpc8260_config: unconfig
1747 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
1748
1749 CPU86_config \
1750 CPU86_ROMBOOT_config: unconfig
1751 @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc8260 cpu86
1752 @cd $(obj)include ; \
1753 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1754 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1755 $(XECHO) "... booting from 8-bit flash" ; \
1756 else \
1757 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1758 $(XECHO) "... booting from 64-bit flash" ; \
1759 fi; \
1760 echo "export CONFIG_BOOT_ROM" >> config.mk;
1761
1762 CPU87_config \
1763 CPU87_ROMBOOT_config: unconfig
1764 @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc8260 cpu87
1765 @cd $(obj)include ; \
1766 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1767 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1768 $(XECHO) "... booting from 8-bit flash" ; \
1769 else \
1770 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1771 $(XECHO) "... booting from 64-bit flash" ; \
1772 fi; \
1773 echo "export CONFIG_BOOT_ROM" >> config.mk;
1774
1775 ep8248_config \
1776 ep8248E_config : unconfig
1777 @$(MKCONFIG) ep8248 powerpc mpc8260 ep8248
1778
1779 ep8260_config: unconfig
1780 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ep8260
1781
1782 ep82xxm_config: unconfig
1783 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ep82xxm
1784
1785 gw8260_config: unconfig
1786 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 gw8260
1787
1788 hymod_config: unconfig
1789 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 hymod
1790
1791 IDS8247_config: unconfig
1792 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ids8247
1793
1794 IPHASE4539_config: unconfig
1795 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 iphase4539
1796
1797 ISPAN_config \
1798 ISPAN_REVB_config: unconfig
1799 @mkdir -p $(obj)include
1800 @if [ "$(findstring _REVB_,$@)" ] ; then \
1801 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1802 fi
1803 @$(MKCONFIG) -a ISPAN powerpc mpc8260 ispan
1804
1805 mgcoge_config : unconfig
1806 @$(MKCONFIG) mgcoge powerpc mpc8260 mgcoge keymile
1807
1808 MPC8260ADS_config \
1809 MPC8260ADS_lowboot_config \
1810 MPC8260ADS_33MHz_config \
1811 MPC8260ADS_33MHz_lowboot_config \
1812 MPC8260ADS_40MHz_config \
1813 MPC8260ADS_40MHz_lowboot_config \
1814 MPC8272ADS_config \
1815 MPC8272ADS_lowboot_config \
1816 PQ2FADS_config \
1817 PQ2FADS_lowboot_config \
1818 PQ2FADS-VR_config \
1819 PQ2FADS-VR_lowboot_config \
1820 PQ2FADS-ZU_config \
1821 PQ2FADS-ZU_lowboot_config \
1822 PQ2FADS-ZU_66MHz_config \
1823 PQ2FADS-ZU_66MHz_lowboot_config \
1824 : unconfig
1825 @mkdir -p $(obj)include
1826 @mkdir -p $(obj)board/freescale/mpc8260ads
1827 $(if $(findstring PQ2FADS,$@), \
1828 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1829 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1830 $(if $(findstring MHz,$@), \
1831 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1832 $(if $(findstring VR,$@), \
1833 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1834 @[ -z "$(findstring lowboot_,$@)" ] || \
1835 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1836 $(XECHO) "... with lowboot configuration" ; \
1837 }
1838 @$(MKCONFIG) -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
1839
1840 MPC8266ADS_config: unconfig
1841 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 mpc8266ads freescale
1842
1843 muas3001_dev_config \
1844 muas3001_config : unconfig
1845 @mkdir -p $(obj)include
1846 @mkdir -p $(obj)board/muas3001
1847 @if [ "$(findstring dev,$@)" ] ; then \
1848 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1849 fi
1850 @$(MKCONFIG) -a muas3001 powerpc mpc8260 muas3001
1851
1852 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1853 PM825_config \
1854 PM825_ROMBOOT_config \
1855 PM825_BIGFLASH_config \
1856 PM825_ROMBOOT_BIGFLASH_config \
1857 PM826_config \
1858 PM826_ROMBOOT_config \
1859 PM826_BIGFLASH_config \
1860 PM826_ROMBOOT_BIGFLASH_config: unconfig
1861 @mkdir -p $(obj)include
1862 @mkdir -p $(obj)board/pm826
1863 @if [ "$(findstring PM825_,$@)" ] ; then \
1864 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1865 else \
1866 >$(obj)include/config.h ; \
1867 fi
1868 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1869 $(XECHO) "... booting from 8-bit flash" ; \
1870 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1871 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1872 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1873 $(XECHO) "... with 32 MB Flash" ; \
1874 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1875 fi; \
1876 else \
1877 $(XECHO) "... booting from 64-bit flash" ; \
1878 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1879 $(XECHO) "... with 32 MB Flash" ; \
1880 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1881 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1882 else \
1883 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1884 fi; \
1885 fi
1886 @$(MKCONFIG) -a PM826 powerpc mpc8260 pm826
1887
1888 PM828_config \
1889 PM828_PCI_config \
1890 PM828_ROMBOOT_config \
1891 PM828_ROMBOOT_PCI_config: unconfig
1892 @mkdir -p $(obj)include
1893 @mkdir -p $(obj)board/pm826
1894 @if [ "$(findstring _PCI_,$@)" ] ; then \
1895 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1896 $(XECHO) "... with PCI enabled" ; \
1897 fi
1898 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1899 $(XECHO) "... booting from 8-bit flash" ; \
1900 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1901 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1902 fi
1903 @$(MKCONFIG) -a PM828 powerpc mpc8260 pm828
1904
1905 ppmc8260_config: unconfig
1906 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ppmc8260
1907
1908 Rattler8248_config \
1909 Rattler_config: unconfig
1910 @mkdir -p $(obj)include
1911 $(if $(findstring 8248,$@), \
1912 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1913 @$(MKCONFIG) -a Rattler powerpc mpc8260 rattler
1914
1915 RPXsuper_config: unconfig
1916 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 rpxsuper
1917
1918 rsdproto_config: unconfig
1919 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 rsdproto
1920
1921 sacsng_config: unconfig
1922 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 sacsng
1923
1924 sbc8260_config: unconfig
1925 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 sbc8260
1926
1927 SCM_config: unconfig
1928 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 SCM siemens
1929
1930 TQM8255_AA_config \
1931 TQM8260_AA_config \
1932 TQM8260_AB_config \
1933 TQM8260_AC_config \
1934 TQM8260_AD_config \
1935 TQM8260_AE_config \
1936 TQM8260_AF_config \
1937 TQM8260_AG_config \
1938 TQM8260_AH_config \
1939 TQM8260_AI_config \
1940 TQM8265_AA_config: unconfig
1941 @mkdir -p $(obj)include
1942 @case "$@" in \
1943 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1944 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1945 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1946 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1947 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1948 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1949 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1950 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1951 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1952 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1953 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1954 esac; \
1955 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1956 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1957 fi; \
1958 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1959 echo "... with $${CFREQ}MHz system clock" ; \
1960 if [ "$${CACHE}" = "yes" ] ; then \
1961 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1962 $(XECHO) "... with L2 Cache support" ; \
1963 else \
1964 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1965 $(XECHO) "... without L2 Cache support" ; \
1966 fi; \
1967 if [ "$${BMODE}" = "60x" ] ; then \
1968 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1969 $(XECHO) "... with 60x Bus Mode" ; \
1970 else \
1971 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1972 $(XECHO) "... without 60x Bus Mode" ; \
1973 fi
1974 @$(MKCONFIG) -a TQM8260 powerpc mpc8260 tqm8260 tqc
1975
1976 TQM8272_config: unconfig
1977 @$(MKCONFIG) TQM8272 powerpc mpc8260 tqm8272 tqc
1978
1979 VoVPN-GW_66MHz_config \
1980 VoVPN-GW_100MHz_config: unconfig
1981 @mkdir -p $(obj)include
1982 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1983 @$(MKCONFIG) -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
1984
1985 ZPC1900_config: unconfig
1986 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 zpc1900
1987
1988 #########################################################################
1989 ## Coldfire
1990 #########################################################################
1991
1992 astro_mcf5373l_config \
1993 astro_mcf5373l_RAM_config : unconfig
1994 @$(MKCONFIG) -t $(@:_config=) astro_mcf5373l m68k mcf532x mcf5373l astro
1995
1996 M5208EVBE_config : unconfig
1997 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5208evbe freescale
1998
1999 M52277EVB_config \
2000 M52277EVB_spansion_config \
2001 M52277EVB_stmicro_config : unconfig
2002 @case "$@" in \
2003 M52277EVB_config) FLASH=SPANSION;; \
2004 M52277EVB_spansion_config) FLASH=SPANSION;; \
2005 M52277EVB_stmicro_config) FLASH=STMICRO;; \
2006 esac; \
2007 if [ "$${FLASH}" = "SPANSION" ] ; then \
2008 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
2009 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2010 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
2011 $(XECHO) "... with SPANSION boot..." ; \
2012 fi; \
2013 if [ "$${FLASH}" = "STMICRO" ] ; then \
2014 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2015 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2016 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2017 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
2018 $(XECHO) "... with ST Micro boot..." ; \
2019 fi
2020 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
2021
2022 M5235EVB_config \
2023 M5235EVB_Flash16_config \
2024 M5235EVB_Flash32_config: unconfig
2025 @case "$@" in \
2026 M5235EVB_config) FLASH=16;; \
2027 M5235EVB_Flash16_config) FLASH=16;; \
2028 M5235EVB_Flash32_config) FLASH=32;; \
2029 esac; \
2030 if [ "$${FLASH}" != "16" ] ; then \
2031 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
2032 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
2033 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
2034 else \
2035 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
2036 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
2037 fi
2038 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
2039
2040 M5249EVB_config : unconfig
2041 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
2042
2043 M5253DEMO_config : unconfig
2044 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
2045
2046 M5253EVBE_config : unconfig
2047 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
2048
2049 cobra5272_config : unconfig
2050 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
2051
2052 EB+MCF-EV123_config : unconfig
2053 @mkdir -p $(obj)include
2054 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2055 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2056 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2057
2058 EB+MCF-EV123_internal_config : unconfig
2059 @mkdir -p $(obj)include
2060 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
2061 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2062 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
2063
2064 EP2500_config: unconfig
2065 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 ep2500 Mercury
2066
2067 idmr_config : unconfig
2068 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2069
2070 M5271EVB_config : unconfig
2071 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
2072
2073 M5272C3_config : unconfig
2074 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
2075
2076 M5275EVB_config : unconfig
2077 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2078
2079 M5282EVB_config : unconfig
2080 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
2081
2082 M53017EVB_config : unconfig
2083 @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2084
2085 M5329AFEE_config \
2086 M5329BFEE_config : unconfig
2087 @case "$@" in \
2088 M5329AFEE_config) NAND=0;; \
2089 M5329BFEE_config) NAND=16;; \
2090 esac; \
2091 if [ "$${NAND}" != "0" ] ; then \
2092 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2093 fi
2094 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
2095
2096 M5373EVB_config : unconfig
2097 @case "$@" in \
2098 M5373EVB_config) NAND=16;; \
2099 esac; \
2100 if [ "$${NAND}" != "0" ] ; then \
2101 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
2102 fi
2103 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2104
2105 M54451EVB_config \
2106 M54451EVB_stmicro_config : unconfig
2107 @case "$@" in \
2108 M54451EVB_config) FLASH=NOR;; \
2109 M54451EVB_stmicro_config) FLASH=STMICRO;; \
2110 esac; \
2111 if [ "$${FLASH}" = "NOR" ] ; then \
2112 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2113 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2114 $(XECHO) "... with NOR boot..." ; \
2115 fi; \
2116 if [ "$${FLASH}" = "STMICRO" ] ; then \
2117 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2118 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2119 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
2120 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
2121 $(XECHO) "... with ST Micro boot..." ; \
2122 fi; \
2123 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
2124 @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
2125
2126 M54455EVB_config \
2127 M54455EVB_atmel_config \
2128 M54455EVB_intel_config \
2129 M54455EVB_a33_config \
2130 M54455EVB_a66_config \
2131 M54455EVB_i33_config \
2132 M54455EVB_i66_config \
2133 M54455EVB_stm33_config : unconfig
2134 @case "$@" in \
2135 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
2136 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
2137 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
2138 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
2139 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
2140 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
2141 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
2142 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
2143 esac; \
2144 if [ "$${FLASH}" = "INTEL" ] ; then \
2145 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2146 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2147 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2148 $(XECHO) "... with INTEL boot..." ; \
2149 fi; \
2150 if [ "$${FLASH}" = "ATMEL" ] ; then \
2151 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
2152 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2153 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2154 $(XECHO) "... with ATMEL boot..." ; \
2155 fi; \
2156 if [ "$${FLASH}" = "STMICRO" ] ; then \
2157 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
2158 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
2159 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2160 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2161 $(XECHO) "... with ST Micro boot..." ; \
2162 fi; \
2163 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2164 $(XECHO) "... with $${FREQ}Hz input clock"
2165 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
2166
2167 M5475AFE_config \
2168 M5475BFE_config \
2169 M5475CFE_config \
2170 M5475DFE_config \
2171 M5475EFE_config \
2172 M5475FFE_config \
2173 M5475GFE_config : unconfig
2174 @case "$@" in \
2175 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2176 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2177 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2178 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2179 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2180 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2181 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2182 esac; \
2183 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
2184 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2185 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2186 if [ "$${RAM1}" != "0" ] ; then \
2187 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2188 fi; \
2189 if [ "$${CODE}" != "0" ] ; then \
2190 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2191 fi; \
2192 if [ "$${VID}" == "1" ] ; then \
2193 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2194 fi; \
2195 if [ "$${USB}" == "1" ] ; then \
2196 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2197 fi
2198 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
2199
2200 M5485AFE_config \
2201 M5485BFE_config \
2202 M5485CFE_config \
2203 M5485DFE_config \
2204 M5485EFE_config \
2205 M5485FFE_config \
2206 M5485GFE_config \
2207 M5485HFE_config : unconfig
2208 @case "$@" in \
2209 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2210 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
2211 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
2212 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
2213 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
2214 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
2215 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
2216 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
2217 esac; \
2218 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
2219 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
2220 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
2221 if [ "$${RAM1}" != "0" ] ; then \
2222 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
2223 fi; \
2224 if [ "$${CODE}" != "0" ] ; then \
2225 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
2226 fi; \
2227 if [ "$${VID}" == "1" ] ; then \
2228 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
2229 fi; \
2230 if [ "$${USB}" == "1" ] ; then \
2231 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
2232 fi
2233 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
2234
2235 TASREG_config : unconfig
2236 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2237
2238 #########################################################################
2239 ## MPC83xx Systems
2240 #########################################################################
2241
2242 kmeter1_config: unconfig
2243 @$(MKCONFIG) kmeter1 powerpc mpc83xx kmeter1 keymile
2244
2245 MPC8313ERDB_33_config \
2246 MPC8313ERDB_66_config \
2247 MPC8313ERDB_NAND_33_config \
2248 MPC8313ERDB_NAND_66_config: unconfig
2249 @mkdir -p $(obj)include
2250 @mkdir -p $(obj)board/freescale/mpc8313erdb
2251 @if [ "$(findstring _33_,$@)" ] ; then \
2252 $(XECHO) -n "...33M ..." ; \
2253 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
2254 fi ; \
2255 if [ "$(findstring _66_,$@)" ] ; then \
2256 $(XECHO) -n "...66M..." ; \
2257 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2258 fi ; \
2259 if [ "$(findstring _NAND_,$@)" ] ; then \
2260 $(XECHO) -n "...NAND..." ; \
2261 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2262 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
2263 fi ;
2264 @$(MKCONFIG) -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
2265 @if [ "$(findstring _NAND_,$@)" ] ; then \
2266 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
2267 fi ;
2268
2269 MPC8315ERDB_NAND_config \
2270 MPC8315ERDB_config: unconfig
2271 @$(MKCONFIG) -t $(@:_config=) MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
2272
2273 MPC8323ERDB_config: unconfig
2274 @$(MKCONFIG) -a MPC8323ERDB powerpc mpc83xx mpc8323erdb freescale
2275
2276 MPC832XEMDS_config \
2277 MPC832XEMDS_HOST_33_config \
2278 MPC832XEMDS_HOST_66_config \
2279 MPC832XEMDS_SLAVE_config \
2280 MPC832XEMDS_ATM_config: unconfig
2281 @mkdir -p $(obj)include
2282 @if [ "$(findstring _HOST_,$@)" ] ; then \
2283 $(XECHO) -n "... PCI HOST " ; \
2284 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2285 fi ; \
2286 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2287 $(XECHO) "...PCI SLAVE 66M" ; \
2288 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2289 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2290 fi ; \
2291 if [ "$(findstring _33_,$@)" ] ; then \
2292 $(XECHO) -n "...33M ..." ; \
2293 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2294 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2295 fi ; \
2296 if [ "$(findstring _66_,$@)" ] ; then \
2297 $(XECHO) -n "...66M..." ; \
2298 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2299 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2300 fi ; \
2301 if [ "$(findstring _ATM_,$@)" ] ; then \
2302 $(XECHO) -n "...ATM..." ; \
2303 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2304 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2305 fi ;
2306 @$(MKCONFIG) -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
2307
2308 MPC8349EMDS_config: unconfig
2309 @$(MKCONFIG) $(@:_config=) powerpc mpc83xx mpc8349emds freescale
2310
2311 MPC8349ITX_config \
2312 MPC8349ITX_LOWBOOT_config \
2313 MPC8349ITXGP_config: unconfig
2314 @mkdir -p $(obj)include
2315 @mkdir -p $(obj)board/freescale/mpc8349itx
2316 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2317 @if [ "$(findstring GP,$@)" ] ; then \
2318 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2319 fi
2320 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2321 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2322 fi
2323 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX powerpc mpc83xx mpc8349itx freescale
2324
2325 MPC8360EMDS_config \
2326 MPC8360EMDS_HOST_33_config \
2327 MPC8360EMDS_HOST_66_config \
2328 MPC8360EMDS_SLAVE_config \
2329 MPC8360EMDS_ATM_config: unconfig
2330 @mkdir -p $(obj)include
2331 @if [ "$(findstring _HOST_,$@)" ] ; then \
2332 $(XECHO) -n "... PCI HOST " ; \
2333 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2334 fi ; \
2335 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2336 $(XECHO) "...PCI SLAVE 66M" ; \
2337 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2338 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2339 fi ; \
2340 if [ "$(findstring _33_,$@)" ] ; then \
2341 $(XECHO) -n "...33M ..." ; \
2342 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2343 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2344 fi ; \
2345 if [ "$(findstring _66_,$@)" ] ; then \
2346 $(XECHO) -n "...66M..." ; \
2347 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2348 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2349 fi ; \
2350 if [ "$(findstring _ATM_,$@)" ] ; then \
2351 $(XECHO) -n "...ATM..." ; \
2352 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2353 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2354 fi ;
2355 @$(MKCONFIG) -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
2356
2357 MPC8360ERDK_33_config \
2358 MPC8360ERDK_66_config \
2359 MPC8360ERDK_config: unconfig
2360 @mkdir -p $(obj)include
2361 @if [ "$(findstring _33_,$@)" ] ; then \
2362 $(XECHO) -n "... CLKIN 33MHz " ; \
2363 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2364 fi ;
2365 @$(MKCONFIG) -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
2366
2367 MPC837XEMDS_config \
2368 MPC837XEMDS_HOST_config: unconfig
2369 @mkdir -p $(obj)include
2370 @if [ "$(findstring _HOST_,$@)" ] ; then \
2371 $(XECHO) -n "... PCI HOST " ; \
2372 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2373 fi ;
2374 @$(MKCONFIG) -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
2375
2376 MPC837XERDB_config: unconfig
2377 @$(MKCONFIG) -a MPC837XERDB powerpc mpc83xx mpc837xerdb freescale
2378
2379 MVBLM7_config: unconfig
2380 @$(MKCONFIG) $(@:_config=) powerpc mpc83xx mvblm7 matrix_vision
2381
2382 sbc8349_config \
2383 sbc8349_PCI_33_config \
2384 sbc8349_PCI_66_config: unconfig
2385 @$(MKCONFIG) -t $(@:_config=) sbc8349 powerpc mpc83xx sbc8349
2386
2387 SIMPC8313_LP_config \
2388 SIMPC8313_SP_config: unconfig
2389 @mkdir -p $(obj)include
2390 @mkdir -p $(obj)board/sheldon/simpc8313
2391 @if [ "$(findstring _LP_,$@)" ] ; then \
2392 $(XECHO) -n "...Large Page NAND..." ; \
2393 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
2394 fi ; \
2395 if [ "$(findstring _SP_,$@)" ] ; then \
2396 $(XECHO) -n "...Small Page NAND..." ; \
2397 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
2398 fi ;
2399 @$(MKCONFIG) -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
2400 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2401
2402 TQM834x_config: unconfig
2403 @$(MKCONFIG) $(@:_config=) powerpc mpc83xx tqm834x tqc
2404
2405 caddy2_config \
2406 vme8349_config: unconfig
2407 @$(MKCONFIG) -t $(@:_config=) vme8349 powerpc mpc83xx vme8349 esd
2408
2409 edb9301_config \
2410 edb9302_config \
2411 edb9302a_config \
2412 edb9307_config \
2413 edb9307a_config \
2414 edb9312_config \
2415 edb9315_config \
2416 edb9315a_config: unconfig
2417 @$(MKCONFIG) -t $(@:_config=) edb93xx arm arm920t edb93xx NULL ep93xx
2418
2419 #########################################################################
2420 ## MPC85xx Systems
2421 #########################################################################
2422
2423 ATUM8548_config: unconfig
2424 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx atum8548
2425
2426 MPC8536DS_NAND_config \
2427 MPC8536DS_SDCARD_config \
2428 MPC8536DS_SPIFLASH_config \
2429 MPC8536DS_36BIT_config \
2430 MPC8536DS_config: unconfig
2431 @$(MKCONFIG) -t $(@:_config=) MPC8536DS powerpc mpc85xx mpc8536ds freescale
2432
2433 MPC8540ADS_config: unconfig
2434 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8540ads freescale
2435
2436 MPC8540EVAL_config \
2437 MPC8540EVAL_33_config \
2438 MPC8540EVAL_66_config \
2439 MPC8540EVAL_33_slave_config \
2440 MPC8540EVAL_66_slave_config: unconfig
2441 @mkdir -p $(obj)include
2442 @if [ "$(findstring _33_,$@)" ] ; then \
2443 $(XECHO) "... 33 MHz PCI" ; \
2444 else \
2445 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2446 $(XECHO) "... 66 MHz PCI" ; \
2447 fi ; \
2448 if [ "$(findstring _slave_,$@)" ] ; then \
2449 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2450 $(XECHO) " slave" ; \
2451 else \
2452 $(XECHO) " host" ; \
2453 fi
2454 @$(MKCONFIG) -a MPC8540EVAL powerpc mpc85xx mpc8540eval
2455
2456 MPC8560ADS_config: unconfig
2457 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8560ads freescale
2458
2459 MPC8541CDS_legacy_config \
2460 MPC8541CDS_config: unconfig
2461 @mkdir -p $(obj)include
2462 @if [ "$(findstring _legacy_,$@)" ] ; then \
2463 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2464 $(XECHO) "... legacy" ; \
2465 fi
2466 @$(MKCONFIG) -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
2467
2468 MPC8544DS_config: unconfig
2469 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8544ds freescale
2470
2471 MPC8548CDS_legacy_config \
2472 MPC8548CDS_config: unconfig
2473 @mkdir -p $(obj)include
2474 @if [ "$(findstring _legacy_,$@)" ] ; then \
2475 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2476 $(XECHO) "... legacy" ; \
2477 fi
2478 @$(MKCONFIG) -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
2479
2480 MPC8555CDS_legacy_config \
2481 MPC8555CDS_config: unconfig
2482 @mkdir -p $(obj)include
2483 @if [ "$(findstring _legacy_,$@)" ] ; then \
2484 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2485 $(XECHO) "... legacy" ; \
2486 fi
2487 @$(MKCONFIG) -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
2488
2489 MPC8568MDS_config: unconfig
2490 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8568mds freescale
2491
2492 MPC8569MDS_ATM_config \
2493 MPC8569MDS_NAND_config \
2494 MPC8569MDS_config: unconfig
2495 @$(MKCONFIG) -t $(@:_config=) MPC8569MDS powerpc mpc85xx mpc8569mds freescale
2496
2497 MPC8572DS_36BIT_config \
2498 MPC8572DS_config: unconfig
2499 @$(MKCONFIG) -t $(@:_config=) MPC8572DS powerpc mpc85xx mpc8572ds freescale
2500
2501 P2020DS_36BIT_config \
2502 P2020DS_config: unconfig
2503 @$(MKCONFIG) -t $(@:_config=) P2020DS powerpc mpc85xx p2020ds freescale
2504
2505 P1011RDB_config \
2506 P1011RDB_NAND_config \
2507 P1011RDB_SDCARD_config \
2508 P1011RDB_SPIFLASH_config \
2509 P1020RDB_config \
2510 P1020RDB_NAND_config \
2511 P1020RDB_SDCARD_config \
2512 P1020RDB_SPIFLASH_config \
2513 P2010RDB_config \
2514 P2010RDB_NAND_config \
2515 P2010RDB_SDCARD_config \
2516 P2010RDB_SPIFLASH_config \
2517 P2020RDB_config \
2518 P2020RDB_NAND_config \
2519 P2020RDB_SDCARD_config \
2520 P2020RDB_SPIFLASH_config: unconfig
2521 @$(MKCONFIG) -t $(@:_config=) P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
2522
2523 PM854_config: unconfig
2524 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx pm854
2525
2526 PM856_config: unconfig
2527 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx pm856
2528
2529 sbc8540_config \
2530 sbc8540_33_config \
2531 sbc8540_66_config: unconfig
2532 @$(MKCONFIG) -t $(@:_config=) SBC8540 powerpc mpc85xx sbc8560
2533
2534 sbc8548_config \
2535 sbc8548_PCI_33_config \
2536 sbc8548_PCI_66_config \
2537 sbc8548_PCI_33_PCIE_config \
2538 sbc8548_PCI_66_PCIE_config: unconfig
2539 @$(MKCONFIG) -t $(@:_config=) sbc8548 powerpc mpc85xx sbc8548
2540
2541 sbc8560_config \
2542 sbc8560_33_config \
2543 sbc8560_66_config: unconfig
2544 @$(MKCONFIG) -t $(@:_config=) sbc8560 powerpc mpc85xx sbc8560
2545
2546 socrates_config: unconfig
2547 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx socrates
2548
2549 stxgp3_config: unconfig
2550 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx stxgp3 stx
2551
2552 stxssa_config \
2553 stxssa_4M_config: unconfig
2554 @mkdir -p $(obj)include
2555 @if [ "$(findstring _4M_,$@)" ] ; then \
2556 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2557 $(XECHO) "... with 4 MiB flash memory" ; \
2558 fi
2559 @$(MKCONFIG) -a stxssa powerpc mpc85xx stxssa stx
2560
2561 TQM8540_config \
2562 TQM8541_config \
2563 TQM8548_config \
2564 TQM8548_AG_config \
2565 TQM8548_BE_config \
2566 TQM8555_config \
2567 TQM8560_config: unconfig
2568 @mkdir -p $(obj)include
2569 @BTYPE=$(@:_config=); \
2570 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2571 $(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2572 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2573 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2574 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2575 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
2576 @$(MKCONFIG) -a TQM85xx powerpc mpc85xx tqm85xx tqc
2577 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2578
2579 XPEDITE5200_config: unconfig
2580 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx xpedite5200 xes
2581
2582 XPEDITE5370_config: unconfig
2583 @$(MKCONFIG) $(@:_config=) powerpc mpc85xx xpedite5370 xes
2584
2585 #########################################################################
2586 ## MPC86xx Systems
2587 #########################################################################
2588
2589 MPC8610HPCD_config: unconfig
2590 @$(MKCONFIG) $(@:_config=) powerpc mpc86xx mpc8610hpcd freescale
2591
2592 MPC8641HPCN_36BIT_config \
2593 MPC8641HPCN_config: unconfig
2594 @mkdir -p $(obj)include
2595 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2596 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2597 $(XECHO) "... enabling 36-bit physical addressing." ; \
2598 fi
2599 @$(MKCONFIG) -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
2600
2601 sbc8641d_config: unconfig
2602 @$(MKCONFIG) $(@:_config=) powerpc mpc86xx sbc8641d
2603
2604 XPEDITE5170_config: unconfig
2605 @$(MKCONFIG) $(@:_config=) powerpc mpc86xx xpedite5170 xes
2606
2607 #########################################################################
2608 ## 74xx/7xx Systems
2609 #########################################################################
2610
2611 AmigaOneG3SE_config: unconfig
2612 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx AmigaOneG3SE MAI
2613
2614 BAB7xx_config: unconfig
2615 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx bab7xx eltec
2616
2617 CPCI750_config: unconfig
2618 @$(MKCONFIG) CPCI750 powerpc 74xx_7xx cpci750 esd
2619
2620 DB64360_config: unconfig
2621 @$(MKCONFIG) DB64360 powerpc 74xx_7xx db64360 Marvell
2622
2623 DB64460_config: unconfig
2624 @$(MKCONFIG) DB64460 powerpc 74xx_7xx db64460 Marvell
2625
2626 ELPPC_config: unconfig
2627 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx elppc eltec
2628
2629 EVB64260_config \
2630 EVB64260_750CX_config: unconfig
2631 @$(MKCONFIG) EVB64260 powerpc 74xx_7xx evb64260
2632
2633 mpc7448hpc2_config: unconfig
2634 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx mpc7448hpc2 freescale
2635
2636 P3G4_config: unconfig
2637 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx evb64260
2638
2639 p3m750_config \
2640 p3m7448_config: unconfig
2641 @mkdir -p $(obj)include
2642 @if [ "$(findstring 750_,$@)" ] ; then \
2643 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2644 else \
2645 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2646 fi
2647 @$(MKCONFIG) -a p3mx powerpc 74xx_7xx p3mx prodrive
2648
2649 PCIPPC2_config \
2650 PCIPPC6_config: unconfig
2651 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx pcippc2
2652
2653 ppmc7xx_config: unconfig
2654 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx ppmc7xx
2655
2656 ZUMA_config: unconfig
2657 @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx evb64260
2658
2659 #========================================================================
2660 # ARM
2661 #========================================================================
2662 #########################################################################
2663 ## StrongARM Systems
2664 #########################################################################
2665
2666 assabet_config : unconfig
2667 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2668
2669 dnp1110_config : unconfig
2670 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2671
2672 gcplus_config : unconfig
2673 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2674
2675 lart_config : unconfig
2676 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2677
2678 shannon_config : unconfig
2679 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2680
2681 #########################################################################
2682 ## ARM92xT Systems
2683 #########################################################################
2684
2685 a320evb_config : unconfig
2686 @$(MKCONFIG) $(@:_config=) arm arm920t a320evb faraday a320
2687
2688 #########################################################################
2689 ## Atmel AT91RM9200 Systems
2690 #########################################################################
2691
2692 at91rm9200dk_config : unconfig
2693 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2694
2695 at91rm9200ek_config : unconfig
2696 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200
2697
2698 cmc_pu2_config : unconfig
2699 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2700
2701 CPUAT91_RAM_config \
2702 CPUAT91_config : unconfig
2703 @mkdir -p $(obj)include
2704 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2705 @$(MKCONFIG) -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
2706
2707 csb637_config : unconfig
2708 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2709
2710 eb_cpux9k2_config : unconfig
2711 @$(MKCONFIG) $(@:_config=) arm arm920t eb_cpux9k2 BuS at91
2712
2713 kb9202_config : unconfig
2714 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2715
2716 m501sk_config : unconfig
2717 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
2718
2719 mp2usb_config : unconfig
2720 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2721
2722 #########################################################################
2723 ## ARM926EJ-S Systems
2724 #########################################################################
2725
2726 afeb9260_config: unconfig
2727 @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
2728
2729 at91cap9adk_config : unconfig
2730 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2731
2732 at91sam9260ek_nandflash_config \
2733 at91sam9260ek_dataflash_cs0_config \
2734 at91sam9260ek_dataflash_cs1_config \
2735 at91sam9260ek_config \
2736 at91sam9g20ek_nandflash_config \
2737 at91sam9g20ek_dataflash_cs0_config \
2738 at91sam9g20ek_dataflash_cs1_config \
2739 at91sam9g20ek_config : unconfig
2740 @mkdir -p $(obj)include
2741 @if [ "$(findstring 9g20,$@)" ] ; then \
2742 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
2743 $(XECHO) "... 9G20 Variant" ; \
2744 else \
2745 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
2746 fi;
2747 @if [ "$(findstring _nandflash,$@)" ] ; then \
2748 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2749 $(XECHO) "... with environment variable in NAND FLASH" ; \
2750 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2751 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2752 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2753 else \
2754 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2755 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2756 fi;
2757 @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2758
2759 at91sam9xeek_nandflash_config \
2760 at91sam9xeek_dataflash_cs0_config \
2761 at91sam9xeek_dataflash_cs1_config \
2762 at91sam9xeek_config : unconfig
2763 @mkdir -p $(obj)include
2764 @if [ "$(findstring _nandflash,$@)" ] ; then \
2765 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2766 $(XECHO) "... with environment variable in NAND FLASH" ; \
2767 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2768 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2769 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2770 else \
2771 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
2772 $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
2773 fi;
2774 @$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2775
2776 at91sam9261ek_nandflash_config \
2777 at91sam9261ek_dataflash_cs0_config \
2778 at91sam9261ek_dataflash_cs3_config \
2779 at91sam9261ek_config \
2780 at91sam9g10ek_nandflash_config \
2781 at91sam9g10ek_dataflash_cs0_config \
2782 at91sam9g10ek_dataflash_cs3_config \
2783 at91sam9g10ek_config : unconfig
2784 @mkdir -p $(obj)include
2785 @if [ "$(findstring 9g10,$@)" ] ; then \
2786 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
2787 $(XECHO) "... 9G10 Variant" ; \
2788 else \
2789 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
2790 fi;
2791 @if [ "$(findstring _nandflash,$@)" ] ; then \
2792 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2793 $(XECHO) "... with environment variable in NAND FLASH" ; \
2794 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2795 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
2796 $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
2797 else \
2798 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
2799 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2800 fi;
2801 @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
2802
2803 at91sam9263ek_norflash_config \
2804 at91sam9263ek_norflash_boot_config \
2805 at91sam9263ek_nandflash_config \
2806 at91sam9263ek_dataflash_config \
2807 at91sam9263ek_dataflash_cs0_config \
2808 at91sam9263ek_config : unconfig
2809 @mkdir -p $(obj)include
2810 @if [ "$(findstring _nandflash,$@)" ] ; then \
2811 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2812 $(XECHO) "... with environment variable in NAND FLASH" ; \
2813 elif [ "$(findstring norflash,$@)" ] ; then \
2814 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
2815 $(XECHO) "... with environment variable in NOR FLASH" ; \
2816 else \
2817 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2818 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2819 fi;
2820 @if [ "$(findstring norflash_boot,$@)" ] ; then \
2821 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
2822 $(XECHO) "... and boot from NOR FLASH" ; \
2823 fi;
2824 @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
2825
2826 at91sam9rlek_nandflash_config \
2827 at91sam9rlek_dataflash_config \
2828 at91sam9rlek_dataflash_cs0_config \
2829 at91sam9rlek_config : unconfig
2830 @mkdir -p $(obj)include
2831 @if [ "$(findstring _nandflash,$@)" ] ; then \
2832 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2833 $(XECHO) "... with environment variable in NAND FLASH" ; \
2834 else \
2835 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
2836 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2837 fi;
2838 @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
2839
2840 CPU9G20_128M_config \
2841 CPU9G20_config \
2842 CPU9260_128M_config \
2843 CPU9260_config : unconfig
2844 @mkdir -p $(obj)include
2845 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2846 @$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
2847
2848 meesc_config : unconfig
2849 @$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
2850
2851 pm9261_config : unconfig
2852 @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91
2853
2854 at91sam9m10g45ek_nandflash_config \
2855 at91sam9m10g45ek_dataflash_config \
2856 at91sam9m10g45ek_dataflash_cs0_config \
2857 at91sam9m10g45ek_config \
2858 at91sam9g45ekes_nandflash_config \
2859 at91sam9g45ekes_dataflash_config \
2860 at91sam9g45ekes_dataflash_cs0_config \
2861 at91sam9g45ekes_config : unconfig
2862 @mkdir -p $(obj)include
2863 @if [ "$(findstring 9m10,$@)" ] ; then \
2864 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
2865 $(XECHO) "... 9M10G45 Variant" ; \
2866 else \
2867 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
2868 fi;
2869
2870 @if [ "$(findstring _nandflash,$@)" ] ; then \
2871 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
2872 $(XECHO) "... with environment variable in NAND FLASH" ; \
2873 else \
2874 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
2875 $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
2876 fi;
2877 @$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
2878
2879 otc570_config : unconfig
2880 @$(MKCONFIG) $(@:_config=) arm arm926ejs otc570 esd at91
2881
2882 pm9263_config : unconfig
2883 @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91
2884
2885 pm9g45_config : unconfig
2886 @mkdir -p $(obj)include
2887 @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91
2888
2889 SBC35_A9G20_NANDFLASH_config \
2890 SBC35_A9G20_EEPROM_config \
2891 SBC35_A9G20_config : unconfig
2892 @mkdir -p $(obj)include
2893 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2894 @$(MKCONFIG) -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
2895
2896 TNY_A9G20_NANDFLASH_config \
2897 TNY_A9G20_EEPROM_config \
2898 TNY_A9G20_config \
2899 TNY_A9260_NANDFLASH_config \
2900 TNY_A9260_EEPROM_config \
2901 TNY_A9260_config : unconfig
2902 @mkdir -p $(obj)include
2903 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
2904 @$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91
2905
2906 ########################################################################
2907 ## ARM Integrator boards - see doc/README-integrator for more info.
2908 integratorap_config \
2909 ap_config \
2910 ap966_config \
2911 ap922_config \
2912 ap922_XA10_config \
2913 ap7_config \
2914 ap720t_config \
2915 ap920t_config \
2916 ap926ejs_config \
2917 ap946es_config: unconfig
2918 @board/armltd/integrator/split_by_variant.sh ap $@
2919
2920 integratorcp_config \
2921 cp_config \
2922 cp920t_config \
2923 cp926ejs_config \
2924 cp946es_config \
2925 cp1136_config \
2926 cp966_config \
2927 cp922_config \
2928 cp922_XA10_config \
2929 cp1026_config: unconfig
2930 @board/armltd/integrator/split_by_variant.sh cp $@
2931
2932 da830evm_config \
2933 da850evm_config: unconfig
2934 @$(MKCONFIG) $(@:_config=) arm arm926ejs da8xxevm davinci davinci
2935
2936 davinci_dvevm_config : unconfig
2937 @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2938
2939 davinci_schmoogie_config : unconfig
2940 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2941
2942 davinci_sffsdr_config : unconfig
2943 @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2944
2945 davinci_sonata_config : unconfig
2946 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2947
2948 davinci_dm355evm_config : unconfig
2949 @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
2950
2951 davinci_dm355leopard_config : unconfig
2952 @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355leopard davinci davinci
2953
2954 davinci_dm365evm_config : unconfig
2955 @$(MKCONFIG) $(@:_config=) arm arm926ejs dm365evm davinci davinci
2956
2957 davinci_dm6467evm_config : unconfig
2958 @$(MKCONFIG) $(@:_config=) arm arm926ejs dm6467evm davinci davinci
2959
2960 edminiv2_config: unconfig
2961 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) LaCie orion5x
2962
2963 guruplug_config: unconfig
2964 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
2965
2966 magnesium_config \
2967 imx27lite_config: unconfig
2968 @$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27
2969
2970 lpd7a400_config \
2971 lpd7a404_config: unconfig
2972 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2973
2974 mv88f6281gtw_ge_config: unconfig
2975 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
2976
2977 mx1ads_config : unconfig
2978 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2979
2980 mx1fs2_config : unconfig
2981 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2982
2983 netstar_config: unconfig
2984 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
2985
2986 nhk8815_config \
2987 nhk8815_onenand_config: unconfig
2988 @mkdir -p $(obj)include
2989 @ > $(obj)include/config.h
2990 @if [ "$(findstring _onenand, $@)" ] ; then \
2991 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2992 $(XECHO) "... configured to boot from OneNand Flash"; \
2993 else \
2994 $(XECHO) "... configured to boot from Nand Flash"; \
2995 fi
2996 @$(MKCONFIG) -a nhk8815 arm arm926ejs nhk8815 st nomadik
2997
2998 omap1510inn_config : unconfig
2999 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn ti
3000
3001 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
3002
3003 omap1610inn_config \
3004 omap1610inn_cs0boot_config \
3005 omap1610inn_cs3boot_config \
3006 omap1610inn_cs_autoboot_config \
3007 omap1610h2_config \
3008 omap1610h2_cs0boot_config \
3009 omap1610h2_cs3boot_config \
3010 omap1610h2_cs_autoboot_config: unconfig
3011 @mkdir -p $(obj)include
3012 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
3013 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
3014 $(XECHO) "... configured for CS0 boot"; \
3015 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
3016 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
3017 $(XECHO) "... configured for CS_AUTO boot"; \
3018 else \
3019 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
3020 $(XECHO) "... configured for CS3 boot"; \
3021 fi;
3022 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
3023
3024 omap5912osk_config : unconfig
3025 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk ti omap
3026
3027 openrd_base_config: unconfig
3028 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3029
3030 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
3031
3032 omap730p2_config \
3033 omap730p2_cs0boot_config \
3034 omap730p2_cs3boot_config : unconfig
3035 @mkdir -p $(obj)include
3036 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
3037 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
3038 $(XECHO) "... configured for CS0 boot"; \
3039 else \
3040 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
3041 $(XECHO) "... configured for CS3 boot"; \
3042 fi;
3043 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 ti omap
3044
3045 rd6281a_config: unconfig
3046 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3047
3048 sbc2410x_config: unconfig
3049 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
3050
3051 scb9328_config : unconfig
3052 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
3053
3054 sheevaplug_config: unconfig
3055 @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3056
3057 smdk2400_config : unconfig
3058 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
3059
3060 smdk2410_config : unconfig
3061 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
3062
3063 spear300_config \
3064 spear310_config \
3065 spear320_config : unconfig
3066 @$(MKCONFIG) -n $@ -t $(@:_config=) spear3xx arm arm926ejs $(@:_config=) spear spear
3067
3068 spear600_config : unconfig
3069 @$(MKCONFIG) -n $@ -t $(@:_config=) spear6xx arm arm926ejs $(@:_config=) spear spear
3070
3071 suen3_config: unconfig
3072 @$(MKCONFIG) $(@:_config=) arm arm926ejs km_arm keymile kirkwood
3073
3074 SX1_stdout_serial_config \
3075 SX1_config: unconfig
3076 @mkdir -p $(obj)include
3077 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
3078 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
3079 $(XECHO) "... configured for stdout serial"; \
3080 else \
3081 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
3082 $(XECHO) "... configured for stdout usbtty"; \
3083 fi;
3084 @$(MKCONFIG) SX1 arm arm925t sx1
3085
3086 # TRAB default configuration: 8 MB Flash, 32 MB RAM
3087 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
3088
3089 trab_config \
3090 trab_bigram_config \
3091 trab_bigflash_config \
3092 trab_old_config: unconfig
3093 @mkdir -p $(obj)include
3094 @mkdir -p $(obj)board/trab
3095 @[ -z "$(findstring _bigram,$@)" ] || \
3096 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
3097 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
3098 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
3099 }
3100 @[ -z "$(findstring _bigflash,$@)" ] || \
3101 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
3102 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
3103 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
3104 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
3105 }
3106 @[ -z "$(findstring _old,$@)" ] || \
3107 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
3108 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
3109 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
3110 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
3111 }
3112 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
3113
3114 tx25_config : unconfig
3115 @$(MKCONFIG) $(@:_config=) arm arm926ejs tx25 karo mx25
3116 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
3117
3118 VCMA9_config : unconfig
3119 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
3120
3121 #########################################################################
3122 # ARM supplied Versatile development boards
3123 #########################################################################
3124
3125 cm4008_config : unconfig
3126 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
3127
3128 cm41xx_config : unconfig
3129 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
3130
3131 versatile_config \
3132 versatileab_config \
3133 versatilepb_config : unconfig
3134 @board/armltd/versatile/split_by_variant.sh $@
3135
3136 voiceblue_config: unconfig
3137 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
3138
3139 #########################################################################
3140 ## S3C44B0 Systems
3141 #########################################################################
3142
3143 B2_config : unconfig
3144 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
3145
3146 #########################################################################
3147 ## ARM720T Systems
3148 #########################################################################
3149
3150 armadillo_config: unconfig
3151 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
3152
3153 ep7312_config : unconfig
3154 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
3155
3156 impa7_config : unconfig
3157 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
3158
3159 modnet50_config : unconfig
3160 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
3161
3162 evb4510_config : unconfig
3163 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b
3164
3165 lpc2292sodimm_config: unconfig
3166 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
3167
3168 SMN42_config : unconfig
3169 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
3170
3171 #########################################################################
3172 ## ARM CORTEX Systems
3173 #########################################################################
3174
3175 am3517_evm_config : unconfig
3176 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 am3517evm logicpd omap3
3177
3178 devkit8000_config : unconfig
3179 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 devkit8000 timll omap3
3180
3181 omap3_beagle_config : unconfig
3182 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle ti omap3
3183
3184 omap3_overo_config : unconfig
3185 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo NULL omap3
3186
3187 omap3_evm_config : unconfig
3188 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm ti omap3
3189
3190 omap3_pandora_config : unconfig
3191 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora NULL omap3
3192
3193 omap3_sdp3430_config : unconfig
3194 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 sdp3430 ti omap3
3195
3196 omap3_zoom1_config : unconfig
3197 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 logicpd omap3
3198
3199 omap3_zoom2_config : unconfig
3200 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 logicpd omap3
3201
3202 s5p_goni_config: unconfig
3203 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 goni samsung s5pc1xx
3204
3205 smdkc100_config: unconfig
3206 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 smdkc100 samsung s5pc1xx
3207
3208 #########################################################################
3209 ## XScale Systems
3210 #########################################################################
3211
3212 actux1_config : unconfig
3213 @$(MKCONFIG) $(@:_config=) arm ixp actux1
3214
3215 actux2_config : unconfig
3216 @$(MKCONFIG) $(@:_config=) arm ixp actux2
3217
3218 actux3_config : unconfig
3219 @$(MKCONFIG) $(@:_config=) arm ixp actux3
3220
3221 actux4_config : unconfig
3222 @$(MKCONFIG) $(@:_config=) arm ixp actux4
3223
3224 cerf250_config : unconfig
3225 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
3226
3227 cradle_config : unconfig
3228 @$(MKCONFIG) $(@:_config=) arm pxa cradle
3229
3230 csb226_config : unconfig
3231 @$(MKCONFIG) $(@:_config=) arm pxa csb226
3232
3233 delta_config : unconfig
3234 @$(MKCONFIG) $(@:_config=) arm pxa delta
3235
3236 innokom_config : unconfig
3237 @$(MKCONFIG) $(@:_config=) arm pxa innokom
3238
3239 ixdp425_config : unconfig
3240 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3241
3242 ixdpg425_config : unconfig
3243 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3244
3245 lubbock_config : unconfig
3246 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
3247
3248 pleb2_config : unconfig
3249 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
3250
3251 logodl_config : unconfig
3252 @$(MKCONFIG) $(@:_config=) arm pxa logodl
3253
3254 pdnb3_config \
3255 scpu_config: unconfig
3256 @mkdir -p $(obj)include
3257 @if [ "$(findstring scpu_,$@)" ] ; then \
3258 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
3259 $(XECHO) "... on SCPU board variant" ; \
3260 fi
3261 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
3262
3263 pxa255_idp_config: unconfig
3264 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
3265
3266 polaris_config \
3267 trizepsiv_config : unconfig
3268 @mkdir -p $(obj)include
3269 @if [ "$(findstring polaris,$@)" ] ; then \
3270 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
3271 fi;
3272 @$(MKCONFIG) -a trizepsiv arm pxa trizepsiv
3273
3274 wepep250_config : unconfig
3275 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
3276
3277 xaeniax_config : unconfig
3278 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
3279
3280 xm250_config : unconfig
3281 @$(MKCONFIG) $(@:_config=) arm pxa xm250
3282
3283 xsengine_config : unconfig
3284 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
3285
3286 zylonite_config :
3287 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
3288
3289 #########################################################################
3290 ## ARM1136 Systems
3291 #########################################################################
3292
3293 apollon_config : unconfig
3294 @mkdir -p $(obj)include
3295 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
3296 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3297 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
3298
3299 imx31_litekit_config : unconfig
3300 @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit logicpd mx31
3301
3302 imx31_phycore_eet_config \
3303 imx31_phycore_config : unconfig
3304 @mkdir -p $(obj)include
3305 @if [ -n "$(findstring _eet_,$@)" ]; then \
3306 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
3307 fi
3308 @$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
3309
3310 mx31ads_config : unconfig
3311 @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3312
3313 mx31pdk_config \
3314 mx31pdk_nand_config : unconfig
3315 @mkdir -p $(obj)include
3316 @if [ -n "$(findstring _nand_,$@)" ]; then \
3317 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
3318 else \
3319 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
3320 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
3321 fi
3322 @$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31
3323
3324 mx51evk_config : unconfig
3325 @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 mx51evk freescale mx51
3326
3327 omap2420h4_config : unconfig
3328 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 ti omap24xx
3329
3330 qong_config : unconfig
3331 @$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
3332
3333 #########################################################################
3334 ## ARM1176 Systems
3335 #########################################################################
3336 smdk6400_noUSB_config \
3337 smdk6400_config : unconfig
3338 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
3339 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
3340 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
3341 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
3342 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
3343 $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \
3344 else \
3345 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
3346 $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \
3347 fi
3348 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
3349
3350 tnetv107x_evm_config: unconfig
3351 @$(MKCONFIG) $(@:_config=) arm arm1176 tnetv107xevm ti tnetv107x
3352
3353 #========================================================================
3354 # i386
3355 #========================================================================
3356 #########################################################################
3357 ## AMD SC520 CDP
3358 #########################################################################
3359 eNET_config : unconfig
3360 @$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3361
3362 sc520_cdp_config : unconfig
3363 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3364
3365 sc520_spunk_config : unconfig
3366 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3367
3368 sc520_spunk_rel_config : unconfig
3369 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
3370
3371 #========================================================================
3372 # MIPS
3373 #========================================================================
3374 #########################################################################
3375 ## MIPS32 4Kc
3376 #########################################################################
3377
3378 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3379
3380 incaip_100MHz_config \
3381 incaip_133MHz_config \
3382 incaip_150MHz_config \
3383 incaip_config: unconfig
3384 @mkdir -p $(obj)include
3385 @[ -z "$(findstring _100MHz,$@)" ] || \
3386 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3387 $(XECHO) "... with 100MHz system clock" ; \
3388 }
3389 @[ -z "$(findstring _133MHz,$@)" ] || \
3390 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3391 $(XECHO) "... with 133MHz system clock" ; \
3392 }
3393 @[ -z "$(findstring _150MHz,$@)" ] || \
3394 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3395 $(XECHO) "... with 150MHz system clock" ; \
3396 }
3397 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3398
3399 tb0229_config: unconfig
3400 @$(MKCONFIG) $(@:_config=) mips mips tb0229
3401
3402 vct_premium_config \
3403 vct_premium_small_config \
3404 vct_premium_onenand_config \
3405 vct_premium_onenand_small_config \
3406 vct_platinum_config \
3407 vct_platinum_small_config \
3408 vct_platinum_onenand_config \
3409 vct_platinum_onenand_small_config \
3410 vct_platinumavc_config \
3411 vct_platinumavc_small_config \
3412 vct_platinumavc_onenand_config \
3413 vct_platinumavc_onenand_small_config: unconfig
3414 @mkdir -p $(obj)include
3415 @if [ "$(findstring _premium,$@)" ] ; then \
3416 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
3417 $(XECHO) "... on Premium board variant" ; \
3418 fi
3419 @if [ "$(findstring _platinum_,$@)" ] ; then \
3420 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
3421 $(XECHO) "... on Platinum board variant" ; \
3422 fi
3423 @if [ "$(findstring _platinumavc,$@)" ] ; then \
3424 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
3425 $(XECHO) "... on PlatinumAVC board variant" ; \
3426 fi
3427 @if [ "$(findstring _onenand,$@)" ] ; then \
3428 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
3429 $(XECHO) "... on OneNAND board variant" ; \
3430 fi
3431 @if [ "$(findstring _small,$@)" ] ; then \
3432 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
3433 $(XECHO) "... stripped down image variant" ; \
3434 fi
3435 @$(MKCONFIG) -a vct mips mips vct micronas
3436
3437 #########################################################################
3438 ## MIPS32 AU1X00
3439 #########################################################################
3440
3441 dbau1000_config : unconfig
3442 @mkdir -p $(obj)include
3443 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3444 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3445
3446 dbau1100_config : unconfig
3447 @mkdir -p $(obj)include
3448 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3449 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3450
3451 dbau1500_config : unconfig
3452 @mkdir -p $(obj)include
3453 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3454 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3455
3456 dbau1550_config : unconfig
3457 @mkdir -p $(obj)include
3458 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3459 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3460
3461 dbau1550_el_config : unconfig
3462 @mkdir -p $(obj)include
3463 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3464 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3465
3466 gth2_config : unconfig
3467 @mkdir -p $(obj)include
3468 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
3469 @$(MKCONFIG) -a gth2 mips mips gth2
3470
3471 pb1000_config : unconfig
3472 @mkdir -p $(obj)include
3473 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3474 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
3475
3476 qemu_mips_config : unconfig
3477 @mkdir -p $(obj)include
3478 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
3479 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
3480
3481 #########################################################################
3482 ## MIPS64 5Kc
3483 #########################################################################
3484
3485 purple_config : unconfig
3486 @$(MKCONFIG) $(@:_config=) mips mips purple
3487
3488 #========================================================================
3489 # Nios
3490 #========================================================================
3491
3492 #########################################################################
3493 ## Nios-II
3494 #########################################################################
3495
3496 EP1C20_config : unconfig
3497 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
3498
3499 EP1S10_config : unconfig
3500 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
3501
3502 EP1S40_config : unconfig
3503 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
3504
3505 PK1C20_config : unconfig
3506 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
3507
3508 PCI5441_config : unconfig
3509 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
3510
3511 # nios2 generic boards
3512 NIOS2_GENERIC = nios2-generic
3513
3514 $(NIOS2_GENERIC:%=%_config) : unconfig
3515 @$(MKCONFIG) $(@:_config=) nios2 nios2 nios2-generic altera
3516
3517 #========================================================================
3518 ## Microblaze
3519 #========================================================================
3520
3521 microblaze-generic_config: unconfig
3522 @mkdir -p $(obj)include
3523 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3524
3525 #========================================================================
3526 # Blackfin
3527 #========================================================================
3528
3529 # Analog Devices boards
3530 BFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \
3531 bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit
3532
3533 # Bluetechnix tinyboards
3534 BFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf537u cm-bf548 cm-bf561 \
3535 tcm-bf518 tcm-bf537
3536
3537 # Misc third party boards
3538 BFIN_BOARDS += bf537-minotaur bf537-srv1 bf561-acvilon blackstamp ip04
3539
3540 # I-SYST Micromodule
3541 BFIN_BOARDS += ibf-dsp561
3542
3543 $(BFIN_BOARDS:%=%_config) : unconfig
3544 @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
3545
3546 bf527-ezkit-v2_config : unconfig
3547 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
3548 bf527-ezkit blackfin blackfin bf527-ezkit
3549
3550 #========================================================================
3551 # AVR32
3552 #========================================================================
3553
3554 atngw100_config : unconfig
3555 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
3556
3557 atstk1002_config : unconfig
3558 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3559
3560 atstk1003_config : unconfig
3561 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3562
3563 atstk1004_config : unconfig
3564 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3565
3566 atstk1006_config : unconfig
3567 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3568
3569 favr-32-ezkit_config : unconfig
3570 @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
3571
3572 hammerhead_config : unconfig
3573 @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
3574
3575 mimc200_config : unconfig
3576 @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
3577
3578 #========================================================================
3579 # SH3 (SuperH)
3580 #========================================================================
3581
3582 #########################################################################
3583 ## sh2 (Renesas SuperH)
3584 #########################################################################
3585 rsk7203_config: unconfig
3586 @mkdir -p $(obj)include
3587 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
3588 @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3589
3590 #########################################################################
3591 ## sh3 (Renesas SuperH)
3592 #########################################################################
3593
3594 mpr2_config: unconfig
3595 @mkdir -p $(obj)include
3596 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
3597 @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
3598
3599 ms7720se_config: unconfig
3600 @mkdir -p $(obj)include
3601 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
3602 @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3603
3604 #########################################################################
3605 ## sh4 (Renesas SuperH)
3606 #########################################################################
3607
3608 MigoR_config : unconfig
3609 @mkdir -p $(obj)include
3610 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3611 @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3612
3613 ms7750se_config: unconfig
3614 @mkdir -p $(obj)include
3615 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
3616 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
3617
3618 ms7722se_config : unconfig
3619 @mkdir -p $(obj)include
3620 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
3621 @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
3622
3623 r2dplus_config : unconfig
3624 @mkdir -p $(obj)include
3625 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3626 @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3627
3628 r7780mp_config: unconfig
3629 @mkdir -p $(obj)include
3630 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3631 @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3632
3633 sh7763rdp_config : unconfig
3634 @mkdir -p $(obj)include
3635 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3636 @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
3637
3638 xtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
3639 sh7785lcr_32bit_config \
3640 sh7785lcr_config : unconfig
3641 @mkdir -p $(obj)include
3642 @mkdir -p $(obj)board/renesas/sh7785lcr
3643 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
3644 @if [ "$(findstring 32bit, $@)" ] ; then \
3645 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
3646 echo "TEXT_BASE = 0x8ff80000" > \
3647 $(obj)board/renesas/sh7785lcr/config.tmp ; \
3648 $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
3649 fi
3650 @$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
3651
3652 ap325rxa_config : unconfig
3653 @mkdir -p $(obj)include
3654 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3655 @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
3656
3657 espt_config : unconfig
3658 @mkdir -p $(obj)include
3659 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
3660 @$(MKCONFIG) -a $(@:_config=) sh sh4 espt
3661
3662 #========================================================================
3663 # SPARC
3664 #========================================================================
3665
3666 #########################################################################
3667 ## LEON3
3668 #########################################################################
3669
3670 # Gaisler GR-XC3S-1500 board
3671 gr_xc3s_1500_config : unconfig
3672 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
3673
3674 # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
3675 gr_cpci_ax2000_config : unconfig
3676 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
3677
3678 # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
3679 # Development board Stratix II edition, FPGA Device EP2S60.
3680 gr_ep2s60_config: unconfig
3681 @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
3682
3683 # Gaisler LEON3 GRSIM simulator
3684 grsim_config : unconfig
3685 @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3686
3687 #########################################################################
3688 ## LEON2
3689 #########################################################################
3690
3691 # Gaisler LEON2 GRSIM simulator
3692 grsim_leon2_config : unconfig
3693 @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3694
3695 #########################################################################
3696 #########################################################################
3697 #########################################################################
3698
3699 clean:
3700 @rm -f $(obj)examples/standalone/82559_eeprom \
3701 $(obj)examples/standalone/atmel_df_pow2 \
3702 $(obj)examples/standalone/eepro100_eeprom \
3703 $(obj)examples/standalone/hello_world \
3704 $(obj)examples/standalone/interrupt \
3705 $(obj)examples/standalone/mem_to_mem_idma2intr \
3706 $(obj)examples/standalone/sched \
3707 $(obj)examples/standalone/smc91111_eeprom \
3708 $(obj)examples/standalone/test_burst \
3709 $(obj)examples/standalone/timer
3710 @rm -f $(obj)examples/api/demo{,.bin}
3711 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3712 $(obj)tools/env/{fw_printenv,fw_setenv} \
3713 $(obj)tools/envcrc \
3714 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3715 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3716 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3717 $(obj)tools/ncb $(obj)tools/ubsha1
3718 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3719 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3720 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3721 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
3722 $(obj)arch/blackfin/lib/u-boot.lds \
3723 $(obj)u-boot.lds \
3724 $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs]
3725 @rm -f $(obj)include/bmp_logo.h
3726 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
3727 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
3728 @rm -f $(ONENAND_BIN)
3729 @rm -f $(obj)onenand_ipl/u-boot.lds
3730 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
3731 @find $(OBJTREE) -type f \
3732 \( -name 'core' -o -name '*.bak' -o -name '*~' \
3733 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
3734 | xargs rm -f
3735
3736 clobber: clean
3737 @find $(OBJTREE) -type f \( -name .depend \
3738 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3739 -print0 \
3740 | xargs -0 rm -f
3741 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
3742 $(obj)cscope.* $(obj)*.*~
3743 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3744 @rm -f $(obj)u-boot.kwb
3745 @rm -f $(obj)u-boot.imx
3746 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
3747 @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
3748 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3749 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3750 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3751
3752 ifeq ($(OBJTREE),$(SRCTREE))
3753 mrproper \
3754 distclean: clobber unconfig
3755 else
3756 mrproper \
3757 distclean: clobber unconfig
3758 rm -rf $(obj)*
3759 endif
3760
3761 backup:
3762 F=`basename $(TOPDIR)` ; cd .. ; \
3763 gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3764
3765 #########################################################################