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 12F6BC433EF for ; Wed, 8 Jun 2022 12:28:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D7570843CC; Wed, 8 Jun 2022 14:27:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="VluIGRn6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 61C6584328; Wed, 8 Jun 2022 14:25:45 +0200 (CEST) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (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 7212D84355 for ; Wed, 8 Jun 2022 14:25:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id z10so1335642qta.2 for ; Wed, 08 Jun 2022 05:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K2CcABbjXk/TAzlg0uwbclmwkI78rsIEM1fU84jhEDg=; b=VluIGRn6eB/2uaX+qMiKKpDBUbIBrhyxyN2yic2M5UEPwnp7GKYMAZQSCkARCqD6/P f9pg3CKQ01mvfmCsLZOI6RP5wlkrPCAuiLb9cuZFb5G9eLdZuuslpah7Ra/Mtic2gt7N HtVmMZqebZRWtoaBD4D3KTU2YBuYIRdYbnKvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K2CcABbjXk/TAzlg0uwbclmwkI78rsIEM1fU84jhEDg=; b=Drm819SRm5w/N6w3MTZGoP4WhC3/A9kBISQVd71YUowJbDAxcyDf7iA00M2iV7YTrQ arXxZAMo4mZ8quxeXPBkgA87w4cesA2k8xiR1tHQ9fjPLDEZtIxpwSuvZmZTRgai2/lL 7okh+DUqc5dik7507yMNdF/FNn/EY3VFuscZG7GoApHiKskxi9OET6XAbKj8f+ErYGkw s6Ymj5FqDqdBWtO3SZNKmuee/vT6KFQvEsufc+uaULnwSo8w3y83LxPB4ynxLwfw1aFm uUPG6RD5rTZzh00Tl8450Xrm3eLyeZcDZLURVFRIqa3PyXFNCNf6CVqz0aT9Y/wO6Iyh GqUg== X-Gm-Message-State: AOAM531c0KbENJQ5bg3bihFPaj89wt2c+FJvbulQpyPINXG3n2h0rwyA WECca2he0lEPJrkIeFxQcTCJu74YJ3Hicg== X-Google-Smtp-Source: ABdhPJxoJErvIMBSc5rw3+6nydZ8RSWUpIyFjQqIi/GfMeyrsdybRI9CRtiDIFWs8MK4BlbRw7poLQ== X-Received: by 2002:ac8:7dd5:0:b0:301:fe8:dedf with SMTP id c21-20020ac87dd5000000b003010fe8dedfmr26651356qte.208.1654691098382; Wed, 08 Jun 2022 05:24:58 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id r14-20020ac87eee000000b00304ee3372dfsm5242572qtc.45.2022.06.08.05.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:24:57 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [PATCH 18/18] vpl: Ensure all VPL symbols in Kconfig have some VPL dependency Date: Wed, 8 Jun 2022 08:24:40 -0400 Message-Id: <20220608122440.4114272-18-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220608122440.4114272-1-trini@konsulko.com> References: <20220608122440.4114272-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.5 at phobos.denx.de X-Virus-Status: Clean Tighten up symbol dependencies in a number of places. Ensure that a VPL specific option has at least a direct dependency on VPL. In places where it's clear that we depend on something more specific, use that dependency instead. Reported-by: Pali Rohár Signed-off-by: Tom Rini --- common/Kconfig | 12 ++---------- dts/Kconfig | 1 + lib/Kconfig | 3 ++- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index ac88d9bf9eab..e7914ca750a3 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -93,6 +93,7 @@ config TPL_LOGLEVEL config VPL_LOGLEVEL int "loglevel for VPL" + depends on VPL default LOGLEVEL help All Messages with a loglevel smaller than the console loglevel will @@ -273,15 +274,6 @@ config LOG if LOG -config VPL_LOG - bool "Enable logging support in VPL" - depends on LOG - help - This enables support for logging of status and debug messages. These - can be displayed on the console, recorded in a memory buffer, or - discarded if not needed. Logging supports various categories and - levels of severity. - config LOG_MAX_LEVEL int "Maximum log level to record" default 6 @@ -453,7 +445,7 @@ endif config VPL_LOG bool "Enable logging support in VPL" - depends on LOG + depends on LOG && VPL help This enables support for logging of status and debug messages. These can be displayed on the console, recorded in a memory buffer, or diff --git a/dts/Kconfig b/dts/Kconfig index f1d05cc0803f..bc5f22029ff9 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -534,6 +534,7 @@ endif config VPL_OF_REAL def_bool y + depends on VPL help Indicates that a real devicetree is available which can be accessed at runtime. This means that dev_read_...() functions can be used to diff --git a/lib/Kconfig b/lib/Kconfig index fef71606766e..7dd777b56a79 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -789,6 +789,7 @@ config TPL_OF_LIBFDT_ASSUME_MASK config VPL_OF_LIBFDT bool "Enable the FDT library for VPL" + depends on VPL default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA help This enables the FDT library (libfdt). It provides functions for @@ -799,7 +800,7 @@ config VPL_OF_LIBFDT config VPL_OF_LIBFDT_ASSUME_MASK hex "Mask of conditions to assume for libfdt" - depends on VPL_OF_LIBFDT || FIT + depends on VPL_OF_LIBFDT || (FIT && VPL) default 0xff help Use this to change the assumptions made by libfdt in SPL about the -- 2.25.1