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 3A99CC64ED6 for ; Fri, 24 Feb 2023 01:24:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6CA7585B8C; Fri, 24 Feb 2023 02:20:55 +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="n9xlw6d0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E7C085AE9; Fri, 24 Feb 2023 02:19:35 +0100 (CET) Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (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 4C53085B21 for ; Fri, 24 Feb 2023 02:19:28 +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-il1-x129.google.com with SMTP id i4so5062173ils.1 for ; Thu, 23 Feb 2023 17:19:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fowQDjsaE7PHF0kjIOvtxlsmCkF/GGIi4mZSP1pCqog=; b=n9xlw6d03FjjIdiDThQKy9dZ967wRK7t8WGKiG0sdzMrmidAxRX/EmXybJBUKHuncJ ao4DjlVzuqzl+fXT3lrNFIWQsIwtdM6xKWYFAYqwbhnexVz4iItt0xmsvYna8IZwIqf4 3ntA1Rt2H2+KbISDHnHWCUcNhtFrgfnLUsLwg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fowQDjsaE7PHF0kjIOvtxlsmCkF/GGIi4mZSP1pCqog=; b=b2pP8nktAnlFMx2w2qJr+Jj53cSs+YCgYdBzsP+gmVRbJIKuFIXAHDFH+Q1Teflez7 KgISNhTOarD0j6eGaccWwK/Zk+eHqnZiPFSEwuv2q3hpIZnYDBvz1+xn3VxYKvLdlquP 9UiuxNKa0oaFQnrtHBHWQki0M1+q4Jv5BTWjY5HNqD5Rz1zA+D9NnAktV/u3PX1IkSYS WXPH41Cazj+/im45Nnf7MkgqDKdgmURZl5eFdLEDg21Fb9RRrzdQ9MOQmAGfIsbb0COn U6jaLPDgIG5T+LUrURenLH+F5j7ANOtfgrjKwlU0hAf+dBrXgCjkhBItKaD/mC6N5Kr1 8qpA== X-Gm-Message-State: AO0yUKWuSFqzai81yZlKNFd2pQ82B6blMfHVP1Yd01l8NdkzNCyaDEox /7pgaMEQqGN4GV1vCmSupW1+HV9M35dkXTR0 X-Google-Smtp-Source: AK7set+NOSRJHRnvuVymgX0M9MQjlZytwttKYTWR5wsPjmzHr6SrFNzmeeJJwDvjSNVDpqYmQm5ymw== X-Received: by 2002:a05:6e02:1d1c:b0:315:359e:2750 with SMTP id i28-20020a056e021d1c00b00315359e2750mr13716604ila.20.1677201542954; Thu, 23 Feb 2023 17:19:02 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id q3-20020a92d403000000b003127b668eafsm2677214ilm.19.2023.02.23.17.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 17:19:02 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Alper Nebi Yasak , Neha Malcom Francis , Stefan Herbrechtsmeier , Philippe Reynes , Peng Fan , Heinrich Schuchardt , Simon Glass , =?UTF-8?q?Marek=20Beh=C3=BAn?= , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Quentin Schulz Subject: [PATCH v2 21/24] binman: Add support for building a binmanu PyPi package Date: Thu, 23 Feb 2023 18:18:21 -0700 Message-Id: <20230224011824.2111976-22-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230224011824.2111976-1-sjg@chromium.org> References: <20230224011824.2111976-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Create the necessary files to build this new package. It is not actually clear whether this is useful, since buildman has no purpose outside U-Boot. Move the main program into a function so that it can easily be called by the PyPi-created script. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 1 + tools/binman/pyproject.toml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tools/binman/pyproject.toml diff --git a/Makefile b/Makefile index 3951edabce1..27bdbec887b 100644 --- a/Makefile +++ b/Makefile @@ -2285,6 +2285,7 @@ _pip: scripts/make_pip.sh patman ${PIP_ARGS} scripts/make_pip.sh buildman ${PIP_ARGS} scripts/make_pip.sh dtoc ${PIP_ARGS} + scripts/make_pip.sh binman ${PIP_ARGS} help: @echo 'Cleaning targets:' diff --git a/tools/binman/pyproject.toml b/tools/binman/pyproject.toml new file mode 100644 index 00000000000..b4b54fbaee6 --- /dev/null +++ b/tools/binman/pyproject.toml @@ -0,0 +1,29 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "binary-manager" +version = "0.0.2" +authors = [ + { name="Simon Glass", email="sjg@chromium.org" }, +] +dependencies = ["pylibfdt", "u_boot_pylib", "dtoc"] +description = "Binman firmware-packaging tool" +readme = "README.rst" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "Operating System :: OS Independent", +] + +[project.urls] +"Homepage" = "https://u-boot.readthedocs.io/en/latest/develop/package/index.html" +"Bug Tracker" = "https://source.denx.de/groups/u-boot/-/issues" + +[project.scripts] +binman = "binman.main:start_binman" + +[tool.setuptools.package-data] +patman = ["*.rst"] -- 2.39.2.637.g21b0678d19-goog