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 3F1D2C433F5 for ; Tue, 23 Nov 2021 18:04:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D742F83744; Tue, 23 Nov 2021 19:04:31 +0100 (CET) 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="Aurp0KEy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F125F836E8; Tue, 23 Nov 2021 19:04:20 +0100 (CET) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (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 1B3EF801E7 for ; Tue, 23 Nov 2021 19:04:14 +0100 (CET) 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-oi1-x22e.google.com with SMTP id s139so46018008oie.13 for ; Tue, 23 Nov 2021 10:04:14 -0800 (PST) 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=8yT7pS4PBSJmU/haD9crdV7X9KYPfadsPUlFD9H0j2E=; b=Aurp0KEyNqtG/46+cTx1IwAAgbu7gViTntWwkzVHRciNcvxvfcG8aQynDkSYhLeJ6w /SgkR/lKtp/tdRQDrVik/x2waNyKBxD8siHYQyRkzME14Cf96hfxC/NMUN7Augmajdv7 Ayfpkb86pMBa05Cp9xjap1z/fAjAnPTq3Fs1k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8yT7pS4PBSJmU/haD9crdV7X9KYPfadsPUlFD9H0j2E=; b=l+JTtCu3nhWTXfEWNW/GABEPdQdhrNDvOR6ok7wix77izGbpU2Esnlv/gVo5DJURUn nO35J55tkMZP839EnxtBvLE3lxAocAusEi5D2/PfKn/+JWBUHgZuqHRGhKBHkmfxUlw7 fodP0H/jI8EHEjIQlG7NwSxWKTzIzB2x4sJXqQKPh9K2SpVdLAIkx4wqX6m9mBqbRHUS 4Gu3rUyreDoffT9v85jZPv+YInwnwR6aVe02B92+U2tsespRhO4czxdFTUO/2gr+WjSe tESau/8Xf5oGMISHzhkW2tP/8k+yM2uHlJvLYQNiCJe2U3Ai4prlKPtd8P2ZGCAInUwe y8CA== X-Gm-Message-State: AOAM531NNDJ2SRXpl9520nx3YmnaAUL04j1z/jEObuj//gDd6h/RPU+R w8F/rNZpkuA10D5/Yn7aWXd6MzzzADVyMQ== X-Google-Smtp-Source: ABdhPJzGzTrvjdm2sywWUOH6DMDbRB5MoVEoXzZk9+Wb23uwQQzZAYH8lcmgXsRG+rDhMzXR6yw77w== X-Received: by 2002:a05:6808:f15:: with SMTP id m21mr4457465oiw.68.1637690653342; Tue, 23 Nov 2021 10:04:13 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id c8sm2357514otk.40.2021.11.23.10.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 10:04:13 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Walter Lozano Subject: [PATCH 01/17] dtoc: Bring in the libfdt module automatically Date: Tue, 23 Nov 2021 11:03:38 -0700 Message-Id: <20211123180354.615946-2-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog In-Reply-To: <20211123180354.615946-1-sjg@chromium.org> References: <20211123180354.615946-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean Use the same technique as with binman to load this module from the U-Boot tree if available. This allows running tests without having to specify the PYTHONPATH variable. Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index d104f3c7745..d86fc86187e 100755 --- a/tools/dtoc/test_fdt.py +++ b/tools/dtoc/test_fdt.py @@ -16,6 +16,12 @@ import unittest our_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(1, os.path.join(our_path, '..')) +# Bring in the libfdt module +sys.path.insert(2, 'scripts/dtc/pylibfdt') +sys.path.insert(2, os.path.join(our_path, '../../scripts/dtc/pylibfdt')) +sys.path.insert(2, os.path.join(our_path, + '../../build-sandbox_spl/scripts/dtc/pylibfdt')) + from dtoc import fdt from dtoc import fdt_util from dtoc.fdt_util import fdt32_to_cpu -- 2.34.0.rc2.393.gf8c9666880-goog