kdevops.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] workflows/linux: Add a new make subcommand linux-no-clone
@ 2023-08-25 18:43 fan.ni
  0 siblings, 0 replies; only message in thread
From: fan.ni @ 2023-08-25 18:43 UTC (permalink / raw)
  To: mcgrof; +Cc: nmtadam.samsung, fan.ni, kdevops, jlayton, Fan Ni

From: Fan Ni <fan.ni@gmx.us>

While the "make linux" command will always git clone linux git tree and overwrite
any local changes before building and installing, and "make
linux-deploy" can skip the git clone step but it will fail if the target
install directory does not exist on the guest when installing. The new
command added does the same things as "make linux" but avoids the git
clone step. Also it will create the target install directory and do 9p
mount so further linux modules install can pass.

Signed-off-by: Fan Ni <fan.ni@samsung.com>
---
 workflows/linux/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/workflows/linux/Makefile b/workflows/linux/Makefile
index c8317007..e994ccee 100644
--- a/workflows/linux/Makefile
+++ b/workflows/linux/Makefile
@@ -53,6 +53,7 @@ linux-help-menu:
 	@echo "Linux git kernel development options"
 	@echo "linux              - Git clones a linux git tree, build Linux, installs and reboots into it"
 	@echo "linux-deploy       - Builds, installs, updates GRUB and reboots - useful for rapid development"
+	@echo "linux-no-clone     - Same as 'linux' but without clone git tree, compared to 'linux-deploy', it will create the data path on the guest and mount linux git directory"
 	@echo "linux-install      - Only builds and installs Linux"
 	@echo "linux-clone        - Only clones Linux"
 	@echo "linux-grub-setup   - Ensures the appropriate target kernel is set to boot"
@@ -74,6 +75,13 @@ linux: $(KDEVOPS_NODES)
 		$(KDEVOPS_HOSTFILE) $(KDEVOPS_PLAYBOOKS_DIR)/bootlinux.yml \
 		--extra-vars="$(BOOTLINUX_ARGS)" $(LIMIT_HOSTS)

+PHONY += linux-no-clone
+linux-no-clone: $(KDEVOPS_NODES)
+	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -i \
+		$(KDEVOPS_HOSTFILE) $(KDEVOPS_PLAYBOOKS_DIR)/bootlinux.yml \
+		--skip-tags git \
+		--extra-vars="$(BOOTLINUX_ARGS)" $(LIMIT_HOSTS)
+
 PHONY += linux-deploy
 linux-deploy: $(KDEVOPS_NODES)
 	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -i \
--
2.40.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-25 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25 18:43 [PATCH] workflows/linux: Add a new make subcommand linux-no-clone fan.ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).