eclair/utils.sh: Extend eclair_make_delta_report()

Ported from TF-A impl.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I423d685bed52679a3608bc31759c3acb0d457c4e
diff --git a/eclair/utils.sh b/eclair/utils.sh
index 99481e6..783faef 100644
--- a/eclair/utils.sh
+++ b/eclair/utils.sh
@@ -83,8 +83,20 @@
 }
 
 eclair_make_delta_report() {
-    dir1=$1
-    dir2=$2
+    base_dir=$1
+    target_dir=$2
+
     diff -I '^Timestamp:' -x frames.txt -x files.txt -x explain.txt \
-        -ur ${WORKSPACE}/$dir1/summary_txt/ ${WORKSPACE}/$dir2/summary_txt/ > ${WORKSPACE}/$dir2/summary_txt.diff || true
+        -ur ${WORKSPACE}/${base_dir}/summary_txt/ ${WORKSPACE}/${target_dir}/summary_txt/ > ${WORKSPACE}/${target_dir}/summary_txt.diff || true
+
+    ${ECLAIR_BIN_DIR}/eclair_report -diff_criteria=fingerprint -diff_full_txt=${base_dir}/out/PROJECT.ecd,${target_dir}/out/PROJECT.ecd
+    ls -l diff_output
+
+    ${ECLAIR_BIN_DIR}/eclair_report -db=${base_dir}/out/PROJECT.ecd -sel_tag_glob=new,diff,missing -full_html=resolved_issues_html
+    eclair_make_report_self_contained resolved_issues_html
+
+    ${ECLAIR_BIN_DIR}/eclair_report -db=${target_dir}/out/PROJECT.ecd -sel_tag_glob=new,diff,missing -full_html=new_issues_html
+    eclair_make_report_self_contained new_issues_html
+
+    xz ${base_dir}/out/PROJECT.ecd ${target_dir}/out/PROJECT.ecd
 }