aboutsummaryrefslogtreecommitdiff
path: root/support/kconfig
diff options
context:
space:
mode:
authorGravatar Henrique Marks <henrique.marks@datacom.ind.br>2015-12-07 12:08:45 -0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-01-31 09:09:52 +0100
commit0f56304521db42bd2c05867fd78a247104a4ad95 (patch)
tree3e7ff77bd6381266ffab86d3a72fdb8187b67545 /support/kconfig
parent0be67b6f717414718e6931c970b5ab4d926f42e0 (diff)
downloadbuildroot-0f56304521db42bd2c05867fd78a247104a4ad95.tar.gz
buildroot-0f56304521db42bd2c05867fd78a247104a4ad95.tar.bz2
merge_config.sh: create temporary files in /tmp
Creating temporary files in /tmp (or the path pointed by $TMPDIR) allows the buildroot top directory to be read-only and shareable between multible builds. This follows what other scripts do, e.g. check-kernel-headers.sh. Signed-off-by: Henrique Marks <henrique.marks@datacom.ind.br> Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/kconfig')
-rwxr-xr-xsupport/kconfig/merge_config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/kconfig/merge_config.sh b/support/kconfig/merge_config.sh
index 81b0c61bb9..8a1708b50f 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 -t .tmp.config.XXXXXXXXXX)
echo "Using $INITFILE as base"
cat $INITFILE > $TMP_FILE