mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 15:28:50 +00:00
scripts/gen_compile_commands.py: adapt _LINE_PATTERN
For U-Boot's context, the regular expression defined by _LINE_PATTERN should be adapted. Replace 'savedcmd' by 'cmd'. Signed-off-by: Joao Marcos Costa <jmcosta944@gmail.com> Tested-by: Joao Paulo Goncalves <joao.goncalves@toradex.com>
This commit is contained in:
parent
c852f2e74c
commit
97fbb2eb01
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ _DEFAULT_OUTPUT = 'compile_commands.json'
|
||||||
_DEFAULT_LOG_LEVEL = 'WARNING'
|
_DEFAULT_LOG_LEVEL = 'WARNING'
|
||||||
|
|
||||||
_FILENAME_PATTERN = r'^\..*\.cmd$'
|
_FILENAME_PATTERN = r'^\..*\.cmd$'
|
||||||
_LINE_PATTERN = r'^savedcmd_[^ ]*\.o := (.* )([^ ]*\.c) *(;|$)'
|
_LINE_PATTERN = r'^cmd_[^ ]*\.o := (.* )([^ ]*\.c) *(;|$)'
|
||||||
_VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
|
_VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
|
||||||
# The tools/ directory adopts a different build system, and produces .cmd
|
# The tools/ directory adopts a different build system, and produces .cmd
|
||||||
# files in a different format. Do not support it.
|
# files in a different format. Do not support it.
|
||||||
|
|
Loading…
Add table
Reference in a new issue