Fix LOG_DIR directory creation error.
Add support for automatic creation of BUILD_DIR directory.
This commit is contained in:
parent
0dab03ba8f
commit
4f0645eb79
@ -2,6 +2,9 @@
|
|||||||
Changes since U-Boot 1.1.4:
|
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
|
* Fix mkimage -l bug with multifile images on 64bit platforms
|
||||||
Patch by David Updegraff, 06 Sep 2006
|
Patch by David Updegraff, 06 Sep 2006
|
||||||
|
|
||||||
@ -30,7 +33,6 @@ Changes since U-Boot 1.1.4:
|
|||||||
|
|
||||||
* Fix tools/easylogo build error.
|
* Fix tools/easylogo build error.
|
||||||
|
|
||||||
|
|
||||||
* Fixed problems on PRS200 board caused by adding splash screen on MCC200
|
* Fixed problems on PRS200 board caused by adding splash screen on MCC200
|
||||||
|
|
||||||
* Extended README entry on coding style
|
* Extended README entry on coding style
|
||||||
|
2
MAKEALL
2
MAKEALL
@ -18,7 +18,7 @@ if [ ! "${BUILD_DIR}" ] ; then
|
|||||||
BUILD_DIR="."
|
BUILD_DIR="."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -d ${MAKEALL_LOGDIR} ] || mkdir ${MAKEALL_LOGDIR} || exit 1
|
[ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
|
||||||
|
|
||||||
LIST=""
|
LIST=""
|
||||||
|
|
||||||
|
5
Makefile
5
Makefile
@ -74,6 +74,11 @@ endif
|
|||||||
|
|
||||||
ifneq ($(BUILD_DIR),)
|
ifneq ($(BUILD_DIR),)
|
||||||
saved-output := $(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)
|
BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
|
||||||
$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
|
$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
|
||||||
endif # ifneq ($(BUILD_DIR),)
|
endif # ifneq ($(BUILD_DIR),)
|
||||||
|
Loading…
Reference in New Issue
Block a user