coreboot-kgpe-d16/util/kconfig
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
..
lxdialog Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
Makefile Respect linker order 2011-12-21 16:27:01 +01:00
POTFILES.in
check.sh
conf.c
confdata.c Force coreboot mconf to create temp files in the output directory 2012-04-02 18:39:22 +02:00
expr.c
expr.h
gconf.c
gconf.glade
images.c
kconfig_load.c
kxgettext.c
lex.zconf.c_shipped Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
lkc.h
lkc_proto.h
mconf.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
menu.c
qconf.cc
qconf.h
regex.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
regex.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
symbol.c Make the kconfig-style build work in mingw: 2009-11-21 19:54:02 +00:00
util.c
zconf.gperf
zconf.hash.c_shipped
zconf.l
zconf.tab.c_shipped Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
zconf.y