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 50C33C7EE21 for ; Thu, 4 May 2023 22:51:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0626885C2B; Fri, 5 May 2023 00:51:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="MOcIZX8V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D3654859AB; Fri, 5 May 2023 00:51:21 +0200 (CEST) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (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 8836C859AB for ; Fri, 5 May 2023 00:51:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-760f5070ccfso75779839f.2 for ; Thu, 04 May 2023 15:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683240677; x=1685832677; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RxDxpmRcbHPETq7KsPLhSGw+BZ16iHHQpBDp8ILG5Qc=; b=MOcIZX8Vv2ih3Z1r8qnPbgvcU/qlZ3e0idkoEwjCuZfi/S17A47XAWB4yi0WsbU9n1 Wf9MmxqaUM3HruyPRaY8Q36db4lhdZ1ixhmtiJnORtJaSd5panpmys0q8kDg3vVv1kAL JqTgv7Rs6VJi2a7xyIRmGc9iwpZl3YcCw/fpo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683240677; x=1685832677; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RxDxpmRcbHPETq7KsPLhSGw+BZ16iHHQpBDp8ILG5Qc=; b=VUFBC8zGjxJy+yvZpu6eFRjq6OkZrqDcclVoGXI4YcYZqccpeTmsKigt0LHmW2eDBI IzWINp5AyvfJSZGvZokGE8yWvPPXanWjdcAUIqNailRSLMmzrdG7HYfzTVuPDTcBX/Zb vq00ZbNb8GY2GdrjbsdjAAuhm0ic/RFqA+lA8Xvdo3+fTpONMqx+nv1hJTe3NOR5WrUF ekKs6aCdBFlVbnKxv64OAe1vAjpi4kUqqsJHB3cuVbyXpbub9o4Lnw31ax8LrmECCQ8u C/MzsBlx8BoU1kMD2JaMdOYhhZzyVHD5UtwlU9dlpiILwhkTmYMUDSuNb4wtaX3FLVMl bLAA== X-Gm-Message-State: AC+VfDwCGoa9eyOp9Xe206tnGs8RloM9fGWT6rTR7of3MkMsHb32mj77 uV/NvnipSUswzNLmZpHXOh3FVN46NYLIp2OJWh8= X-Google-Smtp-Source: ACHHUZ4C0f09cMPsIxbOeGj9/uMkklqzaXW4TJgtVJmeMgVG99qH3th9SveWaTftRkWJRRq/qdl5ow== X-Received: by 2002:a5d:9e58:0:b0:758:d18e:5c71 with SMTP id i24-20020a5d9e58000000b00758d18e5c71mr296992ioi.7.1683240676728; Thu, 04 May 2023 15:51:16 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:b5a:9fa0:3da:54ec]) by smtp.gmail.com with ESMTPSA id a26-20020a02735a000000b00414559b3ae8sm166458jae.103.2023.05.04.15.51.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 15:51:16 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Alper Nebi Yasak , Neha Malcom Francis , Peng Fan , Philippe Reynes , Stefan Herbrechtsmeier Subject: [PATCH v3 02/17] binman: Support writing symbols for ucode etypes Date: Thu, 4 May 2023 16:50:46 -0600 Message-ID: <20230504225101.2366414-3-sjg@chromium.org> X-Mailer: git-send-email 2.40.1.521.gf1e218fcd8-goog In-Reply-To: <20230504225101.2366414-1-sjg@chromium.org> References: <20230504225101.2366414-1-sjg@chromium.org> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Allow symbol writing in these cases so that U-Boot can find the position and size of U-Boot at runtime. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) tools/binman/etype/u_boot_spl_with_ucode_ptr.py | 2 +- tools/binman/etype/u_boot_tpl_with_ucode_ptr.py | 2 +- tools/binman/etype/u_boot_with_ucode_ptr.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/binman/etype/u_boot_spl_with_ucode_ptr.py b/tools/binman/etype/u_boot_spl_with_ucode_ptr.py index 72739a5eb67..18b99b00f4a 100644 --- a/tools/binman/etype/u_boot_spl_with_ucode_ptr.py +++ b/tools/binman/etype/u_boot_spl_with_ucode_ptr.py @@ -18,7 +18,7 @@ class Entry_u_boot_spl_with_ucode_ptr(Entry_u_boot_with_ucode_ptr): process. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'spl/u-boot-spl' def GetDefaultFilename(self): diff --git a/tools/binman/etype/u_boot_tpl_with_ucode_ptr.py b/tools/binman/etype/u_boot_tpl_with_ucode_ptr.py index 86f9578b714..f8cc22011ce 100644 --- a/tools/binman/etype/u_boot_tpl_with_ucode_ptr.py +++ b/tools/binman/etype/u_boot_tpl_with_ucode_ptr.py @@ -20,7 +20,7 @@ class Entry_u_boot_tpl_with_ucode_ptr(Entry_u_boot_with_ucode_ptr): process. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'tpl/u-boot-tpl' def GetDefaultFilename(self): diff --git a/tools/binman/etype/u_boot_with_ucode_ptr.py b/tools/binman/etype/u_boot_with_ucode_ptr.py index 41731fd0e13..aab27ac8ee7 100644 --- a/tools/binman/etype/u_boot_with_ucode_ptr.py +++ b/tools/binman/etype/u_boot_with_ucode_ptr.py @@ -28,8 +28,8 @@ class Entry_u_boot_with_ucode_ptr(Entry_blob): microcode, to allow early x86 boot code to find it without doing anything complicated. Otherwise it is the same as the u-boot entry. """ - def __init__(self, section, etype, node): - super().__init__(section, etype, node) + def __init__(self, section, etype, node, auto_write_symbols=False): + super().__init__(section, etype, node, auto_write_symbols) self.elf_fname = 'u-boot' self.target_offset = None -- 2.40.1.521.gf1e218fcd8-goog