From 22cb7cda9e1226df8fb00c7092ad34edb0339a52 Mon Sep 17 00:00:00 2001 From: xiangfu Date: Sun, 26 Apr 2009 15:34:02 +0000 Subject: [PATCH] correct the flash tool path --- usb-boot/stage1/Makefile | 3 ++- usb-boot/stage2/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usb-boot/stage1/Makefile b/usb-boot/stage1/Makefile index b26549e..cba979b 100644 --- a/usb-boot/stage1/Makefile +++ b/usb-boot/stage1/Makefile @@ -3,6 +3,7 @@ # # Makefile for the JZ4740 internal bootrom code. # +FLASH_TOOL_PATH = ../../flash-tool CROSS := mipsel-linux- @@ -18,7 +19,7 @@ fw.bin: fw.elf $(CROSS)objdump -D $< > fw.dump $(CROSS)objdump -h $< > fw.map $(CROSS)nm -n $< > System.map - cp fw.bin ../../../../tools + cp fw.bin $(FLASH_TOOL_PATH) fw.elf: $(OBJS) $(CROSS)ld $(LDFLAGS) $(OBJS) -o $@ diff --git a/usb-boot/stage2/Makefile b/usb-boot/stage2/Makefile index c122ae7..5213fed 100644 --- a/usb-boot/stage2/Makefile +++ b/usb-boot/stage2/Makefile @@ -7,7 +7,7 @@ # published by the Free Software Foundation. # -# ----------------------------- +FLASH_TOOL_PATH = ../../flash-tool CC := mipsel-linux-gcc AR := mipsel-linux-ar rcsv @@ -53,7 +53,7 @@ all: $(APP) $(OBJDUMP) -D $(APP) > $(TARGET).dump $(NM) $(APP) | sort > $(TARGET).sym $(OBJDUMP) -h $(APP) > $(TARGET).map - cp usb_boot.bin ../../../tools + cp usb_boot.bin $(FLASH_TOOL_PATH) $(APP): $(HEADO) $(OBJS) $(EXTLIBS) $(CC) $(LDFLAGS) $^ -o $@