From patchwork Mon Nov 9 03:36:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1396487 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=ao/vYGwC; 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 4CTxW53J3jz9sRK for ; Mon, 9 Nov 2020 14:36:49 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D58F182399; Mon, 9 Nov 2020 04:36:34 +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="ao/vYGwC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3534A824A8; Mon, 9 Nov 2020 04:36:32 +0100 (CET) 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-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) (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 BECAC822D2 for ; Mon, 9 Nov 2020 04:36:27 +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-io1-xd44.google.com with SMTP id o11so8370201ioo.11 for ; Sun, 08 Nov 2020 19:36:27 -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:mime-version :content-transfer-encoding; bh=diVQj6rtJQn1lcZzFhUmeLnhn/fYCQzgHd78fArkbqE=; b=ao/vYGwC6igc3PGEoFBMy9U593QF7WRytatwk4ioUZj0wpwIIX5mnA6wxZVA892SyN YdOj162l3sW0bhyGIXo9ONiBkPmwBEpJJVwd4JcByoB8p0iCVU9wutAQSO8W7eGNxavE yyy2Qylnfr/Zoe5gZN6zG/churfCid0XdiqJ0= 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:mime-version :content-transfer-encoding; bh=diVQj6rtJQn1lcZzFhUmeLnhn/fYCQzgHd78fArkbqE=; b=dNZ8vcc5BoNgZkpzxIV7DAKMYbJSMPzGQtoECpdPnnItE4v0wtCorRYcHaBu4Yh0RP VKviK9oiPsQqUCnJm67lyX2+nV5uVYBRQVTlyhOpQhpkyHpc9uG2VSRdv3+QBLLbpi5F mlVzW+uGnQiJ9bbnW9idzb6V15YrTr1KuCbQEAcHwG98ZmhjTM40bWqXUkZq6BrczmIO IhnMJ7hUvtneo5s6ilpbfjGDR6hc4jcnJcEKDaTT/l1/szYZiooaMpRDSlzDS8z7BZmN wkDy4tyB9ew8IvPhlMgWgqj4R2vZYit9qxY21jZSwN3Oo6LuFh9u3kdBbLstTlxpiODO CKJg== X-Gm-Message-State: AOAM531BBrCgImfep4KL9j+Ifo37a9RUyGft6vTEiXG+SLj3GIyPSCxW vl+R/N63juQp9ctVTZ7Jh6ihxh2kq586kQ== X-Google-Smtp-Source: ABdhPJx+u5INAxRq7FBcJr/Eiw+F+ynQVH1U+C4iQpV5jT0yASMsPVK4MzjK8rxOYe7fyKEDseK42Q== X-Received: by 2002:a02:1783:: with SMTP id 125mr9639373jah.121.1604892985041; Sun, 08 Nov 2020 19:36:25 -0800 (PST) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id e13sm6080868ili.67.2020.11.08.19.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Nov 2020 19:36:23 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Bin Meng , Jerry Van Baren , Walter Lozano Subject: [PATCH 0/5] patman: Tidy up some hangovers from Python 2 Date: Sun, 8 Nov 2020 20:36:16 -0700 Message-Id: <20201109033621.1859598-1-sjg@chromium.org> X-Mailer: git-send-email 2.29.2.222.g5d2a92d10f8-goog 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 Various functions were used to deal with the differences between Python 2 and 3. These can be removed now that Python 2 is not supported. Also tidy up the code style in dtb_platdata.py Simon Glass (5): fdt: Use an Enum for the data type patman: Drop unicode helper functions patman: Drop tools.ToByte() patman: Drop tools.ToChar() and ToChars() dtoc: Tidy up Python style in dtb_platdata tools/binman/elf.py | 6 +-- tools/binman/etype/fmap.py | 2 +- tools/binman/fdt_test.py | 14 +++--- tools/binman/fmap_util.py | 3 +- tools/dtoc/dtb_platdata.py | 96 ++++++++++++++++++++++---------------- tools/dtoc/fdt.py | 58 +++++++++++++++-------- tools/dtoc/test_dtoc.py | 10 ++-- tools/dtoc/test_fdt.py | 34 +++++++------- tools/patman/func_test.py | 16 +++---- tools/patman/gitutil.py | 3 +- tools/patman/series.py | 4 +- tools/patman/settings.py | 5 +- tools/patman/tools.py | 85 ++------------------------------- 13 files changed, 140 insertions(+), 196 deletions(-)