diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-23 19:45:53 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-23 20:02:55 +0100 |
commit | 9435521885b8cacfc43e6d402fd11860ac6cd524 (patch) | |
tree | c66a0c071fd2b51bbb9e61196afad86c80e899f6 /scripts | |
parent | acad357b5531f9c935b24f3514090c379255fb83 (diff) | |
download | ptxdist-9435521885b8cacfc43e6d402fd11860ac6cd524.tar.gz ptxdist-9435521885b8cacfc43e6d402fd11860ac6cd524.tar.xz |
ptxd_kconfig_sync_config: improve 'check' error message for package configs
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_kconfig.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_kconfig.sh b/scripts/lib/ptxd_lib_kconfig.sh index 4c7073c1a..2f9ec17ee 100644 --- a/scripts/lib/ptxd_lib_kconfig.sh +++ b/scripts/lib/ptxd_lib_kconfig.sh @@ -458,8 +458,13 @@ ptxd_kconfig_sync_config() { if ! cmp -s "${target_config}" "${base_config}"; then if [ -z "${PTXDIST_FORCE}" ]; then local p="${part%ptx}" + local all=" all layers" + if [ -n "${pkg_label}" ]; then + p="${pkg_label}" + all="" + fi ptxd_bailout "Outdated config for '$(ptxd_print_path "${PTXDIST_LAYERS[0]}")'" \ - "'oldconfig' changes the file. Run 'oldconfig${p:+ }${p}' to update all layers." + "'oldconfig' changes the file. Run 'oldconfig${p:+ }${p}' to update${all}." "Use --force to continue anyways." else ptxd_warning "Outdated config for '$(ptxd_print_path "${PTXDIST_LAYERS[0]}")'" \ |