diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-11-08 18:00:18 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-11-26 07:59:56 +0100 |
commit | c5b07b5fb1bac94f8db0b13bae4f33fdf6aa54b1 (patch) | |
tree | 1873ddf86b7bdf0f94261558ac991e18734b0319 | |
parent | 63efa2fbfd108457409026aca41847f9e5ebcb2b (diff) | |
download | ptxdist-c5b07b5fb1bac94f8db0b13bae4f33fdf6aa54b1.tar.gz ptxdist-c5b07b5fb1bac94f8db0b13bae4f33fdf6aa54b1.tar.xz |
ptxd_make_kconfig_setup: print error message if something goes wrong
This can happen if no config file is found, so print a specific error in
this case. There should have been some other bailout before in all other
cases but print a generic error anyways in case some error path was missed.
Without this config file setup fails without error message if no config is
found.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_make_world_kconfig.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_kconfig.sh b/scripts/lib/ptxd_make_world_kconfig.sh index 8e387e0e4..520051916 100644 --- a/scripts/lib/ptxd_make_world_kconfig.sh +++ b/scripts/lib/ptxd_make_world_kconfig.sh @@ -24,6 +24,13 @@ ptxd_make_kconfig_setup() { ptxd_normalize_config && ptxd_kconfig_setup_config "${ptx_config_mode}" "${pkg_build_dir}/.config" \ "${relative_file_dotconfig}" "${file_dotconfig}" "${relative_ref_file_dotconfig}" + if [ ${?} -ne 0 ]; then + if [ ! -e "${file_dotconfig}" ]; then + ptxd_bailout "Config file '$(ptxd_print_path "${file_dotconfig}")' is missing!" + else + ptxd_bailout "Failed to initialize '$(ptxd_print_path ${file_dotconfig})'" + fi + fi } export -f ptxd_make_kconfig_setup |