From: Prarit Bhargava <prarit(a)redhat.com>
redhat/Makefile: Use flavors file
Use the configs/flavors file instead of hardcoding directory copies.
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
@@ -254,8 +254,7 @@ sources-rh: $(TARBALL) generate-testpatch-tmp setup-source
dist-configs-check
echo "WARNING: There are uncommitted changes in your tree or the changes are not
in sync with linux-kernel-test.patch. Either commit the changes or run 'make
dist-test-patch'"
@rm $(TESTPATCH).tmp
@cp $(TESTPATCH) $(SOURCES)/linux-kernel-test.patch
- @cp fedora_files/* $(SOURCES);
- @cp rhel_files/* $(SOURCES);
+ @cat configs/flavors | while read flavor; do echo "Copying sources for
$${flavor}"; [ -e $${flavor}_files ] && cp $${flavor}_files/* $(SOURCES);
done
@cp cpupower.* \
keys/rhel*.x509 \
kabi/check-kabi \
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1413