From 98a477152fc920a2bf06a58d4e02d621c7b935ef Mon Sep 17 00:00:00 2001 From: xiangfu Date: Tue, 28 Apr 2009 18:22:12 +0000 Subject: [PATCH] update Makefile and README fix compile error. ZZy --- Makefile | 10 +++++----- flash-tool/README | 4 +++- flash-tool/command_line.c | 3 +-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f680386..76d0489 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ DL_PATH=$(TOOLCHAIN_PATH)/dl INSTALL_PATH=install PATCHES_PATH=$(TOOLCHAIN_PATH)/patches GLIBC_PATCHES_PATH=$(PATCHES_PATH)/glibc -USBBOOT_PATH=usbboot +USBBOOT_PATH=usb-boot USBBOOT_STAGE1_PATH=$(USBBOOT_PATH)/stage1 USBBOOT_STAGE2_PATH=$(USBBOOT_PATH)/stage2 @@ -145,13 +145,13 @@ u-boot: make ### usbboot -.PHONY: usbboot -usbboot: usbboot-tools usbboot-stage +.PHONY: usb-boot +usb-boot: flash-tool usb-boot-stage -usbboot-tools: usbboot-stage +flash-tool: usb-boot-stage make -C flash-tool -usbboot-stage: +usb-boot-stage: make -C $(USBBOOT_STAGE1_PATH) make -C $(USBBOOT_STAGE2_PATH) diff --git a/flash-tool/README b/flash-tool/README index 328e683..6822c55 100644 --- a/flash-tool/README +++ b/flash-tool/README @@ -1,2 +1,4 @@ +inflash tools: flash image(linke u-Boot, kernel) to PI. + to compile this program you need: - sudo apt-get install libusb-dev libconfuse-dev + On Debian and Ubuntu, you'll need libusb-dev: sudo apt-get install libusb-dev libconfuse-dev diff --git a/flash-tool/command_line.c b/flash-tool/command_line.c index ed88574..31128f7 100644 --- a/flash-tool/command_line.c +++ b/flash-tool/command_line.c @@ -197,8 +197,7 @@ int command_handle(char *buf) break; default: printf("\n Command not support!"); - result = -1; - break; + return -1; } return 1;