Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] kconfig: support read-only Buildroot source directories
@ 2015-08-13 22:22 Hollis Blanchard
  2015-08-13 22:40 ` Yann E. MORIN
  2015-08-17 20:53 ` Thomas Petazzoni
  0 siblings, 2 replies; 6+ messages in thread
From: Hollis Blanchard @ 2015-08-13 22:22 UTC (permalink / raw)
  To: buildroot

merge_config.sh currently tries to create a .tmp file in the top-level
Buildroot source tree. This fails when that directory is read-only, leading
to unexpected .config file contents (affecting the configuration of Buildroot
itself, Linux, and Busybox).

Fix it by using mktemp --tmpdir to create the .tmp file in $TMPDIR or /tmp.

Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
---
 support/kconfig/merge_config.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/kconfig/merge_config.sh b/support/kconfig/merge_config.sh
index 81b0c61..19d968b 100755
--- a/support/kconfig/merge_config.sh
+++ b/support/kconfig/merge_config.sh
@@ -82,7 +82,7 @@ shift;
 
 MERGE_LIST=$*
 SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p"
-TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX)
+TMP_FILE=$(mktemp --tmpdir .tmp.config.XXXXXXXXXX)
 
 echo "Using $INITFILE as base"
 cat $INITFILE > $TMP_FILE
-- 
2.3.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-28 20:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-13 22:22 [Buildroot] [PATCH] kconfig: support read-only Buildroot source directories Hollis Blanchard
2015-08-13 22:40 ` Yann E. MORIN
2015-08-14  5:25   ` Erico Nunes
2015-08-17 20:53 ` Thomas Petazzoni
2015-08-28 19:35   ` Erico Nunes
2015-08-28 20:54     ` Hollis Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox