summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2006-09-07 12:05:53 +0200
committerMarian Balakowicz <m8@semihalf.com>2006-09-07 12:05:53 +0200
commit4f0645eb7909635a72421de57904ef6531bbd82a (patch)
tree9b5e583664faa488ebc17907ea666b59d129373d
parent0dab03ba8fb20ede7233f497b6c6db188986e7a8 (diff)
downloadu-boot-imx-4f0645eb7909635a72421de57904ef6531bbd82a.zip
u-boot-imx-4f0645eb7909635a72421de57904ef6531bbd82a.tar.gz
u-boot-imx-4f0645eb7909635a72421de57904ef6531bbd82a.tar.bz2
Fix LOG_DIR directory creation error.
Add support for automatic creation of BUILD_DIR directory.
-rw-r--r--CHANGELOG4
-rwxr-xr-xMAKEALL2
-rw-r--r--Makefile5
3 files changed, 9 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3c42d93..672a619 100644
--- 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 d2f86d3..112be32 100755
--- 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=""
diff --git a/Makefile b/Makefile
index fc7b117..a4aa19f 100644
--- 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),)