presubmit: Add hook to check for config options.

This enables a presubmit hook to check for missing configuration
options. All CONFIG_* options should be defined in include/config.h
along with a brief description of what the config option does.

BUG=chrome-os-partner:26304
BRANCH=none
CQ-DEPEND=CL:281626
TEST=Create a commit modifying a source file with a new CONFIG_* option
and watched the preupload process fail illustrating the error with the
CONFIG_* option.
TEST=make -j buildall tests

Change-Id: I7240b386b4981dcab66811a4829d7d6ebfbf7cb1
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/281826
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Trybot-Ready: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
Aseda Aboagye
2015-06-25 09:36:10 -07:00
committed by ChromeOS Commit Bot
parent 4a56579f21
commit 9e73f3e031

View File

@@ -11,3 +11,4 @@ checkpatch_check: --no-tree --ignore=MSLEEP,VOLATILE
[Hook Scripts]
hook0 = util/presubmit_check.sh 2>&1
hook1 = util/config_option_check.py 2>&1