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-
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 #########################################################################
121 all: u-boot.srec u-boot.bin System.map
124 -cp u-boot.bin /tftpboot/u-boot.bin
125 -cp u-boot.bin /net/denx/tftpboot/u-boot.bin
128 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
131 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
134 $(OBJDUMP) -d $< > $@
136 u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
137 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
138 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
139 --start-group $(LIBS) --end-group \
140 -Map u-boot.map -o u-boot
143 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
146 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
149 ctags -w `find $(SUBDIRS) include \
150 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
153 etags -a `find $(SUBDIRS) include \
154 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
158 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
161 #########################################################################
163 all install u-boot u-boot.srec depend dep:
164 @echo "System not configured - see README" >&2
168 #########################################################################
171 rm -f include/config.h include/config.mk
173 #========================================================================
175 #========================================================================
177 #########################################################################
179 #########################################################################
181 cmi_mpc5xx_config: unconfig
182 @./mkconfig $(@:_config=) ppc mpc5xx cmi
184 #########################################################################
186 #########################################################################
187 IceCube_5200_config \
188 IceCube_5100_config: unconfig
190 @[ -z "$(findstring _5200,$@)" ] || \
191 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
192 echo "... with MPC5200 processor" ; \
194 @[ -z "$(findstring _5100,$@)" ] || \
195 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
196 echo "... with MGT5100 processor" ; \
198 @./mkconfig -a IceCube ppc mpc5xxx icecube
200 #########################################################################
202 #########################################################################
204 ADS860_config: unconfig
205 @./mkconfig $(@:_config=) ppc mpc8xx fads
207 AMX860_config : unconfig
208 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
210 c2mon_config: unconfig
211 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
214 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
216 cogent_mpc8xx_config: unconfig
217 @./mkconfig $(@:_config=) ppc mpc8xx cogent
219 ELPT860_config: unconfig
220 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
222 ESTEEM192E_config: unconfig
223 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
225 ETX094_config : unconfig
226 @./mkconfig $(@:_config=) ppc mpc8xx etx094
231 FADS860T_config: unconfig
232 @./mkconfig $(@:_config=) ppc mpc8xx fads
234 FLAGADM_config: unconfig
235 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
237 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
240 GEN860T_config: unconfig
242 @[ -z "$(findstring _SC,$@)" ] || \
243 { echo "#define CONFIG_SC" >>include/config.h ; \
244 echo "With reduced H/W feature set (SC)..." ; \
246 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
248 GENIETV_config: unconfig
249 @./mkconfig $(@:_config=) ppc mpc8xx genietv
252 @./mkconfig $(@:_config=) ppc mpc8xx gth
254 hermes_config : unconfig
255 @./mkconfig $(@:_config=) ppc mpc8xx hermes
257 IAD210_config: unconfig
258 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
260 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
262 ICU862_100MHz_config \
263 ICU862_config: unconfig
265 @[ -z "$(findstring _100MHz,$@)" ] || \
266 { echo "#define CONFIG_100MHz" >>include/config.h ; \
267 echo "... with 100MHz system clock" ; \
269 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
271 IP860_config : unconfig
272 @./mkconfig $(@:_config=) ppc mpc8xx ip860
276 IVML24_config: unconfig
278 @[ -z "$(findstring IVML24_config,$@)" ] || \
279 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
281 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
282 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
284 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
285 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
287 @./mkconfig -a IVML24 ppc mpc8xx ivm
291 IVMS8_config: unconfig
293 @[ -z "$(findstring IVMS8_config,$@)" ] || \
294 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
296 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
297 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
299 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
300 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
302 @./mkconfig -a IVMS8 ppc mpc8xx ivm
304 KUP4K_config : unconfig
305 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
307 LANTEC_config : unconfig
308 @./mkconfig $(@:_config=) ppc mpc8xx lantec
310 lwmon_config: unconfig
311 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
314 MBX860T_config: unconfig
315 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
317 MHPC_config: unconfig
318 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
320 MVS1_config : unconfig
321 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
323 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
326 NETVIA_config: unconfig
328 @[ -z "$(findstring NETVIA_config,$@)" ] || \
329 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
330 echo "... Version 1" ; \
332 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
333 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
334 echo "... Version 2" ; \
336 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
338 NX823_config: unconfig
339 @./mkconfig $(@:_config=) ppc mpc8xx nx823
341 pcu_e_config: unconfig
342 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
344 R360MPI_config: unconfig
345 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
347 RBC823_config: unconfig
348 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
350 RPXClassic_config: unconfig
351 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
353 RPXlite_config: unconfig
354 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
357 @./mkconfig $(@:_config=) ppc mpc8xx rmu
359 RRvision_config: unconfig
360 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
362 RRvision_LCD_config: unconfig
363 @echo "#define CONFIG_LCD" >include/config.h
364 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
365 @./mkconfig -a RRvision ppc mpc8xx RRvision
367 SM850_config : unconfig
368 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
370 SPD823TS_config: unconfig
371 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
373 svm_sc8xx_config: unconfig
375 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
377 SXNI855T_config: unconfig
378 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
380 # EMK MPC8xx based modules
381 TOP860_config: unconfig
382 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
384 # Play some tricks for configuration selection
385 # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
386 # but only 855 and 860 boards may come with FEC
387 # and 823 boards may have LCD support
388 xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
394 TQM823L_66MHz_config \
395 TQM823L_80MHz_config \
397 TQM823L_LCD_66MHz_config \
398 TQM823L_LCD_80MHz_config \
400 TQM850L_66MHz_config \
401 TQM850L_80MHz_config \
403 TQM855L_66MHz_config \
404 TQM855L_80MHz_config \
406 TQM860L_66MHz_config \
407 TQM860L_80MHz_config \
409 TQM862L_66MHz_config \
410 TQM862L_80MHz_config \
412 TQM855M_66MHz_config \
413 TQM855M_80MHz_config \
415 TQM860M_66MHz_config \
416 TQM860M_80MHz_config \
418 TQM862M_66MHz_config \
419 TQM862M_80MHz_config \
420 TQM862M_100MHz_config: unconfig
422 @[ -z "$(findstring _66MHz,$@)" ] || \
423 { echo "#define CONFIG_66MHz" >>include/config.h ; \
424 echo "... with 66MHz system clock" ; \
426 @[ -z "$(findstring _80MHz,$@)" ] || \
427 { echo "#define CONFIG_80MHz" >>include/config.h ; \
428 echo "... with 80MHz system clock" ; \
430 @[ -z "$(findstring _100MHz,$@)" ] || \
431 { echo "#define CONFIG_100MHz" >>include/config.h ; \
432 echo "... with 100MHz system clock" ; \
434 @[ -z "$(findstring _LCD,$@)" ] || \
435 { echo "#define CONFIG_LCD" >>include/config.h ; \
436 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
437 echo "... with LCD display" ; \
439 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
441 TTTech_config: unconfig
442 @echo "#define CONFIG_LCD" >include/config.h
443 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
444 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
447 @echo "#define CONFIG_LCD" >include/config.h
448 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
449 @./mkconfig $(@:_config=) ppc mpc8xx v37
451 #########################################################################
453 #########################################################################
455 ADCIOP_config: unconfig
456 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
458 AR405_config: unconfig
459 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
461 ASH405_config: unconfig
462 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
464 BUBINGA405EP_config:unconfig
465 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
467 CANBT_config: unconfig
468 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
472 CPCI405AB_config: unconfig
473 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
474 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
476 CPCI440_config: unconfig
477 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
479 CPCIISER4_config: unconfig
480 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
482 CRAYL1_config:unconfig
483 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
485 DASA_SIM_config: unconfig
486 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
488 DU405_config: unconfig
489 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
491 EBONY_config:unconfig
492 @./mkconfig $(@:_config=) ppc ppc4xx ebony
495 @./mkconfig $(@:_config=) ppc ppc4xx eric
497 EXBITGEN_config:unconfig
498 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
500 MIP405_config:unconfig
501 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
503 MIP405T_config:unconfig
504 @echo "#define CONFIG_MIP405T" >include/config.h
505 @echo "Enable subset config for MIP405T"
506 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
509 @./mkconfig $(@:_config=) ppc ppc4xx ml2
512 ORSG_config: unconfig
513 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
515 PCI405_config: unconfig
516 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
518 PIP405_config:unconfig
519 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
521 PMC405_config: unconfig
522 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
525 W7OLMG_config: unconfig
526 @./mkconfig $(@:_config=) ppc ppc4xx w7o
528 WALNUT405_config:unconfig
529 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
531 #########################################################################
533 #########################################################################
534 xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
536 A3000_config: unconfig
537 @./mkconfig $(@:_config=) ppc mpc824x a3000
540 @./mkconfig $(@:_config=) ppc mpc824x bmw
543 CPC45_ROMBOOT_config: unconfig
544 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
546 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
547 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
548 echo "... booting from 8-bit flash" ; \
550 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
551 echo "... booting from 64-bit flash" ; \
553 echo "export CONFIG_BOOT_ROM" >> config.mk;
555 CU824_config: unconfig
556 @./mkconfig $(@:_config=) ppc mpc824x cu824
558 MOUSSE_config: unconfig
559 @./mkconfig $(@:_config=) ppc mpc824x mousse
561 MUSENKI_config: unconfig
562 @./mkconfig $(@:_config=) ppc mpc824x musenki
565 @./mkconfig $(@:_config=) ppc mpc824x oxc
567 PN62_config: unconfig
568 @./mkconfig $(@:_config=) ppc mpc824x pn62
570 Sandpoint8240_config: unconfig
571 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
573 Sandpoint8245_config: unconfig
574 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
576 SL8245_config: unconfig
577 @./mkconfig $(@:_config=) ppc mpc824x sl8245
579 utx8245_config: unconfig
580 @./mkconfig $(@:_config=) ppc mpc824x utx8245
582 #########################################################################
584 #########################################################################
586 cogent_mpc8260_config: unconfig
587 @./mkconfig $(@:_config=) ppc mpc8260 cogent
590 CPU86_ROMBOOT_config: unconfig
591 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
593 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
594 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
595 echo "... booting from 8-bit flash" ; \
597 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
598 echo "... booting from 64-bit flash" ; \
600 echo "export CONFIG_BOOT_ROM" >> config.mk;
602 ep8260_config: unconfig
603 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
605 gw8260_config: unconfig
606 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
608 hymod_config: unconfig
609 @./mkconfig $(@:_config=) ppc mpc8260 hymod
611 IPHASE4539_config: unconfig
612 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
614 MPC8260ADS_config: unconfig
615 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
617 MPC8266ADS_config: unconfig
618 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
621 PM825_ROMBOOT_config: unconfig
622 @echo "#define CONFIG_PCI" >include/config.h
623 @./mkconfig -a PM826 ppc mpc8260 pm826
625 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
626 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
627 echo "... booting from 8-bit flash" ; \
629 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
630 echo "... booting from 64-bit flash" ; \
632 echo "export CONFIG_BOOT_ROM" >> config.mk; \
635 PM826_ROMBOOT_config: unconfig
636 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
638 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
639 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
640 echo "... booting from 8-bit flash" ; \
642 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
643 echo "... booting from 64-bit flash" ; \
645 echo "export CONFIG_BOOT_ROM" >> config.mk; \
647 ppmc8260_config: unconfig
648 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
650 RPXsuper_config: unconfig
651 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
653 rsdproto_config: unconfig
654 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
656 sacsng_config: unconfig
657 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
659 sbc8260_config: unconfig
660 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
663 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
674 TQM8265_AA_config: unconfig
676 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
677 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
678 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
679 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
680 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
681 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
682 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
683 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
684 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
685 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
687 >include/config.h ; \
688 if [ "$${CTYPE}" != "MPC8260" ] ; then \
689 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
691 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
692 echo "... with $${CFREQ}MHz system clock" ; \
693 if [ "$${CACHE}" == "yes" ] ; then \
694 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
695 echo "... with L2 Cache support" ; \
697 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
698 echo "... without L2 Cache support" ; \
700 if [ "$${BMODE}" == "60x" ] ; then \
701 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
702 echo "... with 60x Bus Mode" ; \
704 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
705 echo "... without 60x Bus Mode" ; \
707 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
710 @./mkconfig $(@:_config=) ppc mpc8260 atc
712 #########################################################################
714 #########################################################################
716 AmigaOneG3SE_config: unconfig
717 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
720 EVB64260_750CX_config: unconfig
721 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
723 ZUMA_config: unconfig
724 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
727 PCIPPC6_config: unconfig
728 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
730 BAB7xx_config: unconfig
731 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
733 ELPPC_config: unconfig
734 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
736 #========================================================================
738 #========================================================================
739 #########################################################################
741 #########################################################################
743 at91rm9200dk_config : unconfig
744 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
746 lart_config : unconfig
747 @./mkconfig $(@:_config=) arm sa1100 lart
749 dnp1110_config : unconfig
750 @./mkconfig $(@:_config=) arm sa1100 dnp1110
752 shannon_config : unconfig
753 @./mkconfig $(@:_config=) arm sa1100 shannon
755 #########################################################################
757 #########################################################################
759 xtract_trab = $(subst _big_flash,,$(subst _config,,$1))
761 omap1510inn_config : unconfig
762 @./mkconfig $(@:_config=) arm arm925t omap1510inn
764 smdk2400_config : unconfig
765 @./mkconfig $(@:_config=) arm arm920t smdk2400
767 smdk2410_config : unconfig
768 @./mkconfig $(@:_config=) arm arm920t smdk2410
771 trab_big_flash_config: unconfig
773 @[ -z "$(findstring _big_flash,$@)" ] || \
774 { echo "#define CONFIG_BIG_FLASH" >>include/config.h ; \
775 echo "... with big flash support" ; \
777 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
779 VCMA9_config : unconfig
780 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
782 #########################################################################
784 #########################################################################
786 impa7_config : unconfig
787 @./mkconfig $(@:_config=) arm arm720t impa7
789 ep7312_config : unconfig
790 @./mkconfig $(@:_config=) arm arm720t ep7312
792 #########################################################################
794 #########################################################################
796 cradle_config : unconfig
797 @./mkconfig $(@:_config=) arm pxa cradle
799 csb226_config : unconfig
800 @./mkconfig $(@:_config=) arm pxa csb226
802 innokom_config : unconfig
803 @./mkconfig $(@:_config=) arm pxa innokom
805 lubbock_config : unconfig
806 @./mkconfig $(@:_config=) arm pxa lubbock
808 logodl_config : unconfig
809 @./mkconfig $(@:_config=) arm pxa logodl
811 wepep250_config : unconfig
812 @./mkconfig $(@:_config=) arm pxa wepep250
814 #========================================================================
816 #========================================================================
817 #########################################################################
819 #########################################################################
820 sc520_cdp_config : unconfig
821 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
823 sc520_spunk_config : unconfig
824 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
826 sc520_spunk_rel_config : unconfig
827 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
829 #========================================================================
831 #========================================================================
832 #########################################################################
834 #########################################################################
836 incaip_config : unconfig
837 @./mkconfig $(@:_config=) mips mips incaip
839 purple_config : unconfig
840 @./mkconfig $(@:_config=) mips mips purple
842 #########################################################################
843 #########################################################################
847 \( -name 'core' -o -name '*.bak' -o -name '*~' \
848 -o -name '*.o' -o -name '*.a' \) -print \
850 rm -f examples/hello_world examples/timer \
851 examples/eepro100_eeprom examples/sched \
852 examples/mem_to_mem_idma2intr examples/82559_eeprom
854 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
855 rm -f tools/easylogo/easylogo tools/bmp_logo
856 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
857 rm -f tools/env/fw_printenv tools/env/fw_setenv
858 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
862 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
865 rm -f $(OBJS) *.bak tags TAGS
867 rm -f u-boot u-boot.bin u-boot.srec u-boot.map System.map
868 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
869 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
870 rm -f include/asm/proc include/asm/arch include/asm
873 distclean: clobber unconfig
876 F=`basename $(TOPDIR)` ; cd .. ; \
877 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
879 #########################################################################