Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/python-pylibfdt: new package
@ 2022-05-11  8:01 yegorslists--- via buildroot
  2022-07-23 19:20 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: yegorslists--- via buildroot @ 2022-05-11  8:01 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni, Asaf Kahlon

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/Config.in                            |  1 +
 package/python-pylibfdt/Config.in            |  6 ++++++
 package/python-pylibfdt/python-pylibfdt.hash |  6 ++++++
 package/python-pylibfdt/python-pylibfdt.mk   | 15 +++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/python-pylibfdt/Config.in
 create mode 100644 package/python-pylibfdt/python-pylibfdt.hash
 create mode 100644 package/python-pylibfdt/python-pylibfdt.mk

diff --git a/package/Config.in b/package/Config.in
index a693761f18..17789be100 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1164,6 +1164,7 @@ menu "External python modules"
 	source "package/python-pyicu/Config.in"
 	source "package/python-pyinotify/Config.in"
 	source "package/python-pyjwt/Config.in"
+	source "package/python-pylibfdt/Config.in"
 	source "package/python-pylibftdi/Config.in"
 	source "package/python-pylru/Config.in"
 	source "package/python-pymodbus/Config.in"
diff --git a/package/python-pylibfdt/Config.in b/package/python-pylibfdt/Config.in
new file mode 100644
index 0000000000..8fc1cdb064
--- /dev/null
+++ b/package/python-pylibfdt/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_PYLIBFDT
+	bool "python-pylibfdt"
+	help
+	  Python bindings for the Device Tree Compiler (dtc) toolchain.
+
+	  https://github.com/devicetree-org/pylibfdt
diff --git a/package/python-pylibfdt/python-pylibfdt.hash b/package/python-pylibfdt/python-pylibfdt.hash
new file mode 100644
index 0000000000..056fd3a62e
--- /dev/null
+++ b/package/python-pylibfdt/python-pylibfdt.hash
@@ -0,0 +1,6 @@
+# md5, sha256 from https://pypi.python.org/pypi/pylibfdt/json
+md5  5765c20ac6cde517d5b7218503ab707b  pylibfdt-1.6.1.tar.gz
+sha256  90c667c5adf44c6ab2f13bdc566598897784c7b781bed91064e7373bd270b778  pylibfdt-1.6.1.tar.gz
+# Locally computed
+sha256  6313108c23efffa36948f8b2cff1560a5935373b527b0e1a837cc77e6ed1bacd  BSD-2-Clause
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  GPL
diff --git a/package/python-pylibfdt/python-pylibfdt.mk b/package/python-pylibfdt/python-pylibfdt.mk
new file mode 100644
index 0000000000..d4d0b20625
--- /dev/null
+++ b/package/python-pylibfdt/python-pylibfdt.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-pylibfdt
+#
+################################################################################
+
+PYTHON_PYLIBFDT_VERSION = 1.6.1
+PYTHON_PYLIBFDT_SOURCE = pylibfdt-$(PYTHON_PYLIBFDT_VERSION).tar.gz
+PYTHON_PYLIBFDT_SITE = https://files.pythonhosted.org/packages/15/3c/40b1d6a1df9dbc9d9ba5700a47ad95ca1e984f18daf25ede0da5f67d0cf7
+PYTHON_PYLIBFDT_SETUP_TYPE = setuptools
+PYTHON_PYLIBFDT_LICENSE = BSD-2-Clause, GPL-2.0+
+PYTHON_PYLIBFDT_LICENSE_FILES = BSD-2-Clause GPL
+PYTHON_PYLIBFDT_DEPENDENCIES = host-python-setuptools-scm host-swig
+
+$(eval $(python-package))
-- 
2.17.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] package/python-pylibfdt: new package
  2022-05-11  8:01 [Buildroot] [PATCH] package/python-pylibfdt: new package yegorslists--- via buildroot
@ 2022-07-23 19:20 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-23 19:20 UTC (permalink / raw)
  To: yegorslists--- via buildroot; +Cc: Asaf Kahlon

On Wed, 11 May 2022 10:01:48 +0200
yegorslists--- via buildroot <buildroot@buildroot.org> wrote:

> +PYTHON_PYLIBFDT_VERSION = 1.6.1
> +PYTHON_PYLIBFDT_SOURCE = pylibfdt-$(PYTHON_PYLIBFDT_VERSION).tar.gz
> +PYTHON_PYLIBFDT_SITE = https://files.pythonhosted.org/packages/15/3c/40b1d6a1df9dbc9d9ba5700a47ad95ca1e984f18daf25ede0da5f67d0cf7
> +PYTHON_PYLIBFDT_SETUP_TYPE = setuptools
> +PYTHON_PYLIBFDT_LICENSE = BSD-2-Clause, GPL-2.0+

According to the SPDX tags in the code, the license is BSD-2-Clause
*OR* GPL-2.0+, so I changed that here, and applied.

I hope this will not cause any conflict with the bundled pylibfdt that
exists in U-Boot for example, but we'll see :-)

A short comment on those new Python packages: it would sometimes be
useful to have a corresponding runtime test in the support/testing/
infra, as it helps ensure that the dependencies have been properly
taken into account in the packaging.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-23 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-11  8:01 [Buildroot] [PATCH] package/python-pylibfdt: new package yegorslists--- via buildroot
2022-07-23 19:20 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox