1 #
2 # (C) Copyright 2000-2006
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 #
24 VERSION = 1
25 PATCHLEVEL = 1
26 SUBLEVEL = 4
27 EXTRAVERSION =
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = 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 TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
50 export TOPDIR
52 ifeq (include/config.mk,$(wildcard include/config.mk))
53 # load ARCH, BOARD, and CPU configuration
54 include include/config.mk
55 export ARCH CPU BOARD VENDOR SOC
56 ifndef CROSS_COMPILE
57 ifeq ($(HOSTARCH),ppc)
58 CROSS_COMPILE =
59 else
60 ifeq ($(ARCH),ppc)
61 CROSS_COMPILE = powerpc-linux-
62 endif
63 ifeq ($(ARCH),arm)
64 #CROSS_COMPILE = arm-linux-
65 CROSS_COMPILE = arm-none-linux-gnueabi-
66 endif
67 ifeq ($(ARCH),i386)
68 ifeq ($(HOSTARCH),i386)
69 CROSS_COMPILE =
70 else
71 CROSS_COMPILE = i386-linux-
72 endif
73 endif
74 ifeq ($(ARCH),mips)
75 CROSS_COMPILE = mips_4KC-
76 endif
77 ifeq ($(ARCH),nios)
78 CROSS_COMPILE = nios-elf-
79 endif
80 ifeq ($(ARCH),nios2)
81 CROSS_COMPILE = nios2-elf-
82 endif
83 ifeq ($(ARCH),m68k)
84 CROSS_COMPILE = m68k-elf-
85 endif
86 ifeq ($(ARCH),microblaze)
87 CROSS_COMPILE = mb-
88 endif
89 ifeq ($(ARCH),blackfin)
90 CROSS_COMPILE = bfin-elf-
91 endif
92 endif
93 endif
95 export CROSS_COMPILE
97 # load other configuration
98 include $(TOPDIR)/config.mk
101 #########################################################################
102 # U-Boot objects....order is important (i.e. start must be first)
104 OBJS = cpu/$(CPU)/start.o
105 ifeq ($(CPU),i386)
106 OBJS += cpu/$(CPU)/start16.o
107 OBJS += cpu/$(CPU)/reset.o
108 endif
109 ifeq ($(CPU),ppc4xx)
110 OBJS += cpu/$(CPU)/resetvec.o
111 endif
112 ifeq ($(CPU),mpc83xx)
113 OBJS += cpu/$(CPU)/resetvec.o
114 endif
115 ifeq ($(CPU),mpc85xx)
116 OBJS += cpu/$(CPU)/resetvec.o
117 endif
118 ifeq ($(CPU),bf533)
119 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
120 OBJS += cpu/$(CPU)/cplbhdlr.o cpu/$(CPU)/cplbmgr.o cpu/$(CPU)/flush.o
121 endif
123 LIBS = lib_generic/libgeneric.a
124 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
125 LIBS += cpu/$(CPU)/lib$(CPU).a
126 ifdef SOC
127 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
128 endif
129 LIBS += lib_$(ARCH)/lib$(ARCH).a
130 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
131 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
132 LIBS += net/libnet.a
133 LIBS += disk/libdisk.a
134 LIBS += rtc/librtc.a
135 LIBS += dtt/libdtt.a
136 LIBS += drivers/libdrivers.a
137 LIBS += drivers/onenand/libonenand.a
138 LIBS += drivers/nand/libnand.a
139 LIBS += drivers/nand_legacy/libnand_legacy.a
140 LIBS += drivers/sk98lin/libsk98lin.a
141 LIBS += post/libpost.a post/cpu/libcpu.a
142 LIBS += common/libcommon.a
143 LIBS += $(BOARDLIBS)
144 .PHONY : $(LIBS)
146 # Add GCC lib
147 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
150 # The "tools" are needed early, so put this first
151 # Don't include stuff already done in $(LIBS)
152 SUBDIRS = tools \
153 post \
154 examples \
155 post/cpu
156 .PHONY : $(SUBDIRS)
158 #########################################################################
159 #########################################################################
161 ALL = u-boot.srec u-boot.bin System.map
163 all: $(ALL)
165 u-boot.hex: u-boot
166 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
168 u-boot.srec: u-boot
169 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
171 u-boot.bin: u-boot
172 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
174 u-boot.img: u-boot.bin
175 ./tools/mkimage -A $(ARCH) -T firmware -C none \
176 -a $(TEXT_BASE) -e 0 \
177 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
178 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
179 -d $< $@
181 u-boot.dis: u-boot
182 $(OBJDUMP) -d $< > $@
184 u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
185 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
186 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
187 --start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
188 -Map u-boot.map -o u-boot
190 $(LIBS):
191 $(MAKE) -C `dirname $@`
193 $(SUBDIRS):
194 $(MAKE) -C $@ all
196 version:
197 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
198 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
199 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
200 $(TOPDIR)) >> $(VERSION_FILE); \
201 echo "\"" >> $(VERSION_FILE)
203 gdbtools:
204 $(MAKE) -C tools/gdb || exit 1
206 depend dep:
207 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
209 tags:
210 ctags -w `find $(SUBDIRS) include \
211 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
212 fs/cramfs fs/fat fs/fdos fs/jffs2 \
213 net disk rtc dtt drivers drivers/sk98lin common \
214 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
216 etags:
217 etags -a `find $(SUBDIRS) include \
218 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
219 fs/cramfs fs/fat fs/fdos fs/jffs2 \
220 net disk rtc dtt drivers drivers/sk98lin common \
221 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
223 System.map: u-boot
224 @$(NM) $< | \
225 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
226 sort > System.map
228 #########################################################################
229 else
230 all install u-boot u-boot.srec depend dep:
231 @echo "System not configured - see README" >&2
232 @ exit 1
233 endif
235 #########################################################################
237 unconfig:
238 @rm -f include/config.h include/config.mk board/*/config.tmp
240 #========================================================================
241 # PowerPC
242 #========================================================================
244 #########################################################################
245 ## MPC5xx Systems
246 #########################################################################
248 canmb_config: unconfig
249 @./mkconfig -a canmb ppc mpc5xxx canmb
251 cmi_mpc5xx_config: unconfig
252 @./mkconfig $(@:_config=) ppc mpc5xx cmi
254 PATI_config: unconfig
255 @./mkconfig $(@:_config=) ppc mpc5xx pati mpl
257 #########################################################################
258 ## MPC5xxx Systems
259 #########################################################################
261 aev_config: unconfig
262 @./mkconfig -a aev ppc mpc5xxx tqm5200
264 BC3450_config: unconfig
265 @./mkconfig -a BC3450 ppc mpc5xxx bc3450
267 cpci5200_config: unconfig
268 @./mkconfig -a cpci5200 ppc mpc5xxx cpci5200 esd
270 hmi1001_config: unconfig
271 @./mkconfig hmi1001 ppc mpc5xxx hmi1001
273 Lite5200_config \
274 Lite5200_LOWBOOT_config \
275 Lite5200_LOWBOOT08_config \
276 icecube_5200_config \
277 icecube_5200_LOWBOOT_config \
278 icecube_5200_LOWBOOT08_config \
279 icecube_5200_DDR_config \
280 icecube_5200_DDR_LOWBOOT_config \
281 icecube_5200_DDR_LOWBOOT08_config \
282 icecube_5100_config: unconfig
283 @ >include/config.h
284 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
285 { if [ "$(findstring DDR,$@)" ] ; \
286 then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
287 else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
288 fi ; \
289 echo "... with LOWBOOT configuration" ; \
290 }
291 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
292 { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
293 echo "... with 8 MB flash only" ; \
294 echo "... with LOWBOOT configuration" ; \
295 }
296 @[ -z "$(findstring DDR,$@)" ] || \
297 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
298 echo "... DDR memory revision" ; \
299 }
300 @[ -z "$(findstring 5200,$@)" ] || \
301 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
302 echo "... with MPC5200 processor" ; \
303 }
304 @[ -z "$(findstring 5100,$@)" ] || \
305 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
306 echo "... with MGT5100 processor" ; \
307 }
308 @./mkconfig -a IceCube ppc mpc5xxx icecube
310 inka4x0_config: unconfig
311 @./mkconfig inka4x0 ppc mpc5xxx inka4x0
313 lite5200b_config \
314 lite5200b_LOWBOOT_config: unconfig
315 @ >include/config.h
316 @ echo "#define CONFIG_MPC5200_DDR" >>include/config.h
317 @ echo "... DDR memory revision"
318 @ echo "#define CONFIG_MPC5200" >>include/config.h
319 @ echo "#define CONFIG_LITE5200B" >>include/config.h
320 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
321 { echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
322 echo "... with LOWBOOT configuration" ; \
323 }
324 @ echo "... with MPC5200B processor"
325 @./mkconfig -a IceCube ppc mpc5xxx icecube
327 mcc200_config \
328 mcc200_SDRAM \
329 mcc200_highboot \
330 mcc200_highboot_SDRAM: unconfig
331 @ >include/config.h
332 @[ -n "$(findstring highboot,$@)" ] || \
333 { echo "... with lowboot configuration" ; \
334 }
335 @[ -z "$(findstring highboot,$@)" ] || \
336 { echo "TEXT_BASE = 0xFFF00000" >board/mcc200/config.tmp ; \
337 echo "... with highboot configuration" ; \
338 }
339 @[ -n "$(findstring _SDRAM,$@)" ] || \
340 { echo "... with DDR" ; \
341 }
342 @[ -z "$(findstring _SDRAM,$@)" ] || \
343 { echo "#define CONFIG_MCC200_SDRAM" >>include/config.h ; \
344 echo "... with SDRAM" ; \
345 }
346 @./mkconfig -a mcc200 ppc mpc5xxx mcc200
348 o2dnt_config:
349 @./mkconfig o2dnt ppc mpc5xxx o2dnt
351 pf5200_config: unconfig
352 @./mkconfig pf5200 ppc mpc5xxx pf5200 esd
354 PM520_config \
355 PM520_DDR_config \
356 PM520_ROMBOOT_config \
357 PM520_ROMBOOT_DDR_config: unconfig
358 @ >include/config.h
359 @[ -z "$(findstring DDR,$@)" ] || \
360 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
361 echo "... DDR memory revision" ; \
362 }
363 @[ -z "$(findstring ROMBOOT,$@)" ] || \
364 { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
365 echo "... booting from 8-bit flash" ; \
366 }
367 @./mkconfig -a PM520 ppc mpc5xxx pm520
369 smmaco4_config: unconfig
370 @./mkconfig -a smmaco4 ppc mpc5xxx tqm5200
372 spieval_config: unconfig
373 @./mkconfig -a spieval ppc mpc5xxx tqm5200
375 TB5200_B_config \
376 TB5200_config: unconfig
377 @[ -z "$(findstring _B,$@)" ] || \
378 { echo "#define CONFIG_TQM5200_B" >>include/config.h ; \
379 echo "... with MPC5200B processor" ; \
380 }
381 @./mkconfig -n $@ -a TB5200 ppc mpc5xxx tqm5200
383 MINI5200_config \
384 EVAL5200_config \
385 TOP5200_config: unconfig
386 @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
387 @./mkconfig -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
389 Total5100_config \
390 Total5200_config \
391 Total5200_lowboot_config \
392 Total5200_Rev2_config \
393 Total5200_Rev2_lowboot_config: unconfig
394 @ >include/config.h
395 @[ -z "$(findstring 5100,$@)" ] || \
396 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
397 echo "... with MGT5100 processor" ; \
398 }
399 @[ -z "$(findstring 5200,$@)" ] || \
400 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
401 echo "... with MPC5200 processor" ; \
402 }
403 @[ -n "$(findstring Rev,$@)" ] || \
404 { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \
405 echo "... revision 1 board" ; \
406 }
407 @[ -z "$(findstring Rev2_,$@)" ] || \
408 { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \
409 echo "... revision 2 board" ; \
410 }
411 @[ -z "$(findstring lowboot_,$@)" ] || \
412 { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
413 echo "... with lowboot configuration" ; \
414 }
415 @./mkconfig -a Total5200 ppc mpc5xxx total5200
417 TQM5200_config \
418 TQM5200_B_config \
419 TQM5200_B_HIGHBOOT_config \
420 TQM5200S_config \
421 TQM5200S_HIGHBOOT_config \
422 TQM5200_STK100_config \
423 cam5200_config \
424 MiniFAP_config: unconfig
425 @ >include/config.h
426 @[ -z "$(findstring MiniFAP,$@)" ] || \
427 { echo "#define CONFIG_MINIFAP" >>include/config.h ; \
428 echo "... TQM5200_AC on MiniFAP" ; \
429 }
430 @[ -z "$(findstring cam5200,$@)" ] || \
431 { echo "#define CONFIG_CAM5200" >>include/config.h ; \
432 echo "#define CONFIG_TQM5200S" >>include/config.h ; \
433 echo "#define CONFIG_TQM5200_B" >>include/config.h ; \
434 echo "... TQM5200S on Cam5200" ; \
435 }
436 @[ -z "$(findstring STK100,$@)" ] || \
437 { echo "#define CONFIG_STK52XX_REV100" >>include/config.h ; \
438 echo "... on a STK52XX.100 base board" ; \
439 }
440 @[ -z "$(findstring TQM5200_B,$@)" ] || \
441 { echo "#define CONFIG_TQM5200_B" >>include/config.h ; \
442 }
443 @[ -z "$(findstring TQM5200S,$@)" ] || \
444 { echo "#define CONFIG_TQM5200S" >>include/config.h ; \
445 echo "#define CONFIG_TQM5200_B" >>include/config.h ; \
446 }
447 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
448 { echo "TEXT_BASE = 0xFFF00000" >board/tqm5200/config.tmp ; \
449 }
450 @./mkconfig -n $@ -a TQM5200 ppc mpc5xxx tqm5200
452 #########################################################################
453 ## MPC8xx Systems
454 #########################################################################
456 Adder_config \
457 Adder87x_config \
458 AdderII_config \
459 : unconfig
460 $(if $(findstring AdderII,$@), \
461 @echo "#define CONFIG_MPC852T" > include/config.h)
462 @./mkconfig -a Adder ppc mpc8xx adder
464 ADS860_config \
465 FADS823_config \
466 FADS850SAR_config \
467 MPC86xADS_config \
468 MPC885ADS_config \
469 FADS860T_config: unconfig
470 @./mkconfig $(@:_config=) ppc mpc8xx fads
472 AMX860_config : unconfig
473 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
475 c2mon_config: unconfig
476 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
478 CCM_config: unconfig
479 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
481 cogent_mpc8xx_config: unconfig
482 @./mkconfig $(@:_config=) ppc mpc8xx cogent
484 ELPT860_config: unconfig
485 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
487 EP88x_config: unconfig
488 @./mkconfig $(@:_config=) ppc mpc8xx ep88x
490 ESTEEM192E_config: unconfig
491 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
493 ETX094_config : unconfig
494 @./mkconfig $(@:_config=) ppc mpc8xx etx094
496 FLAGADM_config: unconfig
497 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
499 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
501 GEN860T_SC_config \
502 GEN860T_config: unconfig
503 @ >include/config.h
504 @[ -z "$(findstring _SC,$@)" ] || \
505 { echo "#define CONFIG_SC" >>include/config.h ; \
506 echo "With reduced H/W feature set (SC)..." ; \
507 }
508 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
510 GENIETV_config: unconfig
511 @./mkconfig $(@:_config=) ppc mpc8xx genietv
513 GTH_config: unconfig
514 @./mkconfig $(@:_config=) ppc mpc8xx gth
516 hermes_config : unconfig
517 @./mkconfig $(@:_config=) ppc mpc8xx hermes
519 HMI10_config : unconfig
520 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
522 IAD210_config: unconfig
523 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
525 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
527 ICU862_100MHz_config \
528 ICU862_config: unconfig
529 @ >include/config.h
530 @[ -z "$(findstring _100MHz,$@)" ] || \
531 { echo "#define CONFIG_100MHz" >>include/config.h ; \
532 echo "... with 100MHz system clock" ; \
533 }
534 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
536 IP860_config : unconfig
537 @./mkconfig $(@:_config=) ppc mpc8xx ip860
539 IVML24_256_config \
540 IVML24_128_config \
541 IVML24_config: unconfig
542 @ >include/config.h
543 @[ -z "$(findstring IVML24_config,$@)" ] || \
544 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
545 }
546 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
547 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
548 }
549 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
550 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
551 }
552 @./mkconfig -a IVML24 ppc mpc8xx ivm
554 IVMS8_256_config \
555 IVMS8_128_config \
556 IVMS8_config: unconfig
557 @ >include/config.h
558 @[ -z "$(findstring IVMS8_config,$@)" ] || \
559 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
560 }
561 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
562 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
563 }
564 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
565 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
566 }
567 @./mkconfig -a IVMS8 ppc mpc8xx ivm
569 KUP4K_config : unconfig
570 @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
572 KUP4X_config : unconfig
573 @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
575 LANTEC_config : unconfig
576 @./mkconfig $(@:_config=) ppc mpc8xx lantec
578 lwmon_config: unconfig
579 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
581 MBX_config \
582 MBX860T_config: unconfig
583 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
585 MHPC_config: unconfig
586 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
588 MVS1_config : unconfig
589 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
591 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
593 NETVIA_V2_config \
594 NETVIA_config: unconfig
595 @ >include/config.h
596 @[ -z "$(findstring NETVIA_config,$@)" ] || \
597 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
598 echo "... Version 1" ; \
599 }
600 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
601 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
602 echo "... Version 2" ; \
603 }
604 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
606 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
608 NETPHONE_V2_config \
609 NETPHONE_config: unconfig
610 @ >include/config.h
611 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
612 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
613 }
614 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
615 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
616 }
617 @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
619 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
621 NETTA_ISDN_6412_SWAPHOOK_config \
622 NETTA_ISDN_SWAPHOOK_config \
623 NETTA_6412_SWAPHOOK_config \
624 NETTA_SWAPHOOK_config \
625 NETTA_ISDN_6412_config \
626 NETTA_ISDN_config \
627 NETTA_6412_config \
628 NETTA_config: unconfig
629 @ >include/config.h
630 @[ -z "$(findstring ISDN_,$@)" ] || \
631 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
632 }
633 @[ -n "$(findstring ISDN_,$@)" ] || \
634 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
635 }
636 @[ -z "$(findstring 6412_,$@)" ] || \
637 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
638 }
639 @[ -n "$(findstring 6412_,$@)" ] || \
640 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
641 }
642 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
643 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
644 }
645 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
646 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
647 }
648 @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
650 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
652 NETTA2_V2_config \
653 NETTA2_config: unconfig
654 @ >include/config.h
655 @[ -z "$(findstring NETTA2_config,$@)" ] || \
656 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
657 }
658 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
659 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
660 }
661 @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
663 NC650_Rev1_config \
664 NC650_Rev2_config \
665 CP850_config: unconfig
666 @ >include/config.h
667 @[ -z "$(findstring CP850,$@)" ] || \
668 { echo "#define CONFIG_CP850 1" >>include/config.h ; \
669 echo "#define CONFIG_IDS852_REV2 1" >>include/config.h ; \
670 }
671 @[ -z "$(findstring Rev1,$@)" ] || \
672 { echo "#define CONFIG_IDS852_REV1 1" >>include/config.h ; \
673 }
674 @[ -z "$(findstring Rev2,$@)" ] || \
675 { echo "#define CONFIG_IDS852_REV2 1" >>include/config.h ; \
676 }
677 @./mkconfig -a NC650 ppc mpc8xx nc650
679 NX823_config: unconfig
680 @./mkconfig $(@:_config=) ppc mpc8xx nx823
682 pcu_e_config: unconfig
683 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
685 QS850_config: unconfig
686 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
688 QS823_config: unconfig
689 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
691 QS860T_config: unconfig
692 @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
694 quantum_config: unconfig
695 @./mkconfig $(@:_config=) ppc mpc8xx quantum
697 R360MPI_config: unconfig
698 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
700 RBC823_config: unconfig
701 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
703 RPXClassic_config: unconfig
704 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
706 RPXlite_config: unconfig
707 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
709 RPXlite_DW_64_config \
710 RPXlite_DW_LCD_config \
711 RPXlite_DW_64_LCD_config \
712 RPXlite_DW_NVRAM_config \
713 RPXlite_DW_NVRAM_64_config \
714 RPXlite_DW_NVRAM_LCD_config \
715 RPXlite_DW_NVRAM_64_LCD_config \
716 RPXlite_DW_config: unconfig
717 @ >include/config.h
718 @[ -z "$(findstring _64,$@)" ] || \
719 { echo "#define RPXlite_64MHz" >>include/config.h ; \
720 echo "... with 64MHz system clock ..."; \
721 }
722 @[ -z "$(findstring _LCD,$@)" ] || \
723 { echo "#define CONFIG_LCD" >>include/config.h ; \
724 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
725 echo "... with LCD display ..."; \
726 }
727 @[ -z "$(findstring _NVRAM,$@)" ] || \
728 { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \
729 echo "... with ENV in NVRAM ..."; \
730 }
731 @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
733 rmu_config: unconfig
734 @./mkconfig $(@:_config=) ppc mpc8xx rmu
736 RRvision_config: unconfig
737 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
739 RRvision_LCD_config: unconfig
740 @echo "#define CONFIG_LCD" >include/config.h
741 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
742 @./mkconfig -a RRvision ppc mpc8xx RRvision
744 SM850_config : unconfig
745 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
747 spc1920_config:
748 @./mkconfig $(@:_config=) ppc mpc8xx spc1920
750 SPD823TS_config: unconfig
751 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
753 stxxtc_config: unconfig
754 @./mkconfig $(@:_config=) ppc mpc8xx stxxtc
756 svm_sc8xx_config: unconfig
757 @ >include/config.h
758 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
760 SXNI855T_config: unconfig
761 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
763 # EMK MPC8xx based modules
764 TOP860_config: unconfig
765 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
767 # Play some tricks for configuration selection
768 # Only 855 and 860 boards may come with FEC
769 # and only 823 boards may have LCD support
770 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
772 FPS850L_config \
773 FPS860L_config \
774 NSCU_config \
775 TQM823L_config \
776 TQM823L_LCD_config \
777 TQM850L_config \
778 TQM855L_config \
779 TQM860L_config \
780 TQM862L_config \
781 TQM823M_config \
782 TQM850M_config \
783 TQM855M_config \
784 TQM860M_config \
785 TQM862M_config \
786 TQM866M_config \
787 TQM885D_config \
788 virtlab2_config: unconfig
789 @ >include/config.h
790 @[ -z "$(findstring _LCD,$@)" ] || \
791 { echo "#define CONFIG_LCD" >>include/config.h ; \
792 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
793 echo "... with LCD display" ; \
794 }
795 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
797 TTTech_config: unconfig
798 @echo "#define CONFIG_LCD" >include/config.h
799 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
800 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
802 uc100_config : unconfig
803 @./mkconfig $(@:_config=) ppc mpc8xx uc100
805 v37_config: unconfig
806 @echo "#define CONFIG_LCD" >include/config.h
807 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
808 @./mkconfig $(@:_config=) ppc mpc8xx v37
810 wtk_config: unconfig
811 @echo "#define CONFIG_LCD" >include/config.h
812 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
813 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
815 #########################################################################
816 ## PPC4xx Systems
817 #########################################################################
818 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
820 ADCIOP_config: unconfig
821 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
823 AP1000_config:unconfig
824 @./mkconfig $(@:_config=) ppc ppc4xx ap1000 amirix
826 APC405_config: unconfig
827 @./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
829 AR405_config: unconfig
830 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
832 ASH405_config: unconfig
833 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
835 bamboo_config: unconfig
836 @./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc
838 bubinga_config: unconfig
839 @./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc
841 CANBT_config: unconfig
842 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
844 CATcenter_config \
845 CATcenter_25_config \
846 CATcenter_33_config: unconfig
847 @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h
848 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
849 @[ -z "$(findstring _25,$@)" ] || \
850 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
851 echo "SysClk = 25MHz" ; \
852 }
853 @[ -z "$(findstring _33,$@)" ] || \
854 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
855 echo "SysClk = 33MHz" ; \
856 }
857 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
859 CPCI2DP_config: unconfig
860 @./mkconfig $(@:_config=) ppc ppc4xx cpci2dp esd
862 CPCI405_config \
863 CPCI4052_config \
864 CPCI405DT_config \
865 CPCI405AB_config: unconfig
866 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
867 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
869 CPCI440_config: unconfig
870 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
872 CPCIISER4_config: unconfig
873 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
875 CRAYL1_config: unconfig
876 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
878 csb272_config: unconfig
879 @./mkconfig $(@:_config=) ppc ppc4xx csb272
881 csb472_config: unconfig
882 @./mkconfig $(@:_config=) ppc ppc4xx csb472
884 DASA_SIM_config: unconfig
885 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
887 DP405_config: unconfig
888 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
890 DU405_config: unconfig
891 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
893 ebony_config: unconfig
894 @./mkconfig $(@:_config=) ppc ppc4xx ebony amcc
896 ERIC_config: unconfig
897 @./mkconfig $(@:_config=) ppc ppc4xx eric
899 EXBITGEN_config: unconfig
900 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
902 G2000_config: unconfig
903 @./mkconfig $(@:_config=) ppc ppc4xx g2000
905 HH405_config: unconfig
906 @./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
908 HUB405_config: unconfig
909 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
911 JSE_config: unconfig
912 @./mkconfig $(@:_config=) ppc ppc4xx jse
914 KAREF_config: unconfig
915 @./mkconfig $(@:_config=) ppc ppc4xx karef sandburst
917 luan_config: unconfig
918 @./mkconfig $(@:_config=) ppc ppc4xx luan amcc
920 METROBOX_config: unconfig
921 @./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
923 MIP405_config: unconfig
924 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
926 MIP405T_config: unconfig
927 @echo "#define CONFIG_MIP405T" >include/config.h
928 @echo "Enable subset config for MIP405T"
929 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
931 ML2_config: unconfig
932 @./mkconfig $(@:_config=) ppc ppc4xx ml2
934 ml300_config: unconfig
935 @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
937 ocotea_config: unconfig
938 @./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
940 OCRTC_config \
941 ORSG_config: unconfig
942 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
944 p3p440_config: unconfig
945 @./mkconfig $(@:_config=) ppc ppc4xx p3p440 prodrive
947 PCI405_config: unconfig
948 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
950 pcs440ep_config: unconfig
951 @./mkconfig $(@:_config=) ppc ppc4xx pcs440ep
953 PIP405_config: unconfig
954 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
956 PLU405_config: unconfig
957 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
959 PMC405_config: unconfig
960 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
962 PPChameleonEVB_config \
963 PPChameleonEVB_BA_25_config \
964 PPChameleonEVB_ME_25_config \
965 PPChameleonEVB_HI_25_config \
966 PPChameleonEVB_BA_33_config \
967 PPChameleonEVB_ME_33_config \
968 PPChameleonEVB_HI_33_config: unconfig
969 @ >include/config.h
970 @[ -z "$(findstring EVB_BA,$@)" ] || \
971 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
972 echo "... BASIC model" ; \
973 }
974 @[ -z "$(findstring EVB_ME,$@)" ] || \
975 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
976 echo "... MEDIUM model" ; \
977 }
978 @[ -z "$(findstring EVB_HI,$@)" ] || \
979 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
980 echo "... HIGH-END model" ; \
981 }
982 @[ -z "$(findstring _25,$@)" ] || \
983 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
984 echo "SysClk = 25MHz" ; \
985 }
986 @[ -z "$(findstring _33,$@)" ] || \
987 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
988 echo "SysClk = 33MHz" ; \
989 }
990 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
992 sbc405_config: unconfig
993 @./mkconfig $(@:_config=) ppc ppc4xx sbc405
995 sycamore_config: unconfig
996 @echo "Configuring for sycamore board as subset of walnut..."
997 @./mkconfig -a walnut ppc ppc4xx walnut amcc
999 VOH405_config: unconfig
1000 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
1002 VOM405_config: unconfig
1003 @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
1005 CMS700_config: unconfig
1006 @./mkconfig $(@:_config=) ppc ppc4xx cms700 esd
1008 W7OLMC_config \
1009 W7OLMG_config: unconfig
1010 @./mkconfig $(@:_config=) ppc ppc4xx w7o
1012 walnut_config: unconfig
1013 @./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
1015 WUH405_config: unconfig
1016 @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
1018 XPEDITE1K_config: unconfig
1019 @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
1021 yosemite_config: unconfig
1022 @./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
1024 yellowstone_config: unconfig
1025 @./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
1027 yucca_config: unconfig
1028 @./mkconfig $(@:_config=) ppc ppc4xx yucca amcc
1030 #########################################################################
1031 ## MPC8220 Systems
1032 #########################################################################
1034 Alaska8220_config \
1035 Yukon8220_config: unconfig
1036 @./mkconfig $(@:_config=) ppc mpc8220 alaska
1038 sorcery_config: unconfig
1039 @./mkconfig $(@:_config=) ppc mpc8220 sorcery
1041 #########################################################################
1042 ## MPC824x Systems
1043 #########################################################################
1044 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1046 A3000_config: unconfig
1047 @./mkconfig $(@:_config=) ppc mpc824x a3000
1049 barco_config: unconfig
1050 @./mkconfig $(@:_config=) ppc mpc824x barco
1052 BMW_config: unconfig
1053 @./mkconfig $(@:_config=) ppc mpc824x bmw
1055 CPC45_config \
1056 CPC45_ROMBOOT_config: unconfig
1057 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
1058 @cd ./include ; \
1059 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1060 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1061 echo "... booting from 8-bit flash" ; \
1062 else \
1063 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1064 echo "... booting from 64-bit flash" ; \
1065 fi; \
1066 echo "export CONFIG_BOOT_ROM" >> config.mk;
1068 CU824_config: unconfig
1069 @./mkconfig $(@:_config=) ppc mpc824x cu824
1071 debris_config: unconfig
1072 @./mkconfig $(@:_config=) ppc mpc824x debris etin
1074 eXalion_config: unconfig
1075 @./mkconfig $(@:_config=) ppc mpc824x eXalion
1077 HIDDEN_DRAGON_config: unconfig
1078 @./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
1080 kvme080_config: unconfig
1081 @./mkconfig $(@:_config=) ppc mpc824x kvme080 etin
1083 MOUSSE_config: unconfig
1084 @./mkconfig $(@:_config=) ppc mpc824x mousse
1086 MUSENKI_config: unconfig
1087 @./mkconfig $(@:_config=) ppc mpc824x musenki
1089 MVBLUE_config: unconfig
1090 @./mkconfig $(@:_config=) ppc mpc824x mvblue
1092 OXC_config: unconfig
1093 @./mkconfig $(@:_config=) ppc mpc824x oxc
1095 PN62_config: unconfig
1096 @./mkconfig $(@:_config=) ppc mpc824x pn62
1098 Sandpoint8240_config: unconfig
1099 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
1101 Sandpoint8245_config: unconfig
1102 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
1104 sbc8240_config: unconfig
1105 @./mkconfig $(@:_config=) ppc mpc824x sbc8240
1107 SL8245_config: unconfig
1108 @./mkconfig $(@:_config=) ppc mpc824x sl8245
1110 utx8245_config: unconfig
1111 @./mkconfig $(@:_config=) ppc mpc824x utx8245
1113 #########################################################################
1114 ## MPC8260 Systems
1115 #########################################################################
1117 atc_config: unconfig
1118 @./mkconfig $(@:_config=) ppc mpc8260 atc
1120 cogent_mpc8260_config: unconfig
1121 @./mkconfig $(@:_config=) ppc mpc8260 cogent
1123 CPU86_config \
1124 CPU86_ROMBOOT_config: unconfig
1125 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
1126 @cd ./include ; \
1127 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1128 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1129 echo "... booting from 8-bit flash" ; \
1130 else \
1131 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1132 echo "... booting from 64-bit flash" ; \
1133 fi; \
1134 echo "export CONFIG_BOOT_ROM" >> config.mk;
1136 CPU87_config \
1137 CPU87_ROMBOOT_config: unconfig
1138 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
1139 @cd ./include ; \
1140 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1141 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1142 echo "... booting from 8-bit flash" ; \
1143 else \
1144 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1145 echo "... booting from 64-bit flash" ; \
1146 fi; \
1147 echo "export CONFIG_BOOT_ROM" >> config.mk;
1149 ep8248_config \
1150 ep8248E_config : unconfig
1151 @./mkconfig ep8248 ppc mpc8260 ep8248
1153 ep8260_config: unconfig
1154 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
1156 gw8260_config: unconfig
1157 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
1159 hymod_config: unconfig
1160 @./mkconfig $(@:_config=) ppc mpc8260 hymod
1162 IDS8247_config: unconfig
1163 @./mkconfig $(@:_config=) ppc mpc8260 ids8247
1165 IPHASE4539_config: unconfig
1166 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
1168 ISPAN_config \
1169 ISPAN_REVB_config: unconfig
1170 @if [ "$(findstring _REVB_,$@)" ] ; then \
1171 echo "#define CFG_REV_B" > include/config.h ; \
1172 fi
1173 @./mkconfig -a ISPAN ppc mpc8260 ispan
1175 MPC8260ADS_config \
1176 MPC8260ADS_lowboot_config \
1177 MPC8260ADS_33MHz_config \
1178 MPC8260ADS_33MHz_lowboot_config \
1179 MPC8260ADS_40MHz_config \
1180 MPC8260ADS_40MHz_lowboot_config \
1181 MPC8272ADS_config \
1182 MPC8272ADS_lowboot_config \
1183 PQ2FADS_config \
1184 PQ2FADS_lowboot_config \
1185 PQ2FADS-VR_config \
1186 PQ2FADS-VR_lowboot_config \
1187 PQ2FADS-ZU_config \
1188 PQ2FADS-ZU_lowboot_config \
1189 PQ2FADS-ZU_66MHz_config \
1190 PQ2FADS-ZU_66MHz_lowboot_config \
1191 : unconfig
1192 $(if $(findstring PQ2FADS,$@), \
1193 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
1194 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
1195 $(if $(findstring MHz,$@), \
1196 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
1197 $(if $(findstring VR,$@), \
1198 @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
1199 @[ -z "$(findstring lowboot_,$@)" ] || \
1200 { echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
1201 echo "... with lowboot configuration" ; \
1202 }
1203 @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
1205 MPC8266ADS_config: unconfig
1206 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
1208 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1209 PM825_config \
1210 PM825_ROMBOOT_config \
1211 PM825_BIGFLASH_config \
1212 PM825_ROMBOOT_BIGFLASH_config \
1213 PM826_config \
1214 PM826_ROMBOOT_config \
1215 PM826_BIGFLASH_config \
1216 PM826_ROMBOOT_BIGFLASH_config: unconfig
1217 @if [ "$(findstring PM825_,$@)" ] ; then \
1218 echo "#define CONFIG_PCI" >include/config.h ; \
1219 else \
1220 >include/config.h ; \
1221 fi
1222 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1223 echo "... booting from 8-bit flash" ; \
1224 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1225 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1226 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1227 echo "... with 32 MB Flash" ; \
1228 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1229 fi; \
1230 else \
1231 echo "... booting from 64-bit flash" ; \
1232 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1233 echo "... with 32 MB Flash" ; \
1234 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1235 echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
1236 else \
1237 echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
1238 fi; \
1239 fi
1240 @./mkconfig -a PM826 ppc mpc8260 pm826
1242 PM828_config \
1243 PM828_PCI_config \
1244 PM828_ROMBOOT_config \
1245 PM828_ROMBOOT_PCI_config: unconfig
1246 @if [ "$(findstring _PCI_,$@)" ] ; then \
1247 echo "#define CONFIG_PCI" >>include/config.h ; \
1248 echo "... with PCI enabled" ; \
1249 else \
1250 >include/config.h ; \
1251 fi
1252 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1253 echo "... booting from 8-bit flash" ; \
1254 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1255 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1256 fi
1257 @./mkconfig -a PM828 ppc mpc8260 pm828
1259 ppmc8260_config: unconfig
1260 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
1262 Rattler8248_config \
1263 Rattler_config: unconfig
1264 $(if $(findstring 8248,$@), \
1265 @echo "#define CONFIG_MPC8248" > include/config.h)
1266 @./mkconfig -a Rattler ppc mpc8260 rattler
1268 RPXsuper_config: unconfig
1269 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
1271 rsdproto_config: unconfig
1272 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
1274 sacsng_config: unconfig
1275 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
1277 sbc8260_config: unconfig
1278 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
1280 SCM_config: unconfig
1281 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
1283 TQM8255_AA_config \
1284 TQM8260_AA_config \
1285 TQM8260_AB_config \
1286 TQM8260_AC_config \
1287 TQM8260_AD_config \
1288 TQM8260_AE_config \
1289 TQM8260_AF_config \
1290 TQM8260_AG_config \
1291 TQM8260_AH_config \
1292 TQM8260_AI_config \
1293 TQM8265_AA_config: unconfig
1294 @case "$@" in \
1295 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1296 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1297 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1298 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1299 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1300 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1301 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1302 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1303 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1304 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1305 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1306 esac; \
1307 >include/config.h ; \
1308 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1309 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
1310 fi; \
1311 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
1312 echo "... with $${CFREQ}MHz system clock" ; \
1313 if [ "$${CACHE}" == "yes" ] ; then \
1314 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
1315 echo "... with L2 Cache support" ; \
1316 else \
1317 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
1318 echo "... without L2 Cache support" ; \
1319 fi; \
1320 if [ "$${BMODE}" == "60x" ] ; then \
1321 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
1322 echo "... with 60x Bus Mode" ; \
1323 else \
1324 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
1325 echo "... without 60x Bus Mode" ; \
1326 fi
1327 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
1329 VoVPN-GW_66MHz_config \
1330 VoVPN-GW_100MHz_config: unconfig
1331 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
1332 @./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1334 ZPC1900_config: unconfig
1335 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
1337 #########################################################################
1338 ## Coldfire
1339 #########################################################################
1341 cobra5272_config : unconfig
1342 @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
1344 EB+MCF-EV123_config : unconfig
1345 @ >include/config.h
1346 @echo "TEXT_BASE = 0xFFE00000"|tee board/BuS/EB+MCF-EV123/textbase.mk
1347 @./mkconfig EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1349 EB+MCF-EV123_internal_config : unconfig
1350 @ >include/config.h
1351 @echo "TEXT_BASE = 0xF0000000"|tee board/BuS/EB+MCF-EV123/textbase.mk
1352 @./mkconfig EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1354 M5271EVB_config : unconfig
1355 @./mkconfig $(@:_config=) m68k mcf52x2 m5271evb
1357 M5272C3_config : unconfig
1358 @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
1360 M5282EVB_config : unconfig
1361 @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
1363 TASREG_config : unconfig
1364 @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
1366 r5200_config : unconfig
1367 @./mkconfig $(@:_config=) m68k mcf52x2 r5200
1369 #########################################################################
1370 ## MPC83xx Systems
1371 #########################################################################
1373 MPC8349ADS_config: unconfig
1374 @./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
1376 TQM834x_config: unconfig
1377 @./mkconfig $(@:_config=) ppc mpc83xx tqm834x
1379 MPC8349EMDS_config: unconfig
1380 @./mkconfig $(@:_config=) ppc mpc83xx mpc8349emds
1382 #########################################################################
1383 ## MPC85xx Systems
1384 #########################################################################
1386 MPC8540ADS_config: unconfig
1387 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
1389 MPC8540EVAL_config \
1390 MPC8540EVAL_33_config \
1391 MPC8540EVAL_66_config \
1392 MPC8540EVAL_33_slave_config \
1393 MPC8540EVAL_66_slave_config: unconfig
1394 @echo "" >include/config.h ; \
1395 if [ "$(findstring _33_,$@)" ] ; then \
1396 echo -n "... 33 MHz PCI" ; \
1397 else \
1398 echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
1399 echo -n "... 66 MHz PCI" ; \
1400 fi ; \
1401 if [ "$(findstring _slave_,$@)" ] ; then \
1402 echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
1403 echo " slave" ; \
1404 else \
1405 echo " host" ; \
1406 fi
1407 @./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
1409 MPC8560ADS_config: unconfig
1410 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
1412 MPC8541CDS_config: unconfig
1413 @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
1415 MPC8548CDS_config: unconfig
1416 @./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
1418 MPC8555CDS_config: unconfig
1419 @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
1421 PM854_config: unconfig
1422 @./mkconfig $(@:_config=) ppc mpc85xx pm854
1424 PM856_config: unconfig
1425 @./mkconfig $(@:_config=) ppc mpc85xx pm856
1427 sbc8540_config \
1428 sbc8540_33_config \
1429 sbc8540_66_config: unconfig
1430 @if [ "$(findstring _66_,$@)" ] ; then \
1431 echo "#define CONFIG_PCI_66" >>include/config.h ; \
1432 echo "... 66 MHz PCI" ; \
1433 else \
1434 >include/config.h ; \
1435 echo "... 33 MHz PCI" ; \
1436 fi
1437 @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1439 sbc8560_config \
1440 sbc8560_33_config \
1441 sbc8560_66_config: unconfig
1442 @if [ "$(findstring _66_,$@)" ] ; then \
1443 echo "#define CONFIG_PCI_66" >>include/config.h ; \
1444 echo "... 66 MHz PCI" ; \
1445 else \
1446 >include/config.h ; \
1447 echo "... 33 MHz PCI" ; \
1448 fi
1449 @./mkconfig -a sbc8560 ppc mpc85xx sbc8560
1451 stxgp3_config: unconfig
1452 @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
1454 TQM8540_config \
1455 TQM8541_config \
1456 TQM8555_config \
1457 TQM8560_config: unconfig
1458 @CTYPE=$(subst TQM,,$(@:_config=)); \
1459 >include/config.h ; \
1460 echo "... TQM"$${CTYPE}; \
1461 echo "#define CONFIG_MPC$${CTYPE}">>include/config.h; \
1462 echo "#define CONFIG_TQM$${CTYPE}">>include/config.h; \
1463 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>include/config.h; \
1464 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>include/config.h; \
1465 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>include/config.h
1466 @./mkconfig -a TQM85xx ppc mpc85xx tqm85xx
1468 #########################################################################
1469 ## 74xx/7xx Systems
1470 #########################################################################
1472 AmigaOneG3SE_config: unconfig
1473 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1475 BAB7xx_config: unconfig
1476 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
1478 CPCI750_config: unconfig
1479 @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
1481 DB64360_config: unconfig
1482 @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
1484 DB64460_config: unconfig
1485 @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
1487 ELPPC_config: unconfig
1488 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
1490 EVB64260_config \
1491 EVB64260_750CX_config: unconfig
1492 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
1494 P3G4_config: unconfig
1495 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1497 PCIPPC2_config \
1498 PCIPPC6_config: unconfig
1499 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
1501 ZUMA_config: unconfig
1502 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1504 ppmc7xx_config: unconfig
1505 @./mkconfig $(@:_config=) ppc 74xx_7xx ppmc7xx
1507 #========================================================================
1508 # ARM
1509 #========================================================================
1510 #########################################################################
1511 ## StrongARM Systems
1512 #########################################################################
1514 assabet_config : unconfig
1515 @./mkconfig $(@:_config=) arm sa1100 assabet
1517 dnp1110_config : unconfig
1518 @./mkconfig $(@:_config=) arm sa1100 dnp1110
1520 gcplus_config : unconfig
1521 @./mkconfig $(@:_config=) arm sa1100 gcplus
1523 lart_config : unconfig
1524 @./mkconfig $(@:_config=) arm sa1100 lart
1526 shannon_config : unconfig
1527 @./mkconfig $(@:_config=) arm sa1100 shannon
1529 #########################################################################
1530 ## ARM92xT Systems
1531 #########################################################################
1533 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1535 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1537 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1539 at91rm9200dk_config : unconfig
1540 @./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1542 cmc_pu2_config : unconfig
1543 @./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1545 csb637_config : unconfig
1546 @./mkconfig $(@:_config=) arm arm920t csb637 NULL at91rm9200
1548 mp2usb_config : unconfig
1549 @./mkconfig $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1552 ########################################################################
1553 ## ARM Integrator boards - see doc/README-integrator for more info.
1554 integratorap_config \
1555 ap_config \
1556 ap966_config \
1557 ap922_config \
1558 ap922_XA10_config \
1559 ap7_config \
1560 ap720t_config \
1561 ap920t_config \
1562 ap926ejs_config \
1563 ap946es_config: unconfig
1564 @board/integratorap/split_by_variant.sh $@
1566 integratorcp_config \
1567 cp_config \
1568 cp920t_config \
1569 cp926ejs_config \
1570 cp946es_config \
1571 cp1136_config \
1572 cp966_config \
1573 cp922_config \
1574 cp922_XA10_config \
1575 cp1026_config: unconfig
1576 @board/integratorcp/split_by_variant.sh $@
1578 kb9202_config : unconfig
1579 @./mkconfig $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1581 lpd7a400_config \
1582 lpd7a404_config: unconfig
1583 @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
1585 mx1ads_config : unconfig
1586 @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
1588 mx1fs2_config : unconfig
1589 @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
1591 netstar_32_config \
1592 netstar_config: unconfig
1593 @if [ "$(findstring _32_,$@)" ] ; then \
1594 echo "... 32MB SDRAM" ; \
1595 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>include/config.h ; \
1596 else \
1597 echo "... 64MB SDRAM" ; \
1598 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>include/config.h ; \
1599 fi
1600 @./mkconfig -a netstar arm arm925t netstar
1602 omap1510inn_config : unconfig
1603 @./mkconfig $(@:_config=) arm arm925t omap1510inn
1605 omap5912osk_config : unconfig
1606 @./mkconfig $(@:_config=) arm arm926ejs omap5912osk NULL omap
1608 omap1610inn_config \
1609 omap1610inn_cs0boot_config \
1610 omap1610inn_cs3boot_config \
1611 omap1610inn_cs_autoboot_config \
1612 omap1610h2_config \
1613 omap1610h2_cs0boot_config \
1614 omap1610h2_cs3boot_config \
1615 omap1610h2_cs_autoboot_config: unconfig
1616 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1617 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1618 echo "... configured for CS0 boot"; \
1619 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1620 echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
1621 echo "... configured for CS_AUTO boot"; \
1622 else \
1623 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1624 echo "... configured for CS3 boot"; \
1625 fi;
1626 @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
1628 omap1710h3_config : unconfig
1629 @./mkconfig $(@:_config=) arm arm926ejs omap1710h3
1631 omapv1030gsample_config : unconfig
1632 @./mkconfig $(@:_config=) arm arm926ejs omapv1030gsample
1634 omap730p2_config \
1635 omap730p2_cs0boot_config \
1636 omap730p2_cs3boot_config : unconfig
1637 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1638 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1639 echo "... configured for CS0 boot"; \
1640 else \
1641 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1642 echo "... configured for CS3 boot"; \
1643 fi;
1644 @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1646 sbc2410x_config: unconfig
1647 @./mkconfig $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
1649 scb9328_config : unconfig
1650 @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
1652 smdk2400_config : unconfig
1653 @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
1655 smdk2410_config : unconfig
1656 @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
1658 SX1_config : unconfig
1659 @./mkconfig $(@:_config=) arm arm925t sx1
1661 # TRAB default configuration: 8 MB Flash, 32 MB RAM
1662 trab_config \
1663 trab_bigram_config \
1664 trab_bigflash_config \
1665 trab_old_config: unconfig
1666 @ >include/config.h
1667 @[ -z "$(findstring _bigram,$@)" ] || \
1668 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1669 echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
1670 echo "... with 8 MB Flash, 32 MB RAM" ; \
1671 }
1672 @[ -z "$(findstring _bigflash,$@)" ] || \
1673 { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1674 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
1675 echo "... with 16 MB Flash, 16 MB RAM" ; \
1676 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1677 }
1678 @[ -z "$(findstring _old,$@)" ] || \
1679 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1680 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
1681 echo "... with 8 MB Flash, 16 MB RAM" ; \
1682 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1683 }
1684 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
1686 VCMA9_config : unconfig
1687 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
1689 #========================================================================
1690 # ARM supplied Versatile development boards
1691 #========================================================================
1692 versatile_config \
1693 versatileab_config \
1694 versatilepb_config : unconfig
1695 @board/versatile/split_by_variant.sh $@
1697 voiceblue_smallflash_config \
1698 voiceblue_config: unconfig
1699 @if [ "$(findstring _smallflash_,$@)" ] ; then \
1700 echo "... boot from lower flash bank" ; \
1701 echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
1702 echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
1703 else \
1704 echo "... boot from upper flash bank" ; \
1705 >include/config.h ; \
1706 echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
1707 fi
1708 @./mkconfig -a voiceblue arm arm925t voiceblue
1710 cm4008_config : unconfig
1711 @./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
1713 cm41xx_config : unconfig
1714 @./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
1716 gth2_config : unconfig
1717 @ >include/config.h
1718 @echo "#define CONFIG_GTH2 1" >>include/config.h
1719 @./mkconfig -a gth2 mips mips gth2
1721 #########################################################################
1722 ## S3C44B0 Systems
1723 #########################################################################
1725 B2_config : unconfig
1726 @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1728 #########################################################################
1729 ## ARM720T Systems
1730 #########################################################################
1732 armadillo_config: unconfig
1733 @./mkconfig $(@:_config=) arm arm720t armadillo
1735 ep7312_config : unconfig
1736 @./mkconfig $(@:_config=) arm arm720t ep7312
1738 impa7_config : unconfig
1739 @./mkconfig $(@:_config=) arm arm720t impa7
1741 modnet50_config : unconfig
1742 @./mkconfig $(@:_config=) arm arm720t modnet50
1744 evb4510_config : unconfig
1745 @./mkconfig $(@:_config=) arm arm720t evb4510
1747 #########################################################################
1748 ## XScale Systems
1749 #########################################################################
1751 adsvix_config : unconfig
1752 @./mkconfig $(@:_config=) arm pxa adsvix
1754 cerf250_config : unconfig
1755 @./mkconfig $(@:_config=) arm pxa cerf250
1757 cradle_config : unconfig
1758 @./mkconfig $(@:_config=) arm pxa cradle
1760 csb226_config : unconfig
1761 @./mkconfig $(@:_config=) arm pxa csb226
1763 delta_config :
1764 @./mkconfig $(@:_config=) arm pxa delta
1766 innokom_config : unconfig
1767 @./mkconfig $(@:_config=) arm pxa innokom
1769 ixdp425_config : unconfig
1770 @./mkconfig $(@:_config=) arm ixp ixdp425
1772 ixdpg425_config : unconfig
1773 @./mkconfig $(@:_config=) arm ixp ixdp425
1775 lubbock_config : unconfig
1776 @./mkconfig $(@:_config=) arm pxa lubbock
1778 pleb2_config : unconfig
1779 @./mkconfig $(@:_config=) arm pxa pleb2
1781 logodl_config : unconfig
1782 @./mkconfig $(@:_config=) arm pxa logodl
1784 pdnb3_config : unconfig
1785 @./mkconfig $(@:_config=) arm ixp pdnb3 prodrive
1787 pxa255_idp_config: unconfig
1788 @./mkconfig $(@:_config=) arm pxa pxa255_idp
1790 wepep250_config : unconfig
1791 @./mkconfig $(@:_config=) arm pxa wepep250
1793 xaeniax_config : unconfig
1794 @./mkconfig $(@:_config=) arm pxa xaeniax
1796 xm250_config : unconfig
1797 @./mkconfig $(@:_config=) arm pxa xm250
1799 xsengine_config : unconfig
1800 @./mkconfig $(@:_config=) arm pxa xsengine
1802 zylonite_config :
1803 @./mkconfig $(@:_config=) arm pxa zylonite
1805 #########################################################################
1806 ## ARM1136 Systems
1807 #########################################################################
1808 xtract_omap2430 = $(subst _gdp,,$(subst _config,,$1))
1810 omap2420h4_config : unconfig
1811 @./mkconfig $(@:_config=) arm arm1136 omap2420h4
1813 omap2430sdp_gdp_config \
1814 omap2430sdp_config : unconfig
1815 @if [ "$(findstring _gdp_, $@)" ] ; then \
1816 echo "#define OMAP2430_SDP_GDP_CONFIG" >> ./include/config.h ; \
1817 echo "Configuring for GDP and .. "; \
1818 fi;
1819 @./mkconfig -a $(call xtract_omap2430,$@) arm arm1136 omap2430sdp
1821 #########################################################################
1822 ## ARM CORTEX Systems
1823 #########################################################################
1824 omap3430sdp_config : unconfig
1825 @./mkconfig $(@:_config=) arm omap3 omap3430sdp
1827 omap3430labrador_config : unconfig
1828 @./mkconfig $(@:_config=) arm omap3 omap3430labrador
1830 omap3430zoom2_config : unconfig
1831 @./mkconfig $(@:_config=) arm omap3 omap3430zoom2
1833 omap3630zoom3_config : unconfig
1834 @./mkconfig $(@:_config=) arm omap3 omap3630zoom3
1836 omap3630zoom3_emmc_config : unconfig
1837 @./mkconfig $(@:_config=) arm omap3 omap3630zoom3
1838 echo "#define CONFIG_STORAGE_EMMC 1" > ./include/config-tmp.h; \
1839 cat ./include/config.h >> ./include/config-tmp.h; \
1840 mv ./include/config-tmp.h ./include/config.h; \
1841 sed -i -e 's/omap3630zoom3_emmc/omap3630zoom3/' ./include/config.h
1844 omap3630sdp_config : unconfig
1845 @./mkconfig $(@:_config=) arm omap3 omap3630sdp
1847 #========================================================================
1848 # i386
1849 #========================================================================
1850 #########################################################################
1851 ## AMD SC520 CDP
1852 #########################################################################
1853 sc520_cdp_config : unconfig
1854 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
1856 sc520_spunk_config : unconfig
1857 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1859 sc520_spunk_rel_config : unconfig
1860 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1862 #========================================================================
1863 # MIPS
1864 #========================================================================
1865 #########################################################################
1866 ## MIPS32 4Kc
1867 #########################################################################
1869 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1871 incaip_100MHz_config \
1872 incaip_133MHz_config \
1873 incaip_150MHz_config \
1874 incaip_config: unconfig
1875 @ >include/config.h
1876 @[ -z "$(findstring _100MHz,$@)" ] || \
1877 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1878 echo "... with 100MHz system clock" ; \
1879 }
1880 @[ -z "$(findstring _133MHz,$@)" ] || \
1881 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1882 echo "... with 133MHz system clock" ; \
1883 }
1884 @[ -z "$(findstring _150MHz,$@)" ] || \
1885 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1886 echo "... with 150MHz system clock" ; \
1887 }
1888 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1890 tb0229_config: unconfig
1891 @./mkconfig $(@:_config=) mips mips tb0229
1893 #########################################################################
1894 ## MIPS32 AU1X00
1895 #########################################################################
1896 dbau1000_config : unconfig
1897 @ >include/config.h
1898 @echo "#define CONFIG_DBAU1000 1" >>include/config.h
1899 @./mkconfig -a dbau1x00 mips mips dbau1x00
1901 dbau1100_config : unconfig
1902 @ >include/config.h
1903 @echo "#define CONFIG_DBAU1100 1" >>include/config.h
1904 @./mkconfig -a dbau1x00 mips mips dbau1x00
1906 dbau1500_config : unconfig
1907 @ >include/config.h
1908 @echo "#define CONFIG_DBAU1500 1" >>include/config.h
1909 @./mkconfig -a dbau1x00 mips mips dbau1x00
1911 dbau1550_config : unconfig
1912 @ >include/config.h
1913 @echo "#define CONFIG_DBAU1550 1" >>include/config.h
1914 @./mkconfig -a dbau1x00 mips mips dbau1x00
1916 dbau1550_el_config : unconfig
1917 @ >include/config.h
1918 @echo "#define CONFIG_DBAU1550 1" >>include/config.h
1919 @./mkconfig -a dbau1x00 mips mips dbau1x00
1921 pb1000_config : unconfig
1922 @ >include/config.h
1923 @echo "#define CONFIG_PB1000 1" >>include/config.h
1924 @./mkconfig -a pb1x00 mips mips pb1x00
1926 #########################################################################
1927 ## MIPS64 5Kc
1928 #########################################################################
1930 purple_config : unconfig
1931 @./mkconfig $(@:_config=) mips mips purple
1933 #========================================================================
1934 # Nios
1935 #========================================================================
1936 #########################################################################
1937 ## Nios32
1938 #########################################################################
1940 DK1C20_safe_32_config \
1941 DK1C20_standard_32_config \
1942 DK1C20_config: unconfig
1943 @ >include/config.h
1944 @[ -z "$(findstring _safe_32,$@)" ] || \
1945 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1946 echo "... NIOS 'safe_32' configuration" ; \
1947 }
1948 @[ -z "$(findstring _standard_32,$@)" ] || \
1949 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1950 echo "... NIOS 'standard_32' configuration" ; \
1951 }
1952 @[ -z "$(findstring DK1C20_config,$@)" ] || \
1953 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1954 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1955 }
1956 @./mkconfig -a DK1C20 nios nios dk1c20 altera
1958 DK1S10_safe_32_config \
1959 DK1S10_standard_32_config \
1960 DK1S10_mtx_ldk_20_config \
1961 DK1S10_config: unconfig
1962 @ >include/config.h
1963 @[ -z "$(findstring _safe_32,$@)" ] || \
1964 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1965 echo "... NIOS 'safe_32' configuration" ; \
1966 }
1967 @[ -z "$(findstring _standard_32,$@)" ] || \
1968 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1969 echo "... NIOS 'standard_32' configuration" ; \
1970 }
1971 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1972 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1973 echo "... NIOS 'mtx_ldk_20' configuration" ; \
1974 }
1975 @[ -z "$(findstring DK1S10_config,$@)" ] || \
1976 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1977 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1978 }
1979 @./mkconfig -a DK1S10 nios nios dk1s10 altera
1981 ADNPESC1_DNPEVA2_base_32_config \
1982 ADNPESC1_base_32_config \
1983 ADNPESC1_config: unconfig
1984 @ >include/config.h
1985 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
1986 { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1987 echo "... DNP/EVA2 configuration" ; \
1988 }
1989 @[ -z "$(findstring _base_32,$@)" ] || \
1990 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1991 echo "... NIOS 'base_32' configuration" ; \
1992 }
1993 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1994 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1995 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1996 }
1997 @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1999 #########################################################################
2000 ## Nios-II
2001 #########################################################################
2003 EP1C20_config : unconfig
2004 @./mkconfig EP1C20 nios2 nios2 ep1c20 altera
2006 EP1S10_config : unconfig
2007 @./mkconfig EP1S10 nios2 nios2 ep1s10 altera
2009 EP1S40_config : unconfig
2010 @./mkconfig EP1S40 nios2 nios2 ep1s40 altera
2012 PK1C20_config : unconfig
2013 @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
2015 PCI5441_config : unconfig
2016 @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
2018 #========================================================================
2019 # MicroBlaze
2020 #========================================================================
2021 #########################################################################
2022 ## Microblaze
2023 #########################################################################
2024 suzaku_config: unconfig
2025 @ >include/config.h
2026 @echo "#define CONFIG_SUZAKU 1" >> include/config.h
2027 @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2029 #########################################################################
2030 ## Blackfin
2031 #########################################################################
2032 ezkit533_config : unconfig
2033 @./mkconfig $(@:_config=) blackfin bf533 ezkit533
2035 stamp_config : unconfig
2036 @./mkconfig $(@:_config=) blackfin bf533 stamp
2038 dspstamp_config : unconfig
2039 @./mkconfig $(@:_config=) blackfin bf533 dsp_stamp
2041 #########################################################################
2042 #########################################################################
2043 #########################################################################
2045 clean:
2046 find . -type f \
2047 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2048 -o -name '*.o' -o -name '*.a' \) -print \
2049 | xargs rm -f
2050 rm -f examples/hello_world examples/timer \
2051 examples/eepro100_eeprom examples/sched \
2052 examples/mem_to_mem_idma2intr examples/82559_eeprom \
2053 examples/smc91111_eeprom \
2054 examples/test_burst
2055 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
2056 rm -f tools/mpc86x_clk tools/ncb
2057 rm -f tools/easylogo/easylogo tools/bmp_logo
2058 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
2059 rm -f tools/env/fw_printenv tools/env/fw_setenv
2060 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
2061 rm -f board/netstar/eeprom board/netstar/crcek
2062 rm -f board/netstar/*.srec board/netstar/*.bin
2063 rm -f board/trab/trab_fkt board/voiceblue/eeprom
2064 rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
2065 rm -f include/bmp_logo.h
2067 clobber: clean
2068 find . -type f \( -name .depend \
2069 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2070 -print0 \
2071 | xargs -0 rm -f
2072 rm -f $(OBJS) *.bak tags TAGS include/version_autogenerated.h
2073 rm -fr *.*~
2074 rm -f u-boot u-boot.map u-boot.hex $(ALL)
2075 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
2076 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
2077 rm -f include/asm/proc include/asm/arch include/asm
2079 mrproper \
2080 distclean: clobber unconfig
2082 backup:
2083 F=`basename $(TOPDIR)` ; cd .. ; \
2084 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2086 #########################################################################