From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDDCCC636CC for ; Tue, 31 Jan 2023 15:32:46 +0000 (UTC) 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) 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 ; 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 ; 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 To: U-Boot Mailing List Cc: Tom Rini , Simon Glass 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 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 --- 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 -- 2.39.1.456.gfc5497dd1b-goog