Add the ECLAIR calls for the zephyr cmake environment to call ECLAIR while the firmware is build by replacing the actual compiler call and setup the eclair environment and call the compiler through the eclair. The Integration accepts a kconfig file for configuring the analysis and the generation of the reports. The path of the kconfig file should be provided via the variable ECLAIR_CONFIG. db_generation.ecl has be created and introduced instead of reports.ecl because the report generation is handled by the sca.cmake directly. Signed-off-by: Simon Hein <Shein@baumer.com>
12 lines
282 B
Prolog
12 lines
282 B
Prolog
-setq=data_dir,getenv("ECLAIR_DATA_DIR")
|
|
-setq=set,getenv("ECLAIR_RULESET")
|
|
|
|
-enable=B.REPORT.ECB
|
|
-config=B.REPORT.ECB,output=join_paths(data_dir,"FRAME.@FRAME@.ecb")
|
|
-config=B.REPORT.ECB,preprocessed=show
|
|
-config=B.REPORT.ECB,macros=10
|
|
|
|
-enable=B.EXPLAIN
|
|
|
|
-eval_file=toolchain.ecl
|