diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-08-15 10:23:32 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-08-15 10:26:49 +0200 |
commit | ea471349bfe6f6a95877947db18f72c4cf693630 (patch) | |
tree | f9ebbb17b997bbcb57a4509da56ba7feff23565b /Misc | |
parent | 62bdf888459a6d2ae50d2d2d00447307e0190a97 (diff) |
build: Add build flag to enable sparse checking of C source files
Similar to the 'make C=1' for the Linux kernel, wire up the sparse
command for our build system in a similar fashion. Use 'make C=1 [tool]'
to check the source files using sparse. Of course, the sparse tool needs
to be installed and available in your $PATH for this to work.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -114,4 +114,5 @@ help: $(Q)echo " CPPFLAGS=\"-I <path> ...\" - Additional CFLAGS for compilation" $(Q)echo " LDFLAGS=\"-L <path> ...\" - Additional LDFLAGS for compilation" $(Q)echo " CCACHE= - Do not use ccache for compilation" + $(Q)echo " C=1 - Check all C source files with sparse" $(Q)echo " Q= - Show verbose garbage" |