Message ID | 20180606004705.79641-9-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="IqlIfAOS"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 410qtd62qHz9s08 for <incoming@patchwork.ozlabs.org>; Wed, 6 Jun 2018 10:54:01 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 83F34C21F27; Wed, 6 Jun 2018 00:50:40 +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_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 E703DC21FB9; Wed, 6 Jun 2018 00:48:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B15DDC21FCB; Wed, 6 Jun 2018 00:47:42 +0000 (UTC) Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by lists.denx.de (Postfix) with ESMTPS id C4AB9C21FB5 for <u-boot@lists.denx.de>; Wed, 6 Jun 2018 00:47:37 +0000 (UTC) Received: by mail-it0-f67.google.com with SMTP id l6-v6so5844330iti.2 for <u-boot@lists.denx.de>; Tue, 05 Jun 2018 17:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=qxP5jQxheKZw6YyJApdTSgBZu38rsfMyjr3vBbgzvH4=; b=IqlIfAOS+nsgF02Db+5g3IbT7HnqW8J3nk2GzOIgesLnxaC72qbfzQegGUTkFOJr0i VnF1XkK2HQ4bbSWrDuyNLhxpb4gfhWKnByhsZW3ZO12zh9TKYMxh2Zqn4RXH74UGS8ez gUfGIiii7PrL+N78E44a7KXXo8+jyAfX2uMQV8XHkaXv+IiYBdFKdulAv9DipziQj3NW M8Rwbp8TFxDmFbXpRp6ZRunO4X5N7IZK9ffwrMnxJBiKrPXvKW2Ncj+T7RGXISwThsho rS+dJOqZ2D8TE0qCKOQ2zqFhd4vgrUVe9I/Z05nyttDlRe+3F/GGkpcp1HsiV8y9U93M HzuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=qxP5jQxheKZw6YyJApdTSgBZu38rsfMyjr3vBbgzvH4=; b=jRpdqCsFeq/0yUHlSOmA1dI5sFpRcLZlmesGE6xaeLCT+NzBmTx8fAJYHrix64o5zR 55otVMsNCUXogwXNQABMM4MEdqIxbGyq9JiIRZaf1hJS1WmFTZsAOxqWqfVpGCO5LtL3 bQSKOqzfwlTQ7L+j6nIJ1QO6QkStZY9OB3ajfzkpyog+U2AkvIE4bgfWFG7MxR+w5VFG DIXNTF1umtV10ZqhNpWjJtt8LpgJK6BK70hzWahSXzviNqCPrsNl9w7MnpmNOxAzbMYt Trm+BIn+xM+mJCCIJammbP2dVku4fh5s4fP2FLvQDvzNxyio0hzB+wMZA/C+b0ea7Duf NNrw== X-Gm-Message-State: APt69E0gEToRPsxOe9GD+6Y5FxOK0D5M752Q0L7Wfznx0yOll03LZ/JR GPbkADulS8prlz0Hdl7D3yduNg== X-Google-Smtp-Source: ADUXVKJYwG5rULJZ47jUAnqFNh1nuSpzEMTTE1NTHhitxu0fAuYOJ5+FbE7aHnsxzg4CbbGcv8LckA== X-Received: by 2002:a24:4d8d:: with SMTP id l135-v6mr436147itb.121.1528246056249; Tue, 05 Jun 2018 17:47:36 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id u3-v6sm4266223ioc.67.2018.06.05.17.47.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 17:47:35 -0700 (PDT) Received: by kiwi.bld.corp.google.com (Postfix, from userid 121222) id 11B1D140700; Tue, 5 Jun 2018 18:47:35 -0600 (MDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Tue, 5 Jun 2018 18:46:44 -0600 Message-Id: <20180606004705.79641-9-sjg@chromium.org> X-Mailer: git-send-email 2.17.1.1185.g55be947832-goog In-Reply-To: <20180606004705.79641-1-sjg@chromium.org> References: <20180606004705.79641-1-sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com>, Devicetree Compiler <devicetree-compiler@vger.kernel.org> Subject: [U-Boot] [PATCH 08/29] libfdt: Fix the Python pack() function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
binman: Add more tests and support for updating the device tree
|
expand
|
diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped index 6774b93b2cb..5b38e63b267 100644 --- a/scripts/dtc/pylibfdt/libfdt.i_shipped +++ b/scripts/dtc/pylibfdt/libfdt.i_shipped @@ -442,7 +442,11 @@ class Fdt: Raises: FdtException if any error occurs """ - return check_err(fdt_pack(self._fdt), quiet) + err = check_err(fdt_pack(self._fdt), quiet) + if err: + return err + del self._fdt[self.totalsize():] + return err def getprop(self, nodeoffset, prop_name, quiet=()): """Get a property from a node
This currently fails to reduce the device-tree bytearray size. Fix this. This stands in for a pending upstream change. Signed-off-by: Simon Glass <sjg@chromium.org> --- scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)