ppc4xx: Fix file mode of include/configs/acadia.h
[u-boot-openmoko.git] / Makefile
blobd4aecb3f6e209c484ec81431792c702059bf778e
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
6 # project.
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 # MA 02111-1307 USA
24 VERSION = 1
25 PATCHLEVEL = 2
26 SUBLEVEL = 0
27 EXTRAVERSION =
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
32 sed -e s/i.86/i386/ \
33 -e s/sun4u/sparc64/ \
34 -e s/arm.*/arm/ \
35 -e s/sa110/arm/ \
36 -e s/powerpc/ppc/ \
37 -e s/macppc/ppc/)
39 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
40 sed -e 's/\(cygwin\).*/cygwin/')
42 export HOSTARCH HOSTOS
44 # Deal with colliding definitions from tcsh etc.
45 VENDOR=
47 #########################################################################
49 # U-boot build supports producing a object files to the separate external
50 # directory. Two use cases are supported:
52 # 1) Add O= to the make command line
53 # 'make O=/tmp/build all'
55 # 2) Set environement variable BUILD_DIR to point to the desired location
56 # 'export BUILD_DIR=/tmp/build'
57 # 'make'
59 # The second approach can also be used with a MAKEALL script
60 # 'export BUILD_DIR=/tmp/build'
61 # './MAKEALL'
63 # Command line 'O=' setting overrides BUILD_DIR environent variable.
65 # When none of the above methods is used the local build is performed and
66 # the object files are placed in the source directory.
69 ifdef O
70 ifeq ("$(origin O)", "command line")
71 BUILD_DIR := $(O)
72 endif
73 endif
75 ifneq ($(BUILD_DIR),)
76 saved-output := $(BUILD_DIR)
78 # Attempt to create a output directory.
79 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
81 # Verify if it was successful.
82 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
83 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
84 endif # ifneq ($(BUILD_DIR),)
86 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
87 SRCTREE := $(CURDIR)
88 TOPDIR := $(SRCTREE)
89 LNDIR := $(OBJTREE)
90 export TOPDIR SRCTREE OBJTREE
92 MKCONFIG := $(SRCTREE)/mkconfig
93 export MKCONFIG
95 ifneq ($(OBJTREE),$(SRCTREE))
96 REMOTE_BUILD := 1
97 export REMOTE_BUILD
98 endif
100 # $(obj) and (src) are defined in config.mk but here in main Makefile
101 # we also need them before config.mk is included which is the case for
102 # some targets like unconfig, clean, clobber, distclean, etc.
103 ifneq ($(OBJTREE),$(SRCTREE))
104 obj := $(OBJTREE)/
105 src := $(SRCTREE)/
106 else
107 obj :=
108 src :=
109 endif
110 export obj src
112 #########################################################################
114 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
116 # load ARCH, BOARD, and CPU configuration
117 include $(OBJTREE)/include/config.mk
118 export ARCH CPU BOARD VENDOR SOC
120 ifndef CROSS_COMPILE
121 ifeq ($(HOSTARCH),$(ARCH))
122 CROSS_COMPILE =
123 else
124 ifeq ($(ARCH),ppc)
125 CROSS_COMPILE = powerpc-linux-
126 endif
127 ifeq ($(ARCH),arm)
128 CROSS_COMPILE = arm-linux-
129 endif
130 ifeq ($(ARCH),i386)
131 CROSS_COMPILE = i386-linux-
132 endif
133 ifeq ($(ARCH),mips)
134 CROSS_COMPILE = mips_4KC-
135 endif
136 ifeq ($(ARCH),nios)
137 CROSS_COMPILE = nios-elf-
138 endif
139 ifeq ($(ARCH),nios2)
140 CROSS_COMPILE = nios2-elf-
141 endif
142 ifeq ($(ARCH),m68k)
143 CROSS_COMPILE = m68k-elf-
144 endif
145 ifeq ($(ARCH),microblaze)
146 CROSS_COMPILE = mb-
147 endif
148 ifeq ($(ARCH),blackfin)
149 CROSS_COMPILE = bfin-elf-
150 endif
151 ifeq ($(ARCH),avr32)
152 CROSS_COMPILE = avr32-
153 endif
154 endif
155 endif
157 export CROSS_COMPILE
159 # load other configuration
160 include $(TOPDIR)/config.mk
162 #########################################################################
163 # U-Boot objects....order is important (i.e. start must be first)
165 OBJS = cpu/$(CPU)/start.o
166 ifeq ($(CPU),i386)
167 OBJS += cpu/$(CPU)/start16.o
168 OBJS += cpu/$(CPU)/reset.o
169 endif
170 ifeq ($(CPU),ppc4xx)
171 OBJS += cpu/$(CPU)/resetvec.o
172 endif
173 ifeq ($(CPU),mpc85xx)
174 OBJS += cpu/$(CPU)/resetvec.o
175 endif
176 ifeq ($(CPU),mpc86xx)
177 OBJS += cpu/$(CPU)/resetvec.o
178 endif
179 ifeq ($(CPU),bf533)
180 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
181 OBJS += cpu/$(CPU)/cplbhdlr.o cpu/$(CPU)/cplbmgr.o cpu/$(CPU)/flush.o
182 endif
184 OBJS := $(addprefix $(obj),$(OBJS))
186 LIBS = lib_generic/libgeneric.a
187 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
188 LIBS += cpu/$(CPU)/lib$(CPU).a
189 ifdef SOC
190 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
191 endif
192 LIBS += lib_$(ARCH)/lib$(ARCH).a
193 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
194 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
195 LIBS += net/libnet.a
196 LIBS += disk/libdisk.a
197 LIBS += rtc/librtc.a
198 LIBS += dtt/libdtt.a
199 LIBS += drivers/libdrivers.a
200 LIBS += drivers/nand/libnand.a
201 LIBS += drivers/nand_legacy/libnand_legacy.a
202 ifeq ($(CPU),mpc83xx)
203 LIBS += drivers/qe/qe.a
204 endif
205 LIBS += drivers/sk98lin/libsk98lin.a
206 LIBS += post/libpost.a post/drivers/libpostdrivers.a
207 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
208 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
209 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
210 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
211 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
212 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
213 LIBS += common/libcommon.a
214 LIBS += $(BOARDLIBS)
216 LIBS := $(addprefix $(obj),$(LIBS))
217 .PHONY : $(LIBS)
219 # Add GCC lib
220 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
222 # The "tools" are needed early, so put this first
223 # Don't include stuff already done in $(LIBS)
224 SUBDIRS = tools \
225 examples
227 .PHONY : $(SUBDIRS)
229 ifeq ($(CONFIG_NAND_U_BOOT),y)
230 NAND_SPL = nand_spl
231 U_BOOT_NAND = $(obj)u-boot-nand.bin
232 endif
234 __OBJS := $(subst $(obj),,$(OBJS))
235 __LIBS := $(subst $(obj),,$(LIBS))
237 #########################################################################
238 #########################################################################
240 ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
242 all: $(ALL)
244 $(obj)u-boot.hex: $(obj)u-boot
245 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
247 $(obj)u-boot.srec: $(obj)u-boot
248 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
250 $(obj)u-boot.bin: $(obj)u-boot
251 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
253 $(obj)u-boot.img: $(obj)u-boot.bin
254 ./tools/mkimage -A $(ARCH) -T firmware -C none \
255 -a $(TEXT_BASE) -e 0 \
256 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
257 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
258 -d $< $@
260 $(obj)u-boot.dis: $(obj)u-boot
261 $(OBJDUMP) -d $< > $@
263 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
264 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
265 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
266 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
267 -Map u-boot.map -o u-boot
269 $(OBJS):
270 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
272 $(LIBS):
273 $(MAKE) -C $(dir $(subst $(obj),,$@))
275 $(SUBDIRS):
276 $(MAKE) -C $@ all
278 $(NAND_SPL): version
279 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
281 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
282 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
284 version:
285 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
286 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
287 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
288 $(TOPDIR)) >> $(VERSION_FILE); \
289 echo "\"" >> $(VERSION_FILE)
291 gdbtools:
292 $(MAKE) -C tools/gdb all || exit 1
294 updater:
295 $(MAKE) -C tools/updater all || exit 1
297 env:
298 $(MAKE) -C tools/env all || exit 1
300 depend dep:
301 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
303 tags ctags:
304 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
305 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
306 fs/cramfs fs/fat fs/fdos fs/jffs2 \
307 net disk rtc dtt drivers drivers/sk98lin common \
308 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
310 etags:
311 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
312 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
313 fs/cramfs fs/fat fs/fdos fs/jffs2 \
314 net disk rtc dtt drivers drivers/sk98lin common \
315 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
317 $(obj)System.map: $(obj)u-boot
318 @$(NM) $< | \
319 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
320 sort > $(obj)System.map
322 #########################################################################
323 else
324 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
325 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
326 $(SUBDIRS) version gdbtools updater env depend \
327 dep tags ctags etags $(obj)System.map:
328 @echo "System not configured - see README" >&2
329 @ exit 1
330 endif
332 .PHONY : CHANGELOG
333 CHANGELOG:
334 git log --no-merges U-Boot-1_1_5.. | \
335 unexpand -a | sed -e 's/\s\s*$$//' > $@
337 #########################################################################
339 unconfig:
340 @rm -f $(obj)include/config.h $(obj)include/config.mk \
341 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
343 #========================================================================
344 # PowerPC
345 #========================================================================
347 #########################################################################
348 ## MPC5xx Systems
349 #########################################################################
351 canmb_config: unconfig
352 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
354 cmi_mpc5xx_config: unconfig
355 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
357 PATI_config: unconfig
358 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
360 #########################################################################
361 ## MPC5xxx Systems
362 #########################################################################
364 aev_config: unconfig
365 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
367 BC3450_config: unconfig
368 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
370 cpci5200_config: unconfig
371 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
373 hmi1001_config: unconfig
374 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
376 Lite5200_config \
377 Lite5200_LOWBOOT_config \
378 Lite5200_LOWBOOT08_config \
379 icecube_5200_config \
380 icecube_5200_LOWBOOT_config \
381 icecube_5200_LOWBOOT08_config \
382 icecube_5200_DDR_config \
383 icecube_5200_DDR_LOWBOOT_config \
384 icecube_5200_DDR_LOWBOOT08_config \
385 icecube_5100_config: unconfig
386 @mkdir -p $(obj)include
387 @mkdir -p $(obj)board/icecube
388 @ >$(obj)include/config.h
389 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
390 { if [ "$(findstring DDR,$@)" ] ; \
391 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
392 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
393 fi ; \
394 echo "... with LOWBOOT configuration" ; \
396 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
397 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
398 echo "... with 8 MB flash only" ; \
399 echo "... with LOWBOOT configuration" ; \
401 @[ -z "$(findstring DDR,$@)" ] || \
402 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
403 echo "... DDR memory revision" ; \
405 @[ -z "$(findstring 5200,$@)" ] || \
406 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
407 echo "... with MPC5200 processor" ; \
409 @[ -z "$(findstring 5100,$@)" ] || \
410 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
411 echo "... with MGT5100 processor" ; \
413 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
415 jupiter_config: unconfig
416 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
418 v38b_config: unconfig
419 @./mkconfig -a v38b ppc mpc5xxx v38b
421 inka4x0_config: unconfig
422 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
424 lite5200b_config \
425 lite5200b_LOWBOOT_config: unconfig
426 @mkdir -p $(obj)include
427 @mkdir -p $(obj)board/icecube
428 @ >$(obj)include/config.h
429 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
430 @ echo "... DDR memory revision"
431 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
432 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
433 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
434 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
435 echo "... with LOWBOOT configuration" ; \
437 @ echo "... with MPC5200B processor"
438 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
440 mcc200_config \
441 mcc200_SDRAM_config \
442 mcc200_highboot_config \
443 mcc200_COM12_config \
444 mcc200_COM12_SDRAM_config \
445 mcc200_COM12_highboot_config \
446 mcc200_COM12_highboot_SDRAM_config \
447 mcc200_highboot_SDRAM_config \
448 prs200_config \
449 prs200_DDR_config \
450 prs200_highboot_config \
451 prs200_highboot_DDR_config: unconfig
452 @mkdir -p $(obj)include
453 @mkdir -p $(obj)board/mcc200
454 @ >$(obj)include/config.h
455 @[ -n "$(findstring highboot,$@)" ] || \
456 { echo "... with lowboot configuration" ; \
458 @[ -z "$(findstring highboot,$@)" ] || \
459 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
460 echo "... with highboot configuration" ; \
462 @[ -n "$(findstring _SDRAM,$@)" ] || \
463 { if [ -n "$(findstring mcc200,$@)" ]; \
464 then \
465 echo "... with DDR" ; \
466 else \
467 if [ -n "$(findstring _DDR,$@)" ];\
468 then \
469 echo "... with DDR" ; \
470 else \
471 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
472 echo "... with SDRAM" ; \
473 fi; \
474 fi; \
476 @[ -z "$(findstring _SDRAM,$@)" ] || \
477 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
478 echo "... with SDRAM" ; \
480 @[ -z "$(findstring COM12,$@)" ] || \
481 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
482 echo "... with console on COM12" ; \
484 @[ -z "$(findstring prs200,$@)" ] || \
485 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
487 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
489 mecp5200_config: unconfig
490 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
492 o2dnt_config:
493 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
495 pf5200_config: unconfig
496 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
498 PM520_config \
499 PM520_DDR_config \
500 PM520_ROMBOOT_config \
501 PM520_ROMBOOT_DDR_config: unconfig
502 @mkdir -p $(obj)include
503 @ >$(obj)include/config.h
504 @[ -z "$(findstring DDR,$@)" ] || \
505 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
506 echo "... DDR memory revision" ; \
508 @[ -z "$(findstring ROMBOOT,$@)" ] || \
509 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
510 echo "... booting from 8-bit flash" ; \
512 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
514 smmaco4_config: unconfig
515 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
517 spieval_config: unconfig
518 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
520 TB5200_B_config \
521 TB5200_config: unconfig
522 @mkdir -p $(obj)include
523 @[ -z "$(findstring _B,$@)" ] || \
524 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
525 echo "... with MPC5200B processor" ; \
527 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
529 MINI5200_config \
530 EVAL5200_config \
531 TOP5200_config: unconfig
532 @mkdir -p $(obj)include
533 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
534 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
536 Total5100_config \
537 Total5200_config \
538 Total5200_lowboot_config \
539 Total5200_Rev2_config \
540 Total5200_Rev2_lowboot_config: unconfig
541 @mkdir -p $(obj)include
542 @mkdir -p $(obj)board/total5200
543 @ >$(obj)include/config.h
544 @[ -z "$(findstring 5100,$@)" ] || \
545 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
546 echo "... with MGT5100 processor" ; \
548 @[ -z "$(findstring 5200,$@)" ] || \
549 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
550 echo "... with MPC5200 processor" ; \
552 @[ -n "$(findstring Rev,$@)" ] || \
553 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
554 echo "... revision 1 board" ; \
556 @[ -z "$(findstring Rev2_,$@)" ] || \
557 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
558 echo "... revision 2 board" ; \
560 @[ -z "$(findstring lowboot_,$@)" ] || \
561 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
562 echo "... with lowboot configuration" ; \
564 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
566 cam5200_config \
567 cam5200_niosflash_config \
568 fo300_config \
569 MiniFAP_config \
570 TQM5200S_config \
571 TQM5200S_HIGHBOOT_config \
572 TQM5200_B_config \
573 TQM5200_B_HIGHBOOT_config \
574 TQM5200_config \
575 TQM5200_STK100_config: unconfig
576 @mkdir -p $(obj)include
577 @mkdir -p $(obj)board/tqm5200
578 @ >$(obj)include/config.h
579 @[ -z "$(findstring cam5200,$@)" ] || \
580 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
581 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
582 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
583 echo "... TQM5200S on Cam5200" ; \
585 @[ -z "$(findstring niosflash,$@)" ] || \
586 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
587 echo "... with NIOS flash driver" ; \
589 @[ -z "$(findstring fo300,$@)" ] || \
590 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
591 echo "... TQM5200 on FO300" ; \
593 @[ -z "$(findstring MiniFAP,$@)" ] || \
594 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
595 echo "... TQM5200_AC on MiniFAP" ; \
597 @[ -z "$(findstring STK100,$@)" ] || \
598 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
599 echo "... on a STK52XX.100 base board" ; \
601 @[ -z "$(findstring TQM5200_B,$@)" ] || \
602 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
604 @[ -z "$(findstring TQM5200S,$@)" ] || \
605 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
606 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
608 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
609 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
611 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
612 uc101_config: unconfig
613 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
614 motionpro_config: unconfig
615 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
618 #########################################################################
619 ## MPC8xx Systems
620 #########################################################################
622 Adder_config \
623 Adder87x_config \
624 AdderII_config \
625 : unconfig
626 @mkdir -p $(obj)include
627 $(if $(findstring AdderII,$@), \
628 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
629 @$(MKCONFIG) -a Adder ppc mpc8xx adder
631 ADS860_config \
632 FADS823_config \
633 FADS850SAR_config \
634 MPC86xADS_config \
635 MPC885ADS_config \
636 FADS860T_config: unconfig
637 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
639 AMX860_config : unconfig
640 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
642 c2mon_config: unconfig
643 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
645 CCM_config: unconfig
646 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
648 cogent_mpc8xx_config: unconfig
649 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
651 ELPT860_config: unconfig
652 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
654 EP88x_config: unconfig
655 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
657 ESTEEM192E_config: unconfig
658 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
660 ETX094_config : unconfig
661 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
663 FLAGADM_config: unconfig
664 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
666 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
668 GEN860T_SC_config \
669 GEN860T_config: unconfig
670 @mkdir -p $(obj)include
671 @ >$(obj)include/config.h
672 @[ -z "$(findstring _SC,$@)" ] || \
673 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
674 echo "With reduced H/W feature set (SC)..." ; \
676 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
678 GENIETV_config: unconfig
679 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
681 GTH_config: unconfig
682 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
684 hermes_config : unconfig
685 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
687 HMI10_config : unconfig
688 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
690 IAD210_config: unconfig
691 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
693 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
695 ICU862_100MHz_config \
696 ICU862_config: unconfig
697 @mkdir -p $(obj)include
698 @ >$(obj)include/config.h
699 @[ -z "$(findstring _100MHz,$@)" ] || \
700 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
701 echo "... with 100MHz system clock" ; \
703 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
705 IP860_config : unconfig
706 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
708 IVML24_256_config \
709 IVML24_128_config \
710 IVML24_config: unconfig
711 @mkdir -p $(obj)include
712 @ >$(obj)include/config.h
713 @[ -z "$(findstring IVML24_config,$@)" ] || \
714 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
716 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
717 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
719 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
720 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
722 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
724 IVMS8_256_config \
725 IVMS8_128_config \
726 IVMS8_config: unconfig
727 @mkdir -p $(obj)include
728 @ >$(obj)include/config.h
729 @[ -z "$(findstring IVMS8_config,$@)" ] || \
730 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
732 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
733 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
735 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
736 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
738 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
740 KUP4K_config : unconfig
741 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
743 KUP4X_config : unconfig
744 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
746 LANTEC_config : unconfig
747 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
749 lwmon_config: unconfig
750 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
752 MBX_config \
753 MBX860T_config: unconfig
754 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
756 MHPC_config: unconfig
757 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
759 MVS1_config : unconfig
760 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
762 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
764 NETVIA_V2_config \
765 NETVIA_config: unconfig
766 @mkdir -p $(obj)include
767 @ >$(obj)include/config.h
768 @[ -z "$(findstring NETVIA_config,$@)" ] || \
769 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
770 echo "... Version 1" ; \
772 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
773 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
774 echo "... Version 2" ; \
776 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
778 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
780 NETPHONE_V2_config \
781 NETPHONE_config: unconfig
782 @mkdir -p $(obj)include
783 @ >$(obj)include/config.h
784 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
785 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
787 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
788 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
790 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
792 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
794 NETTA_ISDN_6412_SWAPHOOK_config \
795 NETTA_ISDN_SWAPHOOK_config \
796 NETTA_6412_SWAPHOOK_config \
797 NETTA_SWAPHOOK_config \
798 NETTA_ISDN_6412_config \
799 NETTA_ISDN_config \
800 NETTA_6412_config \
801 NETTA_config: unconfig
802 @mkdir -p $(obj)include
803 @ >$(obj)include/config.h
804 @[ -z "$(findstring ISDN_,$@)" ] || \
805 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
807 @[ -n "$(findstring ISDN_,$@)" ] || \
808 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
810 @[ -z "$(findstring 6412_,$@)" ] || \
811 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
813 @[ -n "$(findstring 6412_,$@)" ] || \
814 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
816 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
817 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
819 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
820 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
822 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
824 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
826 NETTA2_V2_config \
827 NETTA2_config: unconfig
828 @mkdir -p $(obj)include
829 @ >$(obj)include/config.h
830 @[ -z "$(findstring NETTA2_config,$@)" ] || \
831 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
833 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
834 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
836 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
838 NC650_Rev1_config \
839 NC650_Rev2_config \
840 CP850_config: unconfig
841 @mkdir -p $(obj)include
842 @ >$(obj)include/config.h
843 @[ -z "$(findstring CP850,$@)" ] || \
844 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
845 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
847 @[ -z "$(findstring Rev1,$@)" ] || \
848 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
850 @[ -z "$(findstring Rev2,$@)" ] || \
851 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
853 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
855 NX823_config: unconfig
856 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
858 pcu_e_config: unconfig
859 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
861 QS850_config: unconfig
862 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
864 QS823_config: unconfig
865 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
867 QS860T_config: unconfig
868 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
870 quantum_config: unconfig
871 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
873 R360MPI_config: unconfig
874 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
876 RBC823_config: unconfig
877 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
879 RPXClassic_config: unconfig
880 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
882 RPXlite_config: unconfig
883 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
885 RPXlite_DW_64_config \
886 RPXlite_DW_LCD_config \
887 RPXlite_DW_64_LCD_config \
888 RPXlite_DW_NVRAM_config \
889 RPXlite_DW_NVRAM_64_config \
890 RPXlite_DW_NVRAM_LCD_config \
891 RPXlite_DW_NVRAM_64_LCD_config \
892 RPXlite_DW_config: unconfig
893 @mkdir -p $(obj)include
894 @ >$(obj)include/config.h
895 @[ -z "$(findstring _64,$@)" ] || \
896 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
897 echo "... with 64MHz system clock ..."; \
899 @[ -z "$(findstring _LCD,$@)" ] || \
900 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
901 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
902 echo "... with LCD display ..."; \
904 @[ -z "$(findstring _NVRAM,$@)" ] || \
905 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
906 echo "... with ENV in NVRAM ..."; \
908 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
910 rmu_config: unconfig
911 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
913 RRvision_config: unconfig
914 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
916 RRvision_LCD_config: unconfig
917 @mkdir -p $(obj)include
918 @echo "#define CONFIG_LCD" >$(obj)include/config.h
919 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
920 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
922 SM850_config : unconfig
923 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
925 spc1920_config:
926 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
928 SPD823TS_config: unconfig
929 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
931 stxxtc_config: unconfig
932 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
934 svm_sc8xx_config: unconfig
935 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
937 SXNI855T_config: unconfig
938 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
940 # EMK MPC8xx based modules
941 TOP860_config: unconfig
942 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
944 # Play some tricks for configuration selection
945 # Only 855 and 860 boards may come with FEC
946 # and only 823 boards may have LCD support
947 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
949 FPS850L_config \
950 FPS860L_config \
951 NSCU_config \
952 TQM823L_config \
953 TQM823L_LCD_config \
954 TQM850L_config \
955 TQM855L_config \
956 TQM860L_config \
957 TQM862L_config \
958 TQM823M_config \
959 TQM850M_config \
960 TQM855M_config \
961 TQM860M_config \
962 TQM862M_config \
963 TQM866M_config \
964 TQM885D_config \
965 virtlab2_config: unconfig
966 @mkdir -p $(obj)include
967 @ >$(obj)include/config.h
968 @[ -z "$(findstring _LCD,$@)" ] || \
969 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
970 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
971 echo "... with LCD display" ; \
973 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
975 TTTech_config: unconfig
976 @mkdir -p $(obj)include
977 @echo "#define CONFIG_LCD" >$(obj)include/config.h
978 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
979 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
981 uc100_config : unconfig
982 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
984 v37_config: unconfig
985 @mkdir -p $(obj)include
986 @echo "#define CONFIG_LCD" >$(obj)include/config.h
987 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
988 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
990 wtk_config: unconfig
991 @mkdir -p $(obj)include
992 @echo "#define CONFIG_LCD" >$(obj)include/config.h
993 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
994 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
996 #########################################################################
997 ## PPC4xx Systems
998 #########################################################################
999 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1001 acadia_config: unconfig
1002 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1004 ADCIOP_config: unconfig
1005 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1007 alpr_config: unconfig
1008 @./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
1010 AP1000_config:unconfig
1011 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1013 APC405_config: unconfig
1014 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1016 AR405_config: unconfig
1017 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1019 ASH405_config: unconfig
1020 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1022 bamboo_config: unconfig
1023 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1025 bubinga_config: unconfig
1026 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1028 CANBT_config: unconfig
1029 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1031 CATcenter_config \
1032 CATcenter_25_config \
1033 CATcenter_33_config: unconfig
1034 @mkdir -p $(obj)include
1035 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1036 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1037 @[ -z "$(findstring _25,$@)" ] || \
1038 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1039 echo "SysClk = 25MHz" ; \
1041 @[ -z "$(findstring _33,$@)" ] || \
1042 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1043 echo "SysClk = 33MHz" ; \
1045 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1047 CPCI2DP_config: unconfig
1048 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1050 CPCI405_config \
1051 CPCI4052_config \
1052 CPCI405DT_config \
1053 CPCI405AB_config: unconfig
1054 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1055 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1057 CPCI440_config: unconfig
1058 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1060 CPCIISER4_config: unconfig
1061 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1063 CRAYL1_config: unconfig
1064 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1066 csb272_config: unconfig
1067 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1069 csb472_config: unconfig
1070 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1072 DASA_SIM_config: unconfig
1073 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1075 DP405_config: unconfig
1076 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1078 DU405_config: unconfig
1079 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1081 ebony_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1084 ERIC_config: unconfig
1085 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1087 EXBITGEN_config: unconfig
1088 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1090 G2000_config: unconfig
1091 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1093 HH405_config: unconfig
1094 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1096 HUB405_config: unconfig
1097 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1099 JSE_config: unconfig
1100 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1102 KAREF_config: unconfig
1103 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1105 katmai_config: unconfig
1106 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1108 luan_config: unconfig
1109 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1111 METROBOX_config: unconfig
1112 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1114 MIP405_config: unconfig
1115 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1117 MIP405T_config: unconfig
1118 @mkdir -p $(obj)include
1119 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1120 @echo "Enable subset config for MIP405T"
1121 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1123 ML2_config: unconfig
1124 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1126 ml300_config: unconfig
1127 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1129 ocotea_config: unconfig
1130 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1132 OCRTC_config \
1133 ORSG_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1136 p3p440_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1139 PCI405_config: unconfig
1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1142 pcs440ep_config: unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1145 PIP405_config: unconfig
1146 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1148 PLU405_config: unconfig
1149 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1151 PMC405_config: unconfig
1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1154 PPChameleonEVB_config \
1155 PPChameleonEVB_BA_25_config \
1156 PPChameleonEVB_ME_25_config \
1157 PPChameleonEVB_HI_25_config \
1158 PPChameleonEVB_BA_33_config \
1159 PPChameleonEVB_ME_33_config \
1160 PPChameleonEVB_HI_33_config: unconfig
1161 @mkdir -p $(obj)include
1162 @ >$(obj)include/config.h
1163 @[ -z "$(findstring EVB_BA,$@)" ] || \
1164 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1165 echo "... BASIC model" ; \
1167 @[ -z "$(findstring EVB_ME,$@)" ] || \
1168 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1169 echo "... MEDIUM model" ; \
1171 @[ -z "$(findstring EVB_HI,$@)" ] || \
1172 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1173 echo "... HIGH-END model" ; \
1175 @[ -z "$(findstring _25,$@)" ] || \
1176 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1177 echo "SysClk = 25MHz" ; \
1179 @[ -z "$(findstring _33,$@)" ] || \
1180 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1181 echo "SysClk = 33MHz" ; \
1183 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1185 rainier_config: unconfig
1186 @mkdir -p $(obj)include
1187 @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1188 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1190 rainier_nand_config: unconfig
1191 @mkdir -p $(obj)include
1192 @mkdir -p $(obj)nand_spl
1193 @mkdir -p $(obj)board/amcc/sequoia
1194 @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1195 @echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h
1196 @echo "Compile NAND boot image for sequoia"
1197 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1198 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1199 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1201 sbc405_config: unconfig
1202 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1204 sequoia_config: unconfig
1205 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sequoia amcc
1207 sequoia_nand_config: unconfig
1208 @mkdir -p $(obj)include
1209 @mkdir -p $(obj)nand_spl
1210 @mkdir -p $(obj)board/amcc/sequoia
1211 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1212 @echo "Compile NAND boot image for sequoia"
1213 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1214 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1215 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1217 sc3_config:unconfig
1218 @./mkconfig $(@:_config=) ppc ppc4xx sc3
1220 sycamore_config: unconfig
1221 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1223 taishan_config: unconfig
1224 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1226 VOH405_config: unconfig
1227 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1229 VOM405_config: unconfig
1230 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1232 CMS700_config: unconfig
1233 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1235 W7OLMC_config \
1236 W7OLMG_config: unconfig
1237 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1239 walnut_config: unconfig
1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx walnut amcc
1242 WUH405_config: unconfig
1243 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1245 XPEDITE1K_config: unconfig
1246 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1248 yosemite_config: unconfig
1249 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yosemite amcc
1251 yellowstone_config: unconfig
1252 @mkdir -p $(obj)include
1253 @echo "#define CONFIG_YELLOWSTONE" > $(obj)include/config.h
1254 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1256 yucca_config: unconfig
1257 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1259 #########################################################################
1260 ## MPC8220 Systems
1261 #########################################################################
1263 Alaska8220_config \
1264 Yukon8220_config: unconfig
1265 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1267 sorcery_config: unconfig
1268 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1270 #########################################################################
1271 ## MPC824x Systems
1272 #########################################################################
1273 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1275 A3000_config: unconfig
1276 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1278 barco_config: unconfig
1279 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1281 BMW_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1284 CPC45_config \
1285 CPC45_ROMBOOT_config: unconfig
1286 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1287 @cd $(obj)include ; \
1288 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1289 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1290 echo "... booting from 8-bit flash" ; \
1291 else \
1292 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1293 echo "... booting from 64-bit flash" ; \
1294 fi; \
1295 echo "export CONFIG_BOOT_ROM" >> config.mk;
1297 CU824_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1300 debris_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1303 eXalion_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1306 HIDDEN_DRAGON_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1309 kvme080_config: unconfig
1310 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1312 MOUSSE_config: unconfig
1313 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1315 MUSENKI_config: unconfig
1316 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1318 MVBLUE_config: unconfig
1319 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1321 OXC_config: unconfig
1322 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1324 PN62_config: unconfig
1325 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1327 Sandpoint8240_config: unconfig
1328 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1330 Sandpoint8245_config: unconfig
1331 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1333 sbc8240_config: unconfig
1334 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1336 SL8245_config: unconfig
1337 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1339 utx8245_config: unconfig
1340 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1342 #########################################################################
1343 ## MPC8260 Systems
1344 #########################################################################
1346 atc_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1349 cogent_mpc8260_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1352 CPU86_config \
1353 CPU86_ROMBOOT_config: unconfig
1354 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1355 @cd $(obj)include ; \
1356 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1357 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1358 echo "... booting from 8-bit flash" ; \
1359 else \
1360 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1361 echo "... booting from 64-bit flash" ; \
1362 fi; \
1363 echo "export CONFIG_BOOT_ROM" >> config.mk;
1365 CPU87_config \
1366 CPU87_ROMBOOT_config: unconfig
1367 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1368 @cd $(obj)include ; \
1369 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1370 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1371 echo "... booting from 8-bit flash" ; \
1372 else \
1373 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1374 echo "... booting from 64-bit flash" ; \
1375 fi; \
1376 echo "export CONFIG_BOOT_ROM" >> config.mk;
1378 ep8248_config \
1379 ep8248E_config : unconfig
1380 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1382 ep8260_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1385 ep82xxm_config: unconfig
1386 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1388 gw8260_config: unconfig
1389 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1391 hymod_config: unconfig
1392 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1394 IDS8247_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1397 IPHASE4539_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1400 ISPAN_config \
1401 ISPAN_REVB_config: unconfig
1402 @mkdir -p $(obj)include
1403 @if [ "$(findstring _REVB_,$@)" ] ; then \
1404 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1406 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1408 MPC8260ADS_config \
1409 MPC8260ADS_lowboot_config \
1410 MPC8260ADS_33MHz_config \
1411 MPC8260ADS_33MHz_lowboot_config \
1412 MPC8260ADS_40MHz_config \
1413 MPC8260ADS_40MHz_lowboot_config \
1414 MPC8272ADS_config \
1415 MPC8272ADS_lowboot_config \
1416 PQ2FADS_config \
1417 PQ2FADS_lowboot_config \
1418 PQ2FADS-VR_config \
1419 PQ2FADS-VR_lowboot_config \
1420 PQ2FADS-ZU_config \
1421 PQ2FADS-ZU_lowboot_config \
1422 PQ2FADS-ZU_66MHz_config \
1423 PQ2FADS-ZU_66MHz_lowboot_config \
1424 : unconfig
1425 @mkdir -p $(obj)include
1426 @mkdir -p $(obj)board/mpc8260ads
1427 $(if $(findstring PQ2FADS,$@), \
1428 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1429 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1430 $(if $(findstring MHz,$@), \
1431 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1432 $(if $(findstring VR,$@), \
1433 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1434 @[ -z "$(findstring lowboot_,$@)" ] || \
1435 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1436 echo "... with lowboot configuration" ; \
1438 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1440 MPC8266ADS_config: unconfig
1441 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1443 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1444 PM825_config \
1445 PM825_ROMBOOT_config \
1446 PM825_BIGFLASH_config \
1447 PM825_ROMBOOT_BIGFLASH_config \
1448 PM826_config \
1449 PM826_ROMBOOT_config \
1450 PM826_BIGFLASH_config \
1451 PM826_ROMBOOT_BIGFLASH_config: unconfig
1452 @mkdir -p $(obj)include
1453 @mkdir -p $(obj)board/pm826
1454 @if [ "$(findstring PM825_,$@)" ] ; then \
1455 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1456 else \
1457 >$(obj)include/config.h ; \
1459 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1460 echo "... booting from 8-bit flash" ; \
1461 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1462 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1463 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1464 echo "... with 32 MB Flash" ; \
1465 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1466 fi; \
1467 else \
1468 echo "... booting from 64-bit flash" ; \
1469 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1470 echo "... with 32 MB Flash" ; \
1471 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1472 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1473 else \
1474 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1475 fi; \
1477 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1479 PM828_config \
1480 PM828_PCI_config \
1481 PM828_ROMBOOT_config \
1482 PM828_ROMBOOT_PCI_config: unconfig
1483 @mkdir -p $(obj)include
1484 @mkdir -p $(obj)board/pm826
1485 @if [ "$(findstring _PCI_,$@)" ] ; then \
1486 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1487 echo "... with PCI enabled" ; \
1488 else \
1489 >$(obj)include/config.h ; \
1491 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1492 echo "... booting from 8-bit flash" ; \
1493 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1494 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1496 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1498 ppmc8260_config: unconfig
1499 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1501 Rattler8248_config \
1502 Rattler_config: unconfig
1503 @mkdir -p $(obj)include
1504 $(if $(findstring 8248,$@), \
1505 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1506 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1508 RPXsuper_config: unconfig
1509 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1511 rsdproto_config: unconfig
1512 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1514 sacsng_config: unconfig
1515 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1517 sbc8260_config: unconfig
1518 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1520 SCM_config: unconfig
1521 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1523 TQM8255_AA_config \
1524 TQM8260_AA_config \
1525 TQM8260_AB_config \
1526 TQM8260_AC_config \
1527 TQM8260_AD_config \
1528 TQM8260_AE_config \
1529 TQM8260_AF_config \
1530 TQM8260_AG_config \
1531 TQM8260_AH_config \
1532 TQM8260_AI_config \
1533 TQM8265_AA_config: unconfig
1534 @mkdir -p $(obj)include
1535 @case "$@" in \
1536 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1537 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1538 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1539 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1540 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1541 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1542 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1543 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1544 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1545 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1546 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1547 esac; \
1548 >$(obj)include/config.h ; \
1549 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1550 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1551 fi; \
1552 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1553 echo "... with $${CFREQ}MHz system clock" ; \
1554 if [ "$${CACHE}" == "yes" ] ; then \
1555 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1556 echo "... with L2 Cache support" ; \
1557 else \
1558 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1559 echo "... without L2 Cache support" ; \
1560 fi; \
1561 if [ "$${BMODE}" == "60x" ] ; then \
1562 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1563 echo "... with 60x Bus Mode" ; \
1564 else \
1565 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1566 echo "... without 60x Bus Mode" ; \
1568 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1570 TQM8272_config: unconfig
1571 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1573 VoVPN-GW_66MHz_config \
1574 VoVPN-GW_100MHz_config: unconfig
1575 @mkdir -p $(obj)include
1576 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1577 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1579 ZPC1900_config: unconfig
1580 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1582 #########################################################################
1583 ## Coldfire
1584 #########################################################################
1586 cobra5272_config : unconfig
1587 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1589 EB+MCF-EV123_config : unconfig
1590 @mkdir -p $(obj)include
1591 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1592 @ >$(obj)include/config.h
1593 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1594 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1596 EB+MCF-EV123_internal_config : unconfig
1597 @mkdir -p $(obj)include
1598 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1599 @ >$(obj)include/config.h
1600 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1601 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1603 idmr_config : unconfig
1604 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1606 M5271EVB_config : unconfig
1607 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1609 M5272C3_config : unconfig
1610 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1612 M5282EVB_config : unconfig
1613 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1615 TASREG_config : unconfig
1616 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1618 r5200_config : unconfig
1619 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1621 #########################################################################
1622 ## MPC83xx Systems
1623 #########################################################################
1625 MPC832XEMDS_config \
1626 MPC832XEMDS_HOST_33_config \
1627 MPC832XEMDS_HOST_66_config \
1628 MPC832XEMDS_SLAVE_config: unconfig
1629 @echo "" >include/config.h ; \
1630 if [ "$(findstring _HOST_,$@)" ] ; then \
1631 echo -n "... PCI HOST " ; \
1632 echo "#define CONFIG_PCI" >>include/config.h ; \
1633 fi ; \
1634 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1635 echo "...PCI SLAVE 66M" ; \
1636 echo "#define CONFIG_PCI" >>include/config.h ; \
1637 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1638 fi ; \
1639 if [ "$(findstring _33_,$@)" ] ; then \
1640 echo -n "...33M ..." ; \
1641 echo "#define PCI_33M" >>include/config.h ; \
1642 fi ; \
1643 if [ "$(findstring _66_,$@)" ] ; then \
1644 echo -n "...66M..." ; \
1645 echo "#define PCI_66M" >>include/config.h ; \
1646 fi ;
1647 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1649 MPC8349EMDS_config: unconfig
1650 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1652 MPC8349ITX_config \
1653 MPC8349ITX_LOWBOOT_config \
1654 MPC8349ITXGP_config: unconfig
1655 @mkdir -p $(obj)include
1656 @mkdir -p $(obj)board/mpc8349itx
1657 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1658 @if [ "$(findstring GP,$@)" ] ; then \
1659 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1661 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1662 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1664 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1666 MPC8360EMDS_config \
1667 MPC8360EMDS_HOST_33_config \
1668 MPC8360EMDS_HOST_66_config \
1669 MPC8360EMDS_SLAVE_config: unconfig
1670 @echo "" >include/config.h ; \
1671 if [ "$(findstring _HOST_,$@)" ] ; then \
1672 echo -n "... PCI HOST " ; \
1673 echo "#define CONFIG_PCI" >>include/config.h ; \
1674 fi ; \
1675 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1676 echo "...PCI SLAVE 66M" ; \
1677 echo "#define CONFIG_PCI" >>include/config.h ; \
1678 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1679 fi ; \
1680 if [ "$(findstring _33_,$@)" ] ; then \
1681 echo -n "...33M ..." ; \
1682 echo "#define PCI_33M" >>include/config.h ; \
1683 fi ; \
1684 if [ "$(findstring _66_,$@)" ] ; then \
1685 echo -n "...66M..." ; \
1686 echo "#define PCI_66M" >>include/config.h ; \
1687 fi ;
1688 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1690 sbc8349_config: unconfig
1691 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1693 TQM834x_config: unconfig
1694 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1697 #########################################################################
1698 ## MPC85xx Systems
1699 #########################################################################
1701 MPC8540ADS_config: unconfig
1702 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1704 MPC8540EVAL_config \
1705 MPC8540EVAL_33_config \
1706 MPC8540EVAL_66_config \
1707 MPC8540EVAL_33_slave_config \
1708 MPC8540EVAL_66_slave_config: unconfig
1709 @mkdir -p $(obj)include
1710 @echo "" >$(obj)include/config.h ; \
1711 if [ "$(findstring _33_,$@)" ] ; then \
1712 echo -n "... 33 MHz PCI" ; \
1713 else \
1714 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1715 echo -n "... 66 MHz PCI" ; \
1716 fi ; \
1717 if [ "$(findstring _slave_,$@)" ] ; then \
1718 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1719 echo " slave" ; \
1720 else \
1721 echo " host" ; \
1723 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1725 MPC8560ADS_config: unconfig
1726 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1728 MPC8541CDS_config: unconfig
1729 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1731 MPC8548CDS_config: unconfig
1732 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1734 MPC8555CDS_config: unconfig
1735 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1737 PM854_config: unconfig
1738 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1740 PM856_config: unconfig
1741 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1743 sbc8540_config \
1744 sbc8540_33_config \
1745 sbc8540_66_config: unconfig
1746 @mkdir -p $(obj)include
1747 @if [ "$(findstring _66_,$@)" ] ; then \
1748 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1749 echo "... 66 MHz PCI" ; \
1750 else \
1751 >$(obj)include/config.h ; \
1752 echo "... 33 MHz PCI" ; \
1754 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1756 sbc8560_config \
1757 sbc8560_33_config \
1758 sbc8560_66_config: unconfig
1759 @mkdir -p $(obj)include
1760 @if [ "$(findstring _66_,$@)" ] ; then \
1761 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1762 echo "... 66 MHz PCI" ; \
1763 else \
1764 >$(obj)include/config.h ; \
1765 echo "... 33 MHz PCI" ; \
1767 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1769 stxgp3_config: unconfig
1770 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1772 TQM8540_config \
1773 TQM8541_config \
1774 TQM8555_config \
1775 TQM8560_config: unconfig
1776 @mkdir -p $(obj)include
1777 @CTYPE=$(subst TQM,,$(@:_config=)); \
1778 >$(obj)include/config.h ; \
1779 echo "... TQM"$${CTYPE}; \
1780 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1781 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1782 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1783 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1784 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1785 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1787 #########################################################################
1788 ## MPC86xx Systems
1789 #########################################################################
1791 MPC8641HPCN_config: unconfig
1792 @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1795 #########################################################################
1796 ## 74xx/7xx Systems
1797 #########################################################################
1799 AmigaOneG3SE_config: unconfig
1800 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1802 BAB7xx_config: unconfig
1803 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1805 CPCI750_config: unconfig
1806 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1808 DB64360_config: unconfig
1809 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1811 DB64460_config: unconfig
1812 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1814 ELPPC_config: unconfig
1815 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1817 EVB64260_config \
1818 EVB64260_750CX_config: unconfig
1819 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1821 P3G4_config: unconfig
1822 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1824 p3m750_config \
1825 p3m7448_config: unconfig
1826 @mkdir -p $(obj)include
1827 @if [ "$(findstring 750_,$@)" ] ; then \
1828 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1829 else \
1830 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1832 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1834 PCIPPC2_config \
1835 PCIPPC6_config: unconfig
1836 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1838 ZUMA_config: unconfig
1839 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1841 ppmc7xx_config: unconfig
1842 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1844 #========================================================================
1845 # ARM
1846 #========================================================================
1847 #########################################################################
1848 ## StrongARM Systems
1849 #########################################################################
1851 assabet_config : unconfig
1852 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1854 dnp1110_config : unconfig
1855 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1857 gcplus_config : unconfig
1858 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1860 lart_config : unconfig
1861 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1863 shannon_config : unconfig
1864 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1866 #########################################################################
1867 ## ARM92xT Systems
1868 #########################################################################
1870 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1872 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1874 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1876 at91rm9200dk_config : unconfig
1877 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1879 cmc_pu2_config : unconfig
1880 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1882 csb637_config : unconfig
1883 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1885 mp2usb_config : unconfig
1886 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1889 ########################################################################
1890 ## ARM Integrator boards - see doc/README-integrator for more info.
1891 integratorap_config \
1892 ap_config \
1893 ap966_config \
1894 ap922_config \
1895 ap922_XA10_config \
1896 ap7_config \
1897 ap720t_config \
1898 ap920t_config \
1899 ap926ejs_config \
1900 ap946es_config: unconfig
1901 @board/integratorap/split_by_variant.sh $@
1903 integratorcp_config \
1904 cp_config \
1905 cp920t_config \
1906 cp926ejs_config \
1907 cp946es_config \
1908 cp1136_config \
1909 cp966_config \
1910 cp922_config \
1911 cp922_XA10_config \
1912 cp1026_config: unconfig
1913 @board/integratorcp/split_by_variant.sh $@
1915 kb9202_config : unconfig
1916 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1918 lpd7a400_config \
1919 lpd7a404_config: unconfig
1920 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1922 mx1ads_config : unconfig
1923 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1925 mx1fs2_config : unconfig
1926 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1928 netstar_32_config \
1929 netstar_config: unconfig
1930 @mkdir -p $(obj)include
1931 @if [ "$(findstring _32_,$@)" ] ; then \
1932 echo "... 32MB SDRAM" ; \
1933 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1934 else \
1935 echo "... 64MB SDRAM" ; \
1936 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1938 @$(MKCONFIG) -a netstar arm arm925t netstar
1940 omap1510inn_config : unconfig
1941 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
1943 omap5912osk_config : unconfig
1944 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1946 omap1610inn_config \
1947 omap1610inn_cs0boot_config \
1948 omap1610inn_cs3boot_config \
1949 omap1610inn_cs_autoboot_config \
1950 omap1610h2_config \
1951 omap1610h2_cs0boot_config \
1952 omap1610h2_cs3boot_config \
1953 omap1610h2_cs_autoboot_config: unconfig
1954 @mkdir -p $(obj)include
1955 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1956 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1957 echo "... configured for CS0 boot"; \
1958 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1959 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
1960 echo "... configured for CS_AUTO boot"; \
1961 else \
1962 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1963 echo "... configured for CS3 boot"; \
1965 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
1967 omap730p2_config \
1968 omap730p2_cs0boot_config \
1969 omap730p2_cs3boot_config : unconfig
1970 @mkdir -p $(obj)include
1971 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1972 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
1973 echo "... configured for CS0 boot"; \
1974 else \
1975 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
1976 echo "... configured for CS3 boot"; \
1978 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1980 sbc2410x_config: unconfig
1981 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
1983 scb9328_config : unconfig
1984 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
1986 smdk2400_config : unconfig
1987 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
1989 smdk2410_config : unconfig
1990 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
1992 SX1_config : unconfig
1993 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
1995 # TRAB default configuration: 8 MB Flash, 32 MB RAM
1996 trab_config \
1997 trab_bigram_config \
1998 trab_bigflash_config \
1999 trab_old_config: unconfig
2000 @mkdir -p $(obj)include
2001 @mkdir -p $(obj)board/trab
2002 @ >$(obj)include/config.h
2003 @[ -z "$(findstring _bigram,$@)" ] || \
2004 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2005 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2006 echo "... with 8 MB Flash, 32 MB RAM" ; \
2008 @[ -z "$(findstring _bigflash,$@)" ] || \
2009 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2010 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2011 echo "... with 16 MB Flash, 16 MB RAM" ; \
2012 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2014 @[ -z "$(findstring _old,$@)" ] || \
2015 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2016 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2017 echo "... with 8 MB Flash, 16 MB RAM" ; \
2018 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2020 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2022 VCMA9_config : unconfig
2023 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2025 #========================================================================
2026 # ARM supplied Versatile development boards
2027 #========================================================================
2028 versatile_config \
2029 versatileab_config \
2030 versatilepb_config : unconfig
2031 @board/versatile/split_by_variant.sh $@
2033 voiceblue_smallflash_config \
2034 voiceblue_config: unconfig
2035 @mkdir -p $(obj)include
2036 @mkdir -p $(obj)board/voiceblue
2037 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2038 echo "... boot from lower flash bank" ; \
2039 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2040 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2041 else \
2042 echo "... boot from upper flash bank" ; \
2043 >$(obj)include/config.h ; \
2044 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2046 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2048 cm4008_config : unconfig
2049 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2051 cm41xx_config : unconfig
2052 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2054 gth2_config : unconfig
2055 @mkdir -p $(obj)include
2056 @ >$(obj)include/config.h
2057 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2058 @$(MKCONFIG) -a gth2 mips mips gth2
2060 #########################################################################
2061 ## S3C44B0 Systems
2062 #########################################################################
2064 B2_config : unconfig
2065 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2067 #########################################################################
2068 ## ARM720T Systems
2069 #########################################################################
2071 armadillo_config: unconfig
2072 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2074 ep7312_config : unconfig
2075 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2077 impa7_config : unconfig
2078 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2080 modnet50_config : unconfig
2081 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2083 evb4510_config : unconfig
2084 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2086 lpc2292sodimm_config: unconfig
2087 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm
2089 #########################################################################
2090 ## XScale Systems
2091 #########################################################################
2093 adsvix_config : unconfig
2094 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2096 cerf250_config : unconfig
2097 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2099 cradle_config : unconfig
2100 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2102 csb226_config : unconfig
2103 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2105 delta_config :
2106 @$(MKCONFIG) $(@:_config=) arm pxa delta
2108 innokom_config : unconfig
2109 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2111 ixdp425_config : unconfig
2112 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2114 ixdpg425_config : unconfig
2115 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2117 lubbock_config : unconfig
2118 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2120 pleb2_config : unconfig
2121 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2123 logodl_config : unconfig
2124 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2126 pdnb3_config \
2127 scpu_config: unconfig
2128 @if [ "$(findstring scpu_,$@)" ] ; then \
2129 echo "#define CONFIG_SCPU" >>include/config.h ; \
2130 echo "... on SCPU board variant" ; \
2131 else \
2132 >include/config.h ; \
2134 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2136 pxa255_idp_config: unconfig
2137 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2139 wepep250_config : unconfig
2140 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2142 xaeniax_config : unconfig
2143 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2145 xm250_config : unconfig
2146 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2148 xsengine_config : unconfig
2149 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2151 zylonite_config :
2152 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2154 #########################################################################
2155 ## ARM1136 Systems
2156 #########################################################################
2157 omap2420h4_config : unconfig
2158 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2160 #========================================================================
2161 # i386
2162 #========================================================================
2163 #########################################################################
2164 ## AMD SC520 CDP
2165 #########################################################################
2166 sc520_cdp_config : unconfig
2167 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2169 sc520_spunk_config : unconfig
2170 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2172 sc520_spunk_rel_config : unconfig
2173 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2175 #========================================================================
2176 # MIPS
2177 #========================================================================
2178 #########################################################################
2179 ## MIPS32 4Kc
2180 #########################################################################
2182 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2184 incaip_100MHz_config \
2185 incaip_133MHz_config \
2186 incaip_150MHz_config \
2187 incaip_config: unconfig
2188 @mkdir -p $(obj)include
2189 @ >$(obj)include/config.h
2190 @[ -z "$(findstring _100MHz,$@)" ] || \
2191 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2192 echo "... with 100MHz system clock" ; \
2194 @[ -z "$(findstring _133MHz,$@)" ] || \
2195 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2196 echo "... with 133MHz system clock" ; \
2198 @[ -z "$(findstring _150MHz,$@)" ] || \
2199 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2200 echo "... with 150MHz system clock" ; \
2202 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2204 tb0229_config: unconfig
2205 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2207 #########################################################################
2208 ## MIPS32 AU1X00
2209 #########################################################################
2210 dbau1000_config : unconfig
2211 @mkdir -p $(obj)include
2212 @ >$(obj)include/config.h
2213 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2214 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2216 dbau1100_config : unconfig
2217 @mkdir -p $(obj)include
2218 @ >$(obj)include/config.h
2219 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2220 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2222 dbau1500_config : unconfig
2223 @mkdir -p $(obj)include
2224 @ >$(obj)include/config.h
2225 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2226 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2228 dbau1550_config : unconfig
2229 @mkdir -p $(obj)include
2230 @ >$(obj)include/config.h
2231 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2232 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2234 dbau1550_el_config : unconfig
2235 @mkdir -p $(obj)include
2236 @ >$(obj)include/config.h
2237 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2238 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2240 pb1000_config : unconfig
2241 @mkdir -p $(obj)include
2242 @ >$(obj)include/config.h
2243 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2244 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2246 #########################################################################
2247 ## MIPS64 5Kc
2248 #########################################################################
2250 purple_config : unconfig
2251 @$(MKCONFIG) $(@:_config=) mips mips purple
2253 #========================================================================
2254 # Nios
2255 #========================================================================
2256 #########################################################################
2257 ## Nios32
2258 #########################################################################
2260 DK1C20_safe_32_config \
2261 DK1C20_standard_32_config \
2262 DK1C20_config: unconfig
2263 @mkdir -p $(obj)include
2264 @ >$(obj)include/config.h
2265 @[ -z "$(findstring _safe_32,$@)" ] || \
2266 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2267 echo "... NIOS 'safe_32' configuration" ; \
2269 @[ -z "$(findstring _standard_32,$@)" ] || \
2270 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2271 echo "... NIOS 'standard_32' configuration" ; \
2273 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2274 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2275 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2277 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2279 DK1S10_safe_32_config \
2280 DK1S10_standard_32_config \
2281 DK1S10_mtx_ldk_20_config \
2282 DK1S10_config: unconfig
2283 @mkdir -p $(obj)include
2284 @ >$(obj)include/config.h
2285 @[ -z "$(findstring _safe_32,$@)" ] || \
2286 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2287 echo "... NIOS 'safe_32' configuration" ; \
2289 @[ -z "$(findstring _standard_32,$@)" ] || \
2290 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2291 echo "... NIOS 'standard_32' configuration" ; \
2293 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2294 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2295 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2297 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2298 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2299 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2301 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2303 ADNPESC1_DNPEVA2_base_32_config \
2304 ADNPESC1_base_32_config \
2305 ADNPESC1_config: unconfig
2306 @mkdir -p $(obj)include
2307 @ >$(obj)include/config.h
2308 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2309 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2310 echo "... DNP/EVA2 configuration" ; \
2312 @[ -z "$(findstring _base_32,$@)" ] || \
2313 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2314 echo "... NIOS 'base_32' configuration" ; \
2316 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2317 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2318 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2320 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2322 #########################################################################
2323 ## Nios-II
2324 #########################################################################
2326 EP1C20_config : unconfig
2327 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2329 EP1S10_config : unconfig
2330 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2332 EP1S40_config : unconfig
2333 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2335 PK1C20_config : unconfig
2336 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2338 PCI5441_config : unconfig
2339 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2341 #========================================================================
2342 # MicroBlaze
2343 #========================================================================
2344 #########################################################################
2345 ## Microblaze
2346 #########################################################################
2347 suzaku_config: unconfig
2348 @mkdir -p $(obj)include
2349 @ >$(obj)include/config.h
2350 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2351 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2353 #########################################################################
2354 ## Blackfin
2355 #########################################################################
2356 ezkit533_config : unconfig
2357 @$(MKCONFIG) $(@:_config=) blackfin bf533 ezkit533
2359 stamp_config : unconfig
2360 @$(MKCONFIG) $(@:_config=) blackfin bf533 stamp
2362 dspstamp_config : unconfig
2363 @$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
2365 #========================================================================
2366 # AVR32
2367 #========================================================================
2368 #########################################################################
2369 ## AT32AP7xxx
2370 #########################################################################
2372 atstk1002_config : unconfig
2373 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2375 #########################################################################
2376 #########################################################################
2377 #########################################################################
2379 clean:
2380 find $(OBJTREE) -type f \
2381 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2382 -o -name '*.o' -o -name '*.a' \) -print \
2383 | xargs rm -f
2384 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2385 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2386 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2387 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2388 $(obj)examples/test_burst
2389 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2390 $(obj)tools/gen_eth_addr
2391 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2392 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2393 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2394 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2395 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2396 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2397 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2398 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2399 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2400 rm -f $(obj)include/bmp_logo.h
2401 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2403 clobber: clean
2404 find $(OBJTREE) -type f \( -name .depend \
2405 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2406 -print0 \
2407 | xargs -0 rm -f
2408 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2409 rm -fr $(obj)*.*~
2410 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2411 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2412 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2413 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2414 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2416 ifeq ($(OBJTREE),$(SRCTREE))
2417 mrproper \
2418 distclean: clobber unconfig
2419 else
2420 mrproper \
2421 distclean: clobber unconfig
2422 rm -rf $(OBJTREE)/*
2423 endif
2425 backup:
2426 F=`basename $(TOPDIR)` ; cd .. ; \
2427 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2429 #########################################################################