From: Jarod Wilson on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3870#note_2557467627
Throw this into the mix, and we can warn about oddballs like me:
```diff
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index 6a50c30a4b244..4207fd569793d 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -1896,6 +1896,13 @@ exit 1
%endif
%endif
+%if %{with_automotive}
+%if 0%{?fedora}
+%{log_msg "Cannot build automotive with a fedora baseline, must be
rhel/centos/eln"}
+exit 1
+%endif
+%endif
+
# more sanity checking; do it quietly
if [ "%{patches}" != "%%{patches}" ] ; then
for patch in %{patches} ; do
```
Then, for good measure, we should make it so that changes to
kernel.spec.template actually reliably propagate over to kernel-
automotive.spec.template without having to manually delete the auto spec every
time:
```diff
diff --git i/redhat/Makefile w/redhat/Makefile
index e725009da1887..a8a055bd95b5b 100644
--- i/redhat/Makefile
+++ w/redhat/Makefile
@@ -715,10 +715,8 @@ dist-get-buildreqs: setup-source
# recipes may be ordered before/in parallel with dist-clean-sources
# (prerequisite of setup-source), which would then delete their results.
setup-source: dist-clean-sources dist-git-version-check
- @if [ ! -e $(REDHAT)/$(SPECFILE).template ]; then \
- echo "Creating $(REDHAT)/$(SPECFILE).template as a copy of
$(REDHAT)/kernel.spec.template"; \
- cp $(REDHAT)/kernel.spec.template
$(REDHAT)/$(SPECFILE).template; \
- fi
+ @echo "Creating $(REDHAT)/$(SPECFILE).template as a copy of
$(REDHAT)/kernel.spec.template";
+ @cp $(REDHAT)/kernel.spec.template $(REDHAT)/$(SPECFILE).template;
@cp $(REDHAT)/$(SPECFILE).template $(SOURCES)/$(SPECFILE)
@if [ ! -e $(REDHAT)/$(SPECCHANGELOG) ]; then \
echo "Creating an empty $(SPECCHANGELOG) since it does not
exist yet"; \
```
--
_______________________________________________
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