From patchwork Wed Aug 5 19:27:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1341394 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=A08KNL9a; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BMM9M631kz9sTM for ; Thu, 6 Aug 2020 05:28:23 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 83C7482176; Wed, 5 Aug 2020 21:28:03 +0200 (CEST) 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="A08KNL9a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AF46E8217D; Wed, 5 Aug 2020 21:27:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 D6B958216F for ; Wed, 5 Aug 2020 21:27:55 +0200 (CEST) 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-x22c.google.com with SMTP id e6so20413259oii.4 for ; Wed, 05 Aug 2020 12:27:55 -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=g1zoANeAj++X5ze/Fd733rg5Lihoi52injHZXj7UFio=; b=A08KNL9arpjGvnAkTVTK5Ca/Oma5/zJGK7QAyZFOuyHb6R/ofAbh2SD/GUpUFJiUAL eGFz38cFzROAdALi6PRs3uJpgoOxA5Kr4fYa5V2PIwOt1G2qVjzKMxx15DZtLMsuxhqZ hsC5zMmwKK7RskRZaoJpZrgibGa8L9cdmCgY0= 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=g1zoANeAj++X5ze/Fd733rg5Lihoi52injHZXj7UFio=; b=KXsx8IoIRdsELc7vS4YYZrBrz4HmMkB3getgTaQ+cTkUhhr1Kg7GmDOZZb3pzyNznr Lnz6Ux5lXRAmzjIk54O8pVdLt1K08AvBYFQYDVErVovfKNYpgAX6EpfOMjkC79tl9AS5 VQzDu8lfH8QRKkTWx99c/wDuV/U+zsZhdDoHjygvXH1dlA3RAT/uNy2W6AVZ2WdQyPhD 6wExJN6XwxU4bnTUGDJ+HEvDIl+7+hFRDmdnOvKGSyRyuDYz+DwbXh46Z1a/AT9U9+2a 546RJvbGXLsBa8Z6vAtH+T29VBUaLhReqQcW0H1H/sddlPrvSzFUwbvr6+HGgcthFEWf PxsQ== X-Gm-Message-State: AOAM531hiMUlhhNN8Y3XKaRF47/pPKY+9PbxKtYxSakqT1yic95zKzsu 8GEJ5FLWgHw9X6Sa9NXhqBsfRLyOzj6bjQ== X-Google-Smtp-Source: ABdhPJxUiXHXwYaVsY7VlxReZLLg+GZNtFfN41UFwypaRkn/Z9HWj8Mx0p4oRi/rUzp4dMGX+8PZTA== X-Received: by 2002:aca:72c4:: with SMTP id p187mr3892696oic.141.1596655674410; Wed, 05 Aug 2020 12:27:54 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id v36sm629518ooi.46.2020.08.05.12.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 12:27:54 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH 1/4] binman: Move GetEntryModules() to control Date: Wed, 5 Aug 2020 13:27:46 -0600 Message-Id: <20200805132745.1.Ic9a97758c121b063de25e903fcb0f66ebd9f51f5@changeid> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200805192749.893661-1-sjg@chromium.org> References: <20200805192749.893661-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean When binman is installed its main program is in a different directory to its modules. This means that __file__ is different and we cannot use it to obtain the path to etype/ from main.py To fix this, move the function to the 'control' module, since it is installed with all the other modules, including the etype/ directory. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/binman/control.py | 13 +++++++++++++ tools/binman/ftest.py | 5 ++--- tools/binman/main.py | 16 ++-------------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tools/binman/control.py b/tools/binman/control.py index 343b0a0c35b..69c36ed6582 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -6,6 +6,7 @@ # from collections import OrderedDict +import glob import os import sys from patman import tools @@ -51,6 +52,18 @@ def _FindBinmanNode(dtb): return node return None +def GetEntryModules(include_testing=True): + """Get a set of entry class implementations + + Returns: + Set of paths to entry class filenames + """ + our_path = os.path.dirname(os.path.realpath(__file__)) + glob_list = glob.glob(os.path.join(our_path, 'etype/*.py')) + return set([os.path.splitext(os.path.basename(item))[0] + for item in glob_list + if include_testing or '_testing' not in item]) + def WriteEntryDocs(modules, test_missing=None): """Write out documentation for all entries diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index bf7f59fb841..fedcc1ada1b 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -24,7 +24,6 @@ from binman import control from binman import elf from binman import elf_test from binman import fmap_util -from binman import main from binman import state from dtoc import fdt from dtoc import fdt_util @@ -1440,14 +1439,14 @@ class TestFunctional(unittest.TestCase): def testEntryDocs(self): """Test for creation of entry documentation""" with test_util.capture_sys_output() as (stdout, stderr): - control.WriteEntryDocs(main.GetEntryModules()) + control.WriteEntryDocs(control.GetEntryModules()) self.assertTrue(len(stdout.getvalue()) > 0) def testEntryDocsMissing(self): """Test handling of missing entry documentation""" with self.assertRaises(ValueError) as e: with test_util.capture_sys_output() as (stdout, stderr): - control.WriteEntryDocs(main.GetEntryModules(), 'u_boot') + control.WriteEntryDocs(control.GetEntryModules(), 'u_boot') self.assertIn('Documentation is missing for modules: u_boot', str(e.exception)) diff --git a/tools/binman/main.py b/tools/binman/main.py index e543a7d06a7..3e463b0119b 100755 --- a/tools/binman/main.py +++ b/tools/binman/main.py @@ -10,7 +10,6 @@ """See README for more information""" from distutils.sysconfig import get_python_lib -import glob import os import site import sys @@ -78,20 +77,9 @@ def RunTests(debug, verbosity, processes, test_preserve_dirs, args, toolpath): return test_util.ReportResult('binman', test_name, result) -def GetEntryModules(include_testing=True): - """Get a set of entry class implementations - - Returns: - Set of paths to entry class filenames - """ - glob_list = glob.glob(os.path.join(our_path, 'etype/*.py')) - return set([os.path.splitext(os.path.basename(item))[0] - for item in glob_list - if include_testing or '_testing' not in item]) - def RunTestCoverage(toolpath): """Run the tests and check that we get 100% coverage""" - glob_list = GetEntryModules(False) + glob_list = control.GetEntryModules(False) all_set = set([os.path.splitext(os.path.basename(item))[0] for item in glob_list if '_testing' not in item]) extra_args = '' @@ -127,7 +115,7 @@ def RunBinman(args): args.toolpath) elif args.cmd == 'entry-docs': - control.WriteEntryDocs(GetEntryModules()) + control.WriteEntryDocs(control.GetEntryModules()) else: try: From patchwork Wed Aug 5 19:27:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1341395 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=WyiqKkbs; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BMM9R6snkz9sTS for ; Thu, 6 Aug 2020 05:28:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 84A3C821B2; Wed, 5 Aug 2020 21:28:06 +0200 (CEST) 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="WyiqKkbs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 96E4882176; Wed, 5 Aug 2020 21:28:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) (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 DF44982176 for ; Wed, 5 Aug 2020 21:27:56 +0200 (CEST) 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-ot1-x335.google.com with SMTP id h16so14202266oti.7 for ; Wed, 05 Aug 2020 12:27:56 -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=POGMci3DCyN6d6fzjtRsaCwoSkQFJkSCVPxHMpNX7YI=; b=WyiqKkbsdCr0Bmc0Zn77Vh8jQc6d99BFCQBwG9ny0+leLI2LlYSYoTjFPahEq+okwz jvzAnEOhBhmQrOs0sti3p1Ihl2e9FHhu6CLmNxtAU+npHKNo91Xt0QsG1om7MQvAl3dj 5PRDk5sbfrNcKxT5wWxh5BGlVR7REbWyAwPYA= 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=POGMci3DCyN6d6fzjtRsaCwoSkQFJkSCVPxHMpNX7YI=; b=hzlQ/YaVViEI879iJ5FkbifO7lI1USmwu1RRxapjI8seC3Qzy5CjGXWaSdvEJ4LsSC NntC8d/y9X2f5WR5YMFzygQzc2fYOfUTEQZ7awZpvYcqbGeukSNbrgKi4rWPCjRSZLBs 1bGhmD0JD9EktXndV6c3Lk8N8hZ5v3T/My/Q0E6NRkNYzP/WMw+IofGxeGIF0GzpyFcr wHO3Z5jvljAd8uApljlZJwnxU4e5tDypr91PGNY9nNzBwAxoewEbN0VCUQieonahAJrz MELa1kTpYMWqihgDJNL7oJ0EPK2KS/YCq6ADdcetIq5Uv6rb5an9q5gns2dR3c+0putz aimw== X-Gm-Message-State: AOAM5337DKC+Xg3WpmJq34WfAA4l/wRfyZ7U5MzSmLicUcC3CJyhco0E uVe9iN6nyl4MztlL0+OnP2ZqltBA+tWtXg== X-Google-Smtp-Source: ABdhPJzVI7ECrwK+9AjPClrwaDFPM/07CnAg6At0191VqCHqepklJEn3c0JZLDB6GpfR/CCfe2VHXg== X-Received: by 2002:a9d:d30:: with SMTP id 45mr4006609oti.101.1596655675560; Wed, 05 Aug 2020 12:27:55 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id v36sm629518ooi.46.2020.08.05.12.27.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 12:27:54 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH 2/4] binman: Correct some import statements Date: Wed, 5 Aug 2020 13:27:47 -0600 Message-Id: <20200805132745.2.I17a01474c421c1daedb4617a13425e7a5a291a38@changeid> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200805192749.893661-1-sjg@chromium.org> References: <20200805192749.893661-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Some of these were not converted when binman moved to use absolute paths. Fix them. Also drop the import of 'test' which is a directory, not a module. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/binman/control.py | 4 ++-- tools/binman/ftest.py | 2 +- tools/binman/image_test.py | 2 +- tools/binman/main.py | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/binman/control.py b/tools/binman/control.py index 69c36ed6582..60e89d3776b 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -123,7 +123,7 @@ def ReadEntry(image_fname, entry_path, decomp=True): data extracted from the entry """ global Image - from image import Image + from binman.image import Image image = Image.FromFile(image_fname) entry = image.FindEntryPath(entry_path) @@ -496,7 +496,7 @@ def Binman(args): return 0 # Put these here so that we can import this module without libfdt - from image import Image + from binman.image import Image from binman import state if args.cmd in ['ls', 'extract', 'replace']: diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index fedcc1ada1b..5f650b5f94c 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -29,7 +29,7 @@ from dtoc import fdt from dtoc import fdt_util from binman.etype import fdtmap from binman.etype import image_header -from image import Image +from binman.image import Image from patman import command from patman import test_util from patman import tools diff --git a/tools/binman/image_test.py b/tools/binman/image_test.py index f85c3c51c0f..e351fa84ab3 100644 --- a/tools/binman/image_test.py +++ b/tools/binman/image_test.py @@ -6,7 +6,7 @@ import unittest -from image import Image +from binman.image import Image from patman.test_util import capture_sys_output class TestImage(unittest.TestCase): diff --git a/tools/binman/main.py b/tools/binman/main.py index 3e463b0119b..8c1e478d54c 100755 --- a/tools/binman/main.py +++ b/tools/binman/main.py @@ -61,7 +61,6 @@ def RunTests(debug, verbosity, processes, test_preserve_dirs, args, toolpath): from binman import fdt_test from binman import ftest from binman import image_test - from binman import test import doctest result = unittest.TestResult() From patchwork Wed Aug 5 19:27:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1341396 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=M7xjEMfo; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BMM9d6KRwz9sTR for ; Thu, 6 Aug 2020 05:28:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 853D7821C8; Wed, 5 Aug 2020 21:28:08 +0200 (CEST) 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="M7xjEMfo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 04D278218E; Wed, 5 Aug 2020 21:28:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (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 0440C82165 for ; Wed, 5 Aug 2020 21:27:58 +0200 (CEST) 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-ot1-x32b.google.com with SMTP id z18so13782838otk.6 for ; Wed, 05 Aug 2020 12:27:57 -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=C4LqM9/qs/DkYGQnY942X+7e1iVxY931bu0uuU4H4iI=; b=M7xjEMfoZ+R4CXCTILQNGCsphOjpfwkpzncDo6e/3EEqGqGgBmZQZlXyTzfQlM70RV XP/xII0TbWEIqt3Sj2PUVKQRfNrBT0Rd+0ncMqeL1nb5QpgZSVUh+5u9yB/BVNwet0MS J2Ap0eOmEtWTzAfC2ujvIwcl/zqjT5nqcRGGM= 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=C4LqM9/qs/DkYGQnY942X+7e1iVxY931bu0uuU4H4iI=; b=BBUQm1iOYi0k6m7FHkwINLO8XmUvoPeYwi8iWFBVikbYxdnnZDDImu2CL0MraM3LZ6 sswmFrK2jFa8JNziIfQ/rn25lcgxCFATNW5DMhlI8kWXdkWmFVTxboQ2mYhXn86bKYll AT0LjOKpccmcOxYoM9DDh/FjVFomMgkLTahcNBdxrScbdTUhqwn8u9ffXm31IbrFPr4J h+sy1U8CYS4a5mfAtvoJY6bydABUtpqobvlQCSWHylMchFLnnjmWIHLX92aHrpxOb50b wRlUtiK9UdUwX93+j3JcMUiWC0dPP4RJSllsEXuerJ+KXCFqoQ5bGASJXYnT8u7rRkgK sgQA== X-Gm-Message-State: AOAM53201ENshqbDmEht1iEle3bn9F3QDoHgk5QbiChbXZ7mEUflRgLS IcjgI8trTu5zzTL5Hzb3nWGfpy316skn1g== X-Google-Smtp-Source: ABdhPJzuT3SD4ujOWV1Waa/4lZMZG8INMpZr++kehvNbmPB6Qes6F/JzWChmpIyXK2m/JehX/Q1L/g== X-Received: by 2002:a05:6830:3094:: with SMTP id f20mr4163080ots.283.1596655676671; Wed, 05 Aug 2020 12:27:56 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id v36sm629518ooi.46.2020.08.05.12.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 12:27:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH 3/4] dtoc: Add a setup script for Python Date: Wed, 5 Aug 2020 13:27:48 -0600 Message-Id: <20200805132745.3.I0f7ab37336eb2681522f3fcb22e4cc1c13dbd642@changeid> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200805192749.893661-1-sjg@chromium.org> References: <20200805192749.893661-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Allow dtoc to be installed by adding a suitable setup.py script. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/dtoc/setup.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tools/dtoc/setup.py diff --git a/tools/dtoc/setup.py b/tools/dtoc/setup.py new file mode 100644 index 00000000000..5e092fe0872 --- /dev/null +++ b/tools/dtoc/setup.py @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0+ + +from distutils.core import setup +setup(name='dtoc', + version='1.0', + license='GPL-2.0+', + scripts=['dtoc'], + packages=['dtoc'], + package_dir={'dtoc': ''}, + package_data={'dtoc': ['README']}, + classifiers=['Environment :: Console', + 'Topic :: Software Development :: Embedded Systems']) From patchwork Wed Aug 5 19:27:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1341397 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=mGk8EjhP; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BMM9q1tq5z9sTM for ; Thu, 6 Aug 2020 05:28:47 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 28C63821A5; Wed, 5 Aug 2020 21:28:10 +0200 (CEST) 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="mGk8EjhP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EF9018218E; Wed, 5 Aug 2020 21:28:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) (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 01CDE8216F for ; Wed, 5 Aug 2020 21:27:59 +0200 (CEST) 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-oo1-xc36.google.com with SMTP id k63so6183641oob.1 for ; Wed, 05 Aug 2020 12: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=1PxVEnYjOgmY4a2DbWpwNN1Tltcg3MonNHo2mH0fPZ4=; b=mGk8EjhPuE8KvZaIriQXeoO2wuiiuOp3M4M9Mq5JOxyt4h+QK659BOW4FFnpXHsOrp KXaAD/LSL4KOO8Ud4Aoae4lwg7UQHDFRbA86APuvIiFk8Ubj69I4i0YuQUqWTt74e18S IKTcVyGtlkxUh2nvpAI7FDm2gLbOKaayPlFow= 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=1PxVEnYjOgmY4a2DbWpwNN1Tltcg3MonNHo2mH0fPZ4=; b=sgfgjCg34tyZb8Wr/Euy4X6pZ4IAB7Qfa9U/lVvtN77OiKYCPdR2WvWn2NZmnjZzqE T/sm1coM/UdhQdqq7ggpNfG892v7m6xMdhGxpWkVGAU77plSU3FmzkUJTQx0BO1s+IFZ ImT0PhArqrQRJDXSPsomJXyGENY5sMm0tWnmOPS05+v/9Z6ucwWrO7jveaX9B1HJuchp zhte3Uso+2SxrNiF3TiQ6eC77CwIREqe/j6nJYrfRga+wsW04LZRkIAcyNNOd4wN6fvv Ih2lKHnOcPrsTY7lXFzkeuI3D0eqHfS6k4YiCv3EuUI7/GRqXSqjOj1AFj0igrOkTilA Z2EA== X-Gm-Message-State: AOAM530xKqqL1USkTTcflfvPv+EBWX6YwtZlWwuiLrk761G7nEXb+4Yh 2yhvhQ5GfeJvMmyfzySQ/Q7VPKIO/1+7XA== X-Google-Smtp-Source: ABdhPJxs+Dl8YKqwP1jrM0unzADBzYF5c+kP87yEbSN6H3XMNVCIgYU4//GfEUFJNrbETG7XQFoaLg== X-Received: by 2002:a4a:ca11:: with SMTP id w17mr4375327ooq.88.1596655677515; Wed, 05 Aug 2020 12:27:57 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id v36sm629518ooi.46.2020.08.05.12.27.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 12:27:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH 4/4] binman: Add a setup script for Python Date: Wed, 5 Aug 2020 13:27:49 -0600 Message-Id: <20200805192749.893661-2-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200805192749.893661-1-sjg@chromium.org> References: <20200805192749.893661-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Allow binman to be installed by adding a suitable setup.py script. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/binman/setup.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tools/binman/setup.py diff --git a/tools/binman/setup.py b/tools/binman/setup.py new file mode 100644 index 00000000000..fe408ed6911 --- /dev/null +++ b/tools/binman/setup.py @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0+ + +from distutils.core import setup +setup(name='binman', + version='1.0', + license='GPL-2.0+', + scripts=['binman'], + packages=['binman', 'binman.etype'], + package_dir={'binman': ''}, + package_data={'binman': ['README', 'README.entries']}, + classifiers=['Environment :: Console', + 'Topic :: Software Development :: Embedded Systems'])