From patchwork Fri Mar 28 20:56:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 14032439 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 56EE23C0C for ; Fri, 28 Mar 2025 20:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743195397; cv=none; b=D6c2WhYDT2NQg26Q3mz16Lx5eV0R7xU3mWJpiBjK2+ebuVDPY4kEkmCXay43aGfnpAfgbT/VsRMRRRRQfRTu3UZkcAqiuz+OwoE5knseQDEy60MiWresGyFuhntrwbgflTq5f1v/CQkUkt2XJGE771T6s5gH3T/jvqZ2oL5uv3w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743195397; c=relaxed/simple; bh=UTTSiNO4jd28Y9/O3BXvtWI5RAFd0Vmzxb5GEx0xsmY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cxajv61E+6LPvmUF4VPY2GAd59dPkpXfxCr5j4KEJYZ+oQSKrPqBOYrGnp3H/RXtRz0QR/jU6bE4dl0gQwBbFTIkTkc8+XQPv5xV566OpY+g+p3q+ee2cYlJDHHuub8TQoS8fWZ04Z7IOOgybvxkILG4ifz9woZnc0uPnSQmBz8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X4Kz5Cq0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X4Kz5Cq0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 163E8C4CEE8; Fri, 28 Mar 2025 20:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743195396; bh=UTTSiNO4jd28Y9/O3BXvtWI5RAFd0Vmzxb5GEx0xsmY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=X4Kz5Cq0RdRDUO7bM9eLuY6tE8uvFtF7fSirP+SinYRs+WFLUeUXbxwI05B4rbprk HoIN286WoX+uBhEQ6/dXfybWdD6nNwLS2Z5R4FMKhaJsCzD49xiiCzX6eB3J5P5Vtu TR9bZ66N9HVlhUXfW4f1JNQbtEOQj5i/EgRPy7zwqi28zWCy6jsUxBbc34FZkYUKlJ HOh2puXTg4f57xlPgBT4i2OrtOuClmMiwE0/62XO/3y37UWZTRfgabFHvaOr07NOMB MV0rvcPMljk384Z0qccyDpJnregPCQlTQgKN2fB9Zz3riPyn3hpQ7EnFhtrYZZZ5G0 3q6xUS+rEfRpg== From: Daniel Gomez Date: Fri, 28 Mar 2025 20:56:18 +0000 Subject: [PATCH RFC 5/6] kconfig: env: add support Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250328-kconfig-env-with-ansible-v1-5-3231c0272457@samsung.com> References: <20250328-kconfig-env-with-ansible-v1-0-3231c0272457@samsung.com> In-Reply-To: <20250328-kconfig-env-with-ansible-v1-0-3231c0272457@samsung.com> To: Luis Chamberlain Cc: kdevops@lists.linux.dev, Daniel Gomez , Daniel Gomez X-Mailer: b4 0.14.2 From: Daniel Gomez Updating Kconfig with a fragment requires symbols to be visible. Add an environment submenu to display all generated variables. Signed-off-by: Daniel Gomez --- Kconfig | 9 ++++----- kconfigs/Kconfig.env | 5 +++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Kconfig b/Kconfig index 357341be108de3dab79883f9a6babd29547d62de..6877b7aebd5057a925b371d8c6afd9ad568faa6e 100644 --- a/Kconfig +++ b/Kconfig @@ -15,11 +15,6 @@ config TOPDIR_PATH_HAS_SHA256SUM output yaml default y -config TOPDIR_PATH_SHA256SUM - string - output yaml - default $(shell, ./scripts/compute_sha256sum.sh $(TOPDIR_PATH)) - config HAVE_KDEVOPS_CUSTOM_DEFAULTS bool default n @@ -81,3 +76,7 @@ endmenu menu "Kdevops configuration" source "kconfigs/Kconfig.kdevops" endmenu + +menu "Environment" +source "kconfigs/Kconfig.env" +endmenu diff --git a/kconfigs/Kconfig.env b/kconfigs/Kconfig.env new file mode 100644 index 0000000000000000000000000000000000000000..400643f9a304556f27a63792239a383be51866c3 --- /dev/null +++ b/kconfigs/Kconfig.env @@ -0,0 +1,5 @@ +config TOPDIR_PATH_SHA256SUM + string "TOPDIR_PATH checksum" + output yaml + help + TOPDIR_PATH checksum