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-
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 #########################################################################
207 icecube_5200_config \
208 IceCube_5200_config \
209 IceCube_5100_config: unconfig
211 @[ -z "$(findstring 5200,$@)" ] || \
212 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
213 echo "... with MPC5200 processor" ; \
215 @[ -z "$(findstring 5100,$@)" ] || \
216 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
217 echo "... with MGT5100 processor" ; \
219 @./mkconfig -a IceCube ppc mpc5xxx icecube
221 #########################################################################
223 #########################################################################
225 AdderII_config: unconfig
226 @./mkconfig $(@:_config=) ppc mpc8xx adderII
228 ADS860_config: unconfig
229 @./mkconfig $(@:_config=) ppc mpc8xx fads
231 AMX860_config : unconfig
232 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
234 c2mon_config: unconfig
235 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
238 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
240 cogent_mpc8xx_config: unconfig
241 @./mkconfig $(@:_config=) ppc mpc8xx cogent
243 ELPT860_config: unconfig
244 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
246 ESTEEM192E_config: unconfig
247 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
249 ETX094_config : unconfig
250 @./mkconfig $(@:_config=) ppc mpc8xx etx094
255 FADS860T_config: unconfig
256 @./mkconfig $(@:_config=) ppc mpc8xx fads
258 FLAGADM_config: unconfig
259 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
261 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
264 GEN860T_config: unconfig
266 @[ -z "$(findstring _SC,$@)" ] || \
267 { echo "#define CONFIG_SC" >>include/config.h ; \
268 echo "With reduced H/W feature set (SC)..." ; \
270 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
272 GENIETV_config: unconfig
273 @./mkconfig $(@:_config=) ppc mpc8xx genietv
276 @./mkconfig $(@:_config=) ppc mpc8xx gth
278 hermes_config : unconfig
279 @./mkconfig $(@:_config=) ppc mpc8xx hermes
281 IAD210_config: unconfig
282 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
284 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
286 ICU862_100MHz_config \
287 ICU862_config: unconfig
289 @[ -z "$(findstring _100MHz,$@)" ] || \
290 { echo "#define CONFIG_100MHz" >>include/config.h ; \
291 echo "... with 100MHz system clock" ; \
293 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
295 IP860_config : unconfig
296 @./mkconfig $(@:_config=) ppc mpc8xx ip860
300 IVML24_config: unconfig
302 @[ -z "$(findstring IVML24_config,$@)" ] || \
303 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
305 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
306 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
308 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
309 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
311 @./mkconfig -a IVML24 ppc mpc8xx ivm
315 IVMS8_config: unconfig
317 @[ -z "$(findstring IVMS8_config,$@)" ] || \
318 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
320 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
321 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
323 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
324 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
326 @./mkconfig -a IVMS8 ppc mpc8xx ivm
328 KUP4K_config : unconfig
329 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
331 LANTEC_config : unconfig
332 @./mkconfig $(@:_config=) ppc mpc8xx lantec
334 lwmon_config: unconfig
335 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
338 MBX860T_config: unconfig
339 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
341 MHPC_config: unconfig
342 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
344 MVS1_config : unconfig
345 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
347 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
350 NETVIA_config: unconfig
352 @[ -z "$(findstring NETVIA_config,$@)" ] || \
353 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
354 echo "... Version 1" ; \
356 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
357 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
358 echo "... Version 2" ; \
360 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
362 NX823_config: unconfig
363 @./mkconfig $(@:_config=) ppc mpc8xx nx823
365 pcu_e_config: unconfig
366 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
368 R360MPI_config: unconfig
369 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
371 RBC823_config: unconfig
372 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
374 RPXClassic_config: unconfig
375 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
377 RPXlite_config: unconfig
378 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
381 @./mkconfig $(@:_config=) ppc mpc8xx rmu
383 RRvision_config: unconfig
384 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
386 RRvision_LCD_config: unconfig
387 @echo "#define CONFIG_LCD" >include/config.h
388 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
389 @./mkconfig -a RRvision ppc mpc8xx RRvision
391 SM850_config : unconfig
392 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
394 SPD823TS_config: unconfig
395 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
397 svm_sc8xx_config: unconfig
399 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
401 SXNI855T_config: unconfig
402 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
404 # EMK MPC8xx based modules
405 TOP860_config: unconfig
406 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
408 # Play some tricks for configuration selection
409 # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
410 # but only 855 and 860 boards may come with FEC
411 # and 823 boards may have LCD support
412 xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
418 TQM823L_66MHz_config \
419 TQM823L_80MHz_config \
421 TQM823L_LCD_66MHz_config \
422 TQM823L_LCD_80MHz_config \
424 TQM850L_66MHz_config \
425 TQM850L_80MHz_config \
427 TQM855L_66MHz_config \
428 TQM855L_80MHz_config \
430 TQM860L_66MHz_config \
431 TQM860L_80MHz_config \
433 TQM862L_66MHz_config \
434 TQM862L_80MHz_config \
436 TQM823M_66MHz_config \
437 TQM823M_80MHz_config \
439 TQM850M_66MHz_config \
440 TQM850M_80MHz_config \
442 TQM855M_66MHz_config \
443 TQM855M_80MHz_config \
445 TQM860M_66MHz_config \
446 TQM860M_80MHz_config \
448 TQM862M_66MHz_config \
449 TQM862M_80MHz_config \
450 TQM862M_100MHz_config: unconfig
452 @[ -z "$(findstring _66MHz,$@)" ] || \
453 { echo "#define CONFIG_66MHz" >>include/config.h ; \
454 echo "... with 66MHz system clock" ; \
456 @[ -z "$(findstring _80MHz,$@)" ] || \
457 { echo "#define CONFIG_80MHz" >>include/config.h ; \
458 echo "... with 80MHz system clock" ; \
460 @[ -z "$(findstring _100MHz,$@)" ] || \
461 { echo "#define CONFIG_100MHz" >>include/config.h ; \
462 echo "... with 100MHz system clock" ; \
464 @[ -z "$(findstring _LCD,$@)" ] || \
465 { echo "#define CONFIG_LCD" >>include/config.h ; \
466 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
467 echo "... with LCD display" ; \
469 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
471 TTTech_config: unconfig
472 @echo "#define CONFIG_LCD" >include/config.h
473 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
474 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
477 @echo "#define CONFIG_LCD" >include/config.h
478 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
479 @./mkconfig $(@:_config=) ppc mpc8xx v37
482 @echo "#define CONFIG_LCD" >include/config.h
483 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
484 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
486 #########################################################################
488 #########################################################################
489 xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
491 ADCIOP_config: unconfig
492 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
494 AR405_config: unconfig
495 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
497 ASH405_config: unconfig
498 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
500 BUBINGA405EP_config:unconfig
501 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
503 CANBT_config: unconfig
504 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
508 CPCI405AB_config: unconfig
509 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
510 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
512 CPCI440_config: unconfig
513 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
515 CPCIISER4_config: unconfig
516 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
518 CRAYL1_config:unconfig
519 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
521 DASA_SIM_config: unconfig
522 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
524 DP405_config: unconfig
525 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
527 DU405_config: unconfig
528 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
530 EBONY_config:unconfig
531 @./mkconfig $(@:_config=) ppc ppc4xx ebony
534 @./mkconfig $(@:_config=) ppc ppc4xx eric
536 EXBITGEN_config:unconfig
537 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
539 HUB405_config: unconfig
540 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
542 MIP405_config:unconfig
543 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
545 MIP405T_config:unconfig
546 @echo "#define CONFIG_MIP405T" >include/config.h
547 @echo "Enable subset config for MIP405T"
548 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
551 @./mkconfig $(@:_config=) ppc ppc4xx ml2
554 ORSG_config: unconfig
555 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
557 PCI405_config: unconfig
558 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
560 PIP405_config:unconfig
561 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
563 PLU405_config: unconfig
564 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
566 PMC405_config: unconfig
567 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
569 PPChameleonEVB_MODEL_BA_config \
570 PPChameleonEVB_MODEL_ME_config \
571 PPChameleonEVB_MODEL_HI_config \
572 PPChameleonEVB_config: unconfig
574 @[ -z "$(findstring _MODEL_BA,$@)" ] || \
575 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
576 echo "... BASIC model" ; \
578 @[ -z "$(findstring _MODEL_ME,$@)" ] || \
579 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
580 echo "... MEDIUM model" ; \
582 @[ -z "$(findstring _MODEL_HI,$@)" ] || \
583 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
584 echo "... HIGH-END model" ; \
586 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
588 VOH405_config: unconfig
589 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
592 W7OLMG_config: unconfig
593 @./mkconfig $(@:_config=) ppc ppc4xx w7o
595 WALNUT405_config:unconfig
596 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
598 #########################################################################
600 #########################################################################
601 xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
603 A3000_config: unconfig
604 @./mkconfig $(@:_config=) ppc mpc824x a3000
607 @./mkconfig $(@:_config=) ppc mpc824x bmw
610 CPC45_ROMBOOT_config: unconfig
611 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
613 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
614 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
615 echo "... booting from 8-bit flash" ; \
617 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
618 echo "... booting from 64-bit flash" ; \
620 echo "export CONFIG_BOOT_ROM" >> config.mk;
622 CU824_config: unconfig
623 @./mkconfig $(@:_config=) ppc mpc824x cu824
625 MOUSSE_config: unconfig
626 @./mkconfig $(@:_config=) ppc mpc824x mousse
628 MUSENKI_config: unconfig
629 @./mkconfig $(@:_config=) ppc mpc824x musenki
632 @./mkconfig $(@:_config=) ppc mpc824x oxc
634 PN62_config: unconfig
635 @./mkconfig $(@:_config=) ppc mpc824x pn62
637 Sandpoint8240_config: unconfig
638 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
640 Sandpoint8245_config: unconfig
641 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
643 SL8245_config: unconfig
644 @./mkconfig $(@:_config=) ppc mpc824x sl8245
646 utx8245_config: unconfig
647 @./mkconfig $(@:_config=) ppc mpc824x utx8245
649 #########################################################################
651 #########################################################################
654 @./mkconfig $(@:_config=) ppc mpc8260 atc
656 cogent_mpc8260_config: unconfig
657 @./mkconfig $(@:_config=) ppc mpc8260 cogent
660 CPU86_ROMBOOT_config: unconfig
661 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
663 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
664 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
665 echo "... booting from 8-bit flash" ; \
667 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
668 echo "... booting from 64-bit flash" ; \
670 echo "export CONFIG_BOOT_ROM" >> config.mk;
672 ep8260_config: unconfig
673 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
675 gw8260_config: unconfig
676 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
678 hymod_config: unconfig
679 @./mkconfig $(@:_config=) ppc mpc8260 hymod
681 IPHASE4539_config: unconfig
682 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
684 MPC8260ADS_config: unconfig
685 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
687 MPC8266ADS_config: unconfig
688 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
691 PM825_ROMBOOT_config: unconfig
692 @echo "#define CONFIG_PCI" >include/config.h
693 @./mkconfig -a PM826 ppc mpc8260 pm826
695 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
696 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
697 echo "... booting from 8-bit flash" ; \
699 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
700 echo "... booting from 64-bit flash" ; \
702 echo "export CONFIG_BOOT_ROM" >> config.mk; \
705 PM826_ROMBOOT_config: unconfig
706 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
708 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
709 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
710 echo "... booting from 8-bit flash" ; \
712 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
713 echo "... booting from 64-bit flash" ; \
715 echo "export CONFIG_BOOT_ROM" >> config.mk; \
717 ppmc8260_config: unconfig
718 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
720 RPXsuper_config: unconfig
721 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
723 rsdproto_config: unconfig
724 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
726 sacsng_config: unconfig
727 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
729 sbc8260_config: unconfig
730 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
733 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
744 TQM8265_AA_config: unconfig
746 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
747 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
748 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
749 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
750 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
751 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
752 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
753 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
754 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
755 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
757 >include/config.h ; \
758 if [ "$${CTYPE}" != "MPC8260" ] ; then \
759 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
761 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
762 echo "... with $${CFREQ}MHz system clock" ; \
763 if [ "$${CACHE}" == "yes" ] ; then \
764 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
765 echo "... with L2 Cache support" ; \
767 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
768 echo "... without L2 Cache support" ; \
770 if [ "$${BMODE}" == "60x" ] ; then \
771 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
772 echo "... with 60x Bus Mode" ; \
774 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
775 echo "... without 60x Bus Mode" ; \
777 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
779 ZPC1900_config: unconfig
780 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
782 #########################################################################
784 #########################################################################
786 MPC8540ADS_config: unconfig
787 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
789 MPC8560ADS_config: unconfig
790 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
792 #########################################################################
794 #########################################################################
796 AmigaOneG3SE_config: unconfig
797 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
799 BAB7xx_config: unconfig
800 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
802 debris_config: unconfig
803 @./mkconfig $(@:_config=) ppc mpc824x debris etin
805 ELPPC_config: unconfig
806 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
809 EVB64260_750CX_config: unconfig
810 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
812 P3G4_config: unconfig
813 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
816 PCIPPC6_config: unconfig
817 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
819 ZUMA_config: unconfig
820 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
822 #========================================================================
824 #========================================================================
825 #########################################################################
827 #########################################################################
829 at91rm9200dk_config : unconfig
830 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
832 lart_config : unconfig
833 @./mkconfig $(@:_config=) arm sa1100 lart
835 dnp1110_config : unconfig
836 @./mkconfig $(@:_config=) arm sa1100 dnp1110
838 shannon_config : unconfig
839 @./mkconfig $(@:_config=) arm sa1100 shannon
841 #########################################################################
843 #########################################################################
845 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
847 omap1510inn_config : unconfig
848 @./mkconfig $(@:_config=) arm arm925t omap1510inn
850 omap1610inn_config : unconfig
851 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
853 smdk2400_config : unconfig
854 @./mkconfig $(@:_config=) arm arm920t smdk2400
856 smdk2410_config : unconfig
857 @./mkconfig $(@:_config=) arm arm920t smdk2410
861 trab_bigflash_config \
862 trab_old_config: unconfig
864 @[ -z "$(findstring _bigram,$@)" ] || \
865 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
866 echo "... with 8 MB Flash, 32 MB RAM" ; \
868 @[ -z "$(findstring _bigflash,$@)" ] || \
869 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
870 echo "... with 16 MB Flash, 16 MB RAM" ; \
871 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
873 @[ -z "$(findstring _old,$@)" ] || \
874 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
875 echo "... with small memory configuration" ; \
876 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
878 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
880 VCMA9_config : unconfig
881 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
883 #########################################################################
885 #########################################################################
887 impa7_config : unconfig
888 @./mkconfig $(@:_config=) arm arm720t impa7
890 ep7312_config : unconfig
891 @./mkconfig $(@:_config=) arm arm720t ep7312
893 #########################################################################
895 #########################################################################
897 cradle_config : unconfig
898 @./mkconfig $(@:_config=) arm pxa cradle
900 csb226_config : unconfig
901 @./mkconfig $(@:_config=) arm pxa csb226
903 innokom_config : unconfig
904 @./mkconfig $(@:_config=) arm pxa innokom
906 ixdp425_config : unconfig
907 @./mkconfig $(@:_config=) arm ixp ixdp425
909 lubbock_config : unconfig
910 @./mkconfig $(@:_config=) arm pxa lubbock
912 logodl_config : unconfig
913 @./mkconfig $(@:_config=) arm pxa logodl
915 wepep250_config : unconfig
916 @./mkconfig $(@:_config=) arm pxa wepep250
918 #========================================================================
920 #========================================================================
921 #########################################################################
923 #########################################################################
924 sc520_cdp_config : unconfig
925 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
927 sc520_spunk_config : unconfig
928 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
930 sc520_spunk_rel_config : unconfig
931 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
933 #========================================================================
935 #========================================================================
936 #########################################################################
938 #########################################################################
940 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
942 incaip_100MHz_config \
943 incaip_133MHz_config \
944 incaip_150MHz_config \
945 incaip_config: unconfig
947 @[ -z "$(findstring _100MHz,$@)" ] || \
948 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
949 echo "... with 100MHz system clock" ; \
951 @[ -z "$(findstring _133MHz,$@)" ] || \
952 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
953 echo "... with 133MHz system clock" ; \
955 @[ -z "$(findstring _150MHz,$@)" ] || \
956 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
957 echo "... with 150MHz system clock" ; \
959 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
961 #########################################################################
963 #########################################################################
965 purple_config : unconfig
966 @./mkconfig $(@:_config=) mips mips purple
968 #========================================================================
970 #========================================================================
971 #########################################################################
973 #########################################################################
975 DK1C20_config: unconfig
976 @./mkconfig $(@:_config=) nios nios dk1c20
979 #########################################################################
981 #########################################################################
982 dbau1x00_config : unconfig
983 @./mkconfig $(@:_config=) mips mips dbau1x00
985 #########################################################################
986 #########################################################################
990 \( -name 'core' -o -name '*.bak' -o -name '*~' \
991 -o -name '*.o' -o -name '*.a' \) -print \
993 rm -f examples/hello_world examples/timer \
994 examples/eepro100_eeprom examples/sched \
995 examples/mem_to_mem_idma2intr examples/82559_eeprom
997 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
998 rm -f tools/easylogo/easylogo tools/bmp_logo
999 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1000 rm -f tools/env/fw_printenv tools/env/fw_setenv
1001 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
1002 rm -f board/trab/trab_fkt board/trab/config.tmp
1006 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
1009 rm -f $(OBJS) *.bak tags TAGS
1011 rm -f u-boot u-boot.map $(ALL)
1012 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
1013 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1014 rm -f include/asm/proc include/asm/arch include/asm
1017 distclean: clobber unconfig
1020 F=`basename $(TOPDIR)` ; cd .. ; \
1021 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1023 #########################################################################