From c5b07b5fb1bac94f8db0b13bae4f33fdf6aa54b1 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 8 Nov 2019 18:00:18 +0100 Subject: 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 --- scripts/lib/ptxd_make_world_kconfig.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3