public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: Scott Mayhew <smayhew@redhat.com>
To: kdevops@lists.linux.dev
Subject: [PATCH v2 07/10] bringup: clean up the nfs-related make targets
Date: Sat,  9 Mar 2024 18:36:00 -0500	[thread overview]
Message-ID: <20240309233603.1306533-8-smayhew@redhat.com> (raw)
In-Reply-To: <20240309233603.1306533-1-smayhew@redhat.com>

Clean up the top level Makefile and scripts/brinup.Makefile by moving
the following into the lower level Makefiles for the nfs-related make
targets (ktls, nfsd, and siw):

1. The "ifeq (y,$(CONFIG_KDEVOPS_SETUP_foo))" directives.
2. The updates of the KDEVOPS_BRING_UP_DEPS/KDEVOPS_BRING_UP_DESTROY
   variables.

There should be no change in behavior.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
---
 Makefile                 |  8 --------
 scripts/bringup.Makefile | 13 -------------
 scripts/ktls.Makefile    |  7 +++++++
 scripts/nfsd.Makefile    |  8 ++++++++
 scripts/siw.Makefile     |  6 ++++++
 5 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/Makefile b/Makefile
index e0cb89c5..11b409e0 100644
--- a/Makefile
+++ b/Makefile
@@ -104,17 +104,9 @@ ifeq (y,$(CONFIG_WORKFLOWS))
 include workflows/Makefile
 endif # CONFIG_WORKFLOWS
 
-ifeq (y,$(CONFIG_KDEVOPS_SETUP_SIW))
 include scripts/siw.Makefile
-endif # CONFIG_KDEVOPS_SETUP_SIW
-
-ifeq (y,$(CONFIG_KDEVOPS_SETUP_KTLS))
 include scripts/ktls.Makefile
-endif # CONFIG_KDEVOPS_SETUP_KTLS
-
-ifeq (y,$(CONFIG_KDEVOPS_SETUP_NFSD))
 include scripts/nfsd.Makefile
-endif # CONFIG_KDEVOPS_SETUP_NFSD
 
 include scripts/devconfig.Makefile
 include scripts/ssh.Makefile
diff --git a/scripts/bringup.Makefile b/scripts/bringup.Makefile
index 55e7d8d1..148547c0 100644
--- a/scripts/bringup.Makefile
+++ b/scripts/bringup.Makefile
@@ -20,19 +20,6 @@ endif
 
 endif
 
-ifeq (y,$(CONFIG_KDEVOPS_SETUP_NFSD))
-KDEVOPS_BRING_UP_DEPS += nfsd
-endif # KDEVOPS_SETUP_NFSD
-
-ifeq (y,$(CONFIG_KDEVOPS_SETUP_KTLS))
-KDEVOPS_BRING_UP_DEPS += ktls
-KDEVOPS_DESTROY_DEPS += ktls-destroy
-endif # KDEVOPS_SETUP_KTLS
-
-ifeq (y,$(CONFIG_KDEVOPS_SETUP_SIW))
-KDEVOPS_BRING_UP_DEPS += siw
-endif # KDEVOPS_SETUP_SIW
-
 bringup: $(KDEVOPS_BRING_UP_DEPS)
 
 destroy: $(KDEVOPS_DESTROY_DEPS)
diff --git a/scripts/ktls.Makefile b/scripts/ktls.Makefile
index 97753804..905f6887 100644
--- a/scripts/ktls.Makefile
+++ b/scripts/ktls.Makefile
@@ -1,3 +1,5 @@
+ifeq (y,$(CONFIG_KDEVOPS_SETUP_KTLS))
+
 ktls:
 	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --extra-vars=@./extra_vars.yaml \
 		-f 30 -i hosts playbooks/ktls.yml
@@ -5,4 +7,9 @@ ktls:
 ktls-destroy:
 	$(Q)rm -rf $(TOPDIR)/ca
 
+KDEVOPS_BRING_UP_DEPS += ktls
+KDEVOPS_DESTROY_DEPS += ktls-destroy
+
 PHONY += ktls ktls-destroy
+
+endif
diff --git a/scripts/nfsd.Makefile b/scripts/nfsd.Makefile
index a337390c..f534f4ff 100644
--- a/scripts/nfsd.Makefile
+++ b/scripts/nfsd.Makefile
@@ -1,3 +1,5 @@
+ifeq (y,$(CONFIG_KDEVOPS_SETUP_NFSD))
+
 NFSD_EXTRA_ARGS += nfsd_export_device_prefix='$(subst ",,$(CONFIG_NFSD_EXPORT_DEVICE_PREFIX))'
 NFSD_EXTRA_ARGS += nfsd_export_device_count='$(subst ",,$(CONFIG_NFSD_EXPORT_DEVICE_COUNT))'
 NFSD_EXTRA_ARGS += nfsd_export_fstype='$(subst ",,$(CONFIG_NFSD_EXPORT_FSTYPE))'
@@ -17,3 +19,9 @@ ANSIBLE_EXTRA_ARGS += $(NFSD_EXTRA_ARGS)
 nfsd:
 	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --extra-vars=@./extra_vars.yaml \
 		-f 30 -i hosts -l nfsd playbooks/nfsd.yml
+
+KDEVOPS_BRING_UP_DEPS += nfsd
+
+PHONY += nfsd
+
+endif
diff --git a/scripts/siw.Makefile b/scripts/siw.Makefile
index 80f96309..d09d1a2f 100644
--- a/scripts/siw.Makefile
+++ b/scripts/siw.Makefile
@@ -1,5 +1,11 @@
+ifeq (y,$(CONFIG_KDEVOPS_SETUP_SIW))
+
 siw:
 	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --extra-vars=@./extra_vars.yaml \
 		-f 30 -i hosts playbooks/siw.yml
 
+KDEVOPS_BRING_UP_DEPS += siw
+
 PHONY += siw
+
+endif
-- 
2.43.0


  parent reply	other threads:[~2024-03-09 23:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-09 23:35 [PATCH v2 00/10] add initial support for testing nfs with krb5 Scott Mayhew
2024-03-09 23:35 ` [PATCH v2 01/10] nfsd: make sure the appropriate fsprogs package is installed Scott Mayhew
2024-03-09 23:35 ` [PATCH v2 02/10] update_etc_hosts: fix up hostnames on debian guestfs hosts Scott Mayhew
2024-03-09 23:35 ` [PATCH v2 03/10] nfsd: use EXTRA_VAR_INPUTS for export options Scott Mayhew
2024-03-09 23:35 ` [PATCH v2 04/10] devconfig: set /etc/hostname earlier Scott Mayhew
2024-03-09 23:35 ` [PATCH v2 05/10] nfsd: add a pipefs-directory config to nfs.conf Scott Mayhew
2024-03-09 23:35 ` [PATCH v2 06/10] bringup: move the update_etc_hosts task to run early Scott Mayhew
2024-03-09 23:36 ` Scott Mayhew [this message]
2024-03-09 23:36 ` [PATCH v2 08/10] gen_hosts/gen_nodes: clean up nfsd-related stuff Scott Mayhew
2024-03-09 23:36 ` [PATCH v2 09/10] kconfigs: clean up Kconfig.bringup.goals Scott Mayhew
2024-03-09 23:36 ` [PATCH v2 10/10] fstests/nfs: add krb5 support Scott Mayhew
2024-03-11 12:57 ` [PATCH v2 00/10] add initial support for testing nfs with krb5 Jeff Layton
2024-03-11 22:05 ` Luis Chamberlain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240309233603.1306533-8-smayhew@redhat.com \
    --to=smayhew@redhat.com \
    --cc=kdevops@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox