Fix coreboot makefiles not to produce half baked output.
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Sat, 31 Mar 2012 06:48:11 +0000 (09:48 +0300)
committerPatrick Georgi <patrick@georgi-clan.de>
Sat, 31 Mar 2012 09:29:48 +0000 (11:29 +0200)
commit608d15b6960246e29a221d2b6bb4a94e6d224627
treeca09ca811e5ab6e70784fe0924eade2274bb9527
parent5fdc00a52f7baf67d560ede055606d463eec3821
Fix coreboot makefiles not to produce half baked output.

There were cases where output file was generated and modified within
a recipe. If make was interrupted, it could exit with an output file
that appears as up-to-date, but was generated with incomplete recipe.

The output file should be created only when successful, in an atomic
operation. There could be other places in the make system which
require a similar fix, this needs to be investigated further.

Change-Id: I25c8ee23577a460eace196fd28c23cc67aa72a9a
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/830
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/arch/x86/Makefile.inc