From patchwork Sun Feb 12 23:15:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1741201 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=FUQzf18+; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PFNqG5jbTz23h0 for ; Mon, 13 Feb 2023 10:24:58 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8626385981; Mon, 13 Feb 2023 00:20:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="FUQzf18+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DCF71856CB; Mon, 13 Feb 2023 00:18:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ED12B856CB for ; Mon, 13 Feb 2023 00:17:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd29.google.com with SMTP id j17so3935596ioa.9 for ; Sun, 12 Feb 2023 15:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R4ZLVuN0fPFtuYWbVzVzGZ1SRLalkalvVzvqosnp8VE=; b=FUQzf18+M12e7x2/zpURtUzh+1MnAAbrBGjXWRhH6dCcSdVilSgVtyNkqs/2Dg8cYu ytk4zswvN2R7AxSzzGCmgHBcqiL/Cw8+QLktRRifpKUSONWLhdgQJX51LQlu00GQ+Y4E rCd87uiiscMpBc2vlBSjI9It0weVldqjWk0nE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R4ZLVuN0fPFtuYWbVzVzGZ1SRLalkalvVzvqosnp8VE=; b=Pterw2t0ZWooLIyy5T6m8kGoeurniSsc5lFxEPEzlrrEZOdTPN8Q9lX52DFyIyEy9l t8pLjEv+QykbJxjhjhJNTzM0D+J2WRldNG/L4AZVziHCt1pkUTvBaNbzRsY6J4WB6cNR ySKHYsJaWiWOr7TQH0HnrA8ekCkvnOBv7dO2KeXtb+Sj1vfjr/NiJjiQzONISuNO3mpQ PZmLZoXKH8bclYLfKmhAxy2CxehePvC+6lgBs2sfMvnhM244B90uYsDtHgBfCwoMekWh fNT+EVQRKB4GBD8QU2Y0+C/57uPI+WVvZ19svpU6eoAJU4pflFBch7n+uDLCPO84G3Qk vofA== X-Gm-Message-State: AO0yUKX444UeW+ERdrr8KrETGNRDqzWyKLqIU3lN1l7mkf4pdlhsCbIk U38UCvF7+89RP6uoZSEc6rIils2WDbQURwaS X-Google-Smtp-Source: AK7set/JO++C0UwZKHu+fe7srYf1IOgt5dGTpuxR0d/acj16em+pkkqz3KDRKpFM5fNaDHuu0peXJA== X-Received: by 2002:a5d:93c2:0:b0:735:5bdc:7a73 with SMTP id j2-20020a5d93c2000000b007355bdc7a73mr17796901ioo.7.1676243877433; Sun, 12 Feb 2023 15:17:57 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n16-20020a6b8b10000000b006dfbd35e995sm3627849iod.21.2023.02.12.15.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:17:57 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v3 56/95] test: Add SPL versions of the TEST_KCONFIG options Date: Sun, 12 Feb 2023 16:15:59 -0700 Message-Id: <20230212231638.1134219-57-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.581.gbfd45094c4-goog In-Reply-To: <20230212231638.1134219-1-sjg@chromium.org> References: <20230212231638.1134219-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean These are needed since we need a separate value in SPL and Proper. Signed-off-by: Simon Glass --- (no changes since v1) test/lib/Kconfig | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test/lib/Kconfig b/test/lib/Kconfig index dbb03e4a36f..134cbb85b83 100644 --- a/test/lib/Kconfig +++ b/test/lib/Kconfig @@ -18,6 +18,24 @@ config TEST_KCONFIG_VALUE int "Value associated with the option" depends on TEST_KCONFIG_ENABLE help - This is the value whgch is present if TEST_KCONFIG_ENABLE is enabled. + This is the value which is present if TEST_KCONFIG_ENABLE is enabled. + +config SPL_TEST_KCONFIG + bool "Enable detection of Kconfig macro errors (SPL)" + help + This is used to test that the IF_ENABLED_INT() macro causes a build error + if the value is used when the CONFIG Is not enabled. + +config SPL_TEST_KCONFIG_ENABLE + bool "Option to enable (SPL)" + help + This is the option that controls whether the value is present. + +config SPL_TEST_KCONFIG_VALUE + int "Value associated with the option (SPL" + depends on SPL_TEST_KCONFIG_ENABLE + help + This is the value which is present if SPL_TEST_KCONFIG_ENABLE is + enabled. endif # SANDBOX