From: Prarit Bhargava <prarit(a)redhat.com>
redhat/Makefile: Change dist-buildreq-check to a non-blocking target
Rename dist-buildreq-check to dist-get-buildreqs and make it non-blocking.
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
@@ -393,7 +393,7 @@ rh-configs: dist-rhel-configs
dist-configs-check: dist-configs-prep
+cd $(REDHAT)/configs; ./process_configs.sh $(PROCESS_CONFIGS_CHECK_OPTS) ""
""
-dist-configs-prep: dist-clean-configs dist-buildreq-check
+dist-configs-prep: dist-clean-configs
+cd $(REDHAT)/configs; ./build_configs.sh "partial" "snip"
+cd $(REDHAT)/configs; ./build_configs.sh "$(PACKAGE_NAME)"
"$(FLAVOR)"
@@ -450,15 +450,14 @@ dist-git-version-check:
exit 1; \
fi
-dist-buildreq-check: setup-source
+dist-get-buildreqs: setup-source
@PKGLIST="rpm-build $$(rpmspec -q --buildrequires $(SOURCES)/$(SPECFILE) | cut -d
' ' -f 1)"; \
MISSING=""; \
for pkg in $$PKGLIST; do \
rpm -q --whatprovides $$pkg >/dev/null || MISSING="$$MISSING $$pkg"; \
done; \
if [ -n "$$MISSING" ]; then \
- echo "Error: please install $$MISSING"; \
- exit 1; \
+ echo " Missing dependencies: $$MISSING"; \
fi
setup-source: dist-git-version-check dist-clean-sources
@@ -803,7 +802,8 @@ dist-full-help:
@echo ''
@echo 'Misc targets:'
- @echo ' dist-buildreq-check - Checks for presence of packages required for
build'
+ @echo ' dist-get-buildreqs - returns list of packages listed as build
requirements'
+ @echo ' for this kernel'
@echo ' dist-get-latest - Returns the latest "known good" kernel from
brew. This'
@echo ' should not be confused with the latest top-of-tree'
@echo ' development tag.'
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1900