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
94 #########################################################################
95 # U-Boot objects....order is important (i.e. start must be first)
97 OBJS = cpu/$(CPU)/start.o
99 OBJS += cpu/$(CPU)/start16.o
100 OBJS += cpu/$(CPU)/reset.o
103 OBJS += cpu/$(CPU)/resetvec.o
106 LIBS = board/$(BOARDDIR)/lib$(BOARD).a
107 LIBS += cpu/$(CPU)/lib$(CPU).a
108 LIBS += lib_$(ARCH)/lib$(ARCH).a
109 LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a
111 LIBS += disk/libdisk.a
114 LIBS += drivers/libdrivers.a
115 LIBS += post/libpost.a post/cpu/libcpu.a
116 LIBS += common/libcommon.a
117 LIBS += lib_generic/libgeneric.a
119 #########################################################################
120 #########################################################################
122 ALL = u-boot.srec u-boot.bin System.map
127 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
130 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
132 u-boot.img: u-boot.bin
133 ./tools/mkimage -A $(ARCH) -T firmware -C none \
134 -a $(TEXT_BASE) -e 0 \
135 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
136 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
140 $(OBJDUMP) -d $< > $@
142 u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
143 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
144 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
145 --start-group $(LIBS) --end-group \
146 -Map u-boot.map -o u-boot
149 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
152 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
155 ctags -w `find $(SUBDIRS) include \
156 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
159 etags -a `find $(SUBDIRS) include \
160 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
164 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
167 #########################################################################
169 all install u-boot u-boot.srec depend dep:
170 @echo "System not configured - see README" >&2
174 #########################################################################
177 rm -f include/config.h include/config.mk
179 #========================================================================
181 #========================================================================
183 #########################################################################
185 #########################################################################
187 cmi_mpc5xx_config: unconfig
188 @./mkconfig $(@:_config=) ppc mpc5xx cmi
190 #########################################################################
192 #########################################################################
193 IceCube_5200_config \
194 IceCube_5100_config: unconfig
196 @[ -z "$(findstring _5200,$@)" ] || \
197 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
198 echo "... with MPC5200 processor" ; \
200 @[ -z "$(findstring _5100,$@)" ] || \
201 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
202 echo "... with MGT5100 processor" ; \
204 @./mkconfig -a IceCube ppc mpc5xxx icecube
206 #########################################################################
208 #########################################################################
210 ADS860_config: unconfig
211 @./mkconfig $(@:_config=) ppc mpc8xx fads
213 AMX860_config : unconfig
214 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
216 c2mon_config: unconfig
217 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
220 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
222 cogent_mpc8xx_config: unconfig
223 @./mkconfig $(@:_config=) ppc mpc8xx cogent
225 ELPT860_config: unconfig
226 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
228 ESTEEM192E_config: unconfig
229 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
231 ETX094_config : unconfig
232 @./mkconfig $(@:_config=) ppc mpc8xx etx094
237 FADS860T_config: unconfig
238 @./mkconfig $(@:_config=) ppc mpc8xx fads
240 FLAGADM_config: unconfig
241 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
243 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
246 GEN860T_config: unconfig
248 @[ -z "$(findstring _SC,$@)" ] || \
249 { echo "#define CONFIG_SC" >>include/config.h ; \
250 echo "With reduced H/W feature set (SC)..." ; \
252 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
254 GENIETV_config: unconfig
255 @./mkconfig $(@:_config=) ppc mpc8xx genietv
258 @./mkconfig $(@:_config=) ppc mpc8xx gth
260 hermes_config : unconfig
261 @./mkconfig $(@:_config=) ppc mpc8xx hermes
263 IAD210_config: unconfig
264 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
266 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
268 ICU862_100MHz_config \
269 ICU862_config: unconfig
271 @[ -z "$(findstring _100MHz,$@)" ] || \
272 { echo "#define CONFIG_100MHz" >>include/config.h ; \
273 echo "... with 100MHz system clock" ; \
275 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
277 IP860_config : unconfig
278 @./mkconfig $(@:_config=) ppc mpc8xx ip860
282 IVML24_config: unconfig
284 @[ -z "$(findstring IVML24_config,$@)" ] || \
285 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
287 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
288 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
290 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
291 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
293 @./mkconfig -a IVML24 ppc mpc8xx ivm
297 IVMS8_config: unconfig
299 @[ -z "$(findstring IVMS8_config,$@)" ] || \
300 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
302 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
303 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
305 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
306 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
308 @./mkconfig -a IVMS8 ppc mpc8xx ivm
310 KUP4K_config : unconfig
311 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
313 LANTEC_config : unconfig
314 @./mkconfig $(@:_config=) ppc mpc8xx lantec
316 lwmon_config: unconfig
317 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
320 MBX860T_config: unconfig
321 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
323 MHPC_config: unconfig
324 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
326 MVS1_config : unconfig
327 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
329 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
332 NETVIA_config: unconfig
334 @[ -z "$(findstring NETVIA_config,$@)" ] || \
335 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
336 echo "... Version 1" ; \
338 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
339 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
340 echo "... Version 2" ; \
342 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
344 NX823_config: unconfig
345 @./mkconfig $(@:_config=) ppc mpc8xx nx823
347 pcu_e_config: unconfig
348 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
350 R360MPI_config: unconfig
351 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
353 RBC823_config: unconfig
354 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
356 RPXClassic_config: unconfig
357 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
359 RPXlite_config: unconfig
360 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
363 @./mkconfig $(@:_config=) ppc mpc8xx rmu
365 RRvision_config: unconfig
366 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
368 RRvision_LCD_config: unconfig
369 @echo "#define CONFIG_LCD" >include/config.h
370 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
371 @./mkconfig -a RRvision ppc mpc8xx RRvision
373 SM850_config : unconfig
374 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
376 SPD823TS_config: unconfig
377 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
379 svm_sc8xx_config: unconfig
381 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
383 SXNI855T_config: unconfig
384 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
386 # EMK MPC8xx based modules
387 TOP860_config: unconfig
388 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
390 # Play some tricks for configuration selection
391 # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
392 # but only 855 and 860 boards may come with FEC
393 # and 823 boards may have LCD support
394 xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
400 TQM823L_66MHz_config \
401 TQM823L_80MHz_config \
403 TQM823L_LCD_66MHz_config \
404 TQM823L_LCD_80MHz_config \
406 TQM850L_66MHz_config \
407 TQM850L_80MHz_config \
409 TQM855L_66MHz_config \
410 TQM855L_80MHz_config \
412 TQM860L_66MHz_config \
413 TQM860L_80MHz_config \
415 TQM862L_66MHz_config \
416 TQM862L_80MHz_config \
418 TQM855M_66MHz_config \
419 TQM855M_80MHz_config \
421 TQM860M_66MHz_config \
422 TQM860M_80MHz_config \
424 TQM862M_66MHz_config \
425 TQM862M_80MHz_config \
426 TQM862M_100MHz_config: unconfig
428 @[ -z "$(findstring _66MHz,$@)" ] || \
429 { echo "#define CONFIG_66MHz" >>include/config.h ; \
430 echo "... with 66MHz system clock" ; \
432 @[ -z "$(findstring _80MHz,$@)" ] || \
433 { echo "#define CONFIG_80MHz" >>include/config.h ; \
434 echo "... with 80MHz system clock" ; \
436 @[ -z "$(findstring _100MHz,$@)" ] || \
437 { echo "#define CONFIG_100MHz" >>include/config.h ; \
438 echo "... with 100MHz system clock" ; \
440 @[ -z "$(findstring _LCD,$@)" ] || \
441 { echo "#define CONFIG_LCD" >>include/config.h ; \
442 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
443 echo "... with LCD display" ; \
445 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
447 TTTech_config: unconfig
448 @echo "#define CONFIG_LCD" >include/config.h
449 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
450 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
453 @echo "#define CONFIG_LCD" >include/config.h
454 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
455 @./mkconfig $(@:_config=) ppc mpc8xx v37
457 #########################################################################
459 #########################################################################
461 ADCIOP_config: unconfig
462 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
464 AR405_config: unconfig
465 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
467 ASH405_config: unconfig
468 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
470 BUBINGA405EP_config:unconfig
471 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
473 CANBT_config: unconfig
474 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
478 CPCI405AB_config: unconfig
479 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
480 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
482 CPCI440_config: unconfig
483 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
485 CPCIISER4_config: unconfig
486 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
488 CRAYL1_config:unconfig
489 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
491 DASA_SIM_config: unconfig
492 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
494 DU405_config: unconfig
495 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
497 EBONY_config:unconfig
498 @./mkconfig $(@:_config=) ppc ppc4xx ebony
501 @./mkconfig $(@:_config=) ppc ppc4xx eric
503 EXBITGEN_config:unconfig
504 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
506 MIP405_config:unconfig
507 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
509 MIP405T_config:unconfig
510 @echo "#define CONFIG_MIP405T" >include/config.h
511 @echo "Enable subset config for MIP405T"
512 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
515 @./mkconfig $(@:_config=) ppc ppc4xx ml2
518 ORSG_config: unconfig
519 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
521 PCI405_config: unconfig
522 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
524 PIP405_config:unconfig
525 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
527 PMC405_config: unconfig
528 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
531 W7OLMG_config: unconfig
532 @./mkconfig $(@:_config=) ppc ppc4xx w7o
534 WALNUT405_config:unconfig
535 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
537 #########################################################################
539 #########################################################################
540 xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
542 A3000_config: unconfig
543 @./mkconfig $(@:_config=) ppc mpc824x a3000
546 @./mkconfig $(@:_config=) ppc mpc824x bmw
549 CPC45_ROMBOOT_config: unconfig
550 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
552 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
553 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
554 echo "... booting from 8-bit flash" ; \
556 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
557 echo "... booting from 64-bit flash" ; \
559 echo "export CONFIG_BOOT_ROM" >> config.mk;
561 CU824_config: unconfig
562 @./mkconfig $(@:_config=) ppc mpc824x cu824
564 MOUSSE_config: unconfig
565 @./mkconfig $(@:_config=) ppc mpc824x mousse
567 MUSENKI_config: unconfig
568 @./mkconfig $(@:_config=) ppc mpc824x musenki
571 @./mkconfig $(@:_config=) ppc mpc824x oxc
573 PN62_config: unconfig
574 @./mkconfig $(@:_config=) ppc mpc824x pn62
576 Sandpoint8240_config: unconfig
577 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
579 Sandpoint8245_config: unconfig
580 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
582 SL8245_config: unconfig
583 @./mkconfig $(@:_config=) ppc mpc824x sl8245
585 utx8245_config: unconfig
586 @./mkconfig $(@:_config=) ppc mpc824x utx8245
588 #########################################################################
590 #########################################################################
592 cogent_mpc8260_config: unconfig
593 @./mkconfig $(@:_config=) ppc mpc8260 cogent
596 CPU86_ROMBOOT_config: unconfig
597 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
599 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
600 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
601 echo "... booting from 8-bit flash" ; \
603 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
604 echo "... booting from 64-bit flash" ; \
606 echo "export CONFIG_BOOT_ROM" >> config.mk;
608 ep8260_config: unconfig
609 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
611 gw8260_config: unconfig
612 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
614 hymod_config: unconfig
615 @./mkconfig $(@:_config=) ppc mpc8260 hymod
617 IPHASE4539_config: unconfig
618 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
620 MPC8260ADS_config: unconfig
621 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
623 MPC8266ADS_config: unconfig
624 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
627 PM825_ROMBOOT_config: unconfig
628 @echo "#define CONFIG_PCI" >include/config.h
629 @./mkconfig -a PM826 ppc mpc8260 pm826
631 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
632 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
633 echo "... booting from 8-bit flash" ; \
635 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
636 echo "... booting from 64-bit flash" ; \
638 echo "export CONFIG_BOOT_ROM" >> config.mk; \
641 PM826_ROMBOOT_config: unconfig
642 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
644 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
645 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
646 echo "... booting from 8-bit flash" ; \
648 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
649 echo "... booting from 64-bit flash" ; \
651 echo "export CONFIG_BOOT_ROM" >> config.mk; \
653 ppmc8260_config: unconfig
654 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
656 RPXsuper_config: unconfig
657 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
659 rsdproto_config: unconfig
660 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
662 sacsng_config: unconfig
663 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
665 sbc8260_config: unconfig
666 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
669 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
680 TQM8265_AA_config: unconfig
682 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
683 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
684 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
685 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
686 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
687 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
688 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
689 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
690 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
691 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
693 >include/config.h ; \
694 if [ "$${CTYPE}" != "MPC8260" ] ; then \
695 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
697 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
698 echo "... with $${CFREQ}MHz system clock" ; \
699 if [ "$${CACHE}" == "yes" ] ; then \
700 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
701 echo "... with L2 Cache support" ; \
703 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
704 echo "... without L2 Cache support" ; \
706 if [ "$${BMODE}" == "60x" ] ; then \
707 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
708 echo "... with 60x Bus Mode" ; \
710 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
711 echo "... without 60x Bus Mode" ; \
713 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
716 @./mkconfig $(@:_config=) ppc mpc8260 atc
718 #########################################################################
720 #########################################################################
722 AmigaOneG3SE_config: unconfig
723 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
726 EVB64260_750CX_config: unconfig
727 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
729 ZUMA_config: unconfig
730 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
733 PCIPPC6_config: unconfig
734 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
736 BAB7xx_config: unconfig
737 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
739 ELPPC_config: unconfig
740 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
742 #========================================================================
744 #========================================================================
745 #########################################################################
747 #########################################################################
749 at91rm9200dk_config : unconfig
750 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
752 lart_config : unconfig
753 @./mkconfig $(@:_config=) arm sa1100 lart
755 dnp1110_config : unconfig
756 @./mkconfig $(@:_config=) arm sa1100 dnp1110
758 shannon_config : unconfig
759 @./mkconfig $(@:_config=) arm sa1100 shannon
761 #########################################################################
763 #########################################################################
765 xtract_trab = $(subst _big_flash,,$(subst _config,,$1))
767 omap1510inn_config : unconfig
768 @./mkconfig $(@:_config=) arm arm925t omap1510inn
770 smdk2400_config : unconfig
771 @./mkconfig $(@:_config=) arm arm920t smdk2400
773 smdk2410_config : unconfig
774 @./mkconfig $(@:_config=) arm arm920t smdk2410
777 trab_big_flash_config: unconfig
779 @[ -z "$(findstring _big_flash,$@)" ] || \
780 { echo "#define CONFIG_BIG_FLASH" >>include/config.h ; \
781 echo "... with big flash support" ; \
783 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
785 VCMA9_config : unconfig
786 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
788 #########################################################################
790 #########################################################################
792 impa7_config : unconfig
793 @./mkconfig $(@:_config=) arm arm720t impa7
795 ep7312_config : unconfig
796 @./mkconfig $(@:_config=) arm arm720t ep7312
798 #########################################################################
800 #########################################################################
802 cradle_config : unconfig
803 @./mkconfig $(@:_config=) arm pxa cradle
805 csb226_config : unconfig
806 @./mkconfig $(@:_config=) arm pxa csb226
808 innokom_config : unconfig
809 @./mkconfig $(@:_config=) arm pxa innokom
811 lubbock_config : unconfig
812 @./mkconfig $(@:_config=) arm pxa lubbock
814 logodl_config : unconfig
815 @./mkconfig $(@:_config=) arm pxa logodl
817 wepep250_config : unconfig
818 @./mkconfig $(@:_config=) arm pxa wepep250
820 #========================================================================
822 #========================================================================
823 #########################################################################
825 #########################################################################
826 sc520_cdp_config : unconfig
827 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
829 sc520_spunk_config : unconfig
830 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
832 sc520_spunk_rel_config : unconfig
833 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
835 #========================================================================
837 #========================================================================
838 #########################################################################
840 #########################################################################
842 incaip_config : unconfig
843 @./mkconfig $(@:_config=) mips mips incaip
845 purple_config : unconfig
846 @./mkconfig $(@:_config=) mips mips purple
848 #########################################################################
849 #########################################################################
853 \( -name 'core' -o -name '*.bak' -o -name '*~' \
854 -o -name '*.o' -o -name '*.a' \) -print \
856 rm -f examples/hello_world examples/timer \
857 examples/eepro100_eeprom examples/sched \
858 examples/mem_to_mem_idma2intr examples/82559_eeprom
860 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
861 rm -f tools/easylogo/easylogo tools/bmp_logo
862 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
863 rm -f tools/env/fw_printenv tools/env/fw_setenv
864 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
868 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
871 rm -f $(OBJS) *.bak tags TAGS
873 rm -f u-boot u-boot.map $(ALL)
874 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
875 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
876 rm -f include/asm/proc include/asm/arch include/asm
879 distclean: clobber unconfig
882 F=`basename $(TOPDIR)` ; cd .. ; \
883 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
885 #########################################################################