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 2B6E0C433EF for ; Tue, 11 Jan 2022 20:22:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DAA5D82EBB; Tue, 11 Jan 2022 21:22:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CtejiLuT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AFA8682A71; Tue, 11 Jan 2022 21:22:50 +0100 (CET) Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) (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 4FABD82EBB for ; Tue, 11 Jan 2022 21:22:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-oo1-xc2e.google.com with SMTP id c1-20020a4a9c41000000b002dd0450ba2aso27167ook.8 for ; Tue, 11 Jan 2022 12:22:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=l40CVblo1ZXSDiZOzRuKMvDh5YP+zbbhI0OLboLrW74=; b=CtejiLuTtWHqxoqwTQcmPqQDC4mGcBBUAYJyXOGN/B6i2wGP6v+3yHSu2cyDF206M1 pPLZSexNr9IaTOQxH0ZWwKGLK4NPTHIev0nZxbFoReIhznmza1o/0ovReY7UB2deohWk /bbc4qYzGdz5Trs+cX6npnkYXlA5u2fe6bqEG0pJW/TObN1DGvwzI55HaTbdL3jusT/p 4h9W0Mjp0ybhA5/P8ItX1t4+1+OjvCMp36y4cUomIEPuK4lqnIU8yrZkA91HslL7fFuu +JWZUTOAuPLMbyIJKEXoCrN0VTo6HXTa4c+/nVbNYnfo0ye/CidWR5elQRWlaB5idwu9 8qJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=l40CVblo1ZXSDiZOzRuKMvDh5YP+zbbhI0OLboLrW74=; b=0O+20C2ua0CpUAXQ8l1Nqc4//EvsTCLjw7ga1cRKXXBJy2EqIFLNxePLH9l1R9+Cx6 PVuprDejx+duHxyA42v+/dUOn6RlRA5bzun7JHTv7Cz3jkQpKG6PUZs0Vpr8tmUI4vhE 7QhNEJPuNxZp+5BkF5xybvfIOhnKXJipSTis0qvwxKJHtlzSNIkgb0z/csGlxmfxsTN3 pkSQfoDEg+tDSyOIpy/s0TcZKz1A/ET3s5VZmb/wJ9I75evELn8pXA6n5e6TTYjYXwL8 hp7A1Ju7QzGIlROpQQHMds0pt+bMwpqCsBqaAhZBqAXSNhWPEgkC/xrg+5YPCtT9qNVx Pnew== X-Gm-Message-State: AOAM533aTx6gXbotEZ7J5gRtf3tRF2j/b+vVde0LKfdA/zlvP8WDldG8 Xgo7szNOU8S4N1mEiauCLHI= X-Google-Smtp-Source: ABdhPJwMYlZO9FssTJiVolVGA8UlObI1LmHmMKdPlVBnUq0DifDvBUc19f2cfbC9rhLUFw0z4TPwtw== X-Received: by 2002:a4a:55cd:: with SMTP id e196mr710508oob.86.1641932564622; Tue, 11 Jan 2022 12:22:44 -0800 (PST) Received: from [192.168.1.169] (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id h19sm2226704otk.13.2022.01.11.12.22.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jan 2022 12:22:44 -0800 (PST) Message-ID: <7608c558-0d3c-19c4-083d-9b15fd3298d0@gmail.com> Date: Tue, 11 Jan 2022 14:22:43 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n Content-Language: en-US To: Tom Rini , Marek Vasut Cc: =?UTF-8?Q?Pali_Roh=c3=a1r?= , u-boot@lists.denx.de, Heinrich Schuchardt , =?UTF-8?Q?Marek_Beh=c3=ban?= , Stefan Roese References: <20220111153120.1276641-1-marex@denx.de> <20220111153634.k5ajrgf2orzdhnar@pali> <20220111161647.GF2773246@bill-the-cat> <20220111190917.GM2773246@bill-the-cat> From: "Alex G." In-Reply-To: <20220111190917.GM2773246@bill-the-cat> Content-Type: text/plain; charset=UTF-8; format=flowed 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.2 at phobos.denx.de X-Virus-Status: Clean On 1/11/22 13:09, Tom Rini wrote: > On Tue, Jan 11, 2022 at 07:58:05PM +0100, Marek Vasut wrote: >> On 1/11/22 17:16, Tom Rini wrote: >>> On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: >>>> On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: >>>>> The kwbimage has hard dependency on OpenSSL, do not build it >>>>> in case TOOLS_LIBCRYPTO is disabled. >>>> >>>> This patch does not work as kwbimage is required for 32-bit Armada >>>> platforms. So kwbimage.o cannot be disabled on these platforms. >>>> >>>> There is already proposal for fixing this issue: >>>> https://patchwork.ozlabs.org/project/uboot/patch/20211021093304.25399-1-pali@kernel.org/ >>> >>> And needs to be respun to not have Kconfig issues. To answer something >>> noted in that thread, yes, it would be good if Kconfig did, or had an >>> option to make WARNING like that fatal. Or is the problem really that >>> no, it's non-optional, really, to have OpenSSL installed? >> >> OpenSSL should be optional, I got this bug report where someone tried to >> build u-boot on ancient debian oldoldstable with openssl 1.1.0 (without >> ecdsa support), for a platform which doesn't need any of this crypto stuff. >> So, disabling TOOLS_LIBCRYPTO was a sufficient for that platform to build in >> that setup (with this patch). And there are plenty of such platforms in the >> U-Boot tree (all that are not marvell I think). > > Right. So your patch is a step in the right direction, but we also need > to have the appropriate platforms depend'ing on TOOLS_LIBCRYPTO and > updating the help to note that some platforms require it as well, to > build their images. I did not intend for TOOLS_LIBCRYPTO to be used beyond an on/off toggle for the user. My suggestion is to allow platforms to build irrespective of TOOLS_LIBCRYPTO, and print a warning if for some reason we can't generate a bootable image. I see quite a few ARMv8 platforms throw such warnings on gitlab-ci. We can compile an elf, right? Any good reason why kwbimage should be different? Alex