Hi!
I am trying to set up automatic external linting as part of a CI pipeline, using PClint plus, that will run post build.
To do this i need to produce a lnt file that has paths to all the files, the variable sizes, definitions etc.
Using the external tools configuration for linting, as described here: studio.segger.com/index.htm?ht…nal_tools_file_format.htm, the below macros are expanded, which produce all the information i need. These are the default macros for linting, and the linter works inside SES.
-v -incvar(__CW_ARM) -i$(LINTDIR)/lnt co-gcc.lnt $(DEFINES) $(INCLUDES) -D__GNUC__ -u -b +macros +macros -w2 -e537 +fie +ffn -width(0,4) -hF1 "-format=%f:%l:%C:\s%t:\s%m [-e%n]" "$(InputPath)"
However, when i run a python script as part of a pre or post build command, these macros are not expanded.
This python script (dump_parameters.py) saves all the parameters fed into it as a text file so i can see what the arguments being passed into the program are. Attached is a side-by-side comparison of the output of the same scripts called from the external tools XML command (LEFT) and the pre-build command (RIGHT). The XML command expands the macros but the pre-build command doesn't.
What am i doing wrong? Thanks!
I am trying to set up automatic external linting as part of a CI pipeline, using PClint plus, that will run post build.
To do this i need to produce a lnt file that has paths to all the files, the variable sizes, definitions etc.
Using the external tools configuration for linting, as described here: studio.segger.com/index.htm?ht…nal_tools_file_format.htm, the below macros are expanded, which produce all the information i need. These are the default macros for linting, and the linter works inside SES.
-v -incvar(__CW_ARM) -i$(LINTDIR)/lnt co-gcc.lnt $(DEFINES) $(INCLUDES) -D__GNUC__ -u -b +macros +macros -w2 -e537 +fie +ffn -width(0,4) -hF1 "-format=%f:%l:%C:\s%t:\s%m [-e%n]" "$(InputPath)"
However, when i run a python script as part of a pre or post build command, these macros are not expanded.
This python script (dump_parameters.py) saves all the parameters fed into it as a text file so i can see what the arguments being passed into the program are. Attached is a side-by-side comparison of the output of the same scripts called from the external tools XML command (LEFT) and the pre-build command (RIGHT). The XML command expands the macros but the pre-build command doesn't.
What am i doing wrong? Thanks!