From patchwork Sat May 4 00:08:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 1095088 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="QaDHydyV"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44wq9R0Wh2z9s5c for ; Sat, 4 May 2019 10:08:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 6B268C21DF8; Sat, 4 May 2019 00:08:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 11A4FC21D4A; Sat, 4 May 2019 00:08:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1334CC21C38; Sat, 4 May 2019 00:08:31 +0000 (UTC) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by lists.denx.de (Postfix) with ESMTPS id BD55FC21C2C for ; Sat, 4 May 2019 00:08:30 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id a8so8020791edx.3 for ; Fri, 03 May 2019 17:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pGkB4GsPcmcHd2PLnJVm4AORnqsu9G0YsCvGugL4fQE=; b=QaDHydyVn8AEQu/eeVYPvUOmk8Ti6b6Tv6vTUtPUGHo4uPujc66vNQDjAiFFvxPLAj LYqKkQtjEyN58nAvHOvI3dTtZ4jXXG1iLIybhgNVteytfDmT5vP4ByFp8ftke9tIW2jn v/nWbKX1UFOQiyfsWoGNQ0B6o2I6rmY2Vr97ivj0RPlwYLT3G/8LfCztOdNze/L/eUWx IMc7CpBF47sPKTZFs8JCLO4RakVTJ5Onis7xYAgzkFqKF6r+DmvdHylCHerw0/Dp3wAS KORVqNRx8SqBUs3cIWxEynzVvrRTtadN6hyltOxiHt7V/slm9r3nmfrLGaAAsDFWf5iu 9Pfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pGkB4GsPcmcHd2PLnJVm4AORnqsu9G0YsCvGugL4fQE=; b=DCQWdTCCI1xcs8oulc3zdRyfZERyGT+4dWZyc0GalkpNj8QO0gZnc1gQRopCXzbb/n 55OIJwnbjeHqh7Jpsjd3wHx8FHJnj4nZlAlmllhfCbEMTx9EenQjB/Z0+x0Bf06wGgwj CLtnwxGGygKyZhrdz5aVGZGdDFC0PzrCHiBwOpFCBndnBl99cXiDaDMWRzHA/kx6XBgO FRpo5mWnkus13T7M3b6lCxpJ0Ad4pyZHpAjna37HKRR0BOcoyXlsJxzPplhT3iy/09hQ Af0lwfWiLzO5Bh7EZ2/iso1pHKQhEkeXvYdq+0vUb01XbawzC8dzHeKbUWA+Aed05hJf qD8A== X-Gm-Message-State: APjAAAWMGLRLHCUqS9TfCvBh/o9RZgnsKWNo17m25C9O2AZyE5QzvgZ+ /kF5qZQRy5+bnwUCjroWxc3kjQ== X-Google-Smtp-Source: APXvYqxKom8Ej6rnC7f58Ld0/GCKTxfdJ4zM+BiDipjRdrwzQTCp49A0Av5xlvimpVQRVlj26n5U7Q== X-Received: by 2002:a50:92a3:: with SMTP id k32mr11805281eda.123.1556928510446; Fri, 03 May 2019 17:08:30 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id z4sm509815ejm.8.2019.05.03.17.08.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 17:08:29 -0700 (PDT) From: Bryan O'Donoghue To: trini@konsulko.com, sbabic@denx.de, jens.wiklander@linaro.org, rpjday@crashcourse.ca, fabio.estevam@nxp.com, rui.silva@linaro.org, u-boot@lists.denx.de Date: Sat, 4 May 2019 01:08:23 +0100 Message-Id: <20190504000826.3618-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190504000826.3618-1-bryan.odonoghue@linaro.org> References: <20190504000826.3618-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v2 1/4] optee: Make TZDRAM config options contingent on CONFIG_OPTEE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Commit c7b3a7ee5351 ("optee: adjust dependencies and default values for dram") makes the TZDRAM defines for OPTEE show up for all configs as a side-effect. While not harmful its not what we really want. This patch makes the following defines contingent on CONFIG_OPTEE=y CONFIG_OPTEE_TZDRAM_BASE CONFIG_OPTEE_TZDRAM_SIZE Rightly, if you don't have CONFIG_OPTEE=y you don't care about the above two defines. Signed-off-by: Bryan O'Donoghue Cc: Rui Miguel Silva Acked-by: Rui Miguel Silva --- lib/optee/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 3773d89c31..c398f9b953 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -17,6 +17,7 @@ config OPTEE_LOAD_ADDR config OPTEE_TZDRAM_SIZE hex "Amount of Trust-Zone RAM for the OPTEE image" default 0x0000000 + depends on OPTEE help The size of pre-allocated Trust Zone DRAM to allocate for the OPTEE runtime. @@ -24,6 +25,7 @@ config OPTEE_TZDRAM_SIZE config OPTEE_TZDRAM_BASE hex "Base address of Trust-Zone RAM for the OPTEE image" default 0x00000000 + depends on OPTEE help The base address of pre-allocated Trust Zone DRAM for the OPTEE runtime.