Message ID | 20230131152702.249197-19-sjg@chromium.org |
---|---|
State | RFC |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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=TdY/gf5O; 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 4P5pw05lpdz23gV for <incoming@patchwork.ozlabs.org>; Wed, 1 Feb 2023 02:32:48 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6EA2985B3A; Tue, 31 Jan 2023 16:29:40 +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="TdY/gf5O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 228AC85AFF; Tue, 31 Jan 2023 16:28:29 +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-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (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 2FD9085B04 for <u-boot@lists.denx.de>; Tue, 31 Jan 2023 16:27: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-il1-x132.google.com with SMTP id z2so6048680ilq.2 for <u-boot@lists.denx.de>; Tue, 31 Jan 2023 07:27: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=Awehu8IIWMGYYmLkJSGo9mbVrQgqNsoaxm1PCZ8QwCA=; b=TdY/gf5ODNRfwxU3T5DCK4QinclAwF0hLluOXXIOK3MK6YvtkYa5KGFnfpe5MPunDS yAEmzhDvCC/LwdIEQ/Qeg8WCIj8I5ep7QbSCUGCQmczHIRn+tYWasx7ITMw2mSLRfpZ5 ce3giEiI7h3UGNjQyNUu3tERw61YdBLi3V180= 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=Awehu8IIWMGYYmLkJSGo9mbVrQgqNsoaxm1PCZ8QwCA=; b=DT0kwtbeSfSusFmeh5X184gA+F2jbaozAmZEBLtMGeaYq1qaWDKoB6+FP/luDyiqfB vSXPuJoDTh0cYrMjJedcDjJ2u5j6IDzqCAiCr9ytwT2YejDRLQhen/LHWvkf7ICs0k6E DAaobx5fhNwJ8Kg1brTVx7eDLOSSS8QdNAKPfe5dhXdntiDayiYpxcf86L/yjeJUPtYi W+xNyqspVKJvJpUNfnNrCwcb3Wk+0GEdRwlbf5etxcjSDSipDTNd6DPxO5Ee9neXuEoz d7EyRKyFA0nhG2UQuvhI6s91zezPTdUBjimYfRrq9pK0ha6nTCjI8M6NjM9zW3yoTEOQ jPbQ== X-Gm-Message-State: AO0yUKUGrYxBxTD2x0KtUk0m6YffawJRqwLFUDBrmbzEuapBXdkUk87R 3Cv4W8RWzCatq+tYFbGhSXKeaPP5YGSyzDo0 X-Google-Smtp-Source: AK7set8N6P/OcLFvkFMEhFJzJlTWkeeKMhD1pzDd7AVJS8bMfdDFTv68yzFMTZ8FY+mo9aLwZcOViw== X-Received: by 2002:a05:6e02:1524:b0:310:af48:ab2 with SMTP id i4-20020a056e02152400b00310af480ab2mr17565719ilu.23.1675178873192; Tue, 31 Jan 2023 07:27:53 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id u4-20020a02cb84000000b0039db6cffcbasm5649328jap.71.2023.01.31.07.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 07:27:52 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH 18/32] test: Add SPL versions of the TEST_KCONFIG options Date: Tue, 31 Jan 2023 08:26:48 -0700 Message-Id: <20230131152702.249197-19-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230131152702.249197-1-sjg@chromium.org> References: <20230131152702.249197-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
RFC: Migrate to split config
|
expand
|
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
These are needed since we need a separate value in SPL and Proper. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/lib/Kconfig | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-)