From 1bfa9f79c00c34fd7f09fa5f2f3de1e90e2508aa Mon Sep 17 00:00:00 2001 From: xiangfu Date: Tue, 28 Apr 2009 18:32:37 +0000 Subject: [PATCH] add make clean. now we can "make usb-boot" to get all usb-boot needs. *now we must put "fw.bin", "usb_boot.bin" and "inflash" in the same directory --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 76d0489..a12df27 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA - BINUTILS_VER=binutils-2.17 GCC_VER=gcc-4.1.2 GLIBC_VER=glibc-2.6.1 @@ -58,10 +57,8 @@ else BUILD_CC="gcc" endif - toolchain: binutils gcc glibc - ### misc $(DL_PATH): @@ -144,7 +141,7 @@ u-boot: make pi_config && \ make -### usbboot +### usb-boot .PHONY: usb-boot usb-boot: flash-tool usb-boot-stage @@ -168,6 +165,10 @@ kernel: distclean: clean clean-toolchain clean: + make clean -C flash-tool + make clean -C $(USBBOOT_STAGE1_PATH) + make clean -C $(USBBOOT_STAGE2_PATH) + rm flash-tool/*.bin clean-toolchain: clean-glibc rm -rf $(TOOLCHAIN_PATH)/$(BINUTILS_VER) binutils