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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 545B1C433EF for ; Tue, 5 Oct 2021 22:01:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 7276D608FB for ; Tue, 5 Oct 2021 22:01:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7276D608FB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D9E8282D85; Wed, 6 Oct 2021 00:01:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="EdiPQJYa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE7F082BC7; Wed, 6 Oct 2021 00:01:50 +0200 (CEST) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (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 A506582FC5 for ; Wed, 6 Oct 2021 00:01:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x829.google.com with SMTP id b16so600045qtt.7 for ; Tue, 05 Oct 2021 15:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cRUQXYVBmZ4MmOuLFIri8yQX3NL9BL9G5Blbki/1+iQ=; b=EdiPQJYam1wcjpBDpyIb2AXLCjqt3ivuBgEPdI9E/4K3F378mPfER4Q8MXIYbAwHg2 VQc3BJ29twmAuSvuOUdOY38NoUMqC7CuZFXQJSG7NqNqJuP9T87gWF9ff4lVD2cZwV07 lSWbXJ7cAUpdRd1sI1XZgeqWWs/SYRLG6mwm4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cRUQXYVBmZ4MmOuLFIri8yQX3NL9BL9G5Blbki/1+iQ=; b=XqYi6R4T9vQm9yONs30AvDboH0387u6sNfFDQ5oFCEj2/J1/O+MqUVWonMcia0xd+c nkWRWCg1+anrBEMRWBCJZCeBtrBUQy9Ra08wJ0snejUa6wnfzeVv9dRD8IfsVgwWpHE+ DiCgHEenjZJ9Sag5gf5O6UKudj7bxGrGjElGswgQtav/mgGCBEuBVBngBub9TJaQleDO j6FZvHPVd9zAG7U7adsOdoLfNWHM2FLl7+nVmaaXHzVuSrknn9+CBCwhnMHHAtXhTy1R hEoTIt+pTCZyKQ2w+YsjTiIuT7SA0EDRu24RlVAIMlZ4s2RqQwC821MmCe4rgvgbCXmO LnNA== X-Gm-Message-State: AOAM531dURkDQ44qsp9LMjdcbejrsyJJAW/e+e8A8MKklJf4Ne4CJo83 /IrzKe7N0nO1MFBqF0qGGaiHcw== X-Google-Smtp-Source: ABdhPJzj/WapWFrwqLpDxVfOSg8KmA+ar7D0cp76xLKQpVE36DyOKvN13eCJLFLTuOe4Nz2Em+G3dg== X-Received: by 2002:ac8:7458:: with SMTP id h24mr4705853qtr.355.1633471305405; Tue, 05 Oct 2021 15:01:45 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-acff-2c31-c6db-812f.res6.spectrum.com. [2603:6081:7b01:cbda:acff:2c31:c6db:812f]) by smtp.gmail.com with ESMTPSA id p190sm10085859qkf.15.2021.10.05.15.01.43 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Oct 2021 15:01:44 -0700 (PDT) Date: Tue, 5 Oct 2021 18:01:41 -0400 From: Tom Rini To: Patrick Delaunay Cc: u-boot@lists.denx.de, etienne.carriere@linaro.org, "Alex G ." , Andre Przywara , Bin Meng , Bryan O'Donoghue , Christian Gmeiner , Heinrich Schuchardt , Jens Wiklander , Kever Yang , Masahisa Kojima , Michael Walle , Michal Simek , Ovidiu Panait , Pali =?iso-8859-1?Q?Roh=E1r?= , Philipp Tomsich , Philippe Reynes , Roger Pau =?iso-8859-1?Q?Monn=E9?= , Samuel Holland , Sean Anderson , Simon Glass , Stefan Roese , Steffen Jaeckel , Tero Kristo , U-Boot STM32 Subject: Re: [PATCH 1/2] lib: optee: remove the duplicate CONFIG_OPTEE Message-ID: <20211005220141.GA31748@bill-the-cat> References: <20210902115512.1.I1c6536da7609f8240549cccae2708e075dc9fcf3@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KfXI8UIjd/jaDaxZ" Content-Disposition: inline In-Reply-To: <20210902115512.1.I1c6536da7609f8240549cccae2708e075dc9fcf3@changeid> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --KfXI8UIjd/jaDaxZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 02, 2021 at 11:56:16AM +0200, Patrick Delaunay wrote: > The configuration CONFIG_OPTEE is defined 2 times: > 1- in lib/optee/Kconfig for support of OPTEE images loaded by bootm comma= nd > 2- in drivers/tee/optee/Kconfig for support of OP-TEE driver. >=20 > It is abnormal to have the same CONFIG define for 2 purpose; > and it is difficult to managed correctly their dependencies. >=20 > Moreover CONFIG_SPL_OPTEE is defined in common/spl/Kconfig > to manage OPTEE image load in SPL. >=20 > This definition causes an issue with the macro CONFIG_IS_ENABLED(OPTEE) > to test the availability of the OP-TEE driver. >=20 > This patch cleans the configuration dependency with: > - CONFIG_OPTEE_IMAGE (renamed) =3D> support of OP-TEE image in U-Boot > - CONFIG_SPL_OPTEE_IMAGE (renamed) =3D> support of OP-TEE image in SPL > - CONFIG_OPTEE (same) =3D> support of OP-TEE driver in U-Boot > - CONFIG_OPTEE_LIB (new) =3D> support of OP-TEE library >=20 > After this patch, the macro have the correct behavior: > - CONFIG_IS_ENABLED(OPTEE_IMAGE) =3D> Load of OP-TEE image is supported > - CONFIG_IS_ENABLED(OPTEE) =3D> OP-TEE driver is supported >=20 > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! --=20 Tom --KfXI8UIjd/jaDaxZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFcy0IACgkQFHw5/5Y0 tywRLgv/W5yOzO6cebcBAc0BETufmNQv3z4jMpPxJrmsrsrsC+ipQMJsiaGY9iyW +S1D850Tn28fOgQ6uFWj8XLOgbQF7CtPskGBX2fzBCKl6VOg1zdl1E0GAgRpiEMU lyNh/D/Mgv7jg1DeAqXuv4FDNKM4kR8kFvO0ym4/ySRDtesHypEFLTcp1rV3AFOq E141QbMwRBxFAHv29Ox9dVJuShS+F9F8DOJmeC8vz9nzmBM49eco4/8sxsIU8fH+ BDZQ64nsItJ+GRV0uXyM6GtQz+zCvtY4VOyNfDIik7YCozX/Our/A1XyVHRVSgne xxnwF8FOcftaoZAqirHvwzz25lE0/PU40kSI+RGdvH8i5OeR/GCdVC+3HjQWdxsd 3tmn7zSbQzr0XGzit4y47aMCI7Vvue+s9yOkfDgFZR6FtXpHd8y6+PwRRxXhXrF6 fTUH15jxjYnVULx2rj3nixH5Fqzr54IJ4SdKSfpGtIarMbdzhi5lFzr9I69YqD93 b02/6o4Q =2xdk -----END PGP SIGNATURE----- --KfXI8UIjd/jaDaxZ--