[Buildroot] [git commit] package/python-kflash: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon May 30 19:22:06 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=8131ef6554aa34b388de33b6e340b125620c0c78
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Add the kflash Kendryte K210 UART ISP Utility as a host package to allow
users to program their board boot ROM or SRAM with built images.

The kflash utility is available through the pypi.org python package
index. The project is homepage is: https://github.com/vowstar/kflash.py.

Signed-off-by: Damien Le Moal <damien.lemoal at opensource.wdc.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 DEVELOPERS                               |  3 +++
 package/Config.in.host                   |  1 +
 package/python-kflash/Config.in.host     |  7 +++++++
 package/python-kflash/python-kflash.hash |  5 +++++
 package/python-kflash/python-kflash.mk   | 15 +++++++++++++++
 5 files changed, 31 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index 435fa28478..096ca94f4e 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -630,6 +630,9 @@ N:	Damien Lanson <damien at kal-host.com>
 F:	package/libvdpau/
 F:	package/log4cpp/
 
+N:	Damien Le Moal <damien.lemoal at wdc.com>
+F:	package/python-kflash/
+
 N:	Daniel Nicoletti <dantti12 at gmail.com>
 F:	package/cutelyst/
 
diff --git a/package/Config.in.host b/package/Config.in.host
index cd1c34b5a3..8d2a8f4801 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -72,6 +72,7 @@ menu "Host utilities"
 	source "package/pwgen/Config.in.host"
 	source "package/python-cython/Config.in.host"
 	source "package/python-greenlet/Config.in.host"
+	source "package/python-kflash/Config.in.host"
 	source "package/python-lxml/Config.in.host"
 	source "package/python-six/Config.in.host"
 	source "package/python-xlrd/Config.in.host"
diff --git a/package/python-kflash/Config.in.host b/package/python-kflash/Config.in.host
new file mode 100644
index 0000000000..0be8c18f15
--- /dev/null
+++ b/package/python-kflash/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_PYTHON_KFLASH
+	bool "host python-kflash"
+	depends on BR2_RISCV_64 && !BR2_USE_MMU
+	help
+	  Kendryte UART ISP Utility - programming code to k210.
+
+	  https://github.com/vowstar/kflash.py
diff --git a/package/python-kflash/python-kflash.hash b/package/python-kflash/python-kflash.hash
new file mode 100644
index 0000000000..722c4e879b
--- /dev/null
+++ b/package/python-kflash/python-kflash.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/kflash/json
+md5  85549bcc1faa0f2cd5ebe3b04759e7fa  kflash-1.1.5.tar.gz
+sha256  40a0976b52942c7a3bdfa2d9e2bdc8d7526cf6deb0759c8384281240c8fb404e  kflash-1.1.5.tar.gz
+# Locally computed sha256 checksums
+sha256  c48133d7a08d743c2c01c6190fc1860f7d73777afa2199ed8d0a035b754d8bf9  LICENSE
diff --git a/package/python-kflash/python-kflash.mk b/package/python-kflash/python-kflash.mk
new file mode 100644
index 0000000000..adbf6b30b0
--- /dev/null
+++ b/package/python-kflash/python-kflash.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-kflash
+#
+################################################################################
+
+PYTHON_KFLASH_VERSION = 1.1.5
+PYTHON_KFLASH_SOURCE = kflash-$(PYTHON_KFLASH_VERSION).tar.gz
+PYTHON_KFLASH_SITE = https://files.pythonhosted.org/packages/c4/b3/1c25a92922bfd3dbc05d972352c071167cad035c615f6f068f75c2f0fd01
+PYTHON_KFLASH_SETUP_TYPE = setuptools
+PYTHON_KFLASH_LICENSE = MIT
+PYTHON_KFLASH_LICENSE_FILES = LICENSE
+HOST_PYTHON_KFLASH_DEPENDENCIES = host-python-pyelftools host-python-serial
+
+$(eval $(host-python-package))



More information about the buildroot mailing list