]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix LOG_DIR directory creation error.
authorMarian Balakowicz <m8@semihalf.com>
Thu, 7 Sep 2006 10:05:53 +0000 (12:05 +0200)
committerMarian Balakowicz <m8@semihalf.com>
Thu, 7 Sep 2006 10:05:53 +0000 (12:05 +0200)
Add support for automatic creation of BUILD_DIR directory.

CHANGELOG
MAKEALL
Makefile

index 3c42d93fe84725f9a4cfab1178e92c9012a9bf41..672a61955b123c195099be08d7fadc9ccfa68c32 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Fix LOG_DIR directory creation error.
+  Add support for automatic creation of BUILD_DIR directory.
+
 * Fix mkimage -l bug with multifile images on 64bit platforms
   Patch by David Updegraff, 06 Sep 2006
 
@@ -30,7 +33,6 @@ Changes since U-Boot 1.1.4:
 
 * Fix tools/easylogo build error.
 
-
 * Fixed problems on PRS200 board caused by adding splash screen on MCC200
 
 * Extended README entry on coding style
diff --git a/MAKEALL b/MAKEALL
index d2f86d3ac8a1909605c561b39193daf0509d9247..112be32ab7677ce6fd29e2071f791fc731f763f4 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -18,7 +18,7 @@ if [ ! "${BUILD_DIR}" ] ; then
        BUILD_DIR="."
 fi
 
-[ -d ${MAKEALL_LOGDIR} ] || mkdir ${MAKEALL_LOGDIR} || exit 1
+[ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
 
 LIST=""
 
index fc7b117e3fe839a5fe688d7db510b8fa7086295a..a4aa19f0d67fa063f061373c5bdeec37f3b3e04a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -74,6 +74,11 @@ endif
 
 ifneq ($(BUILD_DIR),)
 saved-output := $(BUILD_DIR)
+
+# Attempt to create a output directory.
+$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
+
+# Verify if it was successful. 
 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
 endif # ifneq ($(BUILD_DIR),)