2 # (C) Copyright 2000-2006
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,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
39 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
40 sed -e 's/\(cygwin\).*/cygwin/')
42 export HOSTARCH HOSTOS
44 # Deal with colliding definitions from tcsh etc.
47 #########################################################################
49 TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
52 ifeq ($(COMPRESSED_UBOOT),1)
54 export export COMPRESSED_UBOOT
57 ifeq (include/config.mk,$(wildcard include/config.mk))
58 # load ARCH, BOARD, and CPU configuration
59 include include/config.mk
60 export ARCH CPU BOARD VENDOR SOC
62 ifeq ($(HOSTARCH),ppc)
66 CROSS_COMPILE = powerpc-linux-
69 CROSS_COMPILE = arm-linux-
72 ifeq ($(HOSTARCH),i386)
75 CROSS_COMPILE = i386-linux-
79 CROSS_COMPILE = mips-linux-
82 CROSS_COMPILE = nios-elf-
85 CROSS_COMPILE = nios2-elf-
88 CROSS_COMPILE = m68k-elf-
90 ifeq ($(ARCH),microblaze)
93 ifeq ($(ARCH),blackfin)
94 CROSS_COMPILE = bfin-elf-
101 # load other configuration
102 include $(TOPDIR)/config.mk
105 #########################################################################
106 # U-Boot objects....order is important (i.e. start must be first)
107 OBJS = cpu/$(CPU)/start.o
109 ifeq ($(COMPRESSED_UBOOT),1)
110 OBJS_BOOTSTRAP = cpu/$(CPU)/start_bootstrap.o
113 LIBS = lib_generic/libgeneric.a
114 LIBS += common/libcommon.a
115 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
116 LIBS += cpu/$(CPU)/lib$(CPU).a
119 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
122 LIBS += lib_$(ARCH)/lib$(ARCH).a
123 LIBS += drivers/libdrivers.a
126 LIBS += httpd/libhttpd.a
129 ifeq ($(COMPRESSED_UBOOT),1)
130 LIBS_BOOTSTRAP = lib_bootstrap/libbootstrap.a
131 LIBS_BOOTSTRAP += board/$(BOARDDIR)/lib$(BOARD).a
132 LIBS_BOOTSTRAP += cpu/$(CPU)/lib$(CPU).a
133 LIBS_BOOTSTRAP += cpu/$(CPU)/$(SOC)/lib$(SOC).a
138 ifeq ($(COMPRESSED_UBOOT),1)
139 .PHONY : $(LIBS_BOOTSTRAP)
143 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
145 # The "tools" are needed early, so put this first
146 # Don't include stuff already done in $(LIBS)
151 #########################################################################
152 #########################################################################
154 ALL = u-boot.srec u-boot.bin System.map
156 ifeq ($(COMPRESSED_UBOOT),1)
157 all: $(ALL) tuboot.bin
163 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
166 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
169 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
171 u-boot.img: u-boot.bin
172 ./tools/mkimage -A $(ARCH) -T firmware -C none \
173 -a $(TEXT_BASE) -e 0 \
174 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
175 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
179 $(OBJDUMP) -d $< > $@
181 u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
182 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
183 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
184 --start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
185 -Map u-boot.map -o u-boot
188 $(MAKE) -C `dirname $@`
193 ifeq ($(COMPRESSED_UBOOT),1)
194 LZMA = $(BUILD_TOPDIR)/host_util/lzma
196 tuboot.bin: System.map bootstrap.bin u-boot.lzimg
197 @cat bootstrap.bin > $@
198 @cat u-boot.lzimg >> $@
200 u-boot.lzimg: $(obj)u-boot.bin System.map
201 @rm -rf u-boot.bin.lzma
202 #$(LZMA) e $(obj)u-boot.bin u-boot.bin.lzma
203 $(LZMA) --best --keep $(obj)u-boot.bin
204 ./tools/mkimage -A mips -T firmware -C lzma \
205 -a 0x$(shell grep "T _start" $(TOPDIR)/System.map | awk '{ printf "%s", $$1 }') \
206 -e 0x$(shell grep "T _start" $(TOPDIR)/System.map | awk '{ printf "%s", $$1 }') \
207 -n 'u-boot image' -d $(obj)u-boot.bin.lzma $@
209 bootstrap.bin: bootstrap
210 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
212 bootstrap: depend version $(SUBDIRS) $(OBJS_BOOTSTRAP) $(LIBS_BOOTSTRAP) $(LDSCRIPT_BOOTSTRAP)
213 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS_BOOTSTRAP) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
214 $(LD) $(LDFLAGS_BOOTSTRAP) $$UNDEF_SYM $(OBJS_BOOTSTRAP) \
215 --start-group $(LIBS_BOOTSTRAP) --end-group $(PLATFORM_LIBS) \
216 -Map bootstrap.map -o bootstrap
219 $(MAKE) -C `dirname $@`
223 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
224 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
225 echo "\"" >> $(VERSION_FILE)
228 $(MAKE) -C tools/gdb || exit 1
231 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
234 ctags -w `find $(SUBDIRS) include \
235 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
236 fs/cramfs fs/fat fs/fdos fs/jffs2 \
237 net disk rtc dtt drivers drivers/sk98lin common \
238 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
241 etags -a `find $(SUBDIRS) include \
242 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
243 fs/cramfs fs/fat fs/fdos fs/jffs2 \
244 net disk rtc dtt drivers drivers/sk98lin common \
245 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
249 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
252 #########################################################################
254 all install u-boot u-boot.srec depend dep:
255 @echo "System not configured - see README" >&2
259 #########################################################################
262 @rm -f include/config.h include/config.mk board/*/config.tmp
264 #========================================================================
266 #========================================================================
267 #########################################################################
268 ## MIPS32 AR7100 (24K)
269 #########################################################################
271 hornet_common_config :
273 @echo "#define CONFIG_AR7240 1" >> include/config.h
274 @echo "#define CONFIG_MACH_HORNET 1" >> include/config.h
275 @echo "#define CONFIG_HORNET_1_1_WAR 1" >> include/config.h
276 @echo "#define NEW_DDR_TAP_CAL 1" >> include/config.h
278 ifdef CONFIG_BOOTDELAY
279 @echo "#define CONFIG_BOOTDELAY "$(CONFIG_BOOTDELAY) >> include/config.h
283 @echo "#define CFG_PLL_FREQ "$(CFG_PLL_FREQ) >> include/config.h
286 @echo "#define CONFIG_DELAY_TO_AUTORUN_HTTPD 3" >> include/config.h
287 @echo "#define CONFIG_DELAY_TO_AUTORUN_CONSOLE 5" >> include/config.h
288 @echo "#define CONFIG_DELAY_TO_AUTORUN_NETCONSOLE 7" >> include/config.h
290 # max delay time for button pressing
291 @echo "#define CONFIG_MAX_BUTTON_PRESSING 10" >> include/config.h
293 # don't show info about console (in, out, err...)
294 @echo "#define CFG_CONSOLE_INFO_QUIET" >> include/config.h
296 wr703n_config : unconfig hornet_common_config
297 @echo '======= Configuring for TP-Link TL-WR703N at:' `date` '======='
298 @echo "#define CONFIG_FOR_TPLINK_WR703N_V1 1" >> include/config.h
299 @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
300 @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
301 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
302 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
303 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR703N\"" >> include/config.h
305 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
307 wr720n_v3_CH_config : unconfig hornet_common_config
308 @echo '======= Configuring for TP-Link TL-WR720N v3 CH at:' `date` '======='
309 @echo "#define CONFIG_FOR_TPLINK_WR720N_V3 1" >> include/config.h
310 @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
311 @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
312 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
313 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
314 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR720N v3 CH\"" >> include/config.h
316 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
318 wr710n_config : unconfig hornet_common_config
319 @echo '======= Configuring for TP-Link TL-WR710N at:' `date` '======='
320 @echo "#define CONFIG_FOR_TPLINK_WR710N_V1 1" >> include/config.h
321 @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
322 @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
323 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
324 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
325 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR710N\"" >> include/config.h
327 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
329 mr3020_config : unconfig hornet_common_config
330 @echo '======= Configuring for TP-Link TL-MR3020 at:' `date` '======='
331 @echo "#define CONFIG_FOR_TPLINK_MR3020_V1 1" >> include/config.h
332 @echo "#define GPIO_INTERNET_LED_BIT 27" >> include/config.h
333 @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h
334 @echo "#define GPIO_WPS_LED_BIT 26" >> include/config.h
335 @echo "#define GPIO_WPS_LED_ON 0" >> include/config.h
336 @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
337 @echo "#define GPIO_WLAN_LED_ON 1" >> include/config.h
338 @echo "#define GPIO_ETH_LED_BIT 17" >> include/config.h
339 @echo "#define GPIO_ETH_LED_ON 0" >> include/config.h
340 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
341 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
342 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR3020\"" >> include/config.h
344 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
346 mr3040_config : unconfig hornet_common_config
347 @echo '======= Configuring for TP-Link TL-MR3040 at:' `date` '======='
348 @echo "#define CONFIG_FOR_TPLINK_MR3040_V1V2 1" >> include/config.h
349 @echo "#define GPIO_INTERNET_LED_BIT 27" >> include/config.h
350 @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h
351 @echo "#define GPIO_WLAN_LED_BIT 26" >> include/config.h
352 @echo "#define GPIO_WLAN_LED_ON 0" >> include/config.h
353 @echo "#define GPIO_ETH_LED_BIT 17" >> include/config.h
354 @echo "#define GPIO_ETH_LED_ON 0" >> include/config.h
355 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
356 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
357 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR3040\"" >> include/config.h
359 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
361 mr10u_config : unconfig hornet_common_config
362 @echo '======= Configuring for TP-Link TL-MR10U at:' `date` '======='
363 @echo "#define CONFIG_FOR_TPLINK_MR10U_V1 1" >> include/config.h
364 @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
365 @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
366 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
367 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
368 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR10U\"" >> include/config.h
370 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
372 wr740n_v4_config : unconfig hornet_common_config
373 @echo '======= Configuring for TP-Link TL-WR740N v4 at:' `date` '======='
374 @echo "#define CONFIG_FOR_TPLINK_WR740N_V4 1" >> include/config.h
375 @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
376 @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
377 @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
378 @echo "#define GPIO_WLAN_LED_ON 1" >> include/config.h
379 @echo "#define GPIO_LAN1_LED_BIT 14" >> include/config.h
380 @echo "#define GPIO_LAN1_LED_ON 1" >> include/config.h
381 @echo "#define GPIO_LAN2_LED_BIT 15" >> include/config.h
382 @echo "#define GPIO_LAN2_LED_ON 1" >> include/config.h
383 @echo "#define GPIO_LAN3_LED_BIT 16" >> include/config.h
384 @echo "#define GPIO_LAN3_LED_ON 1" >> include/config.h
385 @echo "#define GPIO_LAN4_LED_BIT 17" >> include/config.h
386 @echo "#define GPIO_LAN4_LED_ON 0" >> include/config.h
387 @echo "#define GPIO_INTERNET_LED_BIT 13" >> include/config.h
388 @echo "#define GPIO_INTERNET_LED_ON 1" >> include/config.h
389 @echo "#define GPIO_QSS_LED_BIT 1" >> include/config.h
390 @echo "#define GPIO_QSS_LED_ON 1" >> include/config.h
391 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
392 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
393 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR74xN/D v4\"" >> include/config.h
395 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
397 mr3220_v2_config : unconfig hornet_common_config
398 @echo '======= Configuring for TP-Link TL-MR3220 v2 at:' `date` '======='
399 @echo "#define CONFIG_FOR_TPLINK_MR3220_V2 1" >> include/config.h
400 @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
401 @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
402 @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
403 @echo "#define GPIO_WLAN_LED_ON 1" >> include/config.h
404 @echo "#define GPIO_LAN1_LED_BIT 14" >> include/config.h
405 @echo "#define GPIO_LAN1_LED_ON 1" >> include/config.h
406 @echo "#define GPIO_LAN2_LED_BIT 15" >> include/config.h
407 @echo "#define GPIO_LAN2_LED_ON 1" >> include/config.h
408 @echo "#define GPIO_LAN3_LED_BIT 16" >> include/config.h
409 @echo "#define GPIO_LAN3_LED_ON 1" >> include/config.h
410 @echo "#define GPIO_LAN4_LED_BIT 17" >> include/config.h
411 @echo "#define GPIO_LAN4_LED_ON 0" >> include/config.h
412 @echo "#define GPIO_INTERNET_LED_BIT 13" >> include/config.h
413 @echo "#define GPIO_INTERNET_LED_ON 1" >> include/config.h
414 @echo "#define GPIO_QSS_LED_BIT 1" >> include/config.h
415 @echo "#define GPIO_QSS_LED_ON 1" >> include/config.h
416 @echo "#define GPIO_USB_LED_BIT 26" >> include/config.h
417 @echo "#define GPIO_USB_LED_ON 1" >> include/config.h
418 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
419 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
420 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR3220 v2\"" >> include/config.h
422 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
424 dir505_config : unconfig hornet_common_config
425 @echo '======= Configuring for D-Link DIR-505 at:' `date` '======='
426 @echo "#define CONFIG_FOR_DLINK_DIR505_A1 1" >> include/config.h
427 @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
428 @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
430 # we will use WPS button instead of reset
431 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
432 @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
434 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
435 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for DIR-505\"" >> include/config.h
437 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
439 carambola2_config : unconfig hornet_common_config
440 @echo '======= Configuring for 8devices Carambola 2 at:' `date` '======='
441 @echo "#define CONFIG_FOR_8DEVICES_CARAMBOLA2 1" >> include/config.h
443 # Carambola 2 uses uncompressed version
444 @echo "#undef COMPRESSED_UBOOT" >> include/config.h
446 # Carambola 2 uses 40 MHz oscillator
447 @echo "#define CONFIG_40MHZ_XTAL_SUPPORT 1" >> include/config.h
449 @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
450 @echo "#define GPIO_WLAN_LED_ON 0" >> include/config.h
451 @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
453 # Carambola 2 development board has RST button pulled up, so it is active at low
454 @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
456 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 16" >> include/config.h
457 @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for CARAMBOLA2 v1\"" >> include/config.h
459 @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
461 db12x_config : unconfig
462 @echo '======= Configuring for TP-Link TL-WDR3600/43x0 at:' `date` '======='
464 @echo "#define CONFIG_WASP_SUPPORT 1" >> include/config.h
465 @echo "#undef CFG_ATHRS26_PHY" >> include/config.h
466 @echo "#define DDR2_32BIT_SUPPORT 1" >> include/config.h
467 @echo "#define CONFIG_AG7240_GE0_IS_CONNECTED 1" >> include/config.h
468 @echo "#define CONFIG_AR7240 1" >> include/config.h
469 @echo "#define CONFIG_WASP 1" >> include/config.h
471 ifdef CONFIG_BOOTDELAY
472 @echo "#define CONFIG_BOOTDELAY "$(CONFIG_BOOTDELAY) >> include/config.h
475 @echo "#define CONFIG_DELAY_TO_AUTORUN_HTTPD 3" >> include/config.h
476 @echo "#define CONFIG_DELAY_TO_AUTORUN_CONSOLE 5" >> include/config.h
477 @echo "#define CONFIG_DELAY_TO_AUTORUN_NETCONSOLE 7" >> include/config.h
479 # max delay time for button pressing
480 @echo "#define CONFIG_MAX_BUTTON_PRESSING 10" >> include/config.h
482 # don't show info about console (in, out, err...)
483 @echo "#define CFG_CONSOLE_INFO_QUIET" >> include/config.h
485 @echo "#define CONFIG_ATHRS17_PHY 1" >> include/config.h
486 @echo "#define CFG_AG7240_NMACS 1" >> include/config.h
487 @echo "#define DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
488 @echo "#define BOARD_CUSTOM_STRING \"DB120 (AR9344) U-Boot for TL-WDR3600/43x0\"" >> include/config.h
490 @./mkconfig -a db12x mips mips db12x ar7240 ar7240
492 #########################################################################
493 #########################################################################
494 #########################################################################
499 \( -name 'core' -o -name '*.bak' -o -name '*~' \
500 -o -name '*.o' -o -name '*.a' -o -name .depend \) -print \
502 @rm -f tools/mkimage tools/envcrc
503 @rm -f lib_bootstrap/*.o
504 @rm -f lib_bootstrap/*.a
505 @rm -f bootstrap bootstrap.bin tuboot.bin u-boot.lzimg u-boot.bin.lzma bootstrap.map
509 @find . -type f \( -name .depend \
510 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
513 @rm -f $(OBJS) *.bak tags TAGS include/version_autogenerated.h
515 @rm -f u-boot u-boot.map u-boot.hex $(ALL)
516 @rm -f tools/crc32.c tools/environment.c
517 @rm -f cpu/mpc824x/bedbug_603e.c
518 @rm -f include/asm/proc include/asm/arch include/asm
521 distclean: clobber unconfig
524 F=`basename $(TOPDIR)` ; cd .. ; \
525 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
527 #########################################################################