From patchwork Sat Aug 24 13:23:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1152629 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="f2vabed/"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Fzpl11GFz9s7T for ; Sat, 24 Aug 2019 23:37:35 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C773BC21E07; Sat, 24 Aug 2019 13:33:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 88A52C21E89; Sat, 24 Aug 2019 13:30:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7F75AC21DAF; Sat, 24 Aug 2019 13:28:02 +0000 (UTC) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by lists.denx.de (Postfix) with ESMTPS id 0D5D0C21D4A for ; Sat, 24 Aug 2019 13:27:59 +0000 (UTC) Received: by mail-io1-f48.google.com with SMTP id t6so26699702ios.7 for ; Sat, 24 Aug 2019 06:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a39owbv1ffte0ESLvCaYmbgPN4FHKUS1oJnIL8QrJQ0=; b=f2vabed/9ex5hIaiSCI3Zkx1ZfzGm2IAAPCwobIWkrudVlkv7QFm8xq4y+KZIVLoXL Tqd2V1T6Q6uac9tpwFhKXaHB9Pyr2iqNxPoWoWBo2U1emhM4oCGn0CkNOQ4jtJHbTAaT ofek3OEa2PWb1NdyfNMy1rac/yuNj9JIJmS1I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=a39owbv1ffte0ESLvCaYmbgPN4FHKUS1oJnIL8QrJQ0=; b=irz0J2AO5Y/oneuvkXqlhNz7UNdsZFCZ7WHJEaexvlwfH+xV+s2dGErDTqjLiCtjUr rmjG3QZOssMVcUQC1K00HLPWfsAlKQVDzsCG4m8Z4elO5QbnYDp5cJmTRSTeD7WsetDm Uj6T0WJTS5WVeuT/vUA8QUjL8x4YF/CdIGwaGDyTtqpF3pp76wYXcGFZg0SXrCpdtnW4 2S2STRnAGDI8gh4m3gkZZ1tKiuNS7h7Fu9fgVlqIhiT0Oaxz9GK+H7pEpvnKOEaj/iR9 +t/VzifcSg3JQcmBgoXDPN+mThq8XvQXXJcJ15Pjso4KTQtpRP1Wfa0dxFCYqoxxuFkE n0ag== X-Gm-Message-State: APjAAAUa1QJ8itDozKGGre5UqjFsokPsxqGO3xP0/WC29kuyeIsMqqph OQ51xHE3kECLco1rYawMBMKtMZ/DnuE= X-Google-Smtp-Source: APXvYqzHnBx47fL9Mw/QKlUdLwAX+13Nzl3HNuNX/kCk+yZZCRVHBPVOOm4Ks1WLG1y/aD6fZAeBug== X-Received: by 2002:a02:6d24:: with SMTP id m36mr9633495jac.87.1566653277898; Sat, 24 Aug 2019 06:27:57 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id l2sm8881790ioq.83.2019.08.24.06.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Aug 2019 06:27:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 24 Aug 2019 07:23:11 -0600 Message-Id: <20190824132315.53130-32-sjg@chromium.org> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog In-Reply-To: <20190824132315.53130-1-sjg@chromium.org> References: <20190824132315.53130-1-sjg@chromium.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 31/34] binman: Support writing symbols into entries within an IFWI X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" The Intel IFWI (Integrated Firmware Image) is effectively a section with other entries inside it. Support writing symbol information into entries within it. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/binman/etype/intel_ifwi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/binman/etype/intel_ifwi.py b/tools/binman/etype/intel_ifwi.py index 17792defe9..36aadc210c 100644 --- a/tools/binman/etype/intel_ifwi.py +++ b/tools/binman/etype/intel_ifwi.py @@ -118,3 +118,8 @@ class Entry_intel_ifwi(Entry_blob): entry._ifwi_subpart = fdt_util.GetString(node, 'ifwi-subpart') entry._ifwi_entry_name = fdt_util.GetString(node, 'ifwi-entry') self._ifwi_entries[entry._ifwi_subpart] = entry + + def WriteSymbols(self, section): + """Write symbol values into binary files for access at run time""" + for entry in self._ifwi_entries.values(): + entry.WriteSymbols(self)