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 3C742C636D6 for ; Wed, 22 Feb 2023 16:42:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C157985B6A; Wed, 22 Feb 2023 17:37:10 +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="cv4JgOti"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 024B885B25; Wed, 22 Feb 2023 17:35:59 +0100 (CET) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 0E6E985B2A for ; Wed, 22 Feb 2023 17:35:14 +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-xd33.google.com with SMTP id d73so3701162iof.4 for ; Wed, 22 Feb 2023 08:35:07 -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=ttHdtmQkkypXzeMzCw47Byh8E9Aa2l8i2FfS+WaqFr0=; b=cv4JgOtibCd5xQDzkEnwfjlI4S1taewImDG3qB4gDKiR9MZXaKKBqw0i4OkUtwcJZt Hw8i+nRTO9srtzAYvkFcPmQhpfwQt3HvqAIjEgDHYFsqtytmuGUshInZVaMnMhDKQw31 HEp6ZRHFvVCAac/25sGex4D2UAqZY4Zx7Ew94= 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=ttHdtmQkkypXzeMzCw47Byh8E9Aa2l8i2FfS+WaqFr0=; b=i8osKtdWkSTFaWu4pfzvloak55sxOTPWh38NE/U2SBjdO6JVJSXk7cCWWcQ/QEx1pY 1VETEUliwYeqzZ8hgLUvNZNFACMWdM2FjBzCfi00sHjIvIIh3X1DhV2aPL2cytrfiZcg LkkUrzEX6+irud4n123yBfTo6ietCqJR/oU99xEY6DM6+UeaHfiIwSjK5sgtm2CYZE1j XliApVJPpHKEpcayQYFFamlgETfyDF6c1tLLCgYM6tU34Ldm2krosL1yZNKpG8cjHmP+ Bn0bvh+9r9wATi4IZ4ISE4lX0UwsHDCjgt7L0xPY+NXoeNylYLKQLE2rkrAOiMGT4ro4 BNnw== X-Gm-Message-State: AO0yUKUObZVWoVlkJ6mpYgTN/CDcE81oLkW7dXYNs0pbmsVfzY8GIDN9 Z1HY/2+zTeoc08TBLRSzycrzrv3wF5wkp//V X-Google-Smtp-Source: AK7set9MR6fU1Ya9BuTbv+r2u08AyEeP8xvvFWNvYtB8okBUULxXczXxZjaYBA0xGjR/vglSp/c08g== X-Received: by 2002:a05:6602:1ca:b0:715:c1fd:94f8 with SMTP id w10-20020a05660201ca00b00715c1fd94f8mr1192444iot.8.1677083706611; Wed, 22 Feb 2023 08:35:06 -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 z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:35:06 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v5 29/44] test: Add SPL versions of the TEST_KCONFIG options Date: Wed, 22 Feb 2023 09:34:10 -0700 Message-Id: <20230222163425.2043934-30-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-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 --- (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 -- 2.39.2.637.g21b0678d19-goog