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 #CROSS_COMPILE = i386-elf-
66 CROSS_COMPILE = mips_4KC-
73 # The "tools" are needed early, so put this first
90 #########################################################################
91 # U-Boot objects....order is important (i.e. start must be first)
93 OBJS = cpu/$(CPU)/start.o
95 OBJS += cpu/$(CPU)/start16.o
96 OBJS += cpu/$(CPU)/reset.o
99 OBJS += cpu/$(CPU)/resetvec.o
102 LIBS = board/$(BOARDDIR)/lib$(BOARD).a
103 LIBS += cpu/$(CPU)/lib$(CPU).a
104 LIBS += lib_$(ARCH)/lib$(ARCH).a
105 LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a
107 LIBS += disk/libdisk.a
110 LIBS += drivers/libdrivers.a
111 LIBS += post/libpost.a post/cpu/libcpu.a
112 LIBS += common/libcommon.a
113 LIBS += lib_generic/libgeneric.a
115 #########################################################################
117 all: u-boot.srec u-boot.bin System.map
120 -cp u-boot.bin /tftpboot/u-boot.bin
121 -cp u-boot.bin /net/denx/tftpboot/u-boot.bin
124 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
127 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
130 $(OBJDUMP) -d $< > $@
132 u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
133 $(LD) $(LDFLAGS) $(OBJS) \
134 --start-group $(LIBS) --end-group \
135 -Map u-boot.map -o u-boot
138 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
141 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
144 ctags -w `find $(SUBDIRS) include \
145 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
148 etags -a `find $(SUBDIRS) include \
149 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
153 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
156 #########################################################################
158 all install u-boot u-boot.srec depend dep:
159 @echo "System not configured - see README" >&2
163 #########################################################################
166 rm -f include/config.h include/config.mk
168 #========================================================================
170 #========================================================================
172 #########################################################################
174 #########################################################################
176 cmi_mpc5xx_config: unconfig
177 @./mkconfig $(@:_config=) ppc mpc5xx cmi
179 #########################################################################
181 #########################################################################
183 ADS860_config: unconfig
184 @./mkconfig $(@:_config=) ppc mpc8xx fads
186 AMX860_config : unconfig
187 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
189 c2mon_config: unconfig
190 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
193 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
195 cogent_mpc8xx_config: unconfig
196 @./mkconfig $(@:_config=) ppc mpc8xx cogent
198 ELPT860_config: unconfig
199 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
201 ESTEEM192E_config: unconfig
202 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
204 ETX094_config : unconfig
205 @./mkconfig $(@:_config=) ppc mpc8xx etx094
209 FADS860T_config: unconfig
210 @./mkconfig $(@:_config=) ppc mpc8xx fads
212 FLAGADM_config: unconfig
213 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
215 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
218 GEN860T_config: unconfig
220 @[ -z "$(findstring _SC,$@)" ] || \
221 { echo "#define CONFIG_SC" >>include/config.h ; \
222 echo "With reduced H/W feature set (SC)..." ; \
224 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
226 GENIETV_config: unconfig
227 @./mkconfig $(@:_config=) ppc mpc8xx genietv
230 @./mkconfig $(@:_config=) ppc mpc8xx gth
232 hermes_config : unconfig
233 @./mkconfig $(@:_config=) ppc mpc8xx hermes
235 IAD210_config: unconfig
236 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
238 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
240 ICU862_100MHz_config \
241 ICU862_config: unconfig
243 @[ -z "$(findstring _100MHz,$@)" ] || \
244 { echo "#define CONFIG_100MHz" >>include/config.h ; \
245 echo "... with 100MHz system clock" ; \
247 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
249 IP860_config : unconfig
250 @./mkconfig $(@:_config=) ppc mpc8xx ip860
254 IVML24_config: unconfig
256 @[ -z "$(findstring IVML24_config,$@)" ] || \
257 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
259 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
260 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
262 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
263 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
265 @./mkconfig -a IVML24 ppc mpc8xx ivm
269 IVMS8_config: unconfig
271 @[ -z "$(findstring IVMS8_config,$@)" ] || \
272 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
274 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
275 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
277 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
278 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
280 @./mkconfig -a IVMS8 ppc mpc8xx ivm
282 KUP4K_config : unconfig
283 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
285 LANTEC_config : unconfig
286 @./mkconfig $(@:_config=) ppc mpc8xx lantec
288 lwmon_config: unconfig
289 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
292 MBX860T_config: unconfig
293 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
295 MHPC_config: unconfig
296 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
298 MVS1_config : unconfig
299 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
301 NETVIA_config: unconfig
302 @./mkconfig $(@:_config=) ppc mpc8xx netvia
304 NX823_config: unconfig
305 @./mkconfig $(@:_config=) ppc mpc8xx nx823
307 pcu_e_config: unconfig
308 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
310 R360MPI_config: unconfig
311 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
313 RPXClassic_config: unconfig
314 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
316 RPXlite_config: unconfig
317 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
319 RRvision_config: unconfig
320 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
322 RRvision_LCD_config: unconfig
323 @echo "#define CONFIG_LCD" >include/config.h
324 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
325 @./mkconfig -a RRvision ppc mpc8xx RRvision
327 SM850_config : unconfig
328 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
330 SPD823TS_config: unconfig
331 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
333 svm_sc8xx_config: unconfig
335 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
337 SXNI855T_config: unconfig
338 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
340 # EMK MPC8xx based modules
341 TOP860_config: unconfig
342 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
344 # Play some tricks for configuration selection
345 # All boards can come with 50 MHz (default), 66MHz or 80MHz clock,
346 # but only 855 and 860 boards may come with FEC
347 # and 823 boards may have LCD support
348 xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _LCD,,$(subst _config,,$1))))
353 TQM823L_66MHz_config \
354 TQM823L_80MHz_config \
356 TQM823L_LCD_66MHz_config \
357 TQM823L_LCD_80MHz_config \
359 TQM850L_66MHz_config \
360 TQM850L_80MHz_config \
362 TQM855L_66MHz_config \
363 TQM855L_80MHz_config \
365 TQM860L_66MHz_config \
366 TQM860L_80MHz_config \
368 TQM862L_66MHz_config \
369 TQM862L_80MHz_config: unconfig
371 @[ -z "$(findstring _66MHz,$@)" ] || \
372 { echo "#define CONFIG_66MHz" >>include/config.h ; \
373 echo "... with 66MHz system clock" ; \
375 @[ -z "$(findstring _80MHz,$@)" ] || \
376 { echo "#define CONFIG_80MHz" >>include/config.h ; \
377 echo "... with 80MHz system clock" ; \
379 @[ -z "$(findstring _LCD,$@)" ] || \
380 { echo "#define CONFIG_LCD" >>include/config.h ; \
381 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
382 echo "... with LCD display" ; \
384 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
386 TTTech_config: unconfig
387 @echo "#define CONFIG_LCD" >include/config.h
388 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
389 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
392 @echo "#define CONFIG_LCD" >include/config.h
393 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
394 @./mkconfig $(@:_config=) ppc mpc8xx v37
396 #########################################################################
398 #########################################################################
400 ADCIOP_config: unconfig
401 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
403 AR405_config: unconfig
404 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
406 ASH405_config: unconfig
407 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
409 BUBINGA405EP_config:unconfig
410 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
412 CANBT_config: unconfig
413 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
417 CPCI405AB_config: unconfig
418 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
419 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
421 CPCI440_config: unconfig
422 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
424 CPCIISER4_config: unconfig
425 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
427 CRAYL1_config:unconfig
428 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
430 DASA_SIM_config: unconfig
431 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
433 DU405_config: unconfig
434 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
436 EBONY_config:unconfig
437 @./mkconfig $(@:_config=) ppc ppc4xx ebony
440 @./mkconfig $(@:_config=) ppc ppc4xx eric
442 MIP405_config:unconfig
443 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
446 @./mkconfig $(@:_config=) ppc ppc4xx ml2
449 ORSG_config: unconfig
450 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
452 PCI405_config: unconfig
453 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
455 PIP405_config:unconfig
456 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
458 PMC405_config: unconfig
459 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
462 W7OLMG_config: unconfig
463 @./mkconfig $(@:_config=) ppc ppc4xx w7o
465 WALNUT405_config:unconfig
466 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
468 #########################################################################
470 #########################################################################
471 xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
474 @./mkconfig $(@:_config=) ppc mpc824x bmw
477 CPC45_ROMBOOT_config: unconfig
478 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
480 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
481 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
482 echo "... booting from 8-bit flash" ; \
484 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
485 echo "... booting from 64-bit flash" ; \
487 echo "export CONFIG_BOOT_ROM" >> config.mk;
489 CU824_config: unconfig
490 @./mkconfig $(@:_config=) ppc mpc824x cu824
492 MOUSSE_config: unconfig
493 @./mkconfig $(@:_config=) ppc mpc824x mousse
495 MUSENKI_config: unconfig
496 @./mkconfig $(@:_config=) ppc mpc824x musenki
499 @./mkconfig $(@:_config=) ppc mpc824x oxc
501 PN62_config: unconfig
502 @./mkconfig $(@:_config=) ppc mpc824x pn62
504 Sandpoint8240_config: unconfig
505 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
507 Sandpoint8245_config: unconfig
508 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
510 utx8245_config: unconfig
511 @./mkconfig $(@:_config=) ppc mpc824x utx8245
513 #########################################################################
515 #########################################################################
517 cogent_mpc8260_config: unconfig
518 @./mkconfig $(@:_config=) ppc mpc8260 cogent
521 CPU86_ROMBOOT_config: unconfig
522 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
524 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
525 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
526 echo "... booting from 8-bit flash" ; \
528 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
529 echo "... booting from 64-bit flash" ; \
531 echo "export CONFIG_BOOT_ROM" >> config.mk;
533 ep8260_config: unconfig
534 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
536 gw8260_config: unconfig
537 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
539 hymod_config: unconfig
540 @./mkconfig $(@:_config=) ppc mpc8260 hymod
542 IPHASE4539_config: unconfig
543 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
545 MPC8260ADS_config: unconfig
546 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
548 MPC8266ADS_config: unconfig
549 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
552 PM825_ROMBOOT_config: unconfig
553 @echo "#define CONFIG_PCI" >include/config.h
554 @./mkconfig -a PM826 ppc mpc8260 pm826
556 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
557 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
558 echo "... booting from 8-bit flash" ; \
560 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
561 echo "... booting from 64-bit flash" ; \
563 echo "export CONFIG_BOOT_ROM" >> config.mk; \
566 PM826_ROMBOOT_config: unconfig
567 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
569 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
570 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
571 echo "... booting from 8-bit flash" ; \
573 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
574 echo "... booting from 64-bit flash" ; \
576 echo "export CONFIG_BOOT_ROM" >> config.mk; \
578 ppmc8260_config: unconfig
579 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
581 RPXsuper_config: unconfig
582 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
584 rsdproto_config: unconfig
585 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
587 sacsng_config: unconfig
588 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
590 sbc8260_config: unconfig
591 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
594 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
599 TQM8255_266MHz_config \
600 TQM8260_266MHz_config \
601 TQM8260_L2_266MHz_config \
602 TQM8255_300MHz_config \
603 TQM8260_300MHz_config: unconfig
605 @if [ "$(findstring _L2_,$@)" ] ; then \
606 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
607 echo "... with L2 Cache support (60x Bus Mode)" ; \
609 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
610 echo "... without L2 Cache support" ; \
612 @[ -z "$(findstring _266MHz,$@)" ] || \
613 { echo "#define CONFIG_266MHz" >>include/config.h ; \
614 echo "... with 266MHz system clock" ; \
616 @[ -z "$(findstring _300MHz,$@)" ] || \
617 { echo "#define CONFIG_300MHz" >>include/config.h ; \
618 echo "... with 300MHz system clock" ; \
620 @[ -z "$(findstring TQM8255_,$@)" ] || \
621 { echo "#define CONFIG_MPC8255" >>include/config.h ; }
622 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
625 @./mkconfig $(@:_config=) ppc mpc8260 atc
627 #########################################################################
629 #########################################################################
631 AmigaOneG3SE_config: unconfig
632 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
635 EVB64260_750CX_config: unconfig
636 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
638 ZUMA_config: unconfig
639 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
642 PCIPPC6_config: unconfig
643 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
645 BAB7xx_config: unconfig
646 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
648 ELPPC_config: unconfig
649 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
651 #========================================================================
653 #========================================================================
654 #########################################################################
656 #########################################################################
658 at91rm9200dk_config : unconfig
659 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
661 lart_config : unconfig
662 @./mkconfig $(@:_config=) arm sa1100 lart
664 dnp1110_config : unconfig
665 @./mkconfig $(@:_config=) arm sa1100 dnp1110
667 shannon_config : unconfig
668 @./mkconfig $(@:_config=) arm sa1100 shannon
670 #########################################################################
672 #########################################################################
674 xtract_trab = $(subst _big_flash,,$(subst _config,,$1))
676 smdk2400_config : unconfig
677 @./mkconfig $(@:_config=) arm arm920t smdk2400
679 smdk2410_config : unconfig
680 @./mkconfig $(@:_config=) arm arm920t smdk2410
683 trab_big_flash_config: unconfig
685 @[ -z "$(findstring _big_flash,$@)" ] || \
686 { echo "#define CONFIG_BIG_FLASH" >>include/config.h ; \
687 echo "... with big flash support" ; \
689 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
691 VCMA9_config : unconfig
692 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
694 #########################################################################
696 #########################################################################
698 impa7_config : unconfig
699 @./mkconfig $(@:_config=) arm arm720t impa7
701 ep7312_config : unconfig
702 @./mkconfig $(@:_config=) arm arm720t ep7312
704 #########################################################################
706 #########################################################################
708 cradle_config : unconfig
709 @./mkconfig $(@:_config=) arm pxa cradle
711 csb226_config : unconfig
712 @./mkconfig $(@:_config=) arm pxa csb226
714 innokom_config : unconfig
715 @./mkconfig $(@:_config=) arm pxa innokom
717 lubbock_config : unconfig
718 @./mkconfig $(@:_config=) arm pxa lubbock
720 wepep250_config : unconfig
721 @./mkconfig $(@:_config=) arm pxa wepep250
723 #========================================================================
725 #========================================================================
726 #########################################################################
728 #########################################################################
729 sc520_cdp_config : unconfig
730 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
732 #========================================================================
734 #========================================================================
735 #########################################################################
737 #########################################################################
739 incaip_config : unconfig
740 @./mkconfig $(@:_config=) mips mips incaip
742 purple_config : unconfig
743 @./mkconfig $(@:_config=) mips mips purple
745 #########################################################################
746 #########################################################################
750 \( -name 'core' -o -name '*.bak' -o -name '*~' \
751 -o -name '*.o' -o -name '*.a' \) -print \
753 rm -f examples/hello_world examples/timer \
754 examples/eepro100_eeprom examples/sched \
755 examples/mem_to_mem_idma2intr
756 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
757 rm -f tools/easylogo/easylogo tools/bmp_logo
758 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
759 rm -f tools/env/fw_printenv tools/env/fw_setenv
760 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
764 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
767 rm -f $(OBJS) *.bak tags TAGS
769 rm -f u-boot u-boot.bin u-boot.srec u-boot.map System.map
770 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
771 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
772 rm -f include/asm/arch include/asm
775 distclean: clobber unconfig
778 F=`basename $(TOPDIR)` ; cd .. ; \
779 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
781 #########################################################################