2 # (C) Copyright 2000, 2001, 2002
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-
73 CROSS_COMPILE = nios-elf-
80 # The "tools" are needed early, so put this first
98 #########################################################################
99 # U-Boot objects....order is important (i.e. start must be first)
101 OBJS = cpu/$(CPU)/start.o
103 OBJS += cpu/$(CPU)/start16.o
104 OBJS += cpu/$(CPU)/reset.o
107 OBJS += cpu/$(CPU)/resetvec.o
109 ifeq ($(CPU),mpc85xx)
110 OBJS += cpu/$(CPU)/resetvec.o
113 LIBS = board/$(BOARDDIR)/lib$(BOARD).a
114 LIBS += cpu/$(CPU)/lib$(CPU).a
115 LIBS += lib_$(ARCH)/lib$(ARCH).a
116 LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a
118 LIBS += disk/libdisk.a
121 LIBS += drivers/libdrivers.a
122 LIBS += drivers/sk98lin/libsk98lin.a
123 LIBS += post/libpost.a post/cpu/libcpu.a
124 LIBS += common/libcommon.a
125 LIBS += lib_generic/libgeneric.a
127 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
129 #########################################################################
130 #########################################################################
132 ALL = u-boot.srec u-boot.bin System.map
137 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
140 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
142 u-boot.img: u-boot.bin
143 ./tools/mkimage -A $(ARCH) -T firmware -C none \
144 -a $(TEXT_BASE) -e 0 \
145 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
146 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
150 $(OBJDUMP) -d $< > $@
152 u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
153 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
154 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
155 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
156 -Map u-boot.map -o u-boot
159 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
162 $(MAKE) -C tools/gdb || exit 1
165 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
168 ctags -w `find $(SUBDIRS) include \
169 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
172 etags -a `find $(SUBDIRS) include \
173 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
177 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
180 #########################################################################
182 all install u-boot u-boot.srec depend dep:
183 @echo "System not configured - see README" >&2
187 #########################################################################
190 rm -f include/config.h include/config.mk
192 #========================================================================
194 #========================================================================
196 #########################################################################
198 #########################################################################
200 cmi_mpc5xx_config: unconfig
201 @./mkconfig $(@:_config=) ppc mpc5xx cmi
203 #########################################################################
205 #########################################################################
206 IceCube_5200_config \
207 IceCube_5100_config: unconfig
209 @[ -z "$(findstring _5200,$@)" ] || \
210 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
211 echo "... with MPC5200 processor" ; \
213 @[ -z "$(findstring _5100,$@)" ] || \
214 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
215 echo "... with MGT5100 processor" ; \
217 @./mkconfig -a IceCube ppc mpc5xxx icecube
219 #########################################################################
221 #########################################################################
223 AdderII_config: unconfig
224 @./mkconfig $(@:_config=) ppc mpc8xx adderII
226 ADS860_config: unconfig
227 @./mkconfig $(@:_config=) ppc mpc8xx fads
229 AMX860_config : unconfig
230 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
232 c2mon_config: unconfig
233 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
236 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
238 cogent_mpc8xx_config: unconfig
239 @./mkconfig $(@:_config=) ppc mpc8xx cogent
241 ELPT860_config: unconfig
242 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
244 ESTEEM192E_config: unconfig
245 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
247 ETX094_config : unconfig
248 @./mkconfig $(@:_config=) ppc mpc8xx etx094
253 FADS860T_config: unconfig
254 @./mkconfig $(@:_config=) ppc mpc8xx fads
256 FLAGADM_config: unconfig
257 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
259 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
262 GEN860T_config: unconfig
264 @[ -z "$(findstring _SC,$@)" ] || \
265 { echo "#define CONFIG_SC" >>include/config.h ; \
266 echo "With reduced H/W feature set (SC)..." ; \
268 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
270 GENIETV_config: unconfig
271 @./mkconfig $(@:_config=) ppc mpc8xx genietv
274 @./mkconfig $(@:_config=) ppc mpc8xx gth
276 hermes_config : unconfig
277 @./mkconfig $(@:_config=) ppc mpc8xx hermes
279 IAD210_config: unconfig
280 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
282 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
284 ICU862_100MHz_config \
285 ICU862_config: unconfig
287 @[ -z "$(findstring _100MHz,$@)" ] || \
288 { echo "#define CONFIG_100MHz" >>include/config.h ; \
289 echo "... with 100MHz system clock" ; \
291 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
293 IP860_config : unconfig
294 @./mkconfig $(@:_config=) ppc mpc8xx ip860
298 IVML24_config: unconfig
300 @[ -z "$(findstring IVML24_config,$@)" ] || \
301 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
303 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
304 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
306 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
307 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
309 @./mkconfig -a IVML24 ppc mpc8xx ivm
313 IVMS8_config: unconfig
315 @[ -z "$(findstring IVMS8_config,$@)" ] || \
316 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
318 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
319 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
321 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
322 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
324 @./mkconfig -a IVMS8 ppc mpc8xx ivm
326 KUP4K_config : unconfig
327 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
329 LANTEC_config : unconfig
330 @./mkconfig $(@:_config=) ppc mpc8xx lantec
332 lwmon_config: unconfig
333 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
336 MBX860T_config: unconfig
337 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
339 MHPC_config: unconfig
340 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
342 MVS1_config : unconfig
343 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
345 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
348 NETVIA_config: unconfig
350 @[ -z "$(findstring NETVIA_config,$@)" ] || \
351 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
352 echo "... Version 1" ; \
354 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
355 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
356 echo "... Version 2" ; \
358 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
360 NX823_config: unconfig
361 @./mkconfig $(@:_config=) ppc mpc8xx nx823
363 pcu_e_config: unconfig
364 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
366 R360MPI_config: unconfig
367 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
369 RBC823_config: unconfig
370 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
372 RPXClassic_config: unconfig
373 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
375 RPXlite_config: unconfig
376 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
379 @./mkconfig $(@:_config=) ppc mpc8xx rmu
381 RRvision_config: unconfig
382 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
384 RRvision_LCD_config: unconfig
385 @echo "#define CONFIG_LCD" >include/config.h
386 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
387 @./mkconfig -a RRvision ppc mpc8xx RRvision
389 SM850_config : unconfig
390 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
392 SPD823TS_config: unconfig
393 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
395 svm_sc8xx_config: unconfig
397 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
399 SXNI855T_config: unconfig
400 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
402 # EMK MPC8xx based modules
403 TOP860_config: unconfig
404 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
406 # Play some tricks for configuration selection
407 # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
408 # but only 855 and 860 boards may come with FEC
409 # and 823 boards may have LCD support
410 xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
416 TQM823L_66MHz_config \
417 TQM823L_80MHz_config \
419 TQM823L_LCD_66MHz_config \
420 TQM823L_LCD_80MHz_config \
422 TQM850L_66MHz_config \
423 TQM850L_80MHz_config \
425 TQM855L_66MHz_config \
426 TQM855L_80MHz_config \
428 TQM860L_66MHz_config \
429 TQM860L_80MHz_config \
431 TQM862L_66MHz_config \
432 TQM862L_80MHz_config \
434 TQM823M_66MHz_config \
435 TQM823M_80MHz_config \
437 TQM850M_66MHz_config \
438 TQM850M_80MHz_config \
440 TQM855M_66MHz_config \
441 TQM855M_80MHz_config \
443 TQM860M_66MHz_config \
444 TQM860M_80MHz_config \
446 TQM862M_66MHz_config \
447 TQM862M_80MHz_config \
448 TQM862M_100MHz_config: unconfig
450 @[ -z "$(findstring _66MHz,$@)" ] || \
451 { echo "#define CONFIG_66MHz" >>include/config.h ; \
452 echo "... with 66MHz system clock" ; \
454 @[ -z "$(findstring _80MHz,$@)" ] || \
455 { echo "#define CONFIG_80MHz" >>include/config.h ; \
456 echo "... with 80MHz system clock" ; \
458 @[ -z "$(findstring _100MHz,$@)" ] || \
459 { echo "#define CONFIG_100MHz" >>include/config.h ; \
460 echo "... with 100MHz system clock" ; \
462 @[ -z "$(findstring _LCD,$@)" ] || \
463 { echo "#define CONFIG_LCD" >>include/config.h ; \
464 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
465 echo "... with LCD display" ; \
467 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
469 TTTech_config: unconfig
470 @echo "#define CONFIG_LCD" >include/config.h
471 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
472 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
475 @echo "#define CONFIG_LCD" >include/config.h
476 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
477 @./mkconfig $(@:_config=) ppc mpc8xx v37
480 @echo "#define CONFIG_LCD" >include/config.h
481 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
482 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
484 #########################################################################
486 #########################################################################
487 xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
489 ADCIOP_config: unconfig
490 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
492 AR405_config: unconfig
493 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
495 ASH405_config: unconfig
496 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
498 BUBINGA405EP_config:unconfig
499 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
501 CANBT_config: unconfig
502 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
506 CPCI405AB_config: unconfig
507 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
508 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
510 CPCI440_config: unconfig
511 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
513 CPCIISER4_config: unconfig
514 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
516 CRAYL1_config:unconfig
517 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
519 DASA_SIM_config: unconfig
520 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
522 DP405_config: unconfig
523 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
525 DU405_config: unconfig
526 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
528 EBONY_config:unconfig
529 @./mkconfig $(@:_config=) ppc ppc4xx ebony
532 @./mkconfig $(@:_config=) ppc ppc4xx eric
534 EXBITGEN_config:unconfig
535 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
537 HUB405_config: unconfig
538 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
540 MIP405_config:unconfig
541 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
543 MIP405T_config:unconfig
544 @echo "#define CONFIG_MIP405T" >include/config.h
545 @echo "Enable subset config for MIP405T"
546 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
549 @./mkconfig $(@:_config=) ppc ppc4xx ml2
552 ORSG_config: unconfig
553 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
555 PCI405_config: unconfig
556 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
558 PIP405_config:unconfig
559 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
561 PLU405_config: unconfig
562 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
564 PMC405_config: unconfig
565 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
567 PPChameleonEVB_MODEL_BA_config \
568 PPChameleonEVB_MODEL_ME_config \
569 PPChameleonEVB_MODEL_HI_config \
570 PPChameleonEVB_config: unconfig
572 @[ -z "$(findstring _MODEL_BA,$@)" ] || \
573 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
574 echo "... BASIC model" ; \
576 @[ -z "$(findstring _MODEL_ME,$@)" ] || \
577 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
578 echo "... MEDIUM model" ; \
580 @[ -z "$(findstring _MODEL_HI,$@)" ] || \
581 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
582 echo "... HIGH-END model" ; \
584 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
586 VOH405_config: unconfig
587 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
590 W7OLMG_config: unconfig
591 @./mkconfig $(@:_config=) ppc ppc4xx w7o
593 WALNUT405_config:unconfig
594 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
596 #########################################################################
598 #########################################################################
599 xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
601 A3000_config: unconfig
602 @./mkconfig $(@:_config=) ppc mpc824x a3000
605 @./mkconfig $(@:_config=) ppc mpc824x bmw
608 CPC45_ROMBOOT_config: unconfig
609 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
611 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
612 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
613 echo "... booting from 8-bit flash" ; \
615 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
616 echo "... booting from 64-bit flash" ; \
618 echo "export CONFIG_BOOT_ROM" >> config.mk;
620 CU824_config: unconfig
621 @./mkconfig $(@:_config=) ppc mpc824x cu824
623 MOUSSE_config: unconfig
624 @./mkconfig $(@:_config=) ppc mpc824x mousse
626 MUSENKI_config: unconfig
627 @./mkconfig $(@:_config=) ppc mpc824x musenki
630 @./mkconfig $(@:_config=) ppc mpc824x oxc
632 PN62_config: unconfig
633 @./mkconfig $(@:_config=) ppc mpc824x pn62
635 Sandpoint8240_config: unconfig
636 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
638 Sandpoint8245_config: unconfig
639 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
641 SL8245_config: unconfig
642 @./mkconfig $(@:_config=) ppc mpc824x sl8245
644 utx8245_config: unconfig
645 @./mkconfig $(@:_config=) ppc mpc824x utx8245
647 #########################################################################
649 #########################################################################
652 @./mkconfig $(@:_config=) ppc mpc8260 atc
654 cogent_mpc8260_config: unconfig
655 @./mkconfig $(@:_config=) ppc mpc8260 cogent
658 CPU86_ROMBOOT_config: unconfig
659 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
661 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
662 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
663 echo "... booting from 8-bit flash" ; \
665 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
666 echo "... booting from 64-bit flash" ; \
668 echo "export CONFIG_BOOT_ROM" >> config.mk;
670 ep8260_config: unconfig
671 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
673 gw8260_config: unconfig
674 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
676 hymod_config: unconfig
677 @./mkconfig $(@:_config=) ppc mpc8260 hymod
679 IPHASE4539_config: unconfig
680 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
682 MPC8260ADS_config: unconfig
683 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
685 MPC8266ADS_config: unconfig
686 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
689 PM825_ROMBOOT_config: unconfig
690 @echo "#define CONFIG_PCI" >include/config.h
691 @./mkconfig -a PM826 ppc mpc8260 pm826
693 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
694 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
695 echo "... booting from 8-bit flash" ; \
697 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
698 echo "... booting from 64-bit flash" ; \
700 echo "export CONFIG_BOOT_ROM" >> config.mk; \
703 PM826_ROMBOOT_config: unconfig
704 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
706 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
707 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
708 echo "... booting from 8-bit flash" ; \
710 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
711 echo "... booting from 64-bit flash" ; \
713 echo "export CONFIG_BOOT_ROM" >> config.mk; \
715 ppmc8260_config: unconfig
716 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
718 RPXsuper_config: unconfig
719 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
721 rsdproto_config: unconfig
722 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
724 sacsng_config: unconfig
725 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
727 sbc8260_config: unconfig
728 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
731 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
742 TQM8265_AA_config: unconfig
744 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
745 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
746 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
747 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
748 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
749 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
750 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
751 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
752 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
753 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
755 >include/config.h ; \
756 if [ "$${CTYPE}" != "MPC8260" ] ; then \
757 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
759 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
760 echo "... with $${CFREQ}MHz system clock" ; \
761 if [ "$${CACHE}" == "yes" ] ; then \
762 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
763 echo "... with L2 Cache support" ; \
765 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
766 echo "... without L2 Cache support" ; \
768 if [ "$${BMODE}" == "60x" ] ; then \
769 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
770 echo "... with 60x Bus Mode" ; \
772 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
773 echo "... without 60x Bus Mode" ; \
775 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
777 ZPC1900_config: unconfig
778 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
780 #########################################################################
782 #########################################################################
784 MPC8540ADS_config: unconfig
785 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
787 MPC8560ADS_config: unconfig
788 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
790 #########################################################################
792 #########################################################################
794 AmigaOneG3SE_config: unconfig
795 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
797 BAB7xx_config: unconfig
798 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
800 debris_config: unconfig
801 @./mkconfig $(@:_config=) ppc mpc824x debris etin
803 ELPPC_config: unconfig
804 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
807 EVB64260_750CX_config: unconfig
808 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
810 P3G4_config: unconfig
811 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
814 PCIPPC6_config: unconfig
815 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
817 ZUMA_config: unconfig
818 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
820 #========================================================================
822 #========================================================================
823 #########################################################################
825 #########################################################################
827 at91rm9200dk_config : unconfig
828 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
830 lart_config : unconfig
831 @./mkconfig $(@:_config=) arm sa1100 lart
833 dnp1110_config : unconfig
834 @./mkconfig $(@:_config=) arm sa1100 dnp1110
836 shannon_config : unconfig
837 @./mkconfig $(@:_config=) arm sa1100 shannon
839 #########################################################################
841 #########################################################################
843 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
845 omap1510inn_config : unconfig
846 @./mkconfig $(@:_config=) arm arm925t omap1510inn
848 omap1610inn_config : unconfig
849 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
851 smdk2400_config : unconfig
852 @./mkconfig $(@:_config=) arm arm920t smdk2400
854 smdk2410_config : unconfig
855 @./mkconfig $(@:_config=) arm arm920t smdk2410
859 trab_bigflash_config \
860 trab_old_config: unconfig
862 @[ -z "$(findstring _bigram,$@)" ] || \
863 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
864 echo "... with 8 MB Flash, 32 MB RAM" ; \
866 @[ -z "$(findstring _bigflash,$@)" ] || \
867 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
868 echo "... with 16 MB Flash, 16 MB RAM" ; \
869 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
871 @[ -z "$(findstring _old,$@)" ] || \
872 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
873 echo "... with small memory configuration" ; \
874 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
876 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
878 VCMA9_config : unconfig
879 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
881 #########################################################################
883 #########################################################################
885 impa7_config : unconfig
886 @./mkconfig $(@:_config=) arm arm720t impa7
888 ep7312_config : unconfig
889 @./mkconfig $(@:_config=) arm arm720t ep7312
891 #########################################################################
893 #########################################################################
895 cradle_config : unconfig
896 @./mkconfig $(@:_config=) arm pxa cradle
898 csb226_config : unconfig
899 @./mkconfig $(@:_config=) arm pxa csb226
901 innokom_config : unconfig
902 @./mkconfig $(@:_config=) arm pxa innokom
904 ixdp425_config : unconfig
905 @./mkconfig $(@:_config=) arm ixp ixdp425
907 lubbock_config : unconfig
908 @./mkconfig $(@:_config=) arm pxa lubbock
910 logodl_config : unconfig
911 @./mkconfig $(@:_config=) arm pxa logodl
913 wepep250_config : unconfig
914 @./mkconfig $(@:_config=) arm pxa wepep250
916 #========================================================================
918 #========================================================================
919 #########################################################################
921 #########################################################################
922 sc520_cdp_config : unconfig
923 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
925 sc520_spunk_config : unconfig
926 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
928 sc520_spunk_rel_config : unconfig
929 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
931 #========================================================================
933 #========================================================================
934 #########################################################################
936 #########################################################################
938 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
940 incaip_100MHz_config \
941 incaip_133MHz_config \
942 incaip_150MHz_config \
943 incaip_config: unconfig
945 @[ -z "$(findstring _100MHz,$@)" ] || \
946 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
947 echo "... with 100MHz system clock" ; \
949 @[ -z "$(findstring _133MHz,$@)" ] || \
950 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
951 echo "... with 133MHz system clock" ; \
953 @[ -z "$(findstring _150MHz,$@)" ] || \
954 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
955 echo "... with 150MHz system clock" ; \
957 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
959 #########################################################################
961 #########################################################################
963 purple_config : unconfig
964 @./mkconfig $(@:_config=) mips mips purple
966 #========================================================================
968 #========================================================================
969 #########################################################################
971 #########################################################################
973 DK1C20_config: unconfig
974 @./mkconfig $(@:_config=) nios nios dk1c20
977 #########################################################################
979 #########################################################################
980 dbau1x00_config : unconfig
981 @./mkconfig $(@:_config=) mips mips dbau1x00
983 #########################################################################
984 #########################################################################
988 \( -name 'core' -o -name '*.bak' -o -name '*~' \
989 -o -name '*.o' -o -name '*.a' \) -print \
991 rm -f examples/hello_world examples/timer \
992 examples/eepro100_eeprom examples/sched \
993 examples/mem_to_mem_idma2intr examples/82559_eeprom
995 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
996 rm -f tools/easylogo/easylogo tools/bmp_logo
997 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
998 rm -f tools/env/fw_printenv tools/env/fw_setenv
999 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
1000 rm -f board/trab/trab_fkt board/trab/config.tmp
1004 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
1007 rm -f $(OBJS) *.bak tags TAGS
1009 rm -f u-boot u-boot.map $(ALL)
1010 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
1011 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1012 rm -f include/asm/proc include/asm/arch include/asm
1015 distclean: clobber unconfig
1018 F=`basename $(TOPDIR)` ; cd .. ; \
1019 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1021 #########################################################################