Message ID | 20180717192552.198496-12-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 9b1a804d52832aa2ae62bef0254451606d5a1901 |
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 Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41VVzM5YVgz9s0w for <incoming@patchwork.ozlabs.org>; Wed, 18 Jul 2018 05:42:06 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id AF3F5C21E68; Tue, 17 Jul 2018 19:38:14 +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_H3, RCVD_IN_MSPIKE_WL 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 DE95DC21F01; Tue, 17 Jul 2018 19:26:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6CD7CC21F18; Tue, 17 Jul 2018 19:26:30 +0000 (UTC) Received: from mail-qt0-f202.google.com (mail-qt0-f202.google.com [209.85.216.202]) by lists.denx.de (Postfix) with ESMTPS id C00F1C21E3B for <u-boot@lists.denx.de>; Tue, 17 Jul 2018 19:26:20 +0000 (UTC) Received: by mail-qt0-f202.google.com with SMTP id k21-v6so1526266qtj.23 for <u-boot@lists.denx.de>; Tue, 17 Jul 2018 12:26:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id :references:subject:from:to:cc; bh=EBvPL1UpatGvVnbw54gevxM5q8uFgLyld02WgGF295U=; b=T46AIetQbnL9I8D/W5pAAWTZHafhaSWWNlqzkI24wa7Vz0QY2dTBhVk98m5uFEqWER AI6Eaf5aSPiZ1tBFoq2UqlrCGauAmzhLM3Pcimc2VWeuc5GFQGlMsXnpFTu4VeY3eUjs IdIMepQtY2bWIa4KEoJDEq4DZDFU4a9xFQgCXefoQBhP2K1MzF8HTS+Y8eTBnq+D0BLl ZzXlt5njSP7PPyiDfiuU61ZyNSS1HkzEr7Zh1q3YtS9sHi2eDiEY5MTIlOegBBcAhfAh xN8sAL4w9+mq0Yy6Vpu67QBPOFa9w4dyhlxOu76hgLY9tdYWKoiNhfIx6X6notOZadce R9ew== X-Gm-Message-State: AOUpUlHvft12pD9GNCf5WFMkPJ1fo0rxHojGs5hGMEvnTYZojx6iSccU vXCEeWaufgNNzedgQJgwNVcRaEA= X-Google-Smtp-Source: AAOMgpfTuAsH+Kt/bHRnJcGP6WgepqT/gaJaQ2BHWYGel/rmkpBICM0myX0/lgkboIo913r0XVg5yGc= MIME-Version: 1.0 X-Received: by 2002:a37:ddd3:: with SMTP id u80-v6mr1485689qku.16.1531855579918; Tue, 17 Jul 2018 12:26:19 -0700 (PDT) Date: Tue, 17 Jul 2018 13:25:34 -0600 In-Reply-To: <20180717192552.198496-1-sjg@chromium.org> Message-Id: <20180717192552.198496-12-sjg@chromium.org> References: <20180717192552.198496-1-sjg@chromium.org> X-Mailer: git-send-email 2.18.0.203.gfac676dfb9-goog From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com> Subject: [U-Boot] [PATCH 11/29] binman: Allow help to work without libfdt 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> 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: Expand feature set and documentation
|
expand
|
diff --git a/tools/binman/control.py b/tools/binman/control.py index 4fa505da81..3e5eac2c52 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -13,8 +13,6 @@ import tools import command import elf -import fdt -import fdt_util from image import Image import tout @@ -129,6 +127,11 @@ def Binman(options, args): options.indir.append(board_pathname) try: + # Import these here in case libfdt.py is not available, in which case + # the above help option still works. + import fdt + import fdt_util + tout.Init(options.verbosity) elf.debug = options.debug try:
At present binman needs libfdt.py to be available before it will do anything, even print help. Import those modules later to avoid this, as it is bad practice to fail to even show help on startup. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/binman/control.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)