Open CI Scripts: Feature Update
* build_helper: Added --install argument to execute cmake install
* build_helper: Added the capability to parse axf files for
code/data/bss sizes and capture it to report
* build_helper: Added --relative-paths to calculate paths relative
to the root of the workspace
* build_helper_configs: Full restructure of config modules.
Extra build commands and expected artefacts can be defined per
platform basis
* Checkpatch: Added directive to ignore --ignore SPDX_LICENSE_TAG
and added the capability to run only on files changed in patch.
* CppCheck adjusted suppression directories for new external
libraries and code-base restructure
* Added fastmodel dispatcher. It will wrap around fastmodels
and test against a dynamically defined test_map. Fed with an
input of the build summary fastmodel dispatcher will detect
builds which have tests in the map and run them.
* Added Fastmodel configs for AN519 and AN521 platforms
* lava_helper. Added arguments for --override-jenkins-job/
--override-jenkins-url
* Adjusted JINJA2 template to include build number and
enable the overrides.
* Adjusted lava helper configs to support dual platform firmware
and added CoreIPC config
* Added report parser module to create/read/evaluate and
modify reports. Bash scripts for cppcheck checkpatch summaries
have been removed.
* Adjusted run_cppcheck/run_checkpatch for new project libraries,
new codebase structure and other tweaks.
* Restructured build manager, decoupling it from the tf-m
cmake requirements. Build manager can now dynamically build a
configuration from combination of parameters or can just execute
an array of build commands. Hardcoded tf-m assumptions have been
removed and moved into the configuration space.
* Build system can now produce MUSCA_A/ MUSCA_B1 binaries as well
as intel HEX files.
* Updated the utilities snippet collection in the tfm-ci-pylib.
Change-Id: Ifad7676e1cd47e3418e851b56dbb71963d85cd88
Signed-off-by: Minos Galanakis <minos.galanakis@linaro.org>
diff --git a/run-checkpatch.sh b/run-checkpatch.sh
index 60c3be9..0bb78a4 100755
--- a/run-checkpatch.sh
+++ b/run-checkpatch.sh
@@ -24,7 +24,7 @@
##
#This is needed for Doxygen for now.
#!string SKIP_PATHS;
-SKIP_PATHS='./build-\*:./test/\*:./platform/\*:*/tz_\*'
+SKIP_PATHS='./build-\*:./test/\*:./platform/\*:*/tz_\*:./lib/ext/qcbor/\*:./platform/ext/\*:./bl2/ext/\*'
##@var TFM_DIRECTORY_NAME
##@brief Default path to tf-m source code.
@@ -201,13 +201,17 @@
#list of files. This is needed to avoid GIT_CMD to break the argument
#list length.
CARE_LIST=$(eval $FIND_CMD | grep "$(git diff $BASE_COMMIT --name-only)" -)
- GIT_CMD="git diff $BASE_COMMIT -- $CARE_LIST"
- echo "Checking commits: $(git log "$BASE_COMMIT"..HEAD --format=%h | tr $"\n" " ")"
+ if [ ! -z "$CARE_LIST" ]; then
+ # Only run checkpatch if there are files to check
+ GIT_CMD="git diff $BASE_COMMIT -- $CARE_LIST"
+ echo "$GIT_CMD"
+ echo "Checking commits: $(git log "$BASE_COMMIT"..HEAD --format=%h | tr $"\n" " ")"
- #Modify checkpatch parameters to give more details when working on
- #diff:s
- CHECKPATCH_CMD="$CHECKPATCH_CMD --showfile -"
+ #Modify checkpatch parameters to give more details when working on
+ #diff:s
+ CHECKPATCH_CMD="$CHECKPATCH_CMD --showfile -"
+ fi
if [ $VERBOSE -eq 1 ]; then
$GIT_CMD | $CHECKPATCH_CMD | tee -a "$OUTPUT_FILE_PATH"