diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-03-18 11:30:35 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-18 18:57:53 +0000 |
commit | 3e5f6ae7b9c783493736bda9d11ddc01f4c5bfac (patch) | |
tree | 2edea1ab7ef6d4e9a0754e25c69db3e4a5652eef | |
parent | e22b9549942221ffea131e0358d5d71628ea3ff2 (diff) | |
download | chrome-ec-3e5f6ae7b9c783493736bda9d11ddc01f4c5bfac.tar.gz |
zephyr: zmake: Add warnings about deprecated flags
Hopefully we can get people to stop using these flags as we want to
remove them.
Let this land for a week or so then we can rip the band-aid.
BUG=b:225379781
BRANCH=none
TEST="zmake configure -b lazor" -> see warning
"zmake configure --test test-drivers" -> see warning
"zmake test test-drivers" -> no warning
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ia6e33f438237a5541cacb51b2479d8554197dbac
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3536609
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | zephyr/zmake/zmake/__main__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py index c438560a3e..c5f725a7a5 100644 --- a/zephyr/zmake/zmake/__main__.py +++ b/zephyr/zmake/zmake/__main__.py @@ -353,6 +353,15 @@ def main(argv=None): logging.basicConfig(format=log_format, level=opts.log_level) + if opts.subcommand == "configure" and opts.build_after_configure: + logging.warning( + '"zmake configure -b/--build" is deprecated. Run "zmake build" instead.' + ) + if opts.subcommand == "configure" and opts.test_after_configure: + logging.warning( + '"zmake configure --test" is deprecated. Run "zmake test" instead.' + ) + try: zmake = call_with_namespace(zm.Zmake, opts) subcommand_method = getattr(zmake, opts.subcommand.replace("-", "_")) |