coreboot/util
Vadim Bendebury c302d20ed3 Force coreboot mconf to create temp files in the output directory
This change partially addresses the problem with attempting to
generate coreboot image out of tree. The configuration step fails when
in cheroot, if the destination directory is placed in /tmp.

The problem is that the mconf package tries renaming the temporary
file created in the local directory into the destination config file.
If the destination root and the local directory are located on
different file systems, the rename operation fails.

The proper fix (still upcoming) would be to identify all places where
mconf creates temp files, and make sure that all temp files get
created in the destination tree.

This change modifies just one location, which prevents building out of
tree in the most common case.

Test:
  run the following in the coreboot directory in chroot:
    (coreboot) cp config.lumpy .config
    (coreboot) /bin/rm -rf /tmp/cb
    (coreboot) CROSS_COMPILE=i686-pc-linux-gnu- make obj=/tmp/cb oldconfig
    (coreboot) CROSS_COMPILE=i686-pc-linux-gnu- make obj=/tmp/cb

  Observe the build succeed (it was failing during the config phase
  before this change)

Change-Id: If4506e984b8afc192a1689c7b0aa956dd35f66c6
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/815
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2012-04-02 18:39:22 +02:00
..
abuild Drop support for BROKEN marker 2012-03-01 00:03:34 +01:00
acpi Remove whitespace. 2012-02-17 19:04:31 +01:00
amdtools
cbfstool Add a "remove" command to cbfstool 2012-04-02 18:39:08 +02:00
cbmem Revamp cbmem.py to use the coreboot tables. 2012-03-30 17:46:26 +02:00
crossgcc buildgcc: Add option to use ccache 2011-11-09 00:25:44 +01:00
dumpmmcr dumpmmcr: Fix compilation warnings in printf 2012-01-26 09:57:56 +01:00
ectool remove trailing whitespace 2011-11-01 19:07:45 +01:00
genprof Add support utils for tracing 2011-09-07 01:27:57 +02:00
getpir
gitconfig gitconfig: Improve commit-msg hook 2012-03-25 20:20:41 +02:00
ifdtool Allow components smaller than declared size. 2012-03-30 17:48:45 +02:00
inteltool Fix warnings in coreboot utilities. 2012-03-30 20:26:50 +02:00
k8resdump
kconfig Force coreboot mconf to create temp files in the output directory 2012-04-02 18:39:22 +02:00
lbtdump
lint Fix lint-stable checkin hooks on MacOS X 2012-03-09 05:29:08 +01:00
mkelfImage Remove whitespace. 2012-02-17 19:04:31 +01:00
mptable
msrtool msrtool: added support for Intel CPUs 2011-06-28 23:09:08 +02:00
nrv2b
nvramtool Fix warnings in coreboot utilities. 2012-03-30 20:26:50 +02:00
optionlist
options
resetcf
romcc Enable -Werror for romcc 2012-03-31 12:07:10 +02:00
sconfig Sconfig: parse Kconfig options from devicetree.cb 2011-12-24 12:25:12 +01:00
superiotool tell superiotool about the ITE 8772 2012-03-10 08:47:06 +01:00
vgabios
xcompile Update xcompile to search for x86_64 toolchain. 2012-03-31 12:49:45 +02:00