Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62DC9535B4 for ; Sat, 9 Mar 2024 23:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710027370; cv=none; b=J7/DAixxyBRurkqv2tQwSNt548QT1zOUSLLGycGV1rV2NN9Aucct/RHKH7x0REVoafl3+yIzHjDORqwT0Io8ycqt13CpShxxif+8BrWANbfyc+gICyxCADU8MdXNoH9cfvXFZoR13pX/7xx31Pwapfh+ZP0eQfGFgJQ06T4ks3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710027370; c=relaxed/simple; bh=EUrBF6Wj0N6r3E5wkkcc1F08Ey+67P+CGPp4gny2GZM=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=c+NA3X4+PKQVwVFF7k1YwNMR9S3hU9abFnxKUgO/zJkIWJiTW3WGeQBStCnqE2AV4ubmiZ2YX4OjjGqia0QvyGm1bht462mnR2Xl2ydZiL9025oHeTKntlIpgqXv6I5raewqkAq3I2+mu3zrL2h3bxxMHbgA/zHAjuXD4AU/Yew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=esHLgnFo; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="esHLgnFo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710027367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y3Rmn6sriLR2fSHAeUwrT3zIyIwmTD9jGcr+3ngdoSs=; b=esHLgnFoBbEsZ8z8OKSbSgXUEC+7L/uW1a9v24iryj0LSKMwmPpSggB8mUl8jWmHasGRqd EifY4FRM8BO+P/w25tzHmUm/U6yWpV3amvpKTyV/Sv2XITQpXev0UEL1xCLu3zx3CpWkWn fOPgF379SRHlt82VA+7ttDROFUz0MsE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-GZ4MUY25NZCl0YxDeobpzA-1; Sat, 09 Mar 2024 18:36:04 -0500 X-MC-Unique: GZ4MUY25NZCl0YxDeobpzA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 92B89101A586 for ; Sat, 9 Mar 2024 23:36:04 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.16.116]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 872341C060D6 for ; Sat, 9 Mar 2024 23:36:04 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id 1797612D1FE for ; Sat, 9 Mar 2024 18:36:04 -0500 (EST) From: Scott Mayhew 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 Message-ID: <20240309233603.1306533-8-smayhew@redhat.com> In-Reply-To: <20240309233603.1306533-1-smayhew@redhat.com> References: <20240309233603.1306533-1-smayhew@redhat.com> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 --- 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