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 F0344C433EF for ; Tue, 11 Jan 2022 15:36:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B15D81A03; Tue, 11 Jan 2022 16:36:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="VeZ1zQHn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3780E816A2; Tue, 11 Jan 2022 16:36:44 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AA4D881A03 for ; Tue, 11 Jan 2022 16:36:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ADBF96165C; Tue, 11 Jan 2022 15:36:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 286D6C36AF5; Tue, 11 Jan 2022 15:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641915397; bh=Sm40EoyJx86UZUcV4UjaWpxcVRCTL/fESGx6jZGcASo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VeZ1zQHn9N8TaqZKYjoqyuFfzU0K/4PWS6vdg7HhiOtZxkWlmRAAc8kssOHS5Rs8P AwfJ58kscJ3wNyT1YPi4OQFLlsZrKtzS5ww1gOU34Wr0UzhLC1Vxp3DPWWzdaFI8K+ LSXPBwdtrp/DekBSmDRu9WKte5LczakwCs9mqOXdEcyPt5Xh+KJJaFUifCbK0hK0AT oSYonzEZHjLAILMWRvAjEoddp7NjwpeoNm2sklctVtcwBz9yOjHh+DC52KlEP4bZ4I Qf5uU69PqlO4eiW/T8OLPi9fZ0owsR5ij12uHyHgF5jwA6n/cerZSsK6ZyNzhJBUNJ URUh75+wub7jQ== Received: by pali.im (Postfix) id AFD7A7B5; Tue, 11 Jan 2022 16:36:34 +0100 (CET) Date: Tue, 11 Jan 2022 16:36:34 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Marek Vasut Cc: u-boot@lists.denx.de, Heinrich Schuchardt , Marek =?utf-8?B?QmVow7pu?= , Stefan Roese , Tom Rini Subject: Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n Message-ID: <20220111153634.k5ajrgf2orzdhnar@pali> References: <20220111153120.1276641-1-marex@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220111153120.1276641-1-marex@denx.de> User-Agent: NeoMutt/20180716 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 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/ > Signed-off-by: Marek Vasut > Cc: Heinrich Schuchardt > Cc: Marek Behún > Cc: Pali Rohár > Cc: Stefan Roese > Cc: Tom Rini > --- > tools/Makefile | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/tools/Makefile b/tools/Makefile > index 1763f44cac4..72488315d9d 100644 > --- a/tools/Makefile > +++ b/tools/Makefile > @@ -101,6 +101,9 @@ LIBCRYPTO_OBJS-$(CONFIG_TOOLS_LIBCRYPTO) := $(addprefix lib/, \ > ROCKCHIP_OBS = lib/rc4.o rkcommon.o rkimage.o rksd.o rkspi.o > > # common objs for dumpimage and mkimage > +ifdef CONFIG_TOOLS_LIBCRYPTO > +KWB_IMAGE_OBJS-y := kwbimage.o > +endif > dumpimage-mkimage-objs := aisimage.o \ > atmelimage.o \ > $(FIT_OBJS-y) \ > @@ -118,7 +121,7 @@ dumpimage-mkimage-objs := aisimage.o \ > imximage.o \ > imx8image.o \ > imx8mimage.o \ > - kwbimage.o \ > + $(KWB_IMAGE_OBJS-y) \ > lib/md5.o \ > lpc32xximage.o \ > mxsimage.o \ > -- > 2.34.1 >