]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(Makefile): filter out s390 specific dracut modules
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 15 Aug 2025 11:31:20 +0000 (07:31 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 13 Sep 2025 11:34:09 +0000 (07:34 -0400)
This commit filters out s390 specific dracut modules, so that they
only get packaged for s390 specific packages.

This commit would allow sharing the list of s390 specific dracut modules
between distributions upstream.

Makefile

index 69b5bc647ec75dfa188a9edbc55f46e676078471..933f7d6a6a116d69ab4edc50bb41e0ae1930df5e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ mandir ?= ${prefix}/share/man
 CFLAGS ?= -O2 -g -Wall -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
 bashcompletiondir ?= ${datadir}/bash-completion/completions
 pkgconfigdatadir ?= $(datadir)/pkgconfig
+ARCH ?= $(shell uname -m)
 
 configs = \
        fips/10-fips.conf \
@@ -280,9 +281,14 @@ endif
                rm -rf $(DESTDIR)$(pkglibdir)/test/TEST-[0-9][0-9]-*SYSTEMD* ;\
                rm -rf $(DESTDIR)$(pkglibdir)/modules.d/*systemd* $(DESTDIR)$(mandir)/*.service.* ; \
                for i in bluetooth connman dbus* fido2 lvmmerge lvmthinpool-monitor memstrack pcsc pkcs11 rngd squash* tpm2-tss; do \
-                       rm -rf $(DESTDIR)$(pkglibdir)/modules.d/[0-9][0-9]$${i}; \
+                       rm -r $(DESTDIR)$(pkglibdir)/modules.d/[0-9][0-9]$${i}; \
                done \
        fi
+ifeq ($(ARCH),s390x)
+       for f in cio_ignore cms dasd dasd_mod dcssblk zfcp zipl znet; do \
+               rm -r $(DESTDIR)$(pkglibdir)/modules.d/[0-9][0-9]$${i}; \
+       done
+endif
 
 clean:
        $(RM) *~