[OS-BUILD PATCHv5 3/8] redhat/Makefile: add dist-automotive-configs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Scott Weaver <scweaver@xxxxxxxxxx>

redhat/Makefile: add dist-automotive-configs

This adds a target that generates only the automotive configs.
The dist-srpm-automotive target was updated to use this which is quicker
than generating all the configs (which are not needed by the automotive
build).

Signed-off-by: Scott Weaver <scweaver@xxxxxxxxxx>

diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -562,7 +562,7 @@ dist-configs-commit: dist-configs-prep
 dist-configs: ##configuration Create RHEL config files in redhat/config/.
 dist-configs: dist-configs-prep
 	+@cd $(REDHAT)/configs; ./generate_all_configs.sh 1;\
-	./process_configs.sh $(PROCESS_CONFIGS_OPTS) "$(SPECRPMVERSION)" ""
+	./process_configs.sh $(PROCESS_CONFIGS_OPTS) "$(SPECRPMVERSION)" "$(FLAVOR)"
 
 dist-fedora-configs: ##build build Fedora configs.
 dist-fedora-configs: FLAVOR = fedora
@@ -574,6 +574,17 @@ dist-rhel-configs: FLAVOR = rhel
 dist-rhel-configs: dist-configs
 rh-configs: dist-rhel-configs
 
+# although automotive is not a flavor we want to treat it like it has it's own config priority file
+automotive-configs-pre:
+	@cp $(REDHAT)/configs/priority.$(FLAVOR) $(REDHAT)/configs/priority.$(FLAVOR).bak
+	@sed -i '/^#\|^ORDER\|^\(x86_64\|aarch64\)-automotive/!d' $(REDHAT)/configs/priority.$(FLAVOR)
+automotive-configs-post:
+	@mv $(REDHAT)/configs/priority.$(FLAVOR).bak $(REDHAT)/configs/priority.$(FLAVOR)
+
+dist-automotive-configs: ##build build only the automotive configs
+dist-automotive-configs: FLAVOR = rhel
+dist-automotive-configs: automotive-configs-pre .WAIT dist-configs .WAIT automotive-configs-post
+
 dist-configs-check: dist-configs-prep
 	+cd $(REDHAT)/configs; ./process_configs.sh $(PROCESS_CONFIGS_CHECK_OPTS) "" ""
 
@@ -767,7 +778,8 @@ dist-srpm-automotive: INCLUDE_FEDORA_FILES := 0
 dist-srpm-automotive: INCLUDE_RHEL_FILES := 0
 dist-srpm-automotive: INCLUDE_RT_FILES := 0
 dist-srpm-automotive: INCLUDE_AUTOMOTIVE_FILES := 1
-dist-srpm-automotive: dist-srpm
+dist-srpm-automotive: FLAVOR := rhel
+dist-srpm-automotive: automotive-configs-pre .WAIT dist-srpm .WAIT automotive-configs-post
 	@rm -f $(REDHAT)/kernel-automotive*
 
 dist-rpms: ##build Create the binary RPMS for the kernel. See the dist-brew target for available options.

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3870

-- 
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux