UBUNTU: [Packaging] checks/retpoline-check: Make 'skipretpoline' argument optional

Make the 'skipretpoline' argument optional and also more robust to match
the other checker scripts.

While at it, drop the invalid/unused 5th argument from the call site in
the rules file.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
Juerg Haefliger
2023-01-09 15:37:58 +01:00
committed by Paolo Pisati
parent 07fa07aa49
commit 9532b18cac
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ module-signature-check-%: $(stampdir)/stamp-install-%
retpoline-check-%: $(stampdir)/stamp-install-%
@echo Debug: $@
$(DROOT)/scripts/checks/retpoline-check "$*" \
"$(prev_abidir)" "$(abidir)" "$(skip_checks)" "$(builddir)/build-$*"
"$(prev_abidir)" "$(abidir)" $(skip_checks)
checks-%: module-check-% module-signature-check-% abi-check-% retpoline-check-%
@echo Debug: $@
+6 -1
View File
@@ -3,7 +3,12 @@
flavour="$1"
prev_abidir="$2"
curr_abidir="$3"
skipretpoline="$4"
skipretpoline=${4:-}
case "${skipretpoline,,}" in
1|true|yes) skipretpoline=true ;;
*) skipretpoline=false ;;
esac
echo "II: Checking retpoline indirections for $flavour...";