diff options
Diffstat (limited to 'zephyr/zmake/zmake/__main__.py')
-rw-r--r-- | zephyr/zmake/zmake/__main__.py | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py index 99b69747ea..7b79fb23e6 100644 --- a/zephyr/zmake/zmake/__main__.py +++ b/zephyr/zmake/zmake/__main__.py @@ -205,6 +205,24 @@ def get_argparser(): action="store_true", help="Keep temporary build directories on exit", ) + compare_builds.add_argument( + "-n", + "--compare-configs", + action="store_true", + help="Compare configs of build outputs", + ) + compare_builds.add_argument( + "-b", + "--compare-binaries-disable", + action="store_true", + help="Don't compare binaries of build outputs", + ) + compare_builds.add_argument( + "-d", + "--compare-devicetrees", + action="store_true", + help="Compare devicetrees of build outputs", + ) add_common_build_args(compare_builds) list_projects = sub.add_parser( @@ -410,8 +428,15 @@ def main(argv=None): return result or wait_rv finally: multiproc.LogWriter.wait_for_log_end() + for file, failed_projects in zmake.cmp_failed_projects.items(): + if failed_projects: + logging.error( + "Failed projects by diff in %s: %s", + file, + ", ".join(failed_projects), + ) if zmake.failed_projects: - logging.error("Failed projects: %s", zmake.failed_projects) + logging.error("All failed projects: %s", zmake.failed_projects) if __name__ == "__main__": |