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 ED96CC433EF for ; Tue, 31 May 2022 10:51:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AE60683ABF; Tue, 31 May 2022 12:51:28 +0200 (CEST) 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="mij48f5r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4D1B820B7; Tue, 31 May 2022 12:51:26 +0200 (CEST) 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 1AEEC820B7 for ; Tue, 31 May 2022 12:51:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rogerq@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 6F41960F58; Tue, 31 May 2022 10:51:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45F21C385A9; Tue, 31 May 2022 10:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653994280; bh=ADv6RLw+TPuM0MMwbAy+OerFsMJfB5rh7rq6/kyVeow=; h=Date:Subject:To:References:From:In-Reply-To:From; b=mij48f5rWdWSklXF9M3CXNHKo3pXPvHjpoL+NzXvIMO4diHfZikaBtf5ZKXjdgtYK e4UxHIX9ZfdKQRrTDqXM6mE3pPQ2zQjT9yEY9H10KmrjBiiT592P9mn3de7tPDuALO C1pMkW756HxD5jjxksfdEeeZgfmxevwxuxj/MtpHW/QWXG1tUd27B84dol587oWd76 ZOc0NJ7Uok/tBf+AoVElqnghm2+ew5asy+/jlcS5LLFw4P503BWC3P+pCPPsvTUan3 Uhu8QLYXLflWPqmnGN87xVfjmrsqGsnEMM8s8toNWRrjDErJaGxSV2IuH1skHx3Ezh H9EpM8+3vw8ug== Message-ID: <08a0b612-7161-c3d5-5746-ebf115bbae74@kernel.org> Date: Tue, 31 May 2022 13:51:17 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH RFC v2 07/11] ti: tiboot3.bin: Remove tiboot3.bin target from makefile Content-Language: en-US To: Neha Malcom Francis , u-boot@lists.denx.de References: <20220506043759.8193-1-n-francis@ti.com> <20220506043759.8193-8-n-francis@ti.com> From: Roger Quadros In-Reply-To: <20220506043759.8193-8-n-francis@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 06/05/2022 07:37, Neha Malcom Francis wrote: > Intention of patch is to move the signing and packaging of tiboot3.bin > image to binman, thus removing target from makefile. > > Also deleting k3_gen_x509_cert.sh which was earlier used to sign a > binary associated with K3 devices with x509 certificate. This > functionality has been replicated in binman with the etype x509_cert. > > Signed-off-by: Neha Malcom Francis > --- > arch/arm/mach-k3/config.mk | 19 ------------------- > 1 file changed, 19 deletions(-) > > diff --git a/arch/arm/mach-k3/config.mk b/arch/arm/mach-k3/config.mk > index e6c13c1800..49f80ae79b 100644 > --- a/arch/arm/mach-k3/config.mk > +++ b/arch/arm/mach-k3/config.mk > @@ -46,25 +46,6 @@ INPUTS-y += sec-cfg.bin > endif > endif > > -# tiboot3.bin is mandated by ROM and ROM only supports R5 boot. > -# So restrict tiboot3.bin creation for CPU_V7R. > -ifdef CONFIG_CPU_V7R > -image_check: $(obj)/u-boot-spl.bin FORCE > - @if [ $(IMAGE_SIZE) -gt $(MAX_SIZE) ]; then \ > - echo "===============================================" >&2; \ > - echo "ERROR: Final Image too big. " >&2; \ > - echo "$< size = $(IMAGE_SIZE), max size = $(MAX_SIZE)" >&2; \ > - echo "===============================================" >&2; \ > - exit 1; \ > - fi > - > -tiboot3.bin: image_check FORCE > - $(srctree)/tools/k3_gen_x509_cert.sh -c 16 -b $(obj)/u-boot-spl.bin \ > - -o $@ -l $(CONFIG_SPL_TEXT_BASE) -k $(KEY) > - > -INPUTS-y += tiboot3.bin > -endif > - Instead of removing it unconditionally and breaking build for all this must be placed under #ifndef CONFIG_BINMAN ... #endif > ifdef CONFIG_ARM64 > > ifeq ($(CONFIG_SOC_K3_J721E),) cheers, -roger