drm_hwcomposer: CI: Use bpfmt to check Android.bp files style
Fix available errors by executing:
$ find -name "*.bp" -exec bpfmt -d -s -w {} \;
Suggested-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
diff --git a/.ci/.gitlab-ci-checkcommit.sh b/.ci/.gitlab-ci-checkcommit.sh
index 314238f..817afa7 100755
--- a/.ci/.gitlab-ci-checkcommit.sh
+++ b/.ci/.gitlab-ci-checkcommit.sh
@@ -55,4 +55,10 @@
cat /tmp/format-fixup.patch >&2
exit 1
fi
+
+ find -name "*.bp" -exec bpfmt -d -s {} \; > /tmp/bpfmt.patch
+ if [ -s /tmp/bpfmt.patch ]; then
+ cat /tmp/bpfmt.patch >&2
+ exit 1
+ fi
done