summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-11-15 07:29:02 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-11-15 07:29:09 +0100
commit2e40eedd0b04d1c77d7094eda714ba801e3eb7ff (patch)
tree40d38aa02261d3f33f4f4d7f44589e7b11572b86
parent71e14254d265746e31f99d2755d6c8177382a1be (diff)
downloadptxdist-2e40eedd0b04d1c77d7094eda714ba801e3eb7ff.tar.gz
ptxdist-2e40eedd0b04d1c77d7094eda714ba801e3eb7ff.tar.xz
ptxd_kconfig: make sure the stamp file is always generated
Without this the stamp file is only generated when a diff is applied. As a result, reading the stamp file produces an error message. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_lib_kconfig.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_lib_kconfig.sh b/scripts/lib/ptxd_lib_kconfig.sh
index bffe118e3..00513999e 100644
--- a/scripts/lib/ptxd_lib_kconfig.sh
+++ b/scripts/lib/ptxd_lib_kconfig.sh
@@ -166,7 +166,6 @@ ptxd_kconfig_create_config_merge() {
# this will be dropped, but forces kconfig to write the config
echo "# ${prefix}OPTION_DOES_NOT_EXIST is not set" >> "${target}"
fi
- stat -c '%y' "${target}" > "${target}.stamp" &&
if [ "$?" -ne 0 ]; then
ptxd_bailout "Failed to apply" \
"$(ptxd_print_path "${diff}")" \
@@ -197,7 +196,8 @@ ptxd_kconfig_create_config() {
if [ -e "${config}" ]; then
cp -- "${config}" "${target}"
fi
- fi
+ fi &&
+ stat -c '%y' "${target}" > "${target}.stamp"
}
export -f ptxd_kconfig_create_config