diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-05-16 20:16:58 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-05-16 20:17:01 +0200 |
commit | 493ff3330e86472bcef25b7be10b4acbba227e71 (patch) | |
tree | b57e31c79bf40a96fe8d70839e3ec00ce10e9b4c /scripts | |
parent | 8cebce91305639b434378091468de5f208e8888b (diff) | |
download | ptxdist-493ff3330e86472bcef25b7be10b4acbba227e71.tar.gz ptxdist-493ff3330e86472bcef25b7be10b4acbba227e71.tar.xz |
ptxd_kconfig_create_config: create empty target file if no source exists
This can happen for 'boardsetup' when the config file does not exist yet.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_kconfig.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_kconfig.sh b/scripts/lib/ptxd_lib_kconfig.sh index 503877830..53428d301 100644 --- a/scripts/lib/ptxd_lib_kconfig.sh +++ b/scripts/lib/ptxd_lib_kconfig.sh @@ -223,6 +223,8 @@ ptxd_kconfig_create_config() { prefix="$(sed -n '/^[A-Z]/{s/\([^_]*_\).*/\1/p;q}' "${target}")" echo "# ${prefix}OPTION_DOES_NOT_EXIST is not set" >> "${target}" fi + else + touch "${target}" fi fi && stat -c '%y' "${target}" > "${target}.stamp" |