2 # (C) Copyright 2000, 2001, 2002
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; 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,
24 HOSTARCH := $(shell uname -m | \
32 HOSTOS := $(shell uname -s | tr A-Z a-z | \
33 sed -e 's/\(cygwin\).*/cygwin/')
37 # Deal with colliding definitions from tcsh etc.
40 #########################################################################
42 TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
45 ifeq (include/config.mk,$(wildcard include/config.mk))
46 # load ARCH, BOARD, and CPU configuration
47 include include/config.mk
48 export ARCH CPU BOARD VENDOR
49 # load other configuration
50 include $(TOPDIR)/config.mk
53 ifeq ($(HOSTARCH),ppc)
57 CROSS_COMPILE = ppc_8xx-
60 CROSS_COMPILE = arm-linux-
63 ifeq ($(HOSTARCH),i386)
66 CROSS_COMPILE = i386-linux-
70 CROSS_COMPILE = mips_4KC-
77 # The "tools" are needed early, so put this first
95 #########################################################################
96 # U-Boot objects....order is important (i.e. start must be first)
98 OBJS = cpu/$(CPU)/start.o
100 OBJS += cpu/$(CPU)/start16.o
101 OBJS += cpu/$(CPU)/reset.o
104 OBJS += cpu/$(CPU)/resetvec.o
107 LIBS = board/$(BOARDDIR)/lib$(BOARD).a
108 LIBS += cpu/$(CPU)/lib$(CPU).a
109 LIBS += lib_$(ARCH)/lib$(ARCH).a
110 LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a
112 LIBS += disk/libdisk.a
115 LIBS += drivers/libdrivers.a
116 LIBS += drivers/sk98lin/libsk98lin.a
117 LIBS += post/libpost.a post/cpu/libcpu.a
118 LIBS += common/libcommon.a
119 LIBS += lib_generic/libgeneric.a
121 PLATFORM_LIBS += -L $(shell dirname `$(CC) -print-libgcc-file-name`) -lgcc
123 #########################################################################
124 #########################################################################
126 ALL = u-boot.srec u-boot.bin System.map
131 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
134 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
136 u-boot.img: u-boot.bin
137 ./tools/mkimage -A $(ARCH) -T firmware -C none \
138 -a $(TEXT_BASE) -e 0 \
139 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
140 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
144 $(OBJDUMP) -d $< > $@
146 u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
147 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
148 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
149 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
150 -Map u-boot.map -o u-boot
153 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
156 $(MAKE) -C tools/gdb || exit 1
159 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
162 ctags -w `find $(SUBDIRS) include \
163 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
166 etags -a `find $(SUBDIRS) include \
167 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
171 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
174 #########################################################################
176 all install u-boot u-boot.srec depend dep:
177 @echo "System not configured - see README" >&2
181 #########################################################################
184 rm -f include/config.h include/config.mk
186 #========================================================================
188 #========================================================================
190 #########################################################################
192 #########################################################################
194 cmi_mpc5xx_config: unconfig
195 @./mkconfig $(@:_config=) ppc mpc5xx cmi
197 #########################################################################
199 #########################################################################
200 IceCube_5200_config \
201 IceCube_5100_config: unconfig
203 @[ -z "$(findstring _5200,$@)" ] || \
204 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
205 echo "... with MPC5200 processor" ; \
207 @[ -z "$(findstring _5100,$@)" ] || \
208 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
209 echo "... with MGT5100 processor" ; \
211 @./mkconfig -a IceCube ppc mpc5xxx icecube
213 #########################################################################
215 #########################################################################
217 AdderII_config: unconfig
218 @./mkconfig $(@:_config=) ppc mpc8xx adderII
220 ADS860_config: unconfig
221 @./mkconfig $(@:_config=) ppc mpc8xx fads
223 AMX860_config : unconfig
224 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
226 c2mon_config: unconfig
227 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
230 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
232 cogent_mpc8xx_config: unconfig
233 @./mkconfig $(@:_config=) ppc mpc8xx cogent
235 ELPT860_config: unconfig
236 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
238 ESTEEM192E_config: unconfig
239 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
241 ETX094_config : unconfig
242 @./mkconfig $(@:_config=) ppc mpc8xx etx094
247 FADS860T_config: unconfig
248 @./mkconfig $(@:_config=) ppc mpc8xx fads
250 FLAGADM_config: unconfig
251 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
253 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
256 GEN860T_config: unconfig
258 @[ -z "$(findstring _SC,$@)" ] || \
259 { echo "#define CONFIG_SC" >>include/config.h ; \
260 echo "With reduced H/W feature set (SC)..." ; \
262 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
264 GENIETV_config: unconfig
265 @./mkconfig $(@:_config=) ppc mpc8xx genietv
268 @./mkconfig $(@:_config=) ppc mpc8xx gth
270 hermes_config : unconfig
271 @./mkconfig $(@:_config=) ppc mpc8xx hermes
273 IAD210_config: unconfig
274 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
276 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
278 ICU862_100MHz_config \
279 ICU862_config: unconfig
281 @[ -z "$(findstring _100MHz,$@)" ] || \
282 { echo "#define CONFIG_100MHz" >>include/config.h ; \
283 echo "... with 100MHz system clock" ; \
285 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
287 IP860_config : unconfig
288 @./mkconfig $(@:_config=) ppc mpc8xx ip860
292 IVML24_config: unconfig
294 @[ -z "$(findstring IVML24_config,$@)" ] || \
295 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
297 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
298 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
300 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
301 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
303 @./mkconfig -a IVML24 ppc mpc8xx ivm
307 IVMS8_config: unconfig
309 @[ -z "$(findstring IVMS8_config,$@)" ] || \
310 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
312 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
313 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
315 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
316 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
318 @./mkconfig -a IVMS8 ppc mpc8xx ivm
320 KUP4K_config : unconfig
321 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
323 LANTEC_config : unconfig
324 @./mkconfig $(@:_config=) ppc mpc8xx lantec
326 lwmon_config: unconfig
327 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
330 MBX860T_config: unconfig
331 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
333 MHPC_config: unconfig
334 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
336 MVS1_config : unconfig
337 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
339 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
342 NETVIA_config: unconfig
344 @[ -z "$(findstring NETVIA_config,$@)" ] || \
345 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
346 echo "... Version 1" ; \
348 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
349 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
350 echo "... Version 2" ; \
352 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
354 NX823_config: unconfig
355 @./mkconfig $(@:_config=) ppc mpc8xx nx823
357 pcu_e_config: unconfig
358 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
360 R360MPI_config: unconfig
361 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
363 RBC823_config: unconfig
364 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
366 RPXClassic_config: unconfig
367 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
369 RPXlite_config: unconfig
370 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
373 @./mkconfig $(@:_config=) ppc mpc8xx rmu
375 RRvision_config: unconfig
376 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
378 RRvision_LCD_config: unconfig
379 @echo "#define CONFIG_LCD" >include/config.h
380 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
381 @./mkconfig -a RRvision ppc mpc8xx RRvision
383 SM850_config : unconfig
384 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
386 SPD823TS_config: unconfig
387 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
389 svm_sc8xx_config: unconfig
391 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
393 SXNI855T_config: unconfig
394 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
396 # EMK MPC8xx based modules
397 TOP860_config: unconfig
398 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
400 # Play some tricks for configuration selection
401 # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
402 # but only 855 and 860 boards may come with FEC
403 # and 823 boards may have LCD support
404 xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
410 TQM823L_66MHz_config \
411 TQM823L_80MHz_config \
413 TQM823L_LCD_66MHz_config \
414 TQM823L_LCD_80MHz_config \
416 TQM850L_66MHz_config \
417 TQM850L_80MHz_config \
419 TQM855L_66MHz_config \
420 TQM855L_80MHz_config \
422 TQM860L_66MHz_config \
423 TQM860L_80MHz_config \
425 TQM862L_66MHz_config \
426 TQM862L_80MHz_config \
428 TQM823M_66MHz_config \
429 TQM823M_80MHz_config \
431 TQM850M_66MHz_config \
432 TQM850M_80MHz_config \
434 TQM855M_66MHz_config \
435 TQM855M_80MHz_config \
437 TQM860M_66MHz_config \
438 TQM860M_80MHz_config \
440 TQM862M_66MHz_config \
441 TQM862M_80MHz_config \
442 TQM862M_100MHz_config: unconfig
444 @[ -z "$(findstring _66MHz,$@)" ] || \
445 { echo "#define CONFIG_66MHz" >>include/config.h ; \
446 echo "... with 66MHz system clock" ; \
448 @[ -z "$(findstring _80MHz,$@)" ] || \
449 { echo "#define CONFIG_80MHz" >>include/config.h ; \
450 echo "... with 80MHz system clock" ; \
452 @[ -z "$(findstring _100MHz,$@)" ] || \
453 { echo "#define CONFIG_100MHz" >>include/config.h ; \
454 echo "... with 100MHz system clock" ; \
456 @[ -z "$(findstring _LCD,$@)" ] || \
457 { echo "#define CONFIG_LCD" >>include/config.h ; \
458 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
459 echo "... with LCD display" ; \
461 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
463 TTTech_config: unconfig
464 @echo "#define CONFIG_LCD" >include/config.h
465 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
466 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
469 @echo "#define CONFIG_LCD" >include/config.h
470 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
471 @./mkconfig $(@:_config=) ppc mpc8xx v37
474 @echo "#define CONFIG_LCD" >include/config.h
475 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
476 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
478 #########################################################################
480 #########################################################################
482 ADCIOP_config: unconfig
483 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
485 AR405_config: unconfig
486 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
488 ASH405_config: unconfig
489 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
491 BUBINGA405EP_config:unconfig
492 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
494 CANBT_config: unconfig
495 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
499 CPCI405AB_config: unconfig
500 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
501 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
503 CPCI440_config: unconfig
504 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
506 CPCIISER4_config: unconfig
507 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
509 CRAYL1_config:unconfig
510 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
512 DASA_SIM_config: unconfig
513 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
515 DP405_config: unconfig
516 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
518 DU405_config: unconfig
519 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
521 EBONY_config:unconfig
522 @./mkconfig $(@:_config=) ppc ppc4xx ebony
525 @./mkconfig $(@:_config=) ppc ppc4xx eric
527 EXBITGEN_config:unconfig
528 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
530 HUB405_config: unconfig
531 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
533 MIP405_config:unconfig
534 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
536 MIP405T_config:unconfig
537 @echo "#define CONFIG_MIP405T" >include/config.h
538 @echo "Enable subset config for MIP405T"
539 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
542 @./mkconfig $(@:_config=) ppc ppc4xx ml2
545 ORSG_config: unconfig
546 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
548 PCI405_config: unconfig
549 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
551 PIP405_config:unconfig
552 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
554 PLU405_config: unconfig
555 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
557 PMC405_config: unconfig
558 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
560 PPChameleonEVB_config: unconfig
561 @./mkconfig $(@:_config=) ppc ppc4xx PPChameleonEVB dave
563 VOH405_config: unconfig
564 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
567 W7OLMG_config: unconfig
568 @./mkconfig $(@:_config=) ppc ppc4xx w7o
570 WALNUT405_config:unconfig
571 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
573 #########################################################################
575 #########################################################################
576 xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
578 A3000_config: unconfig
579 @./mkconfig $(@:_config=) ppc mpc824x a3000
582 @./mkconfig $(@:_config=) ppc mpc824x bmw
585 CPC45_ROMBOOT_config: unconfig
586 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
588 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
589 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
590 echo "... booting from 8-bit flash" ; \
592 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
593 echo "... booting from 64-bit flash" ; \
595 echo "export CONFIG_BOOT_ROM" >> config.mk;
597 CU824_config: unconfig
598 @./mkconfig $(@:_config=) ppc mpc824x cu824
600 MOUSSE_config: unconfig
601 @./mkconfig $(@:_config=) ppc mpc824x mousse
603 MUSENKI_config: unconfig
604 @./mkconfig $(@:_config=) ppc mpc824x musenki
607 @./mkconfig $(@:_config=) ppc mpc824x oxc
609 PN62_config: unconfig
610 @./mkconfig $(@:_config=) ppc mpc824x pn62
612 Sandpoint8240_config: unconfig
613 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
615 Sandpoint8245_config: unconfig
616 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
618 SL8245_config: unconfig
619 @./mkconfig $(@:_config=) ppc mpc824x sl8245
621 utx8245_config: unconfig
622 @./mkconfig $(@:_config=) ppc mpc824x utx8245
624 #########################################################################
626 #########################################################################
628 cogent_mpc8260_config: unconfig
629 @./mkconfig $(@:_config=) ppc mpc8260 cogent
632 CPU86_ROMBOOT_config: unconfig
633 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
635 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
636 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
637 echo "... booting from 8-bit flash" ; \
639 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
640 echo "... booting from 64-bit flash" ; \
642 echo "export CONFIG_BOOT_ROM" >> config.mk;
644 ep8260_config: unconfig
645 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
647 gw8260_config: unconfig
648 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
650 hymod_config: unconfig
651 @./mkconfig $(@:_config=) ppc mpc8260 hymod
653 IPHASE4539_config: unconfig
654 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
656 MPC8260ADS_config: unconfig
657 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
659 MPC8266ADS_config: unconfig
660 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
663 PM825_ROMBOOT_config: unconfig
664 @echo "#define CONFIG_PCI" >include/config.h
665 @./mkconfig -a PM826 ppc mpc8260 pm826
667 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
668 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
669 echo "... booting from 8-bit flash" ; \
671 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
672 echo "... booting from 64-bit flash" ; \
674 echo "export CONFIG_BOOT_ROM" >> config.mk; \
677 PM826_ROMBOOT_config: unconfig
678 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
680 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
681 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
682 echo "... booting from 8-bit flash" ; \
684 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
685 echo "... booting from 64-bit flash" ; \
687 echo "export CONFIG_BOOT_ROM" >> config.mk; \
689 ppmc8260_config: unconfig
690 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
692 RPXsuper_config: unconfig
693 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
695 rsdproto_config: unconfig
696 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
698 sacsng_config: unconfig
699 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
701 sbc8260_config: unconfig
702 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
705 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
716 TQM8265_AA_config: unconfig
718 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
719 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
720 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
721 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
722 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
723 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
724 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
725 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
726 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
727 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
729 >include/config.h ; \
730 if [ "$${CTYPE}" != "MPC8260" ] ; then \
731 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
733 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
734 echo "... with $${CFREQ}MHz system clock" ; \
735 if [ "$${CACHE}" == "yes" ] ; then \
736 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
737 echo "... with L2 Cache support" ; \
739 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
740 echo "... without L2 Cache support" ; \
742 if [ "$${BMODE}" == "60x" ] ; then \
743 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
744 echo "... with 60x Bus Mode" ; \
746 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
747 echo "... without 60x Bus Mode" ; \
749 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
752 @./mkconfig $(@:_config=) ppc mpc8260 atc
754 #########################################################################
756 #########################################################################
758 AmigaOneG3SE_config: unconfig
759 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
762 EVB64260_750CX_config: unconfig
763 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
765 ZUMA_config: unconfig
766 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
769 PCIPPC6_config: unconfig
770 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
772 BAB7xx_config: unconfig
773 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
775 ELPPC_config: unconfig
776 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
778 P3G4_config: unconfig
779 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
781 #========================================================================
783 #========================================================================
784 #########################################################################
786 #########################################################################
788 at91rm9200dk_config : unconfig
789 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
791 lart_config : unconfig
792 @./mkconfig $(@:_config=) arm sa1100 lart
794 dnp1110_config : unconfig
795 @./mkconfig $(@:_config=) arm sa1100 dnp1110
797 shannon_config : unconfig
798 @./mkconfig $(@:_config=) arm sa1100 shannon
800 #########################################################################
802 #########################################################################
804 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
806 omap1510inn_config : unconfig
807 @./mkconfig $(@:_config=) arm arm925t omap1510inn
809 omap1610inn_config : unconfig
810 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
812 smdk2400_config : unconfig
813 @./mkconfig $(@:_config=) arm arm920t smdk2400
815 smdk2410_config : unconfig
816 @./mkconfig $(@:_config=) arm arm920t smdk2410
820 trab_bigflash_config \
821 trab_old_config: unconfig
823 @[ -z "$(findstring _bigram,$@)" ] || \
824 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
825 echo "... with 8 MB Flash, 32 MB RAM" ; \
827 @[ -z "$(findstring _bigflash,$@)" ] || \
828 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
829 echo "... with 16 MB Flash, 16 MB RAM" ; \
830 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
832 @[ -z "$(findstring _old,$@)" ] || \
833 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
834 echo "... with small memory configuration" ; \
835 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
837 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
839 VCMA9_config : unconfig
840 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
842 #########################################################################
844 #########################################################################
846 impa7_config : unconfig
847 @./mkconfig $(@:_config=) arm arm720t impa7
849 ep7312_config : unconfig
850 @./mkconfig $(@:_config=) arm arm720t ep7312
852 #########################################################################
854 #########################################################################
856 cradle_config : unconfig
857 @./mkconfig $(@:_config=) arm pxa cradle
859 csb226_config : unconfig
860 @./mkconfig $(@:_config=) arm pxa csb226
862 innokom_config : unconfig
863 @./mkconfig $(@:_config=) arm pxa innokom
865 lubbock_config : unconfig
866 @./mkconfig $(@:_config=) arm pxa lubbock
868 logodl_config : unconfig
869 @./mkconfig $(@:_config=) arm pxa logodl
871 wepep250_config : unconfig
872 @./mkconfig $(@:_config=) arm pxa wepep250
874 #========================================================================
876 #========================================================================
877 #########################################################################
879 #########################################################################
880 sc520_cdp_config : unconfig
881 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
883 sc520_spunk_config : unconfig
884 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
886 sc520_spunk_rel_config : unconfig
887 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
889 #========================================================================
891 #========================================================================
892 #########################################################################
894 #########################################################################
896 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
898 incaip_100MHz_config \
899 incaip_133MHz_config \
900 incaip_150MHz_config \
901 incaip_config: unconfig
903 @[ -z "$(findstring _100MHz,$@)" ] || \
904 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
905 echo "... with 100MHz system clock" ; \
907 @[ -z "$(findstring _133MHz,$@)" ] || \
908 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
909 echo "... with 133MHz system clock" ; \
911 @[ -z "$(findstring _150MHz,$@)" ] || \
912 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
913 echo "... with 150MHz system clock" ; \
915 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
917 #########################################################################
919 #########################################################################
921 purple_config : unconfig
922 @./mkconfig $(@:_config=) mips mips purple
924 #########################################################################
925 #########################################################################
929 \( -name 'core' -o -name '*.bak' -o -name '*~' \
930 -o -name '*.o' -o -name '*.a' \) -print \
932 rm -f examples/hello_world examples/timer \
933 examples/eepro100_eeprom examples/sched \
934 examples/mem_to_mem_idma2intr examples/82559_eeprom
936 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
937 rm -f tools/easylogo/easylogo tools/bmp_logo
938 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
939 rm -f tools/env/fw_printenv tools/env/fw_setenv
940 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
941 rm -f board/trab/trab_fkt board/trab/config.tmp
945 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
948 rm -f $(OBJS) *.bak tags TAGS
950 rm -f u-boot u-boot.map $(ALL)
951 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
952 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
953 rm -f include/asm/proc include/asm/arch include/asm
956 distclean: clobber unconfig
959 F=`basename $(TOPDIR)` ; cd .. ; \
960 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
962 #########################################################################