target/u-boot: install mkimage to HOST_DIR
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 18 Dec 2009 08:27:41 +0000 (09:27 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 18 Dec 2009 08:27:41 +0000 (09:27 +0100)
As suggested by Thomas.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
target/u-boot/Makefile.in

index 5f4cd4c206376fad6d4fe18e994e816f6920c5b5..dd45b42ac7ed108d32b8df19653932a79b28745e 100644 (file)
@@ -14,8 +14,7 @@ U_BOOT_CAT:=$(BZCAT)
 U_BOOT_BIN:=u-boot.bin
 U_BOOT_TARGET_BIN:=u-boot-$(U_BOOT_VERSION)-$(DATE).bin
 
-U_BOOT_TOOLS_BIN:=mkimage
-U_BOOT_TOOLS:=$(STAGING_DIR)/usr/bin/$(U_BOOT_TOOLS_BIN)
+U_BOOT_TOOLS:=$(HOST_DIR)/usr/bin/mkimage
 MKIMAGE:=$(U_BOOT_TOOLS)
 U_BOOT_AUTOSCRIPT=$(BINARIES_DIR)/autoscript
 
@@ -170,7 +169,7 @@ $(BINARIES_DIR)/$(U_BOOT_BIN): $(U_BOOT_DIR)/$(U_BOOT_BIN)
 
 $(U_BOOT_TOOLS): $(U_BOOT_DIR)/$(U_BOOT_BIN)
        mkdir -p $(@D)
-       cp -dpf $(U_BOOT_DIR)/tools/$(U_BOOT_TOOLS_BIN) $(STAGING_DIR)/usr/bin/
+       cp -dpf $(U_BOOT_DIR)/tools/mkimage $@
 
 $(TARGET_DIR)/usr/bin/mkimage: $(U_BOOT_DIR)/$(U_BOOT_BIN)
        mkdir -p $(@D)