Ensure project U-Boot dir exists before using it
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 23 Sep 2007 10:16:58 +0000 (10:16 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 23 Sep 2007 10:16:58 +0000 (10:16 -0000)
project/project.mk

index b85fe3915f0b1c0c7db3e6cef2882dc9199bde8d..651a97ff22f4421fc4503c7a5339950bba445b63 100644 (file)
@@ -37,6 +37,7 @@ saveconfig: $(CONFIG)/conf
                echo "BR2_UCLIBC_CONFIG:=$(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config" >> $(PROJECT_FILE); \
        fi
        if [ -f $(UBOOT_DIR)/include/configs/$(PROJECT).h ]; then \
+               mkdir -p $(LOCAL)/$(PROJECT)/u-boot; \
                cp $(UBOOT_DIR)/include/configs/$(PROJECT).h \
                        $(LOCAL)/$(PROJECT)/u-boot/$(PROJECT).h; \
        fi