u-boot tools: make sure destination directory exists
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 17 Jun 2008 08:04:15 +0000 (08:04 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 17 Jun 2008 08:04:15 +0000 (08:04 -0000)
target/u-boot/Makefile.in

index 8e97c7075a9bdcded5beb047335ccd9bb85ca04d..d7af24c2fea405c01c3333dbeae65ac0a73f1d1a 100644 (file)
@@ -124,11 +124,13 @@ $(BINARIES_DIR)/$(U_BOOT_BIN): $(U_BOOT_DIR)/$(U_BOOT_BIN)
        cp -dpf $(U_BOOT_DIR)/tools/$(U_BOOT_TOOLS_BIN) $(STAGING_DIR)/usr/bin/
 
 $(TARGET_DIR)/usr/bin/mkimage: $(U_BOOT_DIR)/$(U_BOOT_BIN)
+       mkdir -p $(@D)
        $(TARGET_CC) -I$(U_BOOT_DIR)/include -DUSE_HOSTCC -o $@ \
                $(U_BOOT_DIR)/tools/mkimage.c $(U_BOOT_DIR)/tools/crc32.c
        $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
 
 $(TARGET_DIR)/usr/sbin/fw_printenv: $(U_BOOT_DIR)/$(U_BOOT_BIN)
+       mkdir -p $(@D)
        $(TARGET_CC) -I$(U_BOOT_DIR)/include -I$(LINUX_HEADERS_DIR)/include \
                -DUSE_HOSTCC -o $@ \
                $(U_BOOT_DIR)/tools/env/*.c $(U_BOOT_DIR)/tools/crc32.c