summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-09-09 22:53:06 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-09-09 22:53:06 +0200
commit98e43917dc89631c46d0b8eb481345041912ebee (patch)
tree7fc4cb4a6dffbffd9d1203d7bc8bd9d0dface5cf /Makefile
parent2d658967e1c0c75206fd218cf8bdb99022b4026a (diff)
parentbaf3124953490b0c954461b66545f37b67f3269d (diff)
downloadu-boot-imx-98e43917dc89631c46d0b8eb481345041912ebee.zip
u-boot-imx-98e43917dc89631c46d0b8eb481345041912ebee.tar.gz
u-boot-imx-98e43917dc89631c46d0b8eb481345041912ebee.tar.bz2
Merge with /home/m8/git/u-boot
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a63aaef..291dc61 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),)