diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2019-04-08 14:52:34 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-26 00:17:31 -0700 |
commit | 5c931074f53de0bcac655d60e5867b3eb0959864 (patch) | |
tree | 2acb81ac19cad47cbd174ec8eb39789035951ecf /PRESUBMIT.cfg | |
parent | d3ce30103e55fb8296259bd7d22f7d8c8d8e7a0c (diff) | |
download | chrome-ec-5c931074f53de0bcac655d60e5867b3eb0959864.tar.gz |
util: Add tool to generate cros_ec_commands.h
Add a rule to generate a new cros_ec_commands.h when ec_commands.h is
modified. The rule is checked when buildall is invoked.
At Presubmit stage, check a cros_ec_commands.h exists if ec_commands.h
is modified.
The CL author is responsible to upstream that file.
BUG=chromium:945948
BRANCH=none
Cq-Depend: chromium:1558853
TEST=Check manually cros_ec_commands.h is generated with
make build_cros_ec_commands
Check no bread crumbs are left-over when the rule fails.
Check checkpatch triggers when it finds an invalid syntax in the output
file.
Check ../../repohooks/pre-upload.py returns a meaningful error when
cros_ec_commands.h file is not present.
Change-Id: Ibc8ed7165914d39b5f0bd41643932a8514768925
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1559380
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Diffstat (limited to 'PRESUBMIT.cfg')
-rw-r--r-- | PRESUBMIT.cfg | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/PRESUBMIT.cfg b/PRESUBMIT.cfg index 466f6d1f8f..a771268875 100644 --- a/PRESUBMIT.cfg +++ b/PRESUBMIT.cfg @@ -12,6 +12,7 @@ checkpatch_check: --no-tree --ignore=MSLEEP,VOLATILE,SPDX_LICENSE_TAG kerneldoc_check: --include_regex=\bec_commands\.h$ [Hook Scripts] -presubmit_check = util/presubmit_check.sh 2>&1 -config_option_check = util/config_option_check.py 2>&1 -host_command_check = util/host_command_check.sh 2>&1 +presubmit_check = util/presubmit_check.sh +config_option_check = util/config_option_check.py +host_command_check = util/host_command_check.sh +ec_commands_h = util/linux_ec_commands_h_check.sh |