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 8E889C433EF for ; Fri, 27 May 2022 16:55:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1C9C284358; Fri, 27 May 2022 18:55:46 +0200 (CEST) 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="LKvVPBFt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DAAB684354; Fri, 27 May 2022 18:55:43 +0200 (CEST) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 5595B84357 for ; Fri, 27 May 2022 18:55:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x62c.google.com with SMTP id i27so9797200ejd.9 for ; Fri, 27 May 2022 09:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=i5d78HNy4XSUNQIdzsOs5AZw4r9SoNPILnpMjg83Pp4=; b=LKvVPBFtMjdK3Rx7ZPUmGLljKAYh4jUESF12WRFRcR3JawZPNjtRivbX9Mlj2phTDz khdxjc3JlMQOvy5JgXD2Kv4gBmYU+UqgxTWI+l97OBQ1aG2krlLtNO66obghPHE1XMTW zsHr2mRDvH2AN9TbYRLd/NmcVTzdTMca+HP1LyXl+KTU3pRrzbypoV6Pl9zieEivjVau gbPedFXxqi0zkQtF2hTs3SMiQbPZKODn05w30x/AO5kDPAsll+vSHYaOyzsLOTbRVd8h njqdY7GJSduOipKkJXybHgYTMa8vYQDkMwlLDxd++Cft38cGMhGg0I7S8qPAkS9YxH7w 3V6Q== 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:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=i5d78HNy4XSUNQIdzsOs5AZw4r9SoNPILnpMjg83Pp4=; b=GvTP4HkrrsHQYyufwPISXt/VTaX9Ibu1Cm2jEVXW4aw5AxzyK3fmfNsyV06Pjpk8dn gZO8tQZ8Q7otfnjImX95d6D+r+tjA971t3ClCe4Q2hmqh1lCfXHtsRFSI2DWqlsme9Mu Nrio/q1fjS20WYqca1WlP7iDuxKpLKgwk1lMk1ZOtfo/lAhvo9bBCtTOhHXtZIDyAC0H bvyZ3BMKovZSUKHfHoAHjN8RKGY6cmSLChc5G7sb8OyV56sG/jBF3kV9lIpswfh5ivDl iftHpku6LskrZiyQdoWmhU70b/rjoDZfu0miDEO9HxjH93KqOIlvw03+EJ2eUjXBid8r Wsgg== X-Gm-Message-State: AOAM5312LPAsM6X5OU/CDO3LIf+n9xZNNucKj/SYGLpT1j9hIOvI98TV 975VWewE8do5c1B2+NwTYdM= X-Google-Smtp-Source: ABdhPJwjDPWMzhbpXeeaG/x7xLyKo5cniHsxhANdpg4IDHYnsGDCjpbJxwvp8n8G0wv24bF13j7sGg== X-Received: by 2002:a17:906:6985:b0:6fe:988b:d248 with SMTP id i5-20020a170906698500b006fe988bd248mr37717305ejr.226.1653670539545; Fri, 27 May 2022 09:55:39 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id q14-20020a50c34e000000b0042bb015df6asm2268135edb.6.2022.05.27.09.55.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 May 2022 09:55:39 -0700 (PDT) Message-ID: Date: Fri, 27 May 2022 19:53:45 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: Alper Nebi Yasak Subject: Re: [PATCH V5 3/9] tools: binman: section: replace @ with - To: "Peng Fan (OSS)" Cc: u-boot@lists.denx.de, Peng Fan , Tim Harvey , sbabic@denx.de, festevam@gmail.com, trini@konsulko.com, Simon Glass References: <20220524080040.28653-1-peng.fan@oss.nxp.com> <20220524080040.28653-4-peng.fan@oss.nxp.com> Content-Language: en-US In-Reply-To: <20220524080040.28653-4-peng.fan@oss.nxp.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 24/05/2022 11:00, Peng Fan (OSS) wrote: > From: Peng Fan > > In arch/arm/dts/imx8mp-u-boot.dtsi, there are blob-ext@1, blob-ext@2 and > etc which is for packing ddr phy firmware. However we could not declare > symbol name such as 'binman_sym_declare(ulong, blob_ext@1, image_pos)', > because '@' is not allowed, so we choose to declare the symbol > 'binman_sym_declare(ulong, blob_ext_1, image_pos);' with '@' replaced with > '_'. It does not impact if there is no '@' in section name. You don't need this patch after the entry name changes. Either drop this patch, or handle this in the LookupSymbol() function. > Tested-by: Tim Harvey #imx8m[m,n,p]-venice > Reviewed-by: Tom Rini > Signed-off-by: Peng Fan > --- > tools/binman/etype/section.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py > index bd67238b919..e3f362b442b 100644 > --- a/tools/binman/etype/section.py > +++ b/tools/binman/etype/section.py > @@ -875,7 +875,7 @@ class Entry_section(Entry): > entries[entry.GetPath()] = entry > for entry in to_add.values(): > self._CollectEntries(entries, entries_by_name, entry) > - entries_by_name[add_entry.name] = add_entry > + entries_by_name[add_entry.name.replace('@', '-')] = add_entry > > def MissingArgs(self, entry, missing): > """Report a missing argument, if enabled