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 54BD1C6FD18 for ; Tue, 18 Apr 2023 15:31:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F325B860B0; Tue, 18 Apr 2023 17:31: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="e0ZyxHhF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3CD29860AF; Tue, 18 Apr 2023 17:31:21 +0200 (CEST) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 D43EE860CB for ; Tue, 18 Apr 2023 17:31: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-xd29.google.com with SMTP id ca18e2360f4ac-760ec550833so145200639f.3 for ; Tue, 18 Apr 2023 08:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1681831876; x=1684423876; 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=ePE9NlY3gz7+OMFjWfEWarxX+COCzrc2ArJRYt8ZwQU=; b=e0ZyxHhFtVxPD8AaDgNltZmbKHnF2NLU5rImifChyT0Jj3Eidb51D8O9KGFHlzCLEF QPi65OmD9RB7usXrd5zYbEOG1DAob5g166s7pKbJ6nBcOwfnmt+oRadhd3cGT0uwwanC 0eCnplmcbvSvuqa3Rk+PkjgK1DO3qlb5qg0Ck= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681831876; x=1684423876; 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=ePE9NlY3gz7+OMFjWfEWarxX+COCzrc2ArJRYt8ZwQU=; b=bVWDV+BjK+JqLO3pIb9f/EESeRt8thRFRA7SS6+Nlv6heLSTuMkB+4Yh15low0pE0H giBW4QpS/rrfNizmfeV93WumM6t+15WC8+6GubTvGang+86r2jXancJVjnUbbUBv90zT lIIIqbO6vtz2EgCcAC5jABKewg4oxLOwySmwGuGd6Y7Ly7thhND5iosYZYkg8oK7G6C6 JfAQMsjH97F9IAeCWCu7gdSwD2cOYL2O8SNBwRBqwfOKfgZ17LJMRHC4ddg2aHMI1KwA GAcJN+7m5sVtzr7GWHijipROEllVK5W8RRGHapkzYlcb6UKXqki/JJeNvaP1Hx13nKHI MWGQ== X-Gm-Message-State: AAQBX9ffO2hV2XU7VpHhoA7/5K/SUspAMDJPF2BqsXbxti2/4z/4AX+S TuSrjl/M7Tbk9n+u5oMTHIw/C3bj9sYtu7O0FD0= X-Google-Smtp-Source: AKy350a3LFkzxj5UQyKM5yDQ60M4NVhVXJMRJEp1vnaBKkeXHnZk4gl1FwRJA4RPbwOb1abZ4Ibgjw== X-Received: by 2002:a05:6602:314b:b0:763:5f92:afc4 with SMTP id m11-20020a056602314b00b007635f92afc4mr2187503ioy.1.1681831876377; Tue, 18 Apr 2023 08:31:16 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id x8-20020a5d9448000000b0075845625e38sm4005945ior.28.2023.04.18.08.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 08:31: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 v2 02/18] binman: Support writing symbols for ucode etypes Date: Wed, 19 Apr 2023 03:30:45 +1200 Message-ID: <20230418153101.115816-3-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog In-Reply-To: <20230418153101.115816-1-sjg@chromium.org> References: <20230418153101.115816-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 --- (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 72739a5eb67b..18b99b00f4a0 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 86f9578b714e..f8cc22011ce9 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 41731fd0e134..aab27ac8ee7c 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.0.634.g4ca3ef3211-goog