From patchwork Sun Sep 23 22:47:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 973775 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 Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42JN3g4t0Xz9sBZ for ; Mon, 24 Sep 2018 08:55:59 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 50C48C21FA1; Sun, 23 Sep 2018 22: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=none 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 873A0C21F24; Sun, 23 Sep 2018 22:48:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 17E8CC21F4D; Sun, 23 Sep 2018 22:47:55 +0000 (UTC) Received: from mail-oi0-f74.google.com (mail-oi0-f74.google.com [209.85.218.74]) by lists.denx.de (Postfix) with ESMTPS id 18C0FC21F31 for ; Sun, 23 Sep 2018 22:47:50 +0000 (UTC) Received: by mail-oi0-f74.google.com with SMTP id p11-v6so17926691oih.17 for ; Sun, 23 Sep 2018 15:47:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=u4Q61cmwxS5NG+HoikpFaqIFlT0t/CBxyKGEhwJ785A=; b=Ji8See+NcL3H8WFLh9BwDqYjLlNvPwXtsOlzlB24cSJGhS2QM1eYH4nma4ypOovNmu N5pZ8kaFia+//SbwnQ5KzTSFBkHS2msdA9qw8YGyEwpAiuFrWrMc+hGi+sTCbZXCV6Ti Z5VUxMtUdMrtubVHhGtM4Yo3SEmfCylFIhjYIHKxJ+mlM07XO+Hz80eXQBesnPgtQedt e6C+JRAB94zgn60UHk2PGvdNfztrpphz1+En/KmiYSdKit/TxDyn4SbcDTJSh1thNtv2 DsdWVPjrDsR4WZzTuIRm4WBlpfkkjK9ywadi+IVSM9c34zvTV4IoyYa0hnR36GlWmm/K szLg== X-Gm-Message-State: ABuFfohXnXcUlV3oqSrSPnnNJDcfe1i72YAddZpcScaVlFvwq6C8FP2O VlBxyF3qZpeVaH1n2BePGbuyvdY= X-Google-Smtp-Source: ACcGV61GfTpAc5qBiXwpsXGStUKeTularpkcC5YzE1cghGzp57FP4/e7o2oy3hvLwqaEG+ztrp9IrLw= X-Received: by 2002:a9d:30a1:: with SMTP id s33-v6mr8093439otc.107.1537742869101; Sun, 23 Sep 2018 15:47:49 -0700 (PDT) Date: Sun, 23 Sep 2018 16:47:22 -0600 In-Reply-To: <20180923224727.204542-1-sjg@chromium.org> Message-Id: <20180923224727.204542-11-sjg@chromium.org> Mime-Version: 1.0 References: <20180923224727.204542-1-sjg@chromium.org> X-Mailer: git-send-email 2.19.0.444.g18242da7ef-goog From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Stephen Warren Subject: [U-Boot] [PATCH 10/15] binman: Add a default path to libfdt.py 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" This module is often available in the sandbox_spl build created by 'make check'. Use this as a default path so that just typing 'binman -t' (without setting PYTHONPATH) will generally run the tests. Signed-off-by: Simon Glass --- tools/binman/binman.py | 2 ++ tools/dtoc/dtoc.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/tools/binman/binman.py b/tools/binman/binman.py index 1536e956517..f5af5359f3c 100755 --- a/tools/binman/binman.py +++ b/tools/binman/binman.py @@ -22,6 +22,8 @@ for dirname in ['../patman', '../dtoc', '..']: # Bring in the libfdt module sys.path.insert(0, 'scripts/dtc/pylibfdt') +sys.path.insert(0, os.path.join(our_path, + '../../build-sandbox_spl/scripts/dtc/pylibfdt')) import cmdline import command diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index 827094e72ab..33b2589c561 100755 --- a/tools/dtoc/dtoc.py +++ b/tools/dtoc/dtoc.py @@ -34,6 +34,11 @@ import unittest our_path = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(our_path, '../patman')) +# Bring in the libfdt module +sys.path.insert(0, 'scripts/dtc/pylibfdt') +sys.path.insert(0, os.path.join(our_path, + '../../build-sandbox_spl/scripts/dtc/pylibfdt')) + import dtb_platdata import test_util