doc: fixed checkpatch instructions

Change-Id: I3f09e5160506784813712309269aa81e0436fb44
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-06-26 10:20:26 -04:00
commit 6ec03ce9d6

View file

@ -30,12 +30,15 @@ check the conformity to the coding style. The tool is available in the
scripts directory. To invoke :program:`checkpatch` when you commit scripts directory. To invoke :program:`checkpatch` when you commit
code, edit your :file:`.git/hooks/pre-commit` file to contain: code, edit your :file:`.git/hooks/pre-commit` file to contain:
.. code-block::bash .. code-block:: bash
#!/bin/sh #!/bin/sh
set -e exec set -e exec
git diff --cached | /path/to/checkpatch.pl --no-signoff - || true exec git diff --cached | ${ZEPHYR_BASE}/scripts/checkpatch.pl --mailback --no-tree \
--no-signoff --emacs --summary-file --show-types \
--ignore BRACES,PRINTK_WITHOUT_KERN_LEVEL,SPLIT_STRING \
--max-line-length=100 - || true
.. _Linux kernel coding style: https://www.kernel.org/doc/Documentation/CodingStyle .. _Linux kernel coding style: https://www.kernel.org/doc/Documentation/CodingStyle