Skip to content
Snippets Groups Projects
Commit 7ccb9f0c authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

add checkpatch tool

parent e2591ca3
Branches
Tags
1 merge request!23Small bug fixes
This diff is collapsed.
......@@ -4,3 +4,17 @@ test_runner_generator = generator(
output: ['@BASENAME@_Runner.c'],
arguments: ['@INPUT@', '@OUTPUT@']
)
# add checkpatch syntax-check target
checkpatch = find_program('checkpatch.pl', 'checkpatch', required : false)
if checkpatch.found()
checkpatch_args = [
'--no-tree', '-f',
'--show-types',
'--color=always',
'--ignore', 'SPDX_LICENSE_TAG,PREFER_DEFINED_ATTRIBUTE_MACRO,EMBEDDED_FILENAME,BLOCK_COMMENT_STYLE,EMBEDDED_FUNCTION_NAME',
]
run_target('syntax-check',
command : [checkpatch, checkpatch_args, main, cmplib_sources])
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment