]> git.dujemihanovic.xyz Git - u-boot.git/commit
Makefile: fix dependency problem with parallel builds
authorWolfgang Denk <wd@denx.de>
Tue, 16 Dec 2008 13:41:02 +0000 (14:41 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 16 Dec 2008 13:41:02 +0000 (14:41 +0100)
commit4a0f7538c5c0805fd9a791967bbabacc41deadd9
treef0a967b9fd1de936b352e96d359664462ab7e782
parent455ae7e87f67c44e6aea68865c83acadd3fcd36c
Makefile: fix dependency problem with parallel builds

Parallel builds (using "make -jN") would occasionally fail with error
messages like
include/autoconf.mk:212: *** missing separator.  Stop.
Line numbers and affected boards were changing. Obviously some
Makefiles included autoconf.mk while it was still being written to.
As a fix, we now write to a temporary file first and then rename it,
so that it is really ready to use as soon as it appears.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Makefile