diff options
author | Brian Norris <briannorris@chromium.org> | 2022-09-02 13:40:17 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-02 21:23:06 +0000 |
commit | af5a3f99166f5c395c14add96af0bc13516946c9 (patch) | |
tree | 087872850e420b73116f8d856a2c46aeb8604bf6 | |
parent | 9f0ed15c133c1ee33de032da69ba045fdbae9516 (diff) | |
download | chrome-ec-af5a3f99166f5c395c14add96af0bc13516946c9.tar.gz |
ec: Fix DEBUG "variable" in usb_updater Makefile
DEBUG is not the way to refer to a variable in a Makefile expression;
$(DEBUG) is.
Also, imitate the =1 check from extra/rma_reset/Makefile.
BUG=none
TEST=build
Change-Id: Ic71be497ca83041dfdedf63c10e7c74b38c05bc8
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3872547
Commit-Queue: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
-rw-r--r-- | extra/usb_updater/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/usb_updater/Makefile b/extra/usb_updater/Makefile index 04adfff4dd..f1ec4f8b0e 100644 --- a/extra/usb_updater/Makefile +++ b/extra/usb_updater/Makefile @@ -19,10 +19,10 @@ CFLAGS := -std=gnu99 \ -Wredundant-decls \ -Wmissing-declarations -ifeq (DEBUG,) -CFLAGS += -O3 -else +ifeq ($(DEBUG),1) CFLAGS += -O0 +else +CFLAGS += -O3 endif # |