From: Ondrej Mosnacek <[email protected]>

redhat/Makefile: deduplicate code for KABI tarball creation

The `sources-rh` target duplicates the code to create $(KABI_TARBALL)
and $(KABIDW_TARBALL). Replace the duplicate code by simply depending on
the corresponding tarball targets.

Signed-off-by: Ondrej Mosnacek <[email protected]>

diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -668,7 +668,7 @@ generate-testpatch-tmp:
                ":(exclude,top)Makefile.rhelver" \
                ":(exclude,top)redhat" > $(TESTPATCH).tmp
 
-sources-rh: $(TARBALL) generate-testpatch-tmp setup-source dist-configs-check
+sources-rh: $(TARBALL) $(KABI_TARBALL) $(KABIDW_TARBALL) 
generate-testpatch-tmp setup-source dist-configs-check
        @cp -l $(TARBALL) $(SOURCES)/ || cp $(TARBALL) $(SOURCES)/
        @touch $(TESTPATCH)
        @diff $(TESTPATCH).tmp $(TESTPATCH) > /dev/null || \
@@ -711,11 +711,6 @@ sources-rh: $(TARBALL) generate-testpatch-tmp setup-source 
dist-configs-check
                cp kabi/Module.kabi_$$KABIARCH $(SOURCES)/; \
                cp kabi/Module.kabi_dup_$$KABIARCH $(SOURCES)/; \
        done
-       @(cd kabi && tar -cJf $(KABI_TARBALL) kabi-rhel$(RHEL_MAJOR)* 
kabi-current)
-       @if [ ! -d $(KABIDW)/base ]; then \
-               mkdir -p $(KABIDW)/base; \
-       fi
-       @(cd kabi-dwarf && tar -cJf $(KABIDW_TARBALL) base run_kabi-dw.sh)
 
 dist-sources: dist-kabi dist-kabi-dup sources-rh
 

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2892
--
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to