summaryrefslogtreecommitdiff
path: root/zephyr/zmake/zmake/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/zmake/zmake/__main__.py')
-rw-r--r--zephyr/zmake/zmake/__main__.py46
1 files changed, 35 insertions, 11 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py
index 23be20d54f..cc3b1708be 100644
--- a/zephyr/zmake/zmake/__main__.py
+++ b/zephyr/zmake/zmake/__main__.py
@@ -1,4 +1,4 @@
-# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -204,9 +204,11 @@ def get_argparser():
help="Optional directory to search for BUILD.py files in.",
)
+ # TODO(b/b/242563072): Remove stub support for test and testall entirely after users have gotten
+ # used to twister.
test = sub.add_parser(
"test",
- help="Configure, build and run tests on specified projects",
+ help="Configure, build and run tests on specified projects; DEPRECATED",
)
test.add_argument(
"--no-rebuild",
@@ -217,7 +219,7 @@ def get_argparser():
testall = sub.add_parser(
"testall",
- help="Alias for test --all",
+ help="Alias for test --all; DEPRECATED",
)
testall.add_argument(
"--clobber",
@@ -225,7 +227,15 @@ def get_argparser():
dest="clobber",
help="Delete existing build directories, even if configuration is unchanged",
)
- testall.add_argument("-B", "--build-dir", type=pathlib.Path, help="Build directory")
+ testall.add_argument(
+ "-B", "--build-dir", type=pathlib.Path, help="Build directory"
+ )
+ testall.add_argument(
+ "--static",
+ action="store_true",
+ dest="static_version",
+ help="Generate static version information for reproducible builds",
+ )
generate_readme = sub.add_parser(
"generate-readme",
@@ -251,7 +261,9 @@ def get_argparser():
def add_common_configure_args(sub_parser: argparse.ArgumentParser):
"""Adds common arguments used by configure-like subcommands."""
- sub_parser.add_argument("-t", "--toolchain", help="Name of toolchain to use")
+ sub_parser.add_argument(
+ "-t", "--toolchain", help="Name of toolchain to use"
+ )
sub_parser.add_argument(
"--bringup",
action="store_true",
@@ -265,6 +277,18 @@ def add_common_configure_args(sub_parser: argparse.ArgumentParser):
help="Delete existing build directories, even if configuration is unchanged",
)
sub_parser.add_argument(
+ "--static",
+ action="store_true",
+ dest="static_version",
+ help="Generate static version information for reproducible builds",
+ )
+ sub_parser.add_argument(
+ "--save-temps",
+ action="store_true",
+ dest="save_temps",
+ help="Save the temporary files containing preprocessor output",
+ )
+ sub_parser.add_argument(
"--allow-warnings",
action="store_true",
default=False,
@@ -288,6 +312,12 @@ def add_common_configure_args(sub_parser: argparse.ArgumentParser):
"--extra-cflags",
help="Additional CFLAGS to use for target builds",
)
+ sub_parser.add_argument(
+ "--delete-intermediates",
+ action="store_true",
+ dest="delete_intermediates",
+ help="Delete intermediate files to save disk space",
+ )
group = sub_parser.add_mutually_exclusive_group(required=True)
group.add_argument(
"-a",
@@ -297,12 +327,6 @@ def add_common_configure_args(sub_parser: argparse.ArgumentParser):
help="Select all projects",
)
group.add_argument(
- "--host-tests-only",
- action="store_true",
- dest="host_tests_only",
- help="Select all test projects",
- )
- group.add_argument(
"project_names",
nargs="*",
metavar="project_name",