summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2020-07-23 21:07:06 -0700
committerCommit Bot <commit-bot@chromium.org>2020-07-24 08:11:19 +0000
commit623a6f4730414586a376faa7cc16aa239590f3c2 (patch)
treeb0400684ab23804391576869526142a2a2e4cd0c
parent38e8bc916f6efe9107607e9775fb42f871eae5e0 (diff)
downloadchrome-ec-623a6f4730414586a376faa7cc16aa239590f3c2.tar.gz
g build.mk: fix awk program bug
The recent modification of chip/g/build.mk introduced a bug where an awk script error is reported if the board name does not contain an underscore. It went unnoticed because it does not prevent make from reporting success and most boards do not care about the results of running of this awk script. This patch fixes the problem. BUG=none TEST=ran make for cr50 and hslt_d2c, observed proper modification of the manifest, verified that no script errors are reported any more. Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Change-Id: I0981411ec7bc17e4473d4b33125f76b75983d974 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317059 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
-rw-r--r--chip/g/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk
index f4d71a3df3..f1ec4cc03f 100644
--- a/chip/g/build.mk
+++ b/chip/g/build.mk
@@ -215,7 +215,7 @@ HEX_NAME := $(shell printf "$(BOARD)" | /usr/bin/awk -F_ ' \
{if (NF == 2) \
{ printf($$1" "toupper($$2)) } \
else \
- { printf } \
+ { printf($$0) } \
}' | xxd -ps)
# This many zeros in the tag field need to be replaced.
HEX_LEN := $(shell printf $(HEX_NAME) | wc -c)