From: Prarit Bhargava <prarit(a)redhat.com>
redhat/scripts/create-tarball.sh: Use Makefile TARBALL variable
Use the Makefile TARBALL variable instead of passing it as an argument.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -366,9 +366,9 @@ dist-stub-key:
.PHONY: $(TARBALL)
$(TARBALL):
@if [ $(SINGLE_TARBALL) -eq 1 ]; then \
- scripts/create-tarball.sh $(GITID) $(TARBALL) linux-$(KVERSION)-$(PKGRELEASE); \
+ scripts/create-tarball.sh $(GITID) linux-$(KVERSION)-$(PKGRELEASE); \
else \
- scripts/create-tarball.sh $(MARKER) $(TARBALL) linux-$(TARFILE_RELEASE); \
+ scripts/create-tarball.sh $(MARKER) linux-$(TARFILE_RELEASE); \
fi
.PHONY: $(KABI_TARBALL)
diff --git a/redhat/scripts/create-tarball.sh b/redhat/scripts/create-tarball.sh
index blahblah..blahblah 100755
--- a/redhat/scripts/create-tarball.sh
+++ b/redhat/scripts/create-tarball.sh
@@ -1,8 +1,7 @@
#!/bin/sh
GITID=$1
-TARBALL=$2
-DIR=$3
+DIR=$2
# shellcheck disable=SC1083
XZ_THREADS=$(rpm --eval %{_smp_mflags} | sed -e 's!^-j!--threads !')
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1641